/* =========================================================================
   MAIN STREET OPERATOR — Colors & Type
   Single source of truth for tokens used across the design system.
   ========================================================================= */

/* Fonts — all three brand families are local files (no substitutes).
   Nudge Bold     — titles (woff2)
   FAIRE Octave   — subheadings, italic (woff2, regular + italic)
   Inclusive Sans — body & UI (ttf, full weight family)
   ------------------------------------------------------------------------- */

















:root {
  /* -----------------------------------------------------------------
     COLORS — PRIMARY PALETTE
     The grounded core. Use these first. Black, cream, brick red.
     ----------------------------------------------------------------- */
  --mso-ink:        #1E1D1C;   /* near-black, warm */
  --mso-brick:      #BE3000;   /* signature brick red */
  --mso-sand:       #DFD3BF;   /* warm cream, the second neutral */
  --mso-bone:       #F2ECE2;   /* off-white background, the lightest neutral */

  /* -----------------------------------------------------------------
     COLORS — SECONDARY PALETTE
     Earthy supporting hues. Group similar tones; never neon.
     ----------------------------------------------------------------- */
  --mso-blush:      #F4B3BB;   /* dusty pink */
  --mso-sky:        #8EC8D0;   /* powder blue */
  --mso-olive:      #BBB041;   /* mustard-olive */
  --mso-ochre:      #C97425;   /* burnt orange */
  --mso-navy:       #032E39;   /* deep teal-navy */
  --mso-forest:     #0E1F0E;   /* near-black forest green */
  --mso-oxblood:    #370E0F;   /* deep oxblood / wine */

  /* -----------------------------------------------------------------
     SEMANTIC TOKENS (light surface default)
     ----------------------------------------------------------------- */
  --bg:             var(--mso-bone);
  --bg-alt:         var(--mso-sand);
  --bg-inverse:     var(--mso-ink);
  --bg-accent:      var(--mso-brick);

  --fg:             var(--mso-ink);
  --fg-muted:       #4a463f;
  --fg-subtle:      #7a7468;
  --fg-on-dark:     var(--mso-bone);
  --fg-on-accent:   var(--mso-bone);

  --rule:           rgba(30,29,28,0.18);   /* hairline divider */
  --rule-strong:    rgba(30,29,28,0.45);

  --accent:         var(--mso-brick);
  --accent-hover:   #a32900;   /* brick — darker on hover */
  --accent-press:   #8a2200;

  /* -----------------------------------------------------------------
     TYPE STACKS
     ----------------------------------------------------------------- */
  --font-display:   'Nudge', 'Archivo Black', 'Inter', system-ui, sans-serif;        /* titles */
  --font-serif:     'Octave', 'Source Serif 4', 'Georgia', serif;                    /* subheadings, italic accents */
  --font-sans:      'Inclusive Sans', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;  /* body + small caps */

  /* -----------------------------------------------------------------
     TYPE SCALE (clamps allow responsive shrinking on small screens)
     ----------------------------------------------------------------- */
  --fs-display:     clamp(56px, 7.5vw, 120px);   /* hero h1 */
  --fs-h1:          clamp(40px, 5vw, 72px);
  --fs-h2:          clamp(32px, 3.6vw, 52px);
  --fs-h3:          clamp(24px, 2.4vw, 34px);
  --fs-h4:          20px;
  --fs-lead:        20px;                         /* italic subhead lead */
  --fs-body:        16px;
  --fs-small:       14px;
  --fs-eyebrow:     12px;                         /* small caps labels */

  --lh-tight:       0.92;
  --lh-snug:        1.05;
  --lh-normal:      1.4;
  --lh-relaxed:     1.6;

  --tracking-eyebrow: 0.14em;

  /* -----------------------------------------------------------------
     SPACING — based on a 4px unit
     ----------------------------------------------------------------- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* -----------------------------------------------------------------
     RADII — restrained. Sharp corners and PILLS, no in-between.
     ----------------------------------------------------------------- */
  --r-none:   0px;
  --r-card:   18px;    /* the big rounded-rectangle "poster" card */
  --r-pill:   999px;   /* nav buttons, primary CTA */

  /* -----------------------------------------------------------------
     SHADOWS — soft and warm; used sparingly. Most chrome is borderless.
     ----------------------------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(30,29,28,0.08);
  --shadow-md: 0 6px 16px rgba(30,29,28,0.10);
  --shadow-lg: 0 24px 40px -12px rgba(30,29,28,0.18);

  /* -----------------------------------------------------------------
     MOTION
     ----------------------------------------------------------------- */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:   140ms;
  --dur-base:   220ms;
  --dur-slow:   400ms;
}

/* =========================================================================
   SEMANTIC TYPE CLASSES — use these in markup
   ========================================================================= */

.mso-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--fg);
}

.mso-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--fg);
}

.mso-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.mso-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.mso-h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
}

.mso-subhead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-lead);
  line-height: var(--lh-normal);
  font-weight: 400;
}

.mso-body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  font-weight: 400;
  color: var(--fg-muted);
}

.mso-small {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  line-height: var(--lh-normal);
  color: var(--fg-subtle);
}

/* =========================================================================
   BASE — apply tokens to raw HTML elements when this file is the page reset
   ========================================================================= */
html, body { background: var(--bg); color: var(--fg); }
body { font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-relaxed); }

h1 { font: 700 var(--fs-h1)/var(--lh-tight) var(--font-display); letter-spacing: -0.01em; }
h2 { font: 700 var(--fs-h2)/var(--lh-snug) var(--font-display); letter-spacing: -0.005em; }
h3 { font: 700 var(--fs-h3)/var(--lh-snug) var(--font-display); }
h4 { font: 600 var(--fs-h4)/var(--lh-normal) var(--font-sans); }
p  { color: var(--fg-muted); max-width: 64ch; }
em, i { font-family: var(--font-serif); font-style: italic; }   /* italics ALWAYS render in the serif */
small { font-size: var(--fs-small); color: var(--fg-subtle); }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s-6) 0; }

/* =========================================================================
   DARK SURFACES — when a section sits on --mso-ink or --mso-navy
   Apply .on-dark to the section root to flip text tokens.
   ========================================================================= */
.on-dark {
  --fg: var(--mso-bone);
  --fg-muted: rgba(242,236,226,0.78);
  --fg-subtle: rgba(242,236,226,0.55);
  --rule: rgba(242,236,226,0.22);
  color: var(--fg);
}
.on-brick {
  --fg: var(--mso-bone);
  --fg-muted: rgba(242,236,226,0.85);
  --fg-subtle: rgba(242,236,226,0.65);
  --rule: rgba(242,236,226,0.28);
  color: var(--fg);
}

 .page-subscribe a{ color: #BE3000; text-decoration: none; }
 .page-subscribe a:hover{ color: #a32900; }
  input::placeholder { color: #7a7468; }

  .page {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background: var(--mso-bone);
    display: flex;
    flex-direction: column;
    padding: 36px 56px 40px;
    box-sizing: border-box;
  }
  .hero-photo {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    min-height: calc(100% - 130px);
    object-fit: cover;
    object-position: center bottom;
    pointer-events: none;
  }
  .site-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
  }
  .site-header img { height: 30px; display: block; }
  .weekly-tag {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mso-ink);
  }
  .hero-card {
    position: relative;
    margin: 132px 0 0;
    max-width: 660px;
    background: var(--mso-bone);
    border-radius: var(--r-card);
    padding: 48px 48px 44px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: var(--shadow-md);
  }
  .hero-card h1 { margin: 0; font-size: clamp(34px, 4.2vw, 52px); }
  .hero-card .sub { margin: 0; font-size: 18px; }
  .hero-card .proof { margin: 0; font-size: 15px; }
  .signup-form {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
  }
  .signup-form input[type="email"] {
    flex: 1 1 240px;
    font-family: var(--font-sans);
    font-size: 17px;
    color: var(--fg);
    background: transparent;
    border: 1px solid var(--rule-strong);
    border-radius: 999px;
    padding: 0 24px;
    height: 58px;
    outline: none;
  }
  .signup-form input[type="email"]:focus { border-color: var(--mso-ink); }
  .signup-form button {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 600;
    color: var(--mso-bone);
    background: var(--mso-brick);
    border: 0;
    border-radius: 999px;
    height: 58px;
    padding: 0 32px;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--dur-base) var(--ease-out);
  }
  .signup-form button:hover { background: var(--accent-hover); }
  .signup-form button:disabled { opacity: 0.65; cursor: default; }
  .hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .form-error {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--mso-brick);
    display: none;
  }
  .footer-note {
    position: relative;
    margin: auto 0 0;
    align-self: flex-start;
    font-family: var(--font-sans);
    font-size: 13px;
    color: #4a463f;
    background: var(--mso-bone);
    border-radius: 999px;
    padding: 8px 16px;
  }
  @media (max-width: 900px) {
    .page { padding: 28px 24px 32px; }
    .hero-photo { min-height: calc(100% - 44px); }
    .hero-card { margin: 64px 0 0; padding: 36px 28px 32px; }
  }
