/* Yarm Fair 2026: distilled visitor information, with hours in the hero. */
:root {
  --cream: oklch(95.6% .019 85);
  --paper: oklch(98.8% .01 85);
  --navy: oklch(28% .043 237);
  --red: oklch(49.7% .149 31);
  --muted: oklch(48% .022 237);
  --line: oklch(85.7% .016 85);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--cream); color: var(--navy); font: 16px/1.65 var(--sans); }
a { color: inherit; text-underline-offset: 5px; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
::selection { background: var(--red); color: var(--paper); }
h1, h2, h3, p, dl, dd { margin: 0; }
h2, h3 { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(2.1rem, 3.5vw, 3.25rem); line-height: 1.12; letter-spacing: -.035em; }
h3 { font-size: 1.6rem; line-height: 1.25; }
p { max-width: 70ch; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: 8px; left: 12px; z-index: 10; background: var(--cream); padding: 12px 20px; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.section-pad { padding: 76px max(6vw, calc((100vw - 1240px)/2)); }
.section-heading { max-width: 720px; }
.section-heading h2 { margin-bottom: 20px; }
.section-heading p { max-width: 570px; color: var(--muted); }
.small-note { font-size: .8rem; line-height: 1.6; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; padding: 13px 22px; text-decoration: none; font-size: .875rem; font-weight: 700; min-height: 48px; transition: background .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-cream { background: var(--cream); color: var(--navy); }
.button-cream:hover { background: var(--paper); }
.button-navy { background: var(--navy); color: var(--cream); }
.button-navy:hover { background: oklch(35% .045 237); }
.button span { font-size: 1.25rem; font-weight: 400; }
.text-link { display: inline-block; font-size: .875rem; font-weight: 700; text-decoration-thickness: 1px; padding: 10px 0; }
.text-link span { display: inline-block; margin-left: 8px; transition: transform .2s; }
.text-link:hover span { transform: translate(2px,-2px); }
.site-header { min-height: 74px; padding: 12px 4.5%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; font: 700 1.3rem/1.4 var(--serif); letter-spacing: -.035em; white-space: nowrap; }
.site-header nav { display: flex; gap: 30px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .8rem; text-decoration: none; }
.site-header nav a:hover { color: var(--red); text-decoration: underline; }
.hero { position: relative; isolation: isolate; min-height: 650px; background: var(--navy); color: var(--cream); }
.hero-art, .hero-shade { position: absolute; inset: 0; z-index: -2; }
.hero-art { overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero-shade { z-index: -1; background: linear-gradient(90deg,rgba(9,28,41,.97),rgba(9,28,41,.86) 30%,rgba(9,28,41,.3) 57%,transparent 80%); }
.hero-content { padding: 44px 6vw 48px; max-width: 740px; }
.hero h1 { font: 700 clamp(6rem,8.4vw,8rem)/.88 var(--serif); letter-spacing: -.06em; margin-bottom: 20px; }
.hero h1 span { display: inline-block; font-size: .32em; font-weight: 400; font-style: italic; letter-spacing: -.025em; vertical-align: middle; margin-left: 8px; color: oklch(83% .09 75); }
.hero-date { font-size: 1rem; }
.hero-times { max-width: 410px; margin-top: 30px; }
.hero-times h2 { font: 700 1rem/1.5 var(--sans); letter-spacing: 0; margin-bottom: 9px; }
.hero-times dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 8px 0; border-bottom: 1px solid rgba(246,240,227,.25); font-size: .94rem; }
.hero-times dd { font-weight: 700; white-space: nowrap; }
.hero-content > .button { margin-top: 26px; }
.experience-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 44px; margin-top: 36px; }
.experience-grid h3 { margin-bottom: 14px; }
.experience-grid p { font-size: .94rem; color: var(--muted); }
.heritage { background: var(--navy); color: var(--cream); display: grid; grid-template-columns: 1fr 1.35fr; gap: 9%; align-items: center; padding-top: 68px; padding-bottom: 68px; }
.heritage-year { text-align: center; }
.big-year { display: block; font: 400 clamp(6rem,13vw,11rem)/1 var(--serif); letter-spacing: -.07em; color: oklch(89% .04 80); }
.heritage-copy h2 { margin-bottom: 24px; }
.heritage-copy p { font-size: .94rem; margin-bottom: 16px; color: oklch(88% .015 237); }
.heritage-copy .text-link { color: oklch(86% .08 80); }
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; background: var(--paper); }
.visit h2 { margin-bottom: 22px; }
.visit-intro > p { font-size: .94rem; color: var(--muted); margin-bottom: 18px; max-width: 435px; }
.visit-intro .button { margin-top: 6px; }
.travel-notes { margin-top: 28px; max-width: 435px; }
.travel-notes h3 { font: 700 .9rem/1.5 var(--sans); margin: 20px 0 7px; }
.travel-notes p { font-size: .875rem; color: var(--muted); }
.closures { align-self: start; }
.closures h3 { font-size: 2rem; margin-bottom: 16px; }
.closures > p:not(.small-note) { font-size: .9rem; color: var(--muted); }
.closures .closure-distinction { margin: 20px 0 10px; font-size: .8rem!important; font-weight: 700; color: var(--red)!important; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; margin-bottom: 16px; }
th, td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); }
thead th { font-weight: 700; color: var(--muted); }
tbody th { font-weight: 400; }
td, thead th:last-child { text-align: right; }
.closures > .small-note { margin-top: 12px; }
.sponsors { text-align: center; }
.sponsors .section-heading { margin: auto; }
.sponsor-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 28px; }
.sponsor { padding: 12px 20px 20px; border-right: 1px solid var(--line); display: flex; align-items: center; flex-direction: column; }
.sponsor:last-child { border: 0; }
.sponsor h3 { font-size: 2rem; min-height: 80px; display: flex; align-items: center; justify-content: center; line-height: 1.1; letter-spacing: -.035em; }
.sponsor p { font-size: .875rem; color: var(--muted); margin: 12px 0; }
.sponsor .text-link { color: var(--red); }
.sponsors > .small-note { margin: 24px auto 0; }
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8%; background: var(--paper); }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font-size: .94rem; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary > span { font-size: 1.45rem; font-weight: 400; color: var(--red); transition: transform .2s; }
details[open] summary > span { transform: rotate(45deg); }
details p { font-size: .9rem; color: var(--muted); padding: 0 25px 24px 0; }
details a { color: var(--navy); }
.site-footer { padding: 32px 4.5%; display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--navy); color: var(--cream); }
.site-footer > p { font-size: .75rem; color: oklch(88% .015 237); }
.site-footer .footer-credit { font-size: .7rem; text-align: right; }
.reveal.is-visible { animation: arrive .5s cubic-bezier(.22,1,.36,1) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width:1600px) {
  .hero { min-height: clamp(650px, 30vw, 820px); }
  /* Keep the page gutter outside the text column so wide screens cannot squeeze it. */
  .hero-content {
    margin-left: max(6vw, calc((100% - 1240px)/2));
    padding: clamp(44px, 3vw, 80px) 0;
    width: 620px;
    max-width: calc(100% - 12vw);
  }
}
@media (max-width:1000px) {
  .experience-grid { gap: 28px; }
  .heritage, .visit { gap: 6%; }
  .sponsor h3 { font-size: 1.75rem; }
  .site-footer { flex-wrap: wrap; }
  .site-footer .footer-credit { text-align: left; }
}
@media (max-width:680px) {
  .section-pad { padding: 48px 6%; }
  .site-header { padding: 8px 6% 4px; display: block; }
  .site-header .brand { font-size: 1.125rem; }
  .site-header nav { gap: 20px; justify-content: space-between; }
  .site-header nav a { font-size: .75rem; }
  .hero { min-height: 530px; }
  .hero-content { padding: 24px 6% 30px; max-width: none; }
  .hero-art img { object-position: 65% center; }
  .hero-shade { background: linear-gradient(90deg,rgba(9,28,41,.95),rgba(9,28,41,.8) 64%,rgba(9,28,41,.5)); }
  .hero h1 { font-size: clamp(3.75rem,16.5vw,4.5rem); margin-bottom: 16px; }
  .hero h1 span { font-size: .36em; margin-left: 6px; }
  .hero-date { font-size: .875rem; }
  .hero-times { margin-top: 24px; max-width: 400px; }
  .hero-times h2 { font-size: .94rem; margin-bottom: 6px; }
  .hero-times dl > div { font-size: .875rem; padding: 8px 0; gap: 12px; }
  .hero-content > .button { margin-top: 22px; }
  .experience-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 26px; }
  .experience-grid h3 { margin-bottom: 10px; }
  .heritage { grid-template-columns: 1fr; gap: 28px; }
  .heritage-year { text-align: left; }
  .big-year { font-size: 5.5rem; }
  .visit { grid-template-columns: 1fr; gap: 42px; }
  .sponsor-grid { grid-template-columns: 1fr; margin-top: 12px; }
  .sponsor { border-right: 0; border-bottom: 1px solid var(--line); padding: 25px 0; }
  .sponsor h3 { min-height: 0; font-size: 1.9rem; }
  .sponsor p { margin: 12px 0 6px; }
  .sponsors > .small-note { margin-top: 18px; }
  .faq { grid-template-columns: 1fr; gap: 24px; }
  summary { font-size: .875rem; padding: 18px 0; }
  .site-footer { display: block; padding: 28px 6%; }
  .site-footer > p { margin-top: 16px; }
}
@media (max-height:650px) and (max-width:680px) {
  .hero { min-height: 480px; }
  .hero-content { padding-top: 20px; }
  .hero h1 { font-size: 3.75rem; margin-bottom: 12px; }
  .hero-times { margin-top: 18px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation: none!important; transition: none!important; }
}
