@charset "UTF-8";
/* ==========================================================================
   NORTH BEACH NOW! — Design System
   --------------------------------------------------------------------------
   Concept: the site is a three-colour screen-printed broadside, the way
   North Beach has always announced itself — flyers stapled to telephone
   poles on Columbus Ave, WPA murals in Coit Tower, mimeographed chapbooks.

   Every colour is sampled from the logo's three print plates.
   The signature device is MISREGISTRATION: display type is printed three
   times (teal plate, red plate, ink plate) slightly out of alignment.

   This design commits to a light "newsprint" surface on purpose. There is
   no dark theme — a screen print has one paper stock.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light;

  /* --- Ink plates, sampled from logo.jpg ------------------------------- */
  --ink:          #16120e;   /* key plate — warm near-black                */
  --ink-soft:     #453b31;   /* muted body ink                            */
  --signal:       #d4301e;   /* the red field                             */
  --signal-dk:    #a82312;
  --bay:          #14746a;   /* the teal hillside                         */
  --bay-dk:       #0d5049;
  --beacon:       #f2cb5b;   /* Coit Tower light                          */
  --beacon-dk:    #d9ad33;
  --newsprint:    #f7f0de;   /* warm pulp stock                           */
  --newsprint-2:  #ece1c4;   /* stock in shadow                           */

  /* --- Type ------------------------------------------------------------ */
  --font-display: "Big Shoulders Display", "Haettenschweiler",
                  "Arial Narrow Bold", "Arial Narrow", sans-serif;
  --font-body:    "Newsreader", Georgia, "Times New Roman", serif;
  --font-meta:    "Space Mono", ui-monospace, SFMono-Regular, Menlo,
                  Consolas, monospace;

  /* Fluid type scale — 1.25 ratio at small, 1.33 at large */
  --step--2: clamp(0.70rem, 0.68rem + 0.10vw, 0.76rem);
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.13rem + 0.36vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.32rem + 0.64vw, 1.92rem);
  --step-3:  clamp(1.80rem, 1.55rem + 1.20vw, 2.60rem);
  --step-4:  clamp(2.25rem, 1.80rem + 2.20vw, 3.60rem);
  --step-5:  clamp(2.90rem, 2.05rem + 4.10vw, 5.20rem);
  --step-6:  clamp(3.40rem, 1.90rem + 7.20vw, 8.00rem);

  /* --- Space ----------------------------------------------------------- */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* --- Layout ---------------------------------------------------------- */
  --maxw: 1180px;
  --maxw-prose: 68ch;
  --gutter: clamp(1.1rem, 4vw, 2.75rem);

  /* --- Print furniture -------------------------------------------------- */
  --rule: 3px;              /* thick rules, never hairlines               */
  --rule-heavy: 6px;
  --press: 6px;             /* hard letterpress offset                    */
  --tear-h: 26px;

  --tear-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='26' preserveAspectRatio='none'%3E%3Cpath d='M0,13 L38,8 L84,16 L119,6 L168,15 L209,9 L259,18 L299,10 L348,17 L394,7 L439,14 L488,8 L534,16 L579,9 L629,18 L674,11 L719,6 L768,15 L814,9 L859,17 L904,10 L949,16 L999,7 L1044,14 L1089,9 L1139,17 L1200,11 L1200,26 L0,26 Z' fill='%23fff'/%3E%3C/svg%3E");

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

/* Animatable misregistration offsets — lets the plates slide into
   alignment on load instead of snapping. */
@property --mx {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --my {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  min-height: 100svh;
  background-color: var(--newsprint);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper grain over the whole page — the tooth of the stock. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.28;
  mix-blend-mode: multiply;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select { font: inherit; color: inherit; }

a { color: inherit; }

:focus-visible {
  outline: var(--rule) solid var(--signal);
  outline-offset: 3px;
}

/* On red surfaces the red focus ring would vanish. */
.plate--signal :focus-visible,
.site-nav :focus-visible { outline-color: var(--beacon); }

::selection {
  background: var(--beacon);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1; }
h4 { font-size: var(--step-1); line-height: 1.05; }

p, li { text-wrap: pretty; }

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 46ch;
}

.prose { max-width: var(--maxw-prose); }
.prose > * + * { margin-top: var(--s-5); }
.prose h2 { margin-top: var(--s-8); }
.prose h3 { margin-top: var(--s-7); }
.prose a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--signal);
}
.prose a:hover { background: var(--beacon); }
.prose ul,
.prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: var(--s-2); }

blockquote {
  border-left: var(--rule-heavy) solid var(--signal);
  padding-left: var(--s-5);
  font-size: var(--step-1);
  font-style: italic;
}

/* Eyebrow — the stamped slug above a heading. Mimeograph register. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-meta);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 2.2em;
  height: var(--rule);
  background: currentColor;
}
/* Long eyebrows would otherwise run into the gutter on small phones. */
@media (max-width: 26rem) {
  .eyebrow { letter-spacing: 0.1em; }
  .eyebrow::before { width: 1.4em; }
}

/* -- THE SIGNATURE: three-plate misregistration ------------------------- */
.misreg {
  --mx: 0.045em;
  --my: 0.036em;
  text-shadow:
    calc(var(--mx) * -1) calc(var(--my) * -1) 0 var(--bay),
    var(--mx) var(--my) 0 var(--signal);
}
.misreg--on-signal { text-shadow:
    calc(var(--mx) * -1) calc(var(--my) * -1) 0 var(--beacon),
    var(--mx) var(--my) 0 var(--bay); }
.misreg--on-bay { text-shadow:
    calc(var(--mx) * -1) calc(var(--my) * -1) 0 var(--beacon),
    var(--mx) var(--my) 0 var(--signal); }
.misreg--on-ink { text-shadow:
    calc(var(--mx) * -1) calc(var(--my) * -1) 0 var(--bay),
    var(--mx) var(--my) 0 var(--signal); }

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}
.wrap--narrow { --maxw: 860px; }

/* A "plate" is one printed colour field. */
.plate {
  position: relative;
  padding-block: clamp(var(--s-8), 9vw, var(--s-10));
}
.plate--tight { padding-block: clamp(var(--s-7), 6vw, var(--s-8)); }

.plate--paper  { background: var(--newsprint); color: var(--ink); }
.plate--stock  { background: var(--newsprint-2); color: var(--ink); }
.plate--signal { background: var(--signal); color: var(--newsprint); }
.plate--bay    { background: var(--bay); color: var(--newsprint); }
.plate--ink    { background: var(--ink); color: var(--newsprint); }
.plate--beacon { background: var(--beacon); color: var(--ink); }

/* Torn edge between plates. Set --tear-to to the NEXT plate's colour. */
.plate[data-tear]::after,
.page-head[data-tear]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: var(--tear-h);
  background-color: var(--tear-to, var(--newsprint));
  -webkit-mask-image: var(--tear-mask);
  mask-image: var(--tear-mask);
  -webkit-mask-size: 1200px 100%;
  mask-size: 1200px 100%;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  pointer-events: none;
}
[data-tear="paper"]  { --tear-to: var(--newsprint); }
[data-tear="stock"]  { --tear-to: var(--newsprint-2); }
[data-tear="signal"] { --tear-to: var(--signal); }
[data-tear="bay"]    { --tear-to: var(--bay); }
[data-tear="ink"]    { --tear-to: var(--ink); }
[data-tear="beacon"] { --tear-to: var(--beacon); }

/* Halftone dot screen for colour fields. */
.halftone { position: relative; isolation: isolate; }
.halftone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, currentColor 1.1px, transparent 1.3px);
  background-size: 9px 9px;
  opacity: 0.13;
  pointer-events: none;
}

.grid { display: grid; gap: var(--s-6); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }

.stack > * + * { margin-top: var(--s-5); }
.stack--lg > * + * { margin-top: var(--s-7); }

.section-head { margin-bottom: var(--s-7); }
.section-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
}

/* --------------------------------------------------------------------------
   5. BUTTONS — chunky, hard-shadowed, no radius. Print, not glass.
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.72em 1.5em;
  border: var(--rule) solid var(--ink);
  background: var(--beacon);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--press) var(--press) 0 var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.btn:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn:active {
  transform: translate(var(--press), var(--press));
  box-shadow: 0 0 0 var(--ink);
}

.btn--signal { background: var(--signal); color: var(--newsprint); }
.btn--bay    { background: var(--bay); color: var(--newsprint); }
.btn--paper  { background: var(--newsprint); color: var(--ink); }

/* On dark plates the ink shadow disappears — flip the furniture. */
.plate--signal .btn,
.plate--bay .btn,
.plate--ink .btn {
  border-color: var(--newsprint);
  box-shadow: var(--press) var(--press) 0 var(--newsprint);
}
.plate--signal .btn:hover,
.plate--bay .btn:hover,
.plate--ink .btn:hover { box-shadow: 3px 3px 0 var(--newsprint); }
.plate--signal .btn:active,
.plate--bay .btn:active,
.plate--ink .btn:active { box-shadow: 0 0 0 var(--newsprint); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  margin-top: var(--s-6);
}

/* Text link with a thick print underline. */
.link {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.03em;
  border-bottom: var(--rule) solid currentColor;
  padding-bottom: 2px;
  white-space: nowrap;
  transition: gap 120ms ease;
}
.link:hover { background: var(--beacon); color: var(--ink); }

/* --------------------------------------------------------------------------
   6. SITE HEADER / NAV
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 200;
  background: var(--beacon);
  color: var(--ink);
  border: var(--rule) solid var(--ink);
  padding: var(--s-3) var(--s-5);
  font-family: var(--font-display);
  text-transform: uppercase;
  text-decoration: none;
  transition: top 150ms ease;
}
.skip-link:focus { top: var(--s-4); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--newsprint);
  border-bottom: var(--rule-heavy) solid var(--signal);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  padding-block: 0.55rem;
}
.brand__mark {
  width: 44px;
  height: 44px;
  border: 2px solid var(--newsprint);
  object-fit: cover;
  flex: none;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  max-width: 7.2em;
}
.brand__name em {
  font-style: normal;
  color: var(--beacon);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.9rem);
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.35em 0;
  border-bottom: var(--rule) solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}
.site-nav a:hover { color: var(--beacon); border-bottom-color: var(--beacon); }
.site-nav a[aria-current="page"] {
  color: var(--newsprint);
  border-bottom-color: var(--signal);
}
.site-nav .nav-cta a {
  background: var(--signal);
  color: var(--newsprint);
  padding: 0.5em 1.05em;
  border-bottom-color: transparent;
}
.site-nav .nav-cta a:hover {
  background: var(--beacon);
  color: var(--ink);
  border-bottom-color: transparent;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 44px;
  padding: 0;
  background: none;
  border: 2px solid var(--newsprint);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 3px;
  width: 24px;
  margin-inline: auto;
  background: var(--newsprint);
  transition: transform 180ms ease, opacity 140ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 62rem) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--ink);
    border-bottom: var(--rule-heavy) solid var(--signal);
    display: none;
  }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-3) var(--gutter) var(--s-6);
  }
  .site-nav li { border-top: 2px solid rgba(247, 240, 222, 0.18); }
  .site-nav a { padding: 0.85em 0; font-size: 1.3rem; }
  .site-nav .nav-cta { border-top: 0; margin-top: var(--s-5); }
  .site-nav .nav-cta a { text-align: center; padding: 0.7em 1em; }
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--signal);
  color: var(--newsprint);
  padding-block: clamp(var(--s-8), 8vw, var(--s-10));
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(var(--s-6), 5vw, var(--s-9));
  align-items: center;
}
.hero__title {
  font-size: var(--step-6);
  color: var(--newsprint);
  margin-bottom: var(--s-5);
}
.hero__lede {
  font-size: var(--step-1);
  line-height: 1.45;
  max-width: 34ch;
}
.hero__figure {
  position: relative;
  transform: rotate(-2.1deg);
}
.hero__figure img {
  width: 100%;
  border: var(--rule-heavy) solid var(--newsprint);
  box-shadow: 14px 14px 0 var(--bay-dk);
}

@media (max-width: 54rem) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__figure {
    order: -1;
    max-width: 20rem;
    transform: rotate(-1.6deg);
  }
}

/* --------------------------------------------------------------------------
   8. CARDS — stapled flyers
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--newsprint);
  color: var(--ink);
  border: var(--rule) solid var(--ink);
  box-shadow: var(--press) var(--press) 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.card:nth-child(3n + 1) { transform: rotate(-0.55deg); }
.card:nth-child(3n + 2) { transform: rotate(0.4deg); }
.card:nth-child(3n + 3) { transform: rotate(-0.25deg); }
.card:hover,
.card:focus-within {
  transform: rotate(0deg) translate(-2px, -3px);
  box-shadow: 10px 12px 0 var(--bay);
}

.card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-bottom: var(--rule) solid var(--ink);
  background: var(--newsprint-2);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--s-5);
  gap: var(--s-3);
}
.card__title { font-size: var(--step-2); }
.card__title a {
  text-decoration: none;
}
/* Make the whole card clickable without trapping inner links. */
.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card__blurb {
  font-size: var(--step-0);
  color: var(--ink-soft);
  flex: 1;
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-family: var(--font-meta);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* Date block — the stamped ticket corner on an event flyer. */
.datestamp {
  position: absolute;
  top: calc(var(--rule) * -1);
  right: calc(var(--rule) * -1);
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  min-width: 4.6rem;
  padding: 0.5rem 0.6rem 0.55rem;
  background: var(--signal);
  color: var(--newsprint);
  border: var(--rule) solid var(--ink);
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.9;
  text-align: center;
}
.datestamp__mon {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.datestamp__day {
  font-size: 2.1rem;
  font-weight: 800;
}
.datestamp__yr {
  font-family: var(--font-meta);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  margin-top: 0.15rem;
  opacity: 0.85;
}
.datestamp--past { background: var(--ink-soft); }

/* On a card with no image the stamp sits over the text, so hold the first
   two rows clear of it. Cards with media let the stamp overlap the image. */
.card:has(.datestamp):not(:has(.card__media)) .card__body > *:nth-child(-n + 2) {
  padding-right: 5.4rem;
}

/* Price reads as data, not as part of the venue name. */
.card__price {
  font-weight: 700;
  color: var(--ink);
}

.tag {
  display: inline-block;
  padding: 0.2em 0.6em;
  background: var(--bay);
  color: var(--newsprint);
  font-family: var(--font-meta);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tag--music   { background: var(--signal); }
.tag--art     { background: var(--bay); }
.tag--forum   { background: var(--ink); }
.tag--news    { background: var(--beacon); color: var(--ink); }

/* Empty state */
.empty {
  border: var(--rule) dashed currentColor;
  padding: var(--s-7) var(--s-5);
  text-align: center;
  font-family: var(--font-meta);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   9. FEATURE ROW / MISSION
   -------------------------------------------------------------------------- */

.pillar {
  border-top: var(--rule-heavy) solid currentColor;
  padding-top: var(--s-4);
}
.pillar h3 { margin-bottom: var(--s-3); }
.pillar p { font-size: var(--step-0); }

.stat {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 800;
  line-height: 0.9;
}

/* Pull quote — the mission, set like a poster */
.manifesto {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
  max-width: 22ch;
}

/* --------------------------------------------------------------------------
   10. FORMS
   -------------------------------------------------------------------------- */

.field { display: block; }
.field + .field { margin-top: var(--s-5); }
.field__label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--s-2);
}
.field__hint {
  display: block;
  font-family: var(--font-meta);
  font-size: var(--step--2);
  letter-spacing: 0.05em;
  opacity: 0.8;
  margin-top: var(--s-2);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.7em 0.85em;
  background: var(--newsprint);
  color: var(--ink);
  border: var(--rule) solid var(--ink);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  box-shadow: 4px 4px 0 var(--signal);
}

.form-note {
  font-family: var(--font-meta);
  font-size: var(--step--2);
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.form-status {
  margin-top: var(--s-5);
  padding: var(--s-4);
  border: var(--rule) solid currentColor;
  font-family: var(--font-meta);
  font-size: var(--step--1);
}
.form-status:empty { display: none; }
.form-status[data-state="ok"] { background: var(--beacon); color: var(--ink); border-color: var(--ink); }
.form-status[data-state="error"] { background: var(--signal); color: var(--newsprint); }

/* Newsletter inline form */
.subscribe {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: stretch;
  margin-top: var(--s-5);
}
.subscribe input {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.72em 0.9em;
  background: var(--newsprint);
  color: var(--ink);
  border: var(--rule) solid var(--ink);
  border-radius: 0;
  font-size: var(--step-0);
}
.plate--ink .subscribe input,
.plate--bay .subscribe input,
.plate--signal .subscribe input { border-color: var(--newsprint); }

/* Honeypot — off-screen, never focusable by sighted users. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--newsprint);
  border-top: var(--rule-heavy) solid var(--beacon);
  padding-block: var(--s-8) var(--s-6);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--s-7);
}
.site-footer h2,
.site-footer h3 {
  font-size: var(--step-1);
  color: var(--beacon);
  margin-bottom: var(--s-4);
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: var(--s-2); }
.site-footer a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-footer a:hover { color: var(--beacon); border-bottom-color: var(--beacon); }

.footer-brand__mark {
  width: 84px;
  height: 84px;
  border: var(--rule) solid var(--newsprint);
  margin-bottom: var(--s-4);
}

.colophon {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 2px solid rgba(247, 240, 222, 0.22);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: space-between;
  font-family: var(--font-meta);
  font-size: var(--step--2);
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.social {
  display: flex;
  gap: var(--s-3);
  list-style: none;
  padding: 0;
}
.social a {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 2px solid currentColor;
}
.social a:hover { background: var(--beacon); color: var(--ink); }
.social svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }

/* --------------------------------------------------------------------------
   12. PAGE HEADER (interior pages)
   -------------------------------------------------------------------------- */

.page-head {
  background: var(--ink);
  color: var(--newsprint);
  padding-block: clamp(var(--s-7), 7vw, var(--s-9));
  position: relative;
}
.page-head__title { font-size: var(--step-5); }
.page-head__lede {
  margin-top: var(--s-5);
  font-size: var(--step-1);
  max-width: 48ch;
  opacity: 0.94;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin-bottom: var(--s-5);
  font-family: var(--font-meta);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.breadcrumb li + li::before { content: "/ "; opacity: 0.6; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--beacon); }

/* --------------------------------------------------------------------------
   13. FILTERS
   -------------------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-7);
}
.filters button {
  padding: 0.42em 1em;
  background: transparent;
  color: inherit;
  border: var(--rule) solid currentColor;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.filters button:hover { background: var(--beacon); color: var(--ink); border-color: var(--ink); }
.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--newsprint);
}

/* --------------------------------------------------------------------------
   14. MOTION
   -------------------------------------------------------------------------- */

/* The plates slide into registration on load.
   Deliberately does NOT animate opacity: the h1 is the most important
   element on the page and must never depend on an animation to be
   visible. Only the misregistration offset moves. */
@keyframes register {
  from { --mx: 0.26em; --my: 0.2em; }
  to   { --mx: 0.045em; --my: 0.036em; }
}
.hero__title,
.page-head__title {
  animation: register 900ms cubic-bezier(0.16, 0.84, 0.28, 1) both;
}

@keyframes lift {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero__lede,
.hero .btn-row,
.hero .eyebrow,
.page-head__lede {
  animation: lift 640ms cubic-bezier(0.16, 0.84, 0.28, 1) both;
}
.hero .eyebrow    { animation-delay: 60ms; }
.hero__lede       { animation-delay: 260ms; }
.hero .btn-row    { animation-delay: 380ms; }
.page-head__lede  { animation-delay: 180ms; }

@keyframes figure-in {
  from { opacity: 0; transform: rotate(-6deg) scale(0.94); }
  to   { opacity: 1; transform: rotate(-2.1deg) scale(1); }
}
.hero__figure { animation: figure-in 820ms cubic-bezier(0.16, 0.84, 0.28, 1) both 140ms; }

/* Scroll reveal.
   Scoped to .js — the class is set by an inline script in <head>. Without
   it these elements are simply visible, so a failed or blocked script can
   never leave half the page hidden at opacity 0. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.16, 0.84, 0.28, 1);
}
.js [data-reveal][data-revealed] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__figure { transform: rotate(-2.1deg); }
  .card { transform: none !important; }
}

/* --------------------------------------------------------------------------
   15. UTILITIES
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }

/* Undefined custom elements should not collapse layout before upgrade. */
nbn-event-list:not(:defined),
nbn-news-list:not(:defined) { display: block; min-height: 12rem; }
nbn-header:not(:defined),
nbn-footer:not(:defined) { display: block; }

/* --------------------------------------------------------------------------
   16. PRINT
   -------------------------------------------------------------------------- */

@media print {
  body::after,
  .site-header,
  .site-footer,
  .filters,
  .btn-row { display: none !important; }
  body { background: #fff; color: #000; }
  .plate { padding-block: 1rem; }
  .misreg { text-shadow: none; }
  .card { box-shadow: none; transform: none; break-inside: avoid; }
}
