@import url("fonts/poppins.css");

/* ─── tokens ─────────────────────────────────────────────────────────────── */
:root {
  --paper:   #ffffff;
  --ink:     #111014;
  --ink-2:   #26262a;
  --ink-3:   #6b6b72;
  --rule:    #e4e4e6;

  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --max:     1180px;
  --gutter:  clamp(20px, 5vw, 64px);
  --section: clamp(64px, 9vw, 112px);
}

/* ─── reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ─── base ───────────────────────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-weight: 500; line-height: 1.18; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p  { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

/* small print goes dark and heavy, never light grey */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 1.4em;
}

/* ─── header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 62px;
}
.site-header .brand {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-indent: 0.28em;           /* balance the trailing letterspace */
  text-transform: lowercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
}
.site-header .brand:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); }
.site-nav a {
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  padding-block: 6px;
  border-bottom: 1.5px solid transparent;
  transition: border-color .18s ease, color .18s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ─── hero ───────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(40px, 6vw, 76px) clamp(28px, 4vw, 44px); text-align: center; }
.hero .lockup {
  width: min(360px, 72%);
  margin: 0 auto;
  container-type: inline-size;   /* so the name can size off the mark, not the viewport */
}
.hero img.wordmark { width: 100%; }
.hero .name {
  margin: 10px -0.42em 0 0;      /* the negative pulls back the trailing letterspace
                                    so the last glyph, not the gap, lines up with the mark */
  font-size: clamp(0.78rem, 1.25vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-align: right;
  text-transform: lowercase;
  white-space: nowrap;
  color: var(--ink);
}

/* ─── the act list — the signature block ─────────────────────────────────── */
.acts {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 2.15;
  color: var(--ink-2);
}
/* each act stays whole; lines break between acts, never inside one.
   The handful too long for a phone screen opt out, or they overflow the viewport. */
.acts .act { display: inline-block; white-space: nowrap; }
.acts .act.long { white-space: normal; }
/* The separator is part of the act, not a sibling. As a sibling it wrapped on
   its own and stranded a dot at the start of a line. Margin, not a space
   character, so there is no break opportunity in front of it. */
.acts .act::after {
  content: "\00b7";
  color: var(--ink-3);
  font-weight: 500;
  margin-inline: 0.34em 0.1em;
}
.acts .act.last::after { content: none; }
.acts .lede { display: block; color: var(--ink); font-weight: 500; }
/* Same trick as the Magic Castle logo in the client wall: a real link, styled
   as ordinary text, so it is obvious if you were told and invisible if not. */
.quiet { color: inherit; text-decoration: none; }
.acts .closing { display: block; color: var(--ink); font-weight: 500; }
#roster { padding-bottom: clamp(40px, 6vw, 72px); }
#clients, #contact { scroll-margin-top: 74px; }

/* ─── client wall ────────────────────────────────────────────────────────── */
.clients { border-top: 1px solid var(--rule); padding-block: clamp(44px, 5vw, 68px) clamp(30px, 3.5vw, 48px); }
.clients .eyebrow { font-size: 0.95rem; letter-spacing: 0.2em; }
.clients .eyebrow { text-align: center; margin-bottom: clamp(14px, 1.6vw, 20px); }
 /* flex, not grid: a ragged last row centres instead of hanging left */
.client-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(4px, 1vw, 12px);
}
.client-grid > * {
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: auto;
  width: var(--cell, clamp(100px, 13vw, 132px));
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  /* px, not %: percentage padding on a flex item resolves against the FLEX
     CONTAINER's width, not the cell, which collapses every logo to 0x0. */
  padding: clamp(5px, 0.7vw, 9px);
}
/* optical sizing: a wordmark needs more width than a roundel to read the same */
.client-grid img {
  max-height: 90%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.15);
  transition: transform .25s cubic-bezier(.2,.7,.3,1);
}
.client-grid > *:hover img { transform: scale(1.28); }
/* the castle link is styled exactly like every other cell, on purpose */
.client-grid a { text-decoration: none; }

/* ─── footer ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--rule); padding-block: clamp(48px, 6vw, 76px) clamp(32px, 4vw, 48px); }
.footer-row {
  margin-top: clamp(26px, 3vw, 38px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.footer-row .copy { text-align: right; font-size: 0.8rem; font-weight: 500; color: var(--ink-2); }
.footer-row .ig { display: flex; align-items: center; color: var(--ink-2); }
.footer-row .ig:hover { color: var(--ink); }
.footer-row .ig svg { display: block; width: 19px; height: 19px; }

a.email {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color .18s ease;
}
a.email:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact p { color: var(--ink-2); }

/* ─── fade-up, the one animation the old site had ────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .fade { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
  .fade.in { opacity: 1; transform: none; }
}

/* ─── mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .wrap {
    gap: 12px;
    min-height: 0;
    padding-block: 11px;
  }
  .site-header .brand { font-size: 0.74rem; letter-spacing: 0.24em; text-indent: 0.24em; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 0.66rem; letter-spacing: 0.08em; padding-block: 2px; }
  .client-grid > * { width: var(--cell, clamp(94px, 28vw, 118px)); }
  .acts { line-height: 1.95; }
  .footer-row { grid-template-columns: 1fr; justify-items: start; gap: 16px; }
  .footer-row .copy { text-align: left; }
}

/* ─── city guides ────────────────────────────────────────────────────────── */
/* Unlisted pages, but the same typeface, rules and dots as the home page —
   someone he sends here should land somewhere that is obviously his site. */
.guide-head { padding-block: clamp(34px, 5vw, 58px) clamp(18px, 2.4vw, 26px); text-align: center; }
.guide-head .eyebrow { margin-bottom: 1.1em; }
.guide-head .eyebrow a { text-decoration: none; }
.guide-head .eyebrow a:hover { text-decoration: underline; text-underline-offset: 4px; }
.guide .city {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  /* the tracking is added on the right of the last letter too; pull it back
     so the word still reads optically centred */
  margin-right: -0.3em;
  font-size: clamp(1.5rem, 4.2vw, 2.5rem);
}
.acts.toc { margin-top: clamp(18px, 2.6vw, 30px); font-size: 0.86rem; line-height: 2.3; }
.acts.toc a { text-decoration: none; color: var(--ink-3); font-weight: 500; letter-spacing: 0.02em; }
.acts.toc a:hover { color: var(--ink); }

.prose {
  max-width: 64ch;
  padding-block: clamp(10px, 2vw, 18px) clamp(40px, 5vw, 64px);
  color: var(--ink-2);
}
.prose.lead { text-align: center; max-width: 58ch; padding-bottom: clamp(28px, 3.4vw, 44px); }
.prose p { font-size: 1.02rem; line-height: 1.85; }
.prose strong { font-weight: 500; color: var(--ink); }
/* real Poppins italic, not a synthesised slant — the asides are his own
   parentheticals and grey made them read as disabled text */
.prose em { font-style: italic; color: inherit; font-weight: 300; }
.prose a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose h2 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin: clamp(34px, 4vw, 52px) 0 0.9em;
  padding-top: clamp(20px, 2.6vw, 30px);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 84px;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* index cards */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 2.4vw, 26px); padding-bottom: clamp(34px, 4vw, 52px); }
.guide-card {
  flex: 0 1 260px;
  border: 1px solid var(--rule);
  padding: clamp(20px, 2.6vw, 28px);
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.guide-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.guide-card .city {
  display: block;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin-right: -0.24em;
  font-size: 0.95rem;
}
.guide-card .blurb { display: block; margin-top: 0.7em; font-size: 0.88rem; line-height: 1.6; color: var(--ink-3); }

/* child guides on a country page */
.kids { text-align: center; padding-bottom: clamp(20px, 3vw, 34px); }
.kid-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(12px, 2vw, 20px); }
.kid {
  border: 1px solid var(--rule);
  padding: 0.75em 1.5em;
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-right: -0.2em;
  font-size: 0.82rem;
}
.kid:hover { border-color: var(--ink); }
.soon { margin-top: 1.2em; font-size: 0.82rem; font-weight: 500; color: var(--ink-3); }

.soon-list { text-align: center; padding-block: clamp(30px, 4vw, 48px); border-top: 1px solid var(--rule); }
.soon-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4em 1.6em; font-size: 0.86rem; font-weight: 500; color: var(--ink-3); }

/* buy me lunch */
.lunch { text-align: center; padding-block: clamp(34px, 4.5vw, 56px); border-top: 1px solid var(--rule); }
.lunch .eyebrow { font-size: 0.86rem; letter-spacing: 0.2em; margin-bottom: 1.6em; }
.pay { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(22px, 4vw, 46px); }
.pay img { max-height: 34px; width: auto; opacity: 0.92; transition: transform 0.2s ease; }
.pay a:hover img { transform: scale(1.12); }

.back { text-align: center; padding-bottom: clamp(40px, 5vw, 64px); font-size: 0.86rem; font-weight: 500; }
.back a { text-decoration: none; color: var(--ink-3); }
.back a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
/* pages without the contact block (the guides) close on the footer row alone */
.site-footer.bare { padding-block: clamp(26px, 3.2vw, 40px) clamp(26px, 3.2vw, 40px); }
/* the guides end on Buy Me Lunch and one line out — his call 2026-09-02 */
.lunch .mysite { margin: clamp(22px, 3vw, 34px) 0 0; font-size: 0.86rem; font-weight: 500; }
.lunch .mysite a { color: var(--ink-3); text-decoration: none; letter-spacing: 0.04em; }
.lunch .mysite a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.guide .lunch { padding-bottom: clamp(44px, 6vw, 72px); }

/* castle page lists — his copy is line-per-rule, so they are lists, not prose */
.prose ul.plain { margin: 0 0 1.15em; padding: 0; list-style: none; }
.prose ul.plain li { font-size: 1.02rem; line-height: 1.85; }
.prose ul.form-block {
  margin: 1.1em 0 1.3em;
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 26px);
  list-style: none;
  border: 1px solid var(--rule);
}
.prose ul.form-block li { font-weight: 500; color: var(--ink); line-height: 2; }
.lunch .eyebrow { white-space: pre-wrap; }

/* castle: his mark top centre, and the rule lines breathe — his call 2026-09-02 */
.guide-head .mark { display: block; width: clamp(180px, 22vw, 260px); margin: 0 auto clamp(16px, 2.2vw, 26px); }
.guide-head .mark img { width: 100%; }
.prose ul.plain li + li { margin-top: 0.75em; }

/* "whilst you're here" — the same block on the guides and on /castle */
.here { padding-block: clamp(30px, 4vw, 46px) clamp(8px, 1.4vw, 16px); border-top: 1px solid var(--rule); text-align: center; }
.here .eyebrow { font-size: 0.86rem; letter-spacing: 0.2em; margin-bottom: 1.6em; }
.here-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(24px, 4vw, 56px); }
.here-col { flex: 0 1 300px; }
.here-col h3 {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; margin: 0 0 0.5em;
}
.here-col .note { margin: 0 0 0.6em; font-size: 0.86rem; line-height: 1.6; color: var(--ink-3); }
.here-col .links { margin: 0; font-size: 0.92rem; font-weight: 500; line-height: 2; }
.here-col .links a { text-decoration: none; }
.here-col .links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.here-col .links a { display: inline-block; }

/* Home footer: GET IN TOUCH, the line under it and the email are one even stack —
   same size, same gap between all three. His call 2026-09-02. */
.contact .eyebrow { font-size: 1rem; letter-spacing: 0.18em; margin: 0 0 18px; }
.site-footer:not(.bare) a.email { font-size: 1rem; }
.site-footer:not(.bare) .footer-row { margin-top: 18px; }
