/* decisions
 * - Two families only: PT Serif for headings (calm Cyrillic editorial), Inter for body.
 * - Single-column, 680px max. No grids. No cards. Monochrome, no accents.
 * - All "buttons" are underlined text links. Hover = opacity 0.55 per skill.
 * - Header is content-bearing (name left, lang switch right), no burger on mobile.
 * - Spacing steps kept to the 4/8/12/16/24/32/48/64/96/128 scale.
 * - Smooth scroll via CSS only; disabled under prefers-reduced-motion.
 * - Hero uses lowercase per skill (no ALL CAPS, no bold headings).
 * - Consultation page adds: hero-sub, meta-line, bare-list (em-dash bullets
 *   via \2014 escape — Python's http.server serves CSS without a charset),
 *   steps (inline 01/02 numerals, muted, hanging indent), .note, .item-meta.
 * - Booking flow on /consultation/ uses cal.com's popup modal triggered
 *   from a regular underlined text link (data-cal-link). All widget
 *   theming is set in the page via cssVarsPerTheme on Cal("ui", …) —
 *   no widget CSS lives here, since the cal modal renders inside its
 *   own iframe.
 * - /shoes/ keeps the older formsubmit.co flow: a lean form (name +
 *   email + consent) with the same underline-only input style and
 *   text-link submit button. The form CSS is scoped to .brief / .field
 *   / .submit / .thank-you and lives in this file.
 */

:root {
  --bg: #FAF9F6;
  --fg: #1A1A1A;
  --muted: #6B6B6B;
  --rule: #E5E3DE;

  --font-display: 'PT Serif', Georgia, serif;
  --font-text: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Typography ---------------------------------------------------------- */

h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0 0 24px;
}

p,
li {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 1.2em;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 500;
}

.meta {
  color: var(--muted);
  font-size: 15px;
  margin-top: 0;
}

/* Links --------------------------------------------------------------- */

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.55;
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

/* Header -------------------------------------------------------------- */

/* Header — banner mode by default (sticky + bg + hairline border).
 * Promoted to a floating name-in-gutter mode only on wide viewports,
 * where the 680px column leaves enough left air to host the prompt
 * without colliding with content. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  z-index: 10;
}

.site-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  line-height: 1;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-name:hover {
  opacity: 0.55;
}

.site-name-prompt {
  color: var(--muted);
}

.site-name-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: var(--fg);
  vertical-align: text-bottom;
  margin-left: 0.15em;
  animation: site-name-cursor-blink 1s steps(1) infinite;
}

@keyframes site-name-cursor-blink {
  50% { opacity: 0; }
}

/* Wide mode: name floats in the left gutter alongside the 680px column.
 * Threshold = column + twice the max prompt width + air. */
@media (min-width: 1280px) {
  .site-header {
    background: transparent;
    border-bottom: none;
    padding: 24px 24px 0;
  }
}

.lang-switch {
  font-family: var(--font-text);
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.lang-switch:hover {
  color: var(--fg);
  opacity: 1;
}

/* Layout -------------------------------------------------------------- */

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 96px 24px 128px;
}

/* Sections ------------------------------------------------------------ */

.hero {
  margin-bottom: 128px;
}

main > section + section {
  margin-top: 128px;
}

main > section:first-child + section {
  /* nothing — handled via .hero margin-bottom */
}

/* What I do — each item is a block of three short paragraphs (lead,
 * body, link). Extra gap between items keeps them reading as distinct. */
.item + .item {
  margin-top: 48px;
}

.item p {
  margin: 0 0 8px;
}

.item p:last-child {
  margin-bottom: 0;
}

/* Disabled link — muted, no underline, not interactive. Used for the
 * "coming soon" webinar CTA until the page exists. */
.link-disabled {
  color: var(--muted);
  cursor: not-allowed;
}

/* Footer -------------------------------------------------------------- */

.site-footer {
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 15px;
}

.site-footer p {
  margin: 0;
  font-size: 15px;
}

/* Mobile -------------------------------------------------------------- */

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  p,
  li {
    font-size: 17px;
  }

  .site-header {
    padding: 20px 20px 14px;
  }

  .site-name {
    font-size: 14px;
  }

  .container {
    padding: 80px 20px 96px;
  }

  .hero {
    margin-bottom: 80px;
  }

  main > section + section {
    margin-top: 80px;
  }

  .site-footer {
    padding: 0 20px 20px;
  }
}

/* Consultation page --------------------------------------------------- */

/* Hero supporting text. Larger than meta, smaller than H1 — bridges the
 * display type to body copy without a second heading level. */
.hero-sub {
  font-size: 20px;
  line-height: 1.5;
  margin: 0 0 16px;
  color: var(--fg);
}

/* One-line fact strip under the hero. Muted, monospace to echo the
 * terminal motif in the site header — reads as "metadata", not copy. */
.meta-line {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 32px;
}

.hero-cta {
  margin: 0;
}

/* Em-dash bullets. Used only where a list is genuinely needed (fit /
 * not-fit criteria); ordinary prose still flows as paragraphs. */
.bare-list {
  list-style: none;
  margin: 0 0 1.2em;
  padding: 0;
}

.bare-list li {
  position: relative;
  padding-left: 1.5em;
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.6;
}

.bare-list li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.bare-list li:last-child {
  margin-bottom: 0;
}

/* Numbered steps. 01/02/03 rendered as muted monospace numerals sitting
 * in a hanging indent — echoes the terminal motif without competing
 * with the body type. */
.steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 48px;
  margin: 0 0 24px;
}

.steps li:last-child {
  margin-bottom: 0;
}

.steps .step-num {
  position: absolute;
  left: 0;
  top: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.steps li p {
  margin: 0;
}

/* Secondary muted paragraph. Used for asides under a section
 * (price note, "I don't approve every request" line under form). */
.note {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 12px;
}

.note:last-child {
  margin-bottom: 0;
}

/* Testimonial author line sits directly under the quote. Small and
 * muted so the quote carries the weight. */
.item-meta {
  color: var(--muted);
  font-size: 15px;
  margin: 8px 0 0;
}

@media (max-width: 640px) {
  .hero-sub {
    font-size: 18px;
  }

  .steps li {
    padding-left: 40px;
  }
}

/* Brief form — used on /shoes/. Underline-only inputs keep the palette
 * monochrome and avoid the "boxy form" look that fights the rest of
 * the page. Radio/textarea variants from the old consultation form
 * are not included; this is the lean subset the shoes page needs. */
.brief {
  margin: 0;
}

.field {
  border: 0;
  padding: 0;
  margin: 0 0 32px;
}

.field > label {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 8px;
  padding: 0;
}

.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 0;
  font: inherit;
  color: var(--fg);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease;
}

.field input[type="text"]:focus,
.field input[type="email"]:focus {
  outline: none;
  border-color: var(--fg);
}

/* `label.` ensures the rule matches `.field > label`'s specificity
 * (0,1,1) — otherwise the .field > label { display: block } above wins
 * and the consent checkbox stacks vertically. */
label.checkbox {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--fg);
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 8px;
  cursor: pointer;
}

.checkbox input {
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--fg);
}

/* Honeypot. Hidden from users (layout-removed), visible to dumb bots. */
.honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  margin: 32px 0 12px;
}

/* Thank-you panel. Same editorial tone as the rest of the page — h2 in
 * serif, body paragraph in Inter at regular size. */
.thank-you {
  max-width: 56ch;
}

.thank-you h2 {
  margin-bottom: 16px;
}

.thank-you p {
  margin-bottom: 16px;
}

.thank-you p:last-child {
  margin-bottom: 0;
}

.thank-you:focus {
  outline: none;
}

/* Submit button styled as a regular underlined text link with an arrow
 * — the site has no coloured buttons. */
.submit {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.submit:hover {
  opacity: 0.55;
}

.submit:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

/* Shoes page ---------------------------------------------------------- */

/* Product photos. Site is monochrome, but a sales page selling a
 * physical visual product needs to show it in real colour — the photos
 * are naturally restrained (white / sky blue / navy), so they don't
 * fight the rest of the palette. Full column width, no shadow, no
 * border radius — keeps the editorial straight-edged feel. */
.shot {
  margin: 0 0 64px;
  padding: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-hero {
  margin-top: -64px;
  margin-bottom: 96px;
}

#gallery .shot + .shot {
  margin-top: -16px;
}

/* Price line. The current price stays at body size in the editorial
 * voice — no big-red-number theatrics — and the previous price sits
 * next to it muted. */
.price-line {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 16px;
}

.price-now {
  font-weight: 500;
}

.price-was {
  color: var(--muted);
  font-size: 16px;
  margin-left: 8px;
}

@media (max-width: 640px) {
  .checkbox {
    font-size: 17px;
  }

  .shot {
    margin-bottom: 48px;
  }

  .shot-hero {
    margin-top: -32px;
    margin-bottom: 64px;
  }
}

/* Reduced motion ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a {
    transition: none;
  }

  .site-name-cursor {
    animation: none;
  }
}
