/* =========================================================
   Jay Owen — Colors & Typography
   ---------------------------------------------------------
   Personal brand for Jay Owen. Editorial / vintage poster
   feel: cream paper, deep teal display type, vermillion
   "ball" accents and hand-drawn arrows.

   Fonts (substitutions noted):
   • Display     — Anton          (Google Fonts substitute for
                                   the original poster face,
                                   which appears to be Druk
                                   Condensed Super / Knockout.
                                   Flag to user.)
   • Label/Mono  — Barlow Condensed (close stand-in for the
                                   bold-caps tagline face)
   • Body        — Inter           (neutral UI / running text)
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Anton&family=Barlow+Condensed:wght@500;600;700;800;900&family=Caveat:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* ---------- Paper / Surfaces ---------- */
  --paper:        #ECE2C9;   /* canonical cream poster ground */
  --paper-light:  #F4ECD7;   /* lifted card surface */
  --paper-tint:   #E2D6B8;   /* divider, subtle block */
  --paper-dark:   #C9BC9A;   /* aged-paper edge / shadow side */

  /* ---------- Ink (Deep Teal) ---------- */
  --ink:          #0E2925;   /* near-black teal — primary text on paper */
  --ink-2:        #143E3A;   /* display headlines */
  --ink-3:        #1F574F;   /* secondary teal */
  --ink-4:        #437A72;   /* muted teal — captions */
  --ink-5:        #7DA29B;   /* faint teal — dividers, hairlines */

  /* ---------- Accent (Vermillion) ---------- */
  --accent:       #E64A2C;   /* the red "ball" */
  --accent-deep:  #C03B22;   /* press / hover */
  --accent-soft:  #F1A28A;   /* tints / backgrounds */

  /* ---------- Neutrals ---------- */
  --bone:         #FBF7EC;   /* lightest — shirt white */
  --slate:        #2B2B2B;   /* incidental dark UI */
  --shadow-warm:  rgba(20, 62, 58, 0.18);

  /* ---------- Semantic ---------- */
  --bg:           var(--paper);
  --bg-elevated:  var(--paper-light);
  --fg:           var(--ink);
  --fg-muted:     var(--ink-4);
  --fg-strong:    var(--ink-2);
  --rule:         rgba(14, 41, 37, 0.18);
  --link:         var(--accent-deep);

  /* ---------- Type families ---------- */
  --font-display: "Anton", "Druk Condensed Super", "Knockout", "Oswald", Impact, sans-serif;
  --font-label:   "Barlow Condensed", "Oswald", "Helvetica Neue", sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---------- Type scale (px) ---------- */
  --t-display-xl: clamp(64px, 9vw, 168px);  /* hero poster type */
  --t-display-l:  clamp(48px, 6vw, 104px);
  --t-display-m:  clamp(36px, 4.5vw, 72px);
  --t-eyebrow:    14px;     /* "WITH JAY OWEN •" caps */
  --t-h1:         44px;
  --t-h2:         32px;
  --t-h3:         22px;
  --t-body:       16px;
  --t-small:      13px;

  /* ---------- Spacing ---------- */
  --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;

  /* ---------- Radii ---------- */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* ---------- Elevation ---------- */
  --shadow-1: 0 1px 2px rgba(14, 41, 37, 0.12);
  --shadow-2: 0 6px 18px rgba(14, 41, 37, 0.14);
  --shadow-3: 0 22px 48px rgba(14, 41, 37, 0.22);
}

/* ========================================================
   Semantic element styles
   ======================================================== */
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.display, .display-xl, .display-l, .display-m,
h1.poster, h2.poster {
  font-family: var(--font-display);
  font-weight: 400;             /* Anton has only 400 */
  color: var(--ink-2);
  line-height: 0.88;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.display-xl { font-size: var(--t-display-xl); }
.display-l  { font-size: var(--t-display-l); }
.display-m  { font-size: var(--t-display-m); }

/* The signature "period" — a heavy beat at the end of a line */
.display .dot,
.poster .dot { color: var(--ink-2); }

h1 {
  font-family: var(--font-display);
  font-size: var(--t-h1);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
  color: var(--ink-2);
  margin: 0 0 var(--s-4);
}

h2 {
  font-family: var(--font-label);
  font-size: var(--t-h2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  margin: 0 0 var(--s-3);
}

h3 {
  font-family: var(--font-label);
  font-size: var(--t-h3);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  margin: 0 0 var(--s-2);
}

.eyebrow,
.label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: var(--t-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}

.eyebrow .bullet {
  color: var(--ink-3);
  margin: 0 0.4em;
}

p, .body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  color: var(--ink);
  margin: 0 0 var(--s-4);
}

.small,
small {
  font-size: var(--t-small);
  color: var(--ink-4);
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
a:hover { color: var(--accent); }

/* Capsule tag like @jayowenlive */
.tag-capsule {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--ink-2);
  color: var(--bone);
  border-radius: var(--r-pill);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

/* Hand-drawn underline (the green stroke under "WITH JAY OWEN") */
.rule-underline {
  display: inline-block;
  width: 88px;
  height: 4px;
  background: var(--ink-2);
  border-radius: 2px;
}

/* Paper texture utility — apply to any block to evoke grain */
.paper {
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(14,41,37,0.05) 1px, transparent 1px),
    radial-gradient(rgba(20,62,58,0.04) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}

/* ---------- GLOBAL ANNOUNCEMENT BAR ---------- */
.announce {
  background: var(--ink-2);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 13.5px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.announce .pulse {
  display: inline-block;
  background: var(--accent);
  color: var(--bone);
  padding: 4px 10px 3px;
  border-radius: 999px;
  font-family: var(--font-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
}
.announce .ann-cta {
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}
.announce .ann-cta:hover { color: var(--accent-soft); }
.announce .ann-close {
  background: transparent;
  border: 0;
  color: rgba(251, 247, 236, 0.6);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
  margin-left: 8px;
}
.announce .ann-close:hover { color: var(--bone); }
.announce.hidden { display: none; }
.ann-long { display: inline; }
.ann-short { display: none; }
@media (max-width: 960px) {
  .announce {
    font-size: 12px;
    padding: 7px 12px;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
  }
  .announce .pulse { font-size: 9.5px; padding: 3px 8px 2px; letter-spacing: 0.12em; flex-shrink: 0; }
  .announce .ann-close { padding: 2px 6px; font-size: 16px; flex-shrink: 0; }
  .announce .ann-cta { white-space: nowrap; flex-shrink: 0; }
  .ann-long { display: none; }
  .ann-short { display: inline; }
}

/* ---------- MOBILE NAV TOGGLE ---------- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  margin-left: 6px;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent-deep); }
.nav-toggle .bars {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: relative;
    z-index: 100;
    background: var(--paper);
  }
  .nav-inner { position: relative; }
  .nav-links {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    right: 0;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 8px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 24px 48px -16px rgba(14, 41, 37, 0.35);
    z-index: 110;
    overflow: hidden;
    display: none;
    animation: navDrawerIn 0.22s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  @keyframes navDrawerIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    display: block;
    padding: 14px 22px;
    margin: 0;
    font-family: var(--font-label);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 13px;
    color: var(--ink-2);
    border-bottom: 1px solid var(--rule);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a:hover,
  .nav-links a:active { background: rgba(230, 74, 44, 0.08); color: var(--accent-deep); }
  /* Pill stays in the top bar, outside the drawer */
  .nav-inner > .pill,
  .nav-inner > a.pill { margin-left: auto; }
}
