:root {
  color-scheme: dark;
  --bg: #171717;
  --surface: #1d1d1c;
  --surface-raised: #222221;
  --ink: #ededeb;
  --body: #bcbcb7;
  --muted: #92928d;
  --rule: #41413e;
  --link: #6bb5ff;
  --link-hover: #a3d2ff;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "DM Mono", "Courier New", monospace;
  --serif: "Playfair Display", Georgia, serif;
  --display: "Space Grotesk", "DM Sans", Arial, sans-serif;
  --page-gutter: clamp(24px, 7vw, 104px);
  --section-space: clamp(66px, 8vw, 112px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  letter-spacing: -.012em;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.skip-link { position: absolute; z-index: 20; top: -5rem; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: var(--bg); }
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--page-gutter);
  border-bottom: 1px solid var(--rule);
  background: rgba(23,23,23,.96);
  backdrop-filter: blur(12px);
}
.wordmark { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font: 500 .7rem/1 var(--mono); letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.mark { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #747470; border-radius: 3px; font-size: .62rem; letter-spacing: -.08em; }
.site-header nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
.site-header nav a, .footer-links a { color: var(--link); font: 500 .62rem/1.4 var(--mono); letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.site-header nav a:hover, .footer-links a:hover, .text-link:hover, .hero-bottom a:hover { color: var(--link-hover); }
.site-header nav .nav-contact { padding: 10px 13px; border: 1px solid var(--link); border-radius: 2px; }
.menu-toggle { display: none; }

/* Shared type and spacing */
.section-pad { padding: var(--section-space) var(--page-gutter); }
.eyebrow, .card-number, .hero-bottom, .timeline-label {
  margin: 0;
  color: var(--muted);
  font: 500 .61rem/1.5 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow span { color: var(--ink); }
.hero h1, .section-heading h2, .notes-origin-heading h2, .about-story h2, .credentials h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.085em;
}
.text-link { display: inline-flex; align-items: center; gap: 9px; padding-bottom: 4px; border-bottom: 1px solid currentColor; color: var(--link); font: 500 .65rem/1.4 var(--mono); letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }

/* Home */
.hero {
  display: grid;
  min-height: 620px;
  grid-template-columns: minmax(0,1fr);
  grid-template-rows: 1fr auto;
  gap: 40px;
  padding: clamp(54px,8vw,100px) var(--page-gutter) 25px;
}
.hero-copy { align-self: center; max-width: 930px; }
.hero-copy > .eyebrow { margin-bottom: clamp(22px,2.5vw,34px); }
.hero h1 { display: flex; flex-direction: column; align-items: flex-start; gap: 0; font-size: clamp(4.6rem,11.6vw,10.5rem); line-height: .82; }
.hero h1 .hero-greeting { display: block; margin: 0 0 .035em; color: #a6a6a1; font-size: .54em; font-weight: 400; letter-spacing: -.065em; line-height: 1.04; }
.hero h1 .hero-name { display: block; color: var(--ink); font-size: 1em; font-weight: 700; letter-spacing: -.1em; line-height: .82; }
.hero-lede { max-width: 620px; margin: 28px 0 0; color: var(--body); font-size: clamp(1.12rem,2vw,1.5rem); line-height: 1.45; letter-spacing: -.04em; }
.hero-intro { max-width: 620px; margin: 12px 0 0; color: var(--body); font-size: .94rem; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 28px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 22px; padding: 0 17px; border: 1px solid var(--link); border-radius: 2px; font: 500 .63rem/1.2 var(--mono); letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.button-dark { background: #deded9; color: #171717; }
.button-dark:hover { background: #fff; }
.hero-bottom { display: flex; grid-column: 1/-1; justify-content: space-between; gap: 20px; padding-top: 17px; border-top: 1px solid #4a4a47; }
.hero-bottom a { color: var(--link); font: inherit; letter-spacing: 0; text-decoration: none; text-transform: none; }

/* Why these notes exist */
.notes-origin {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
  gap: clamp(42px,8vw,120px);
  align-items: start;
  border-block: 1px solid var(--rule);
  background: var(--surface);
}
.notes-origin-heading h2 { margin-top: 28px; font-size: clamp(3.1rem,5.7vw,5.3rem); line-height: .97; }
.notes-origin-copy { max-width: 750px; padding-top: 32px; }
.notes-origin-copy p { margin: 0 0 17px; color: var(--body); font-size: .96rem; line-height: 1.75; }
.notes-origin-copy .notes-origin-lede { color: var(--ink); font-size: clamp(1.04rem,1.5vw,1.17rem); line-height: 1.7; }
.notes-origin-copy .notes-origin-signoff { margin: 25px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); color: #d0d0cb; font: 400 .68rem/1.8 var(--mono); letter-spacing: .015em; }

/* Writing ecosystem: four product identities on one monochrome chassis */
.explore { display: grid; grid-template-columns: minmax(220px,.72fr) minmax(0,1.28fr); gap: clamp(34px,5vw,72px); align-items: start; background: var(--bg); }
.section-heading h2 { margin-top: 23px; font-size: clamp(3rem,5.3vw,5.1rem); line-height: .98; }
.explore-intro { max-width: 300px; margin: 22px 0 0; color: var(--body); font-size: .91rem; line-height: 1.7; }
.explore-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.feature-card {
  --product: #a5c9dc;
  --product-rgb: 165,201,220;
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 23px 23px 21px;
  border: 1px solid #3d3d3a;
  border-radius: 2px;
  background-color: #1e1e1d;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.feature-card::before { position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--product); content: ""; }
.feature-card::after { position: absolute; z-index: 0; top: 0; right: 0; width: 112px; height: 112px; opacity: .55; pointer-events: none; content: ""; }
.feature-card > * { position: relative; z-index: 1; }
.card-number { padding-right: 40px; color: var(--product); font-size: .55rem; letter-spacing: .1em; }
.card-icon { position: absolute!important; top: 15px; right: 18px; display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(var(--product-rgb),.45); border-radius: 2px; color: var(--product); font: 500 1rem/1 var(--mono); }
.feature-card h3 { margin: auto 0 9px; color: var(--ink); font: 600 clamp(1.35rem,2vw,1.8rem)/1.1 var(--display); letter-spacing: -.065em; }
.feature-card p { max-width: 340px; margin: 0 0 21px; color: #b5b5af; font-size: .77rem; line-height: 1.6; }
.feature-card .card-link { display: inline-flex; align-items: center; gap: 13px; margin-top: auto; color: var(--link); font: 500 .57rem/1.4 var(--mono); letter-spacing: .055em; text-transform: uppercase; }
.feature-card .card-link b { font-size: .83rem; font-weight: 400; }
.feature-card:hover { transform: translateY(-2px); border-color: var(--product); background-color: #242423; }
.feature-card:focus-visible { outline-color: var(--product); }

/* Field Notes — ruled notebook, pale blue, compact mono lettering */
.feature-card.knowledge { --product: #a5c9dc; --product-rgb: 165,201,220; background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(165,201,220,.055) 27px 28px); }
.feature-card.knowledge::after { width: 104px; height: 110px; opacity: .7; background: linear-gradient(140deg,transparent 47%,rgba(165,201,220,.24) 48% 49%,transparent 50%), linear-gradient(140deg,transparent 61%,rgba(165,201,220,.16) 62% 63%,transparent 64%); }
.feature-card.knowledge h3 { font: 500 clamp(1.25rem,1.8vw,1.65rem)/1.15 var(--mono); letter-spacing: -.08em; }
.feature-card.knowledge .card-icon { font-family: var(--serif); font-size: 1.3rem; }

/* The Making Cents — warm meter display and fine market grid */
.feature-card.newsletter { --product: #d3b66f; --product-rgb: 211,182,111; background-image: linear-gradient(rgba(211,182,111,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(211,182,111,.05) 1px,transparent 1px); background-size: 18px 18px; }
.feature-card.newsletter::after { top: 50px; right: 21px; width: 94px; height: 46px; opacity: .65; background: linear-gradient(145deg,transparent 0 15%,var(--product) 16% 18%,transparent 19% 34%,var(--product) 35% 37%,transparent 38% 54%,var(--product) 55% 57%,transparent 58%); clip-path: polygon(0 72%,18% 45%,33% 60%,50% 20%,68% 37%,82% 4%,100% 22%,100% 27%,82% 10%,68% 43%,50% 26%,34% 66%,18% 51%,0 78%); }
.feature-card.newsletter h3 { font-weight: 700; }
.feature-card.newsletter .card-icon { font-size: .85rem; }

/* The Alpha Bets — sage signal, measured dot matrix, geometric title */
.feature-card.blog { --product: #9fc3a4; --product-rgb: 159,195,164; background-image: radial-gradient(rgba(159,195,164,.12) .8px,transparent .8px); background-size: 15px 15px; }
.feature-card.blog::after { width: 88px; height: 88px; border: 1px solid rgba(159,195,164,.28); border-radius: 50%; box-shadow: 0 0 0 10px rgba(159,195,164,.035),0 0 0 21px rgba(159,195,164,.025); }
.feature-card.blog h3 { font: 500 clamp(1.15rem,1.65vw,1.5rem)/1.15 var(--mono); letter-spacing: -.07em; text-transform: uppercase; }

/* The Vitruvian — lavender orbital geometry and editorial serif */
.feature-card.why-side { --product: #bca9d2; --product-rgb: 188,169,210; background-image: radial-gradient(ellipse at 100% 0%,rgba(188,169,210,.09),transparent 48%); }
.feature-card.why-side::after { top: -22px; right: -22px; width: 112px; height: 112px; border: 1px solid rgba(188,169,210,.23); border-radius: 50%; box-shadow: 0 0 0 12px rgba(188,169,210,.035),0 0 0 25px rgba(188,169,210,.025); }
.feature-card.why-side h3 { font: 500 clamp(1.65rem,2.3vw,2rem)/1.08 var(--serif); letter-spacing: -.055em; }
.feature-card.why-side .card-icon { font: italic 500 1.15rem/1 var(--serif); }

/* About */
.about { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(42px,7vw,100px); align-items: start; border-block: 1px solid #353533; background: #111; }
.about-story { max-width: 580px; }
.about-story h2 { margin: 26px 0 32px; font-size: clamp(3.2rem,5.4vw,5.3rem); line-height: .97; }
.about-story > p:not(.eyebrow) { margin: 0 0 17px; color: var(--body); font-size: .93rem; line-height: 1.75; }
.about-story > .about-intro { color: #e2e2dd; font-size: 1.04rem; line-height: 1.72; }
.about-story .about-signoff { margin-top: 29px; color: #e4e4df; font: 400 .78rem/1.8 var(--mono); }
.about-signoff em { color: #bdbdb7; }
.about-timeline { border-top: 1px solid var(--rule); }
.timeline-row { display: grid; grid-template-columns: minmax(80px,.62fr) minmax(0,1.38fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.timeline-label { padding-top: 3px; font-size: .56rem; }
.timeline-row h3 { margin: 0 0 5px; color: var(--ink); font-size: .97rem; font-weight: 600; letter-spacing: -.035em; line-height: 1.4; }
.timeline-row p { margin: 0; color: #a8a8a3; font-size: .82rem; line-height: 1.55; }

/* Credentials */
.credentials { background: var(--surface); }
.credentials-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 45px; }
.credentials-head h2 { margin-top: 20px; font-size: clamp(2.7rem,4.8vw,4.7rem); line-height: 1; }
.credentials-head > p { margin: 0 0 5px; color: var(--body); font-size: .76rem; line-height: 1.7; }
.credential-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(34px,7vw,100px); }
.credential-group h3 { display: flex; align-items: baseline; gap: 13px; margin: 0 0 8px; padding-bottom: 15px; border-bottom: 1px solid #555552; color: var(--ink); font: 500 .84rem/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.credential-group h3 span { color: #92928d; font-size: .58rem; }
.credential-group ul { margin: 0; padding: 0; list-style: none; }
.credential-group li { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid #343432; color: #d4d4cf; font-size: .73rem; line-height: 1.5; }
.credential-group li small { color: var(--muted); font: 400 .57rem/1.5 var(--mono); text-align: right; white-space: nowrap; }

/* Closing thought and footer */
.quote-band { position: relative; padding: 64px var(--page-gutter) 60px; border-block: 1px solid var(--rule); background: #20201f; text-align: center; }
.quote-mark { color: #777772; font: 5rem/.7 var(--serif); }
.quote-band blockquote { max-width: 820px; margin: 15px auto 20px; color: #e7e7e2; font: 400 clamp(1.3rem,2.5vw,2rem)/1.35 var(--serif); letter-spacing: -.035em; }
.quote-band cite { color: #9d9d98; font: 500 .58rem/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.site-footer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px 28px; align-items: center; padding: 28px var(--page-gutter); background: var(--bg); }
.site-footer > p { margin: 0; color: var(--muted); font: 400 .66rem/1.5 var(--mono); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer > small { grid-column: 1/-1; padding-top: 13px; border-top: 1px solid var(--rule); color: var(--muted); font: 400 .56rem/1.5 var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }

/* Responsive layout */
@media (max-width: 980px) {
  .explore { grid-template-columns: 1fr; gap: 32px; }
  .explore-intro { max-width: 500px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about-story { max-width: 760px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 70px; }
  .site-header { height: 66px; }
  .menu-toggle { display: flex; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 6px; border: 0; background: transparent; }
  .menu-toggle span:not(.sr-only) { width: 22px; height: 1px; background: var(--ink); }
  .site-header nav { position: absolute; top: 65px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--page-gutter) 20px; border-bottom: 1px solid var(--rule); background: #171717; }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: 12px 0; }
  .site-header nav .nav-contact { margin-top: 6px; padding: 12px; text-align: center; }
  .hero { min-height: 580px; gap: 34px; padding-top: 57px; }
  .hero-copy > .eyebrow { margin-bottom: 24px; }
  .hero h1 { font-size: clamp(3.2rem,14vw,6rem); line-height: .82; font-weight: 700; letter-spacing: -.095em; text-transform: uppercase; }
  .hero h1 .hero-greeting { color: #a6a6a1; font-size: .54em; font-weight: 400; letter-spacing: -.065em; line-height: 1.04; }
  .hero h1 .hero-name { color: #ededeb; }
  .hero-lede { margin-top: 28px; font-size: 1.12rem; }
  .hero-actions { gap: 18px; margin-top: 26px; }
  .hero-bottom { font-size: .52rem; }
  .notes-origin { grid-template-columns: 1fr; gap: 15px; }
  .notes-origin-heading h2 { margin-top: 20px; font-size: clamp(3rem,12vw,4.3rem); }
  .notes-origin-copy { padding-top: 12px; }
  .explore-grid { gap: 8px; }
  .feature-card { min-height: 235px; padding: 19px; }
  .feature-card h3 { font-size: 1.35rem; }
  .feature-card.knowledge h3 { font-size: 1.13rem; }
  .feature-card.blog h3 { font-size: 1.05rem; }
  .feature-card.why-side h3 { font-size: 1.55rem; }
  .feature-card p { font-size: .72rem; }
  .about-story h2 { font-size: clamp(3rem,11vw,4.4rem); }
  .credentials-head { display: block; }
  .credentials-head > p { margin-top: 18px; }
  .credential-columns { grid-template-columns: 1fr; gap: 36px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer > p { grid-column: 1/-1; grid-row: 2; }
  .footer-links { grid-column: 1/-1; grid-row: 3; }
  .site-footer > small { grid-row: 4; }
}
@media (max-width: 430px) {
  .explore-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 205px; }
  .hero-bottom { align-items: flex-start; font-size: .47rem; }
  .hero-bottom a { max-width: 90px; text-align: right; }
  .timeline-row { grid-template-columns: 73px minmax(0,1fr); gap: 12px; }
  .timeline-row h3 { font-size: .9rem; }
  .timeline-row p { font-size: .76rem; }
  .credential-group li { font-size: .67rem; }
  .credential-group li small { font-size: .53rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
