/* Intuita & Co — site styles
   Values mirror the Claude Design prototype (project/Intuita Website.dc.html). */

:root {
  --paper: #f6f1e8;
  --sand: #efe6d6;
  --ink: #2b2420;
  --body: #5e5249;
  --muted: #7d6e5f;
  --rule: #e2d8c8;
  --rule-sand: #d3c5b0;
  --pill: #cdbfa9;
  --plum: #5c1326;

  --accent: oklch(0.5 0.12 40);
  --accent-numeral: oklch(0.55 0.12 40);
  --accent-hover: oklch(0.48 0.12 40);
  --accent-light: oklch(0.8 0.09 50);

  --dark-text: #d9cfc2;
  --dark-field: #5a4e45;
  --dark-field-hover: #8a7a68;
  --dark-label: #b8ac9d;
  --dark-rule: #4a3f37;
  --dark-small: #c4b8a9;
  --light-button-hover: oklch(0.85 0.06 60);

  --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --sans: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 6vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
input, select, textarea, button { font: inherit; }
em { font-style: italic; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, p { margin: 0; }
address { font-style: normal; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.site-footer :focus-visible { outline-color: var(--accent-light); }

.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 12px 18px; background: var(--ink); color: var(--paper); text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--paper); }

/* Shared text treatments */
.accent { font-style: italic; color: var(--accent); }
.accent-light { font-style: italic; color: var(--accent-light); }
.plum { font-style: italic; color: var(--plum); }

.eyebrow { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow--accent { color: var(--accent); }
.label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.body-lg { font-size: 19px; line-height: 1.7; color: var(--body); }
.body-lg--max { max-width: 700px; }
.body-lg--spaced { margin-top: 16px; }

.pull { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.pull__rule { width: 40px; height: 1px; flex: none; background: var(--accent-numeral); }
.pull__text { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.35; color: var(--accent); text-wrap: pretty; }

.button {
  display: inline-block;
  align-self: flex-start;
  border: none; border-radius: 0;
  font-weight: 500; font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}
.button--dark { padding: 16px 26px; background: var(--ink); color: var(--paper); }
.button--dark:hover { background: var(--accent-hover); color: var(--paper); }
.button--light { padding: 16px 28px; background: var(--paper); color: var(--ink); }
.button--light:hover { background: var(--light-button-hover); }
.button[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding: 26px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.wordmark { font-family: var(--serif); font-size: 22px; text-decoration: none; }
.wordmark:hover { color: var(--ink); }
.wordmark .amp { font-style: italic; color: var(--accent-numeral); }
.site-nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; }
.site-nav a { text-decoration: none; }

/* Hamburger menu on narrow screens. Only applies once main.js has run
   (html.js), so without JavaScript the links stay visible. */
.menu-toggle { display: none; }
@media (max-width: 600px) {
  .js .site-header { position: relative; flex-wrap: nowrap; }
  .js .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; margin-right: -10px; padding: 10px;
    background: none; border: 0; cursor: pointer;
  }
  .js .menu-toggle__bar {
    display: block; width: 24px; height: 1.5px; background: var(--ink);
    transition: transform .2s ease;
  }
  .js .menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child { transform: translateY(4.25px) rotate(45deg); }
  .js .menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-child { transform: translateY(-4.25px) rotate(-45deg); }

  .js .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
    display: none; flex-direction: column; gap: 0;
    padding: 4px var(--gutter) 12px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 30px -18px rgba(43, 36, 32, .25);
    font-size: 18px;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a { padding: 14px 0; border-top: 1px solid var(--rule); }
  .js .site-nav a:first-child { border-top: 0; }
}
@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
  .js .menu-toggle__bar { transition: none; }
}

/* Hero */
.hero {
  display: flex; flex-direction: column; gap: 36px;
  padding: clamp(88px, 12vw, 150px) var(--gutter) clamp(72px, 10vw, 130px);
}
/* On phones the headline scales at 12vw (up to 48px) so it fills the screen
   without "Somewhere," touching the edge; from ~775px it follows 6.2vw. */
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, max(6.2vw, min(12vw, 48px)), 80px); line-height: 1.07;
  max-width: 1020px; text-wrap: pretty;
}
/* Below the width where the eyebrow fits on one line, stack its parts. */
@media (max-width: 860px) {
  .hero__eyebrow { line-height: 1.6; }
  .hero__eyebrow > span { display: block; }
  .hero__eyebrow .hero__sep { display: none; }
}
@media (max-width: 600px) {
  .hero { gap: 24px; }
  .hero__eyebrow { font-size: 12px; letter-spacing: .12em; }
}

/* Two sides */
.two-sides {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  border-top: 1px solid var(--rule);
}
/* Each column spans four shared rows (label, lead, body, aside) so matching
   lines sit at the same height side by side, however the text wraps. */
.two-sides__col {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 20px;
  align-content: start;
}
.two-sides__col--here {
  padding: clamp(56px, 7vw, 80px) clamp(20px, 5vw, 64px) clamp(56px, 7vw, 80px) var(--gutter);
  border-right: 1px solid var(--rule);
}
.two-sides__col--elsewhere {
  padding: clamp(56px, 7vw, 80px) var(--gutter) clamp(56px, 7vw, 80px) clamp(20px, 5vw, 64px);
}
.two-sides__lead { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.35; }
/* Stacked (the grid drops to one column below 2 × 380px): swap the vertical
   divider for a horizontal one and give both columns the page gutter. */
@media (max-width: 759.98px) {
  .two-sides__col--here,
  .two-sides__col--elsewhere { padding-left: var(--gutter); padding-right: var(--gutter); }
  .two-sides__col--here { border-right: 0; }
  .two-sides__col--elsewhere { border-top: 1px solid var(--rule); }
}
.two-sides__lead, .two-sides__body, .two-sides__aside { text-wrap: pretty; }
.two-sides__body { font-size: 18px; line-height: 1.7; color: var(--body); max-width: 460px; }
.two-sides__aside {
  margin-top: 12px; max-width: 420px;
  font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.6; color: var(--muted);
}

/* Bridge row between the two sides and the dark band; same type as .two-sides__lead */
.bridge {
  padding: clamp(32px, 4vw, 44px) var(--gutter);
  border-top: 1px solid var(--rule);
  font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.35;
  color: var(--ink);
  text-align: center; text-wrap: balance;
}

/* Dark band */
.band {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: clamp(56px, 7vw, 72px) var(--gutter);
  background: var(--ink); color: var(--paper);
  text-align: center;
}
.band__kicker {
  font-size: clamp(15px, 1.3vw, 17px); letter-spacing: .14em; text-transform: uppercase; color: var(--dark-text);
}
.band__statement {
  font-family: var(--serif); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.2; text-wrap: balance;
}

/* Numbered chapters */
/* Two equal columns. The column gap is twice the two-sides inner padding, so
   chapter content starts on the same line as the "Somewhere else" column. */
.chapter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: calc(2 * clamp(20px, 5vw, 64px));
  row-gap: clamp(28px, 5vw, 64px);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
@media (max-width: 900px) {
  .chapter { grid-template-columns: minmax(0, 1fr); }
}
.chapter--spark { padding-top: clamp(80px, 9vw, 110px); padding-bottom: clamp(64px, 8vw, 90px); }
.chapter--idea {
  padding-top: clamp(64px, 8vw, 90px); padding-bottom: clamp(80px, 9vw, 110px);
  border-top: 1px solid var(--rule);
}
.chapter__aside { display: flex; flex-direction: column; gap: 14px; }
.chapter__numeral { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--accent-numeral); }
.chapter__content { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.chapter__content--narrow { max-width: 700px; }
.chapter__content--wide { max-width: 760px; }
.chapter h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 3.8vw, 48px); line-height: 1.12; text-wrap: pretty;
}

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 8px 16px; border: 1px solid var(--pill); border-radius: 999px; font-size: 15px; }
.pill--dashed { border-style: dashed; color: var(--muted); }

.questions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 16px;
}
.questions li {
  padding: 24px; background: var(--sand);
  font-family: var(--serif); font-size: 21px; line-height: 1.35;
}

/* "I've always wanted to…" */
.wanted {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(48px, 6vw, 80px);
  padding: clamp(80px, 10vw, 120px) var(--gutter);
  background: var(--sand);
}
.wanted__col--left { display: flex; flex-direction: column; gap: 28px; }
.wanted__col--right { display: flex; flex-direction: column; gap: 22px; justify-content: flex-end; }
.wanted h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 4.8vw, 60px); line-height: 1.05;
}
.wanted__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 2px 32px;
  max-width: 560px;
  font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.6; color: var(--body);
}
.wanted__closer {
  max-width: 520px;
  font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--accent);
}
.wanted__intro { font-size: 18px; line-height: 1.7; color: var(--body); }
.wanted__needs { display: flex; flex-direction: column; border-top: 1px solid var(--rule-sand); }
.wanted__needs li { padding: 12px 0; border-bottom: 1px solid var(--rule-sand); font-size: 17px; color: var(--body); }
.wanted__punch { margin-top: 8px; font-family: var(--serif); font-size: 30px; }

/* Project: Readings & Friends */
.project {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
  padding: clamp(80px, 9vw, 110px) var(--gutter);
}
.project__image { display: block; width: 100%; height: auto; }
.project__text { display: flex; flex-direction: column; gap: 16px; }
.project__title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.4vw, 56px); line-height: 1.1; }
.tm {
  margin-left: 3px;
  font-family: var(--sans); font-size: .28em; font-weight: 500; letter-spacing: .02em;
  vertical-align: super; line-height: 0;
}
.project__desc { font-size: 18px; line-height: 1.6; color: var(--body); max-width: 440px; text-wrap: pretty; }

/* Footer / contact */
.site-footer {
  display: flex; flex-direction: column; gap: 72px;
  padding: clamp(80px, 10vw, 110px) var(--gutter) 48px;
  background: var(--ink); color: var(--paper);
}
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(48px, 6vw, 80px);
}
.contact__intro { display: flex; flex-direction: column; gap: 20px; }
.contact__title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.4vw, 56px); line-height: 1.08; }
.contact__lede { font-size: 17px; line-height: 1.65; color: var(--dark-text); max-width: 420px; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 16px;
}
.field {
  width: 100%;
  padding: 16px;
  background: transparent;
  border: 1px solid var(--dark-field);
  border-radius: 0;
  color: var(--paper);
  font-size: 15px;
  outline: none;
  -webkit-appearance: none; appearance: none;
}
.field::placeholder { color: var(--dark-label); opacity: 1; }
.field:focus { border-color: var(--paper); }
.field--textarea { resize: vertical; display: block; }
.form__error { font-size: 15px; line-height: 1.6; color: var(--dark-text); }
.form__error a { color: var(--paper); }

/* Branded dropdown */
.select { position: relative; }
.select__trigger {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  text-align: left; cursor: pointer;
}
.select__trigger:hover { border-color: var(--dark-field-hover); }
.select__trigger:focus { border-color: var(--paper); }
.select__summary { display: flex; flex-wrap: wrap; gap: 0 10px; align-items: baseline; }
.select__label { color: var(--dark-label); }
.select__value { font-family: var(--serif); font-style: italic; }
.select__chevron {
  flex: none;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--accent-light);
  border-bottom: 1.5px solid var(--accent-light);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s;
}
.select__trigger[aria-expanded="true"] .select__chevron { transform: rotate(-135deg) translateY(-2px); }
.select__menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5;
  display: flex; flex-direction: column;
  padding: 8px 0;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 18px 40px rgba(20, 10, 5, .35);
  outline: none;
}
.select__menu[hidden] { display: none; }
.select__menu [role="option"] {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  font-size: 15px;
  cursor: pointer;
}
.select__menu [role="option"]:hover,
.select__menu [role="option"].is-active { background: var(--sand); color: var(--accent-hover); }
.select__menu [role="option"][aria-selected="true"]::after { content: '✓'; color: var(--accent); }

.thanks {
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  padding: 40px;
  border: 1px solid var(--dark-field);
  outline: none;
}
.thanks[hidden] { display: none; }
.thanks__title { font-family: var(--serif); font-size: 32px; }
.thanks__body { font-size: 17px; line-height: 1.6; color: var(--dark-text); }

.legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px;
  padding-top: 28px;
  border-top: 1px solid var(--dark-rule);
  font-size: 14px; line-height: 1.6; color: var(--dark-small);
}
.legal__address { display: flex; flex-wrap: wrap; gap: 0 6px; }
.legal__address span { white-space: nowrap; }
.legal a { color: var(--paper); }
