/* Self-hosted fonts (subset woff2, latin + latin-ext) - sourced from Google Fonts,
   served first-party for GDPR cleanliness. */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/oswald-normal-500-latin-ext-5930b85b.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/oswald-normal-500-latin-c27e7c11.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/oswald-normal-500-latin-ext-5930b85b.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/oswald-normal-500-latin-c27e7c11.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/sourceserif4-italic-400-latin-ext-53b2761e.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/sourceserif4-italic-400-latin-b64cadaa.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/sourceserif4-normal-400-latin-ext-23835fe8.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/sourceserif4-normal-400-latin-2c60df80.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/sourceserif4-normal-400-latin-ext-23835fe8.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/sourceserif4-normal-400-latin-2c60df80.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/sourceserif4-normal-400-latin-ext-23835fe8.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/sourceserif4-normal-400-latin-2c60df80.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Ultra';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ultra-normal-400-latin-ext-cf223dca.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Ultra';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ultra-normal-400-latin-de051ac5.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Eggs for Hatching - the village-show schedule world.
   Playbill type (Ultra display, Oswald labels, Source Serif 4 text),
   ruled tables, flat prize-card colour planes, hard snap states. */

:root {
  --paper: #ffffff;
  --paper-shade: #f4f2ec;
  --ink: #221d18;
  --ink-soft: #55504a;
  --rule: #221d18;
  --rule-faint: #d8d4cb;
  --class-blue: #1d4fa1;
  --class-red: #a31e2b;
  --class-gold: #d9a400;
  --class-green: #1e6b3b;
  --measure: 68ch;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  scrollbar-color: var(--ink) var(--paper-shade);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  caret-color: var(--class-red);
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--class-blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--paper); background: var(--class-blue); text-decoration: none; }

.label {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Site band ─────────────────────────────────────────── */
.site-band {
  border-bottom: 3px double var(--ink);
  background: var(--paper);
}
.site-band-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 10px clamp(16px, 4vw, 40px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-band a { text-decoration: none; color: var(--ink); }
.site-band a:hover { background: var(--ink); color: var(--paper); }
.site-name {
  font-family: 'Ultra', serif;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.site-classes { display: flex; gap: 4px 14px; flex-wrap: wrap; font-size: 0.8rem; }
.site-classes a { padding: 1px 4px; }
.site-classes a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* ── Masthead (home) ───────────────────────────────────── */
.masthead {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 40px) 0;
  text-align: center;
}
.masthead h1 {
  font-family: 'Ultra', serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 8.5vw, 6rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin: 18px 0 10px;
  text-wrap: balance;
}
.masthead .standfirst {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 auto 22px;
  max-width: 46ch;
}
.masthead-meta {
  display: flex;
  justify-content: center;
  gap: 10px 28px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  padding: 10px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 3px double var(--ink);
}

/* ── Schedule of classes ───────────────────────────────── */
.schedule {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 52px) clamp(16px, 4vw, 40px);
}
.schedule-title {
  text-align: center;
  margin: 0 0 26px;
}
.schedule-title .label { font-size: 1rem; letter-spacing: 0.35em; }
.class-list { list-style: none; margin: 0; padding: 0; }
.class-row {
  display: grid;
  grid-template-columns: minmax(84px, 120px) 1fr;
  border-top: 1px solid var(--rule-faint);
}
.class-list .class-row:first-child { border-top: 2px solid var(--ink); }
.class-list .class-row:last-child { border-bottom: 2px solid var(--ink); }
.class-no {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1;
  padding: 22px 8px;
  color: var(--paper);
  text-align: center;
  align-self: stretch;
  display: grid;
  place-content: center;
  row-gap: 6px;
}
.class-no span { display: block; }
.class-no .label { font-size: 0.68rem; letter-spacing: 0.28em; margin-bottom: 4px; }
.c1 .class-no { background: var(--class-blue); }
.c2 .class-no { background: var(--class-red); }
.c3 .class-no { background: var(--class-gold); color: var(--ink); }
.c4 .class-no { background: var(--class-green); }
.class-body { padding: 18px clamp(14px, 3vw, 28px); }
.class-body h3 { margin: 0 0 6px; font-family: 'Ultra', serif; font-weight: 400; font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.15; }
.class-body h3 a { color: var(--ink); text-decoration: none; }
.class-body h3 a:hover { background: var(--ink); color: var(--paper); }
.class-body p { margin: 0 0 8px; color: var(--ink-soft); max-width: 62ch; }
.class-enter { font-size: 0.8rem; }

/* ── Guide pages ───────────────────────────────────────── */
.class-header { color: var(--paper); }
.class-header.c1 { background: var(--class-blue); }
.class-header.c2 { background: var(--class-red); }
.class-header.c3 { background: var(--class-gold); color: var(--ink); }
.class-header.c4 { background: var(--class-green); }
.class-header-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 56px) clamp(16px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.class-header h1 {
  font-family: 'Ultra', serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
.class-header h1 .class-no-line {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.class-header .standfirst {
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  margin: 14px 0 0;
  max-width: 52ch;
  opacity: 0.92;
}
.class-header .rosette { width: clamp(84px, 12vw, 132px); height: auto; }

/* ── Article ───────────────────────────────────────────── */
.guide {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) clamp(16px, 4vw, 24px) 8px;
}
.guide > p:first-of-type {
  font-size: 1.15rem;
}
.guide h2 {
  font-family: 'Ultra', serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  line-height: 1.15;
  margin: 2.6em 0 0.55em;
  padding-top: 14px;
  border-top: 3px double var(--ink);
}
.guide h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 1.8em 0 0.4em;
}
.guide p, .guide li { margin: 0 0 1em; }
.guide ul, .guide ol { padding-left: 1.4em; }
.guide li { margin-bottom: 0.5em; }
.guide strong { font-weight: 700; }

/* Ruled data tables - the schedule's native furniture */
.ruled-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0 1.8em;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.ruled-table caption {
  text-align: left;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 8px;
}
.ruled-table th {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 8px 12px 8px 0;
}
.ruled-table td {
  border-bottom: 1px solid var(--rule-faint);
  padding: 8px 12px 8px 0;
  vertical-align: top;
}
.ruled-table tr:last-child td { border-bottom: 2px solid var(--ink); }
.ruled-table .num { font-family: 'Oswald', sans-serif; font-weight: 600; white-space: nowrap; }

/* Day-tick - grease-pencil marks on the hatch record */
.day-tick {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  position: relative;
  vertical-align: middle;
}
.day-tick:checked { background: var(--paper); }
.day-tick:checked::after {
  content: "";
  position: absolute;
  inset: 2px;
  background:
    linear-gradient(45deg, transparent 44%, var(--class-red) 44%, var(--class-red) 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--class-red) 44%, var(--class-red) 56%, transparent 56%);
}

/* Rosette tip - judge's note */
.judges-note {
  margin: 1.6em 0;
  padding: 14px 18px 14px 52px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: relative;
  font-size: 0.98rem;
}
.judges-note .note-rosette {
  position: absolute;
  left: 8px;
  top: 16px;
  width: 30px;
  height: 30px;
}
.judges-note .label { font-size: 0.75rem; display: block; margin-bottom: 2px; color: var(--ink); }
.note-blue { color: var(--class-blue); }
.note-red { color: var(--class-red); }
.note-gold { color: #8a6900; }
.note-green { color: var(--class-green); }
.judges-note p { margin: 0; color: var(--ink); }

/* ── Broody stand (prize card) ─────────────────────────── */
.broody-stand {
  max-width: var(--measure);
  margin: clamp(32px, 5vw, 56px) auto;
  padding: 0 clamp(16px, 4vw, 24px);
}
.broody-card {
  border: 2px solid var(--ink);
  padding: 0;
}
.broody-card-head {
  background: var(--class-red);
  color: var(--paper);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.broody-card-head .label { font-size: 0.8rem; letter-spacing: 0.22em; }
.broody-card-body {
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}
.broody-card-body .rosette { width: 76px; height: auto; }
.broody-card-body h2, .broody-card-body .card-title {
  font-family: 'Ultra', serif;
  font-weight: 400;
  font-size: 1.35rem;
  margin: 0 0 6px;
  border: 0;
  padding: 0;
  line-height: 1.2;
}
.broody-card-body p { margin: 0 0 12px; color: var(--ink-soft); font-size: 0.98rem; }
.broody-button {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  padding: 10px 20px;
}
.broody-button:hover { background: var(--class-red); color: var(--paper); }

/* ── Resources page ────────────────────────────────────── */
.stand-list { list-style: none; margin: 0 0 2em; padding: 0; }
.stand-list li {
  border-top: 1px solid var(--rule-faint);
  padding: 12px 0;
}
.stand-list li:first-child { border-top: 2px solid var(--ink); }
.stand-list li:last-child { border-bottom: 2px solid var(--ink); }
.stand-list .stand-name { font-weight: 700; }
.colophon a, .site-band a { text-decoration-color: currentColor; }
.stand-list .stand-why { display: block; color: var(--ink-soft); font-size: 0.95rem; }

/* ── Footer ────────────────────────────────────────────── */
.colophon {
  border-top: 3px double var(--ink);
  margin-top: clamp(36px, 6vw, 64px);
}
.colophon-inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: 22px clamp(16px, 4vw, 40px) 34px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px 28px;
  flex-wrap: wrap;
}
.colophon a { color: var(--ink); }

/* ── Motion: one authored moment. Rosette ribbons snap in stepwise on
   guide headers; everything else changes state instantly. ── */
@media (prefers-reduced-motion: no-preference) {
  .class-header .rosette .ribbon-l { animation: ribbon-snap 0.36s steps(3, end) both 0.15s; }
  .class-header .rosette .ribbon-r { animation: ribbon-snap 0.36s steps(3, end) both 0.27s; }
  @keyframes ribbon-snap {
    from { transform: translateY(-12px); }
    to { transform: translateY(0); }
  }
}

/* ── Small screens ─────────────────────────────────────── */
@media (max-width: 640px) {
  .class-row { grid-template-columns: 64px 1fr; }
  .ruled-table { font-size: 0.85rem; }
  .ruled-table .num { white-space: normal; }
  .class-no { font-size: 1.5rem; padding: 16px 6px; }
  .class-header-inner { grid-template-columns: 1fr; }
  .class-header .rosette { display: none; }
  .broody-card-body { grid-template-columns: 1fr; }
  .broody-card-body .rosette { width: 60px; }
}

@media print {
  .site-band, .colophon, .broody-stand { display: none; }
}
