/* Motor Mouth Pizza: pre-opening site. Mobile first; one shared stylesheet so
   the Terms and Privacy pages (and later pages) look the same.

   The look is the owner's own (his menu board, business card and sign): white paper, black ink,
   Chatter in full color, red, blue and yellow as accents. Two parts, read top to bottom:
   1. The announcement, on paper: Chatter standing on the logo, the script line, when and where.
      Black and red only (the logo's ink and Chatter's lips), so the top reads as one thing.
   2. The Garage Club, a blue card: what it is, why join, the form, the yellow button. On phones and tablets it
      waits behind one blue pill, so the page opens on the announcement alone; on computers it sits beside it.
      Blue and yellow live only down here, so the color moves down the page instead of piling up at the top.
   Each typeface has one job: Sundae = the one script line; Danny Lasso = facts, headings, the button;
   Big Bird = small spaced labels; Archivo = sentences and typing. (Mentori is the logo itself.) */

@font-face { font-family: 'Mentori'; src: url('/assets/fonts/Mentori-Regular.otf') format('opentype'); font-display: swap; }
@font-face { font-family: 'Lasso'; src: url('/assets/fonts/TAYDannyLasso.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'BigBird'; src: url('/assets/fonts/TAYBigBirdRegular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Sundae'; src: url('/assets/fonts/TAYSundae.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('/assets/fonts/Archivo-latin.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }

:root {
  color-scheme: light;   /* the page is a printed poster: the same in a phone's dark mode */
  --ink: #212322;        /* brand black */
  --paper: #FBF8F3;      /* the page */
  --card: #FFFFFF;       /* boxes you type in */
  --red: #D4382C;        /* red lettering (the brand red, a shade deeper so small letters read on paper) */
  --blue: #213B88;
  --yellow: #F1BE48;
  --muted: #5F5750;      /* fine print: readable, not loud */
  --hair: #E4DCCF;       /* quiet lines */
  --bad: #B3261E;        /* a mistake in the form */

  --f-logo: 'Mentori', 'Arial Narrow', sans-serif;
  --f-head: 'Lasso', 'Arial Narrow', sans-serif;
  --f-script: 'Sundae', 'Brush Script MT', cursive;
  --f-caps: 'BigBird', 'Courier New', monospace;
  --f-body: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }

/* ---------- The page ----------
   Every size is a multiple of one unit, --u, so the whole thing scales together and fits one screen
   down to the button on a phone.
   Phones: --u follows the visible height with Safari's bars showing (svh), capped by the width (vw)
   so no line runs off the side. Computers: --u follows the window's height between a floor and a ceiling.
   Inputs stay at 16px+ or iPhones zoom in when a field is tapped. */
.page {
  --u: min(1.4vw, 0.56svh);
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(2 * var(--u)) var(--gutter) calc(6 * var(--u));
  text-align: center;
  min-height: 100svh;   /* the announcement fills the first screen; the footer waits below */
}
/* Centered on the screen while the card is closed (auto margins, so a tall open card never gets cut off at the top). */
.hero { width: 100%; margin-top: auto; }
.joinbox { width: 100%; margin-bottom: auto; display: flex; flex-direction: column; align-items: center; }
/* Phones: the announcement has the screen to itself, so it sizes by the width. */
@media (max-width: 759px) { .hero { --u: min(1.4vw, 0.82svh); } }

/* ---------- Chatter on the logo ---------- */
.mast { width: 100%; }
.mast__chatter {
  width: calc(30 * var(--u));
  margin: 0 auto calc(0.5 * var(--u));   /* his shadow lands just above the lettering, never on it */
}
.mast__logo { margin: 0; }
.mast__logo img { width: 100%; }

/* ---------- The line, then when and where ----------
   The script is red, like Chatter's lips right above it; the facts are black, like the logo. */
.tease { width: 100%; margin-top: calc(5.4 * var(--u)); }
.tease__line {
  font-family: var(--f-script);
  font-size: calc(7.4 * var(--u)); line-height: 1.04;
  color: var(--red);
}
.tease__line span { display: block; white-space: nowrap; }
.tease__when {
  display: flex; flex-direction: column; align-items: center;
  margin-top: calc(2.4 * var(--u));
  font-family: var(--f-head); text-transform: uppercase;
  font-size: min(calc(3.9 * var(--u)), 4.6vw); line-height: 1.3; letter-spacing: .1em;
  color: var(--ink);
}
.tease__when span { white-space: nowrap; }
/* Phones: the two lines stacked, nothing between them. Computers: one line with a red dot between. */
.tease__sep { display: none; flex: none; background: var(--red); }

/* ---------- The pill that opens the card ---------- */
.pill {
  display: flex; align-items: center; gap: calc(1.6 * var(--u));
  max-width: 100%;
  margin-top: calc(6 * var(--u));
  padding: calc(2.7 * var(--u)) calc(5 * var(--u)) calc(2.4 * var(--u));
  border-radius: 999px;
  background: var(--blue); color: var(--paper);
  box-shadow: 0 3px 0 var(--ink);
  font-family: var(--f-head); text-transform: uppercase; white-space: nowrap;
  font-size: min(calc(3.6 * var(--u)), 3.7vw); line-height: 1; letter-spacing: .07em;
  text-decoration: none; cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, transform .08s ease, box-shadow .08s ease;
}
.pill:hover { background: #2A4AA6; }
.pill:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.pill:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.pill svg { width: 1.2em; height: 1.2em; margin-top: -.15em; fill: none; stroke: var(--yellow); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
/* Closed until the pill is tapped (or a link to /#signup); then the card takes the pill's place. */
.joinbox > .club { display: none; }
.joinbox:target > .club, .joinbox.is-open > .club { display: block; }
.joinbox:target > .pill, .joinbox.is-open > .pill { display: none; }

/* ---------- The Garage Club card ---------- */
.club {
  position: relative;
  width: 100%;
  margin-top: calc(6 * var(--u));
  padding: calc(7 * var(--u)) calc(4 * var(--u)) calc(4 * var(--u));
  border-radius: calc(4 * var(--u));
  background: var(--blue);
  color: var(--paper);
  overflow: hidden;
}
/* A checkered strip along the top, the start line (and the box card's opening edge). */
.club::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(1.6 * var(--u));
  height: calc(2.8 * var(--u));
  background: repeating-conic-gradient(var(--paper) 0 25%, var(--ink) 0 50%) 0 0 / calc(2.8 * var(--u)) calc(2.8 * var(--u));
}
.club__kicker {
  margin-top: calc(0.8 * var(--u));
  font-family: var(--f-caps); text-transform: uppercase;
  font-size: max(11px, calc(2.6 * var(--u))); line-height: 1.4; letter-spacing: .2em;
  color: var(--yellow);
}
.club__title {
  margin: 0;
  font-family: var(--f-head); font-weight: normal; text-transform: uppercase; white-space: nowrap;
  font-size: min(calc(5.4 * var(--u)), 5.5vw); line-height: 1.1; letter-spacing: .04em;
  color: var(--paper);
}
/* Why join: three short reasons side by side, each with a small yellow drawing. */
.perks {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(2 * var(--u));
  margin: calc(3.2 * var(--u)) 0 0; padding: 0; list-style: none;
  font-family: var(--f-body); font-weight: 600;
  font-size: max(13px, calc(2.9 * var(--u))); line-height: 1.25;
  color: var(--paper);
}
.perks li { display: flex; flex-direction: column; align-items: center; gap: calc(1.2 * var(--u)); text-wrap: balance; }
/* Each reason wraps to two short lines, so the three sit evenly. */
.perks li span { max-width: 7.5em; }
/* The soft open is the reason to sign up now: a little bigger than the other two, not shouting. */
.perks .perks__main { font-size: 1.16em; }
.perks .perks__main svg { width: calc(7.4 * var(--u)); height: calc(7.4 * var(--u)); }
.perks li { justify-content: flex-end; }
.perks svg {
  width: calc(5.4 * var(--u)); height: calc(5.4 * var(--u));
  fill: none; stroke: var(--yellow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Why now: the first 500 members are Founding Members. Set off with a thin yellow line so it reads as the reason to sign up today. */
.founding {
  margin: calc(2.6 * var(--u)) auto calc(3 * var(--u));
  padding: calc(1.4 * var(--u)) 10px;
  border: 1.5px solid rgba(241,190,72,.75); border-radius: calc(2 * var(--u));
  /* Always one line. On a phone the size follows the card's width: the sentence is about 23 letters' widths long. */
  font-family: var(--f-body); font-size: min(calc(2.9 * var(--u)), calc((100vw - 56px - 8 * var(--u)) / 23.2)); line-height: 1.35;
  white-space: nowrap;
  color: var(--paper);
}
.founding strong { color: var(--yellow); font-weight: 600; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: calc(2.2 * var(--u)) 10px; text-align: left; }
.field--wide { grid-column: 1 / -1; }
.field label {
  display: block; margin: 0 0 calc(0.8 * var(--u)) 2px;
  font-family: var(--f-caps); text-transform: uppercase;
  font-size: max(10.5px, calc(2.5 * var(--u))); line-height: 1.4; letter-spacing: .16em;
  color: var(--paper);
}
.field input {
  width: 100%; height: max(44px, calc(10.4 * var(--u)));
  padding: 0 14px;
  font-family: var(--f-body); font-size: 16px; color: var(--ink);
  background: var(--card);
  border: 2px solid transparent;
  border-radius: 12px;
  appearance: none;
}
.field input::placeholder { color: #8F8A84; }
.field input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(241,190,72,.45); }
.field input[aria-invalid="true"] { border-color: #FF9A8F; }
/* Mistakes in the form: a light coral that reads on the blue card. */
.field__error, .form-error { margin: 5px 0 0 2px; font-size: 13px; line-height: 1.3; color: #FFC2BA; font-weight: 600; }
.form-error { text-align: center; margin-top: 12px; }

/* The one yellow button. The black line and the ledge under it make it a thing to press. */
.btn {
  display: block; width: 100%;
  margin-top: calc(3 * var(--u));
  padding: calc(2.7 * var(--u)) 16px calc(2.3 * var(--u));
  border: 2px solid var(--ink); border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  font-family: var(--f-head); font-size: min(calc(4.8 * var(--u)), 5.6vw); line-height: 1; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, transform .08s ease, box-shadow .08s ease;
}
.btn:hover { background: #F6CC68; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
.btn[disabled] { opacity: .7; cursor: default; }

.consent { margin: calc(3.4 * var(--u)) auto 0; font-size: max(10.5px, calc(2.4 * var(--u))); line-height: 1.5; color: rgba(251,248,243,.78); }
.consent a { color: var(--paper); }

.done { padding: calc(4 * var(--u)) 0 calc(2 * var(--u)); outline: none; }
.done__script { font-family: var(--f-head); font-size: calc(5 * var(--u)); line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; color: var(--paper); text-wrap: balance; }
.done__text { max-width: 30ch; margin: 10px auto 0; font-size: 17px; color: var(--paper); }

/* ---------- Footer ---------- */
.foot {
  padding: 18px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hair);
  text-align: center; font-size: 13px; color: var(--muted);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot__links { margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-family: var(--f-caps); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.foot__links a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Tablets and small computer windows: the same column, a bit roomier ---------- */
@media (min-width: 760px) {
  .page { --u: clamp(4.4px, 0.62svh, 6.8px); justify-content: center; padding: calc(3 * var(--u)) 32px calc(6 * var(--u)); }
  .hero { max-width: calc(140 * var(--u)); }
  .mast__chatter { width: calc(34 * var(--u)); }
  .tease__line { font-size: calc(8.4 * var(--u)); }
  .pill { font-size: calc(3.4 * var(--u)); }
  .tease__when { flex-direction: row; justify-content: center; font-size: calc(3.4 * var(--u)); letter-spacing: .1em; }
  .tease__sep { display: block; width: calc(1.3 * var(--u)); height: calc(1.3 * var(--u)); margin: 0 calc(2.4 * var(--u)); border-radius: 50%; }
  .club { max-width: calc(112 * var(--u)); padding: calc(8.6 * var(--u)) calc(7 * var(--u)) calc(5 * var(--u)); }
  .club__title { font-size: calc(5.6 * var(--u)); }
  .perks { font-size: max(14px, calc(2.8 * var(--u))); }
  .founding { font-size: max(14px, calc(2.8 * var(--u))); padding: calc(1.6 * var(--u)) calc(3 * var(--u)); }
  /* Room for all three boxes in one row. */
  .fields { grid-template-columns: 1fr 1.1fr 1.5fr; column-gap: 12px; }
  .field--wide { grid-column: auto; }
  .field input { height: calc(10.4 * var(--u)); font-size: max(17px, calc(3.1 * var(--u))); padding: 0 calc(3 * var(--u)); border-radius: calc(2.2 * var(--u)); }
  .btn { font-size: calc(4.8 * var(--u)); border-width: max(2px, calc(0.42 * var(--u))); border-radius: calc(2.2 * var(--u)); }
  .consent { max-width: 92ch; font-size: max(11.5px, calc(2.2 * var(--u))); }
}

/* ---------- Computers: the announcement on the left, the card on the right, open (owner, 2026-11-17) ---------- */
@media (min-width: 1080px) {
  .page {
    --u: clamp(4.6px, 0.72svh, 7.4px);
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center; column-gap: calc(10 * var(--u));
    width: 100%; max-width: calc(250 * var(--u)); margin: 0 auto;
    padding: calc(5 * var(--u)) 48px;
  }
  .hero, .joinbox { max-width: none; margin: 0; }
  .mast__chatter { width: calc(32 * var(--u)); }
  .tease { margin-top: calc(6 * var(--u)); }
  .tease__line { font-size: calc(7.6 * var(--u)); }
  .tease__when { font-size: calc(3 * var(--u)); }
  .joinbox > .pill { display: none; }
  .joinbox > .club { display: block; max-width: none; margin-top: 0; }
  .club__title { font-size: calc(5 * var(--u)); }
  /* The card is narrower here, so the boxes go back to two rows. */
  .fields { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
}

/* The spam-bot trap: off screen, never seen or tabbed to by people. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Terms and Privacy ---------- */
.doc-top { width: 100%; max-width: 720px; margin: 0 auto; padding: 22px var(--gutter) 0; }
.doc-top__logo { display: block; width: min(260px, 70vw); }
.doc {
  flex: 1;
  width: 100%; max-width: 720px; margin: 0 auto;
  padding: 26px var(--gutter) 56px;
  font-size: 16.5px; line-height: 1.65; color: var(--ink);
}
.doc h1 {
  margin: 0;
  font-family: var(--f-head); font-weight: normal; text-transform: uppercase; letter-spacing: .06em;
  font-size: clamp(30px, 8vw, 44px); line-height: 1.1; color: var(--ink);
}
.doc__date { margin: 8px 0 24px; font-family: var(--f-caps); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
/* Section headings the way the menu board does them: red, with a red rule running out to the edge. */
.doc h2 {
  display: flex; align-items: center; gap: 12px;
  margin: 34px 0 10px;
  font-family: var(--f-head); font-weight: normal; text-transform: uppercase; letter-spacing: .08em;
  font-size: 19px; line-height: 1.2; color: var(--red);
}
.doc h2::after { content: ""; flex: 1; height: 2px; border-radius: 1px; background: var(--red); }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--red); }
.doc strong { font-weight: 600; }
.doc a { color: var(--blue); text-underline-offset: 3px; }
.doc__back { margin-top: 36px !important; font-family: var(--f-caps); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }
@media (min-width: 760px) { .doc-top { padding-top: 34px; } .doc { padding-top: 34px; font-size: 17px; } }

/* Short phone screens (iPhone SE, a mini with Safari's bars showing): the boxes can't shrink below a
   comfortable tap, so the three small drawings get a bit smaller. */
@media (max-width: 759px) and (max-height: 620px) { .perks svg { width: calc(4.6 * var(--u)); height: calc(4.6 * var(--u)); } }

/* Small phones (iPhone SE): the two side-by-side fields get a little tighter so the sample number fits. */
@media (max-width: 359px) { .fields { grid-template-columns: .85fr 1.15fr; } .field input { padding: 0 10px; font-size: 16px; } }

/* A link styled as the button (the 404 page). */
.btn--link { text-decoration: none; text-align: center; }
.lost { width: 100%; max-width: 420px; margin-top: calc(4 * var(--u)); }

/* Turnstile runs invisibly; its holder takes no space unless Cloudflare ever needs the guest to tap. */
.turnstile:empty { display: none; }
.turnstile { display: flex; justify-content: center; margin-top: 12px; }
