
:root {
  --ink:      #2A333C;  /* navy — headings, body emphasis, links, outlines */
  --ink-soft: #222930;  /* body copy */
  --ink-mute: #4C5E6B;  /* footer */
  --coral:    #FF6B6B;  /* single accent: hero emphasis + primary button */
  --rule:     #2A333C;  /* hairlines */
  --rule-size: 5px;
  --page:     #fbf8ef;  /* white */
  --gutter:   0px;     /* horizontal page inset, also the section rhythm unit */
  --display:  'Passion One', sans-serif;      /* headings + pull quotes */
  --text:     'Hanken Grotesk', system-ui, sans-serif; 
}

/* --- Reset (only what's actually needed) ------------------- */
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }

/* --- Page shell -------------------------------------------
   Every top-level landmark is its own centred column, so no
   container div is required anywhere on the page. --------- */
body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
}
header, section, footer > * {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section {
	padding-block: 24px 0;
}

/* --- Typography -------------------------------------------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0em;
  line-height: 1.12;
  text-wrap: pretty;
}
h1 {
  font-size: clamp(24px, 28vw, 32px);
  line-height: 1.02;
  max-width: 800px;
  margin-bottom: 36px;

}
h2 { font-size: clamp(16px, 2.0vw, 24px);   margin-bottom: 20px;}
h3 { font-size: 21px; line-height: 1.24; letter-spacing: -0.016em; }
p  {
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.62;
  /* max-width: 60ch; */
  text-wrap: pretty;
  margin: 0 24px 0 0;
}
strong { color: var(--coral); font-weight: 600; }
em { color: var(--coral); font-style: normal; }  /* hero accent word */

/* --- Links ------------------------------------------------- */
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral); text-decoration-color: var(--coral); }
nav a, footer a { text-decoration: none; }
nav a:hover, footer a:hover { text-decoration: underline; }

/* --- Header ------------------------------------------------ */
header, nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
header { justify-content: space-between; padding-top: 48px; font-size: 15px; }
header img { width: 118px; }

/* --- Buttons (pill links) ---------------------------------
   .btn = secondary, navy outline. .btn.primary = coral fill. */
.btn {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 9px 19px;
  text-decoration: none;
  white-space: nowrap;
}
.btn.primary {
  background: var(--coral);
  border-color: var(--coral);
  padding: 15px 28px;
  font-weight: 600;
}

/* --- Horizontal scroll rows -------------------------------
   Used twice: the symptom quotes and the ways-of-working
   entries. Rules sit on the row, not on the items. -------- */
.row {
  display: flex;
  gap: 56px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  border-block: 1px solid var(--rule);
  padding-block: 30px 40px;
  scrollbar-width: thin;
}
.row > * {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

/* Quote variant: italic display type, tighter band. */
.row.quotes { gap: 72px; margin-top: 40px; padding-block: 28px 32px; }
.row.quotes p {
  font: italic 400 23px/1.36 var(--display);
  letter-spacing: -0.014em;
  color: var(--ink);
}


.row article > * + * { margin-top: 12px; }
.row article p { font-size: 15.5px; line-height: 1.58; }

.split-container {
	padding-block: 48px;
	  border-top: var(--rule-size) solid var(--rule);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  align-items: start;
}
.split > * + * { margin-top: 0; }
.split h2 + p { margin-top: 0; }
.split p + p { margin-top: 0; }

/* Explicit column-count variants. Fixed track counts (rather than
   auto-fit) so a 2- or 3-column section stays that shape regardless
   of how many/few children it has or how wide the viewport gets,
   collapsing to one column on narrow screens. */
.split.two { grid-template-columns: repeat(2, 1fr); }
.split.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .split.two,
  .split.three { grid-template-columns: 1fr; }
}

.split div {
	padding-right: 24px;
}

/* Writing index: stacked links divided by hairlines. */
.list { display: grid; }
.list a {
  padding-block: 17px;
  line-height: 1.4;
}
.list a:last-child { border-bottom: 1px solid var(--rule); }

.middle {
	/*border-left: var(--rule-size) solid var(--rule);
	border-right: var(--rule-size) solid var(--rule); */
	padding-left: 48px;

}
.split .middle {
	padding-right: 48px;
}

.portrait-first { 
	display: flex;
  	justify-content: center;} 

.portrait {
  text-align: center; 

}

.portrait img {
	  max-width: 150px;
	  margin: 0 auto;
	  margin-bottom: 8px;
}

p.caption {
	font-size: 16px;
	font-weight: 400;
	font-family: var(--display);
	text-align: center;
	margin-right: 0;
}

/* --- Footer ------------------------------------------------ */
footer { margin-top: 96px; }
footer > * {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 22px;
  padding-block: 26px 40px;
  font-size: 14.5px;
  color: var(--ink-mute);
}
footer a { color: inherit; }

/* --- Mobile (placed last so it reliably wins the cascade over the
   equal-specificity desktop rules above it) ------------------- */
@media (max-width: 760px) {
  /* Real page margins. --gutter is 0 by design on desktop, where the
     centred max-width column already leaves breathing room; below
     1120px there's no such margin, so the page needs its own inset. */
  :root { --gutter: 24px; }

  /* p's right margin and .split div's right padding exist to space
     out side-by-side desktop columns. Stacked on mobile, the missing
     matching left margin/padding made text sit flush against the
     left edge with a gap on the right instead of even margins. */
  p { margin-right: 0; }
  .split div { padding-right: 0; }

  /* Same asymmetry on the portrait column. */
  .middle,
  .split .middle { padding-left: 0; padding-right: 0; }

  /* .split > * + * zeroes the gap between grid children for the
     desktop side-by-side layout; stacked on mobile that left
     paragraphs and the portrait block touching with no air between
     them. */
  .split > * + * { margin-top: 32px; }

  /* Desktop spacing was tuned for a wide viewport and reads as too
     much dead air on a phone. */
  header { padding-top: 32px; margin-bottom: 32px; }
  .split-container { padding-block: 32px 0; }
  h1 { margin-bottom: 28px; }

  /* h2's clamp(16px, 2.0vw, 24px) floors out at 16px well before this
     breakpoint — 2vw is under 8px on any phone — leaving it barely
     bigger than body text. Give mobile its own fixed size instead. */
  h2 { font-size: 19px; }
}

p.caption {
	margin-bottom: 24px;
}