/* Full local font files; licences are shipped alongside them in assets/fonts/. */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-variable-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('../fonts/barlow-semi-condensed-500.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('../fonts/barlow-semi-condensed-600.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #FBF7F0;
  --ink: #191713;
  --ink-soft: #6A4E2C;
  --rule: rgba(25, 23, 19, .32);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Barlow Semi Condensed', 'Helvetica Neue', Arial, sans-serif;
  --section-gap: 1.125rem;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.nowrap { display: inline-block; max-width: 100%; }

/* Center the poster when it fits; let the document scroll when it needs room. */
.stage {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 2.5vw, 2rem);
  background: radial-gradient(100% 70% at 50% 110%, rgba(120, 88, 48, .10), transparent 60%), var(--paper);
}
.frame { width: min(100%, 43.75rem); min-width: 0; animation: fade-in .5s ease-out both; }
.rule { display: flex; flex-direction: column; gap: 1.25rem; padding: .5rem 0; }
.col { display: flex; flex-direction: column; align-items: center; gap: var(--section-gap); min-width: 0; }
.grain {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .045;
  mix-blend-mode: multiply;
  background-size: 200px 200px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* Keep the seal anchored to the illustration instead of the full page width. */
.hero { position: relative; width: fit-content; max-width: calc(100% - 4rem); }
.clown { width: clamp(10rem, 26vh, 16.5rem); width: clamp(10rem, 26svh, 16.5rem); height: auto; }
.seal { position: absolute; width: clamp(4rem, 8vh, 5.25rem); height: auto; left: -2.25rem; bottom: 6%; transform: rotate(-7deg); }
.lockup { width: 100%; display: flex; flex-direction: column; align-items: center; gap: .625rem; }
.hair { flex: 1; min-width: .75rem; height: 1px; background: currentColor; opacity: .65; }
.eyebrow { margin: 0; width: min(100%, 25.375rem); display: flex; align-items: center; gap: .875rem; font: 600 .875rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-align: center; }
.wordmark { margin: 0; font-size: clamp(2rem, .75rem + 10vw, 5.375rem); font-weight: 600; letter-spacing: .045em; text-indent: .045em; text-transform: uppercase; line-height: .95; text-shadow: 0 1px 0 rgba(255, 252, 244, .45); }
.divider { display: flex; align-items: center; gap: .625rem; width: min(100%, 20.625rem); }
.divider .hair { opacity: .45; }
.divider svg { display: block; flex: none; }
.ribbon { margin: 0; padding: .4375rem 1.75rem; background: var(--ink); color: var(--paper); font: 600 .75rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 11px) 50%, 100% 100%, 0 100%, 11px 50%); }

.info { width: 100%; border-block: 1px solid var(--rule); padding: .875rem 0; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.info__title { margin: 0; font: 600 .8125rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.hours { margin: 0; display: grid; grid-template-columns: auto auto; column-gap: clamp(.75rem, 5vw, 2rem); row-gap: .125rem; font-size: 1.1875rem; line-height: 1.35; font-variant-numeric: lining-nums tabular-nums; }
.hours dt { margin: 0; font-weight: 500; }
.hours dd { margin: 0; white-space: nowrap; }
.info__note { margin: .125rem 0 0; font-size: 1rem; line-height: 1.4; font-style: italic; color: var(--ink-soft); text-align: center; }

.actions { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.tile { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .625rem; padding: 1rem .5rem; border: 1px solid var(--ink); color: var(--ink); background: transparent; text-align: center; transition: background-color .22s ease, color .22s ease; -webkit-tap-highlight-color: rgba(106, 78, 44, .12); }
.tile__icon { display: block; width: clamp(26px, 3.2vw, 34px); height: clamp(26px, 3.2vw, 34px); flex: none; justify-self: center; }
.tile__copy { display: flex; flex-direction: column; gap: .3125rem; min-width: 0; }
.tile__label { font-size: 1.25rem; font-weight: 600; letter-spacing: .055em; text-transform: uppercase; line-height: 1.1; overflow-wrap: anywhere; }
.tile__hint { color: var(--ink-soft); font: 500 .8125rem/1.3 var(--sans); letter-spacing: .035em; }
.tile:focus-visible, .tile:active { background: var(--ink); color: var(--paper); }
.tile:focus-visible .tile__hint, .tile:active .tile__hint { color: inherit; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (hover: hover) {
  .tile:hover { background: var(--ink); color: var(--paper); }
  .tile:hover .tile__hint { color: inherit; }
}
.footline { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; column-gap: 1rem; row-gap: .25rem; font: 500 .8125rem/1.5 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }
.footline a { white-space: nowrap; text-decoration: underline; text-decoration-color: rgba(106, 78, 44, .4); text-underline-offset: .25em; }
.footline a:hover { color: var(--ink); text-decoration-color: currentColor; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Three equal tiles or three aligned rows; never an orphaned third tile. */
@media (max-width: 42rem), (max-height: 40rem) and (min-width: 44rem) and (min-aspect-ratio: 7/5) {
  .actions { grid-template-columns: 1fr; gap: .5625rem; }
  .tile { display: grid; grid-template-columns: 2.25rem minmax(0, 11.75rem); gap: 1rem; padding: .75rem 1rem; text-align: left; }
  .tile__icon { width: 24px; height: 24px; }
  .tile__label { font-size: 1.125rem; }
}
@media (max-width: 42rem) {
  :root { --section-gap: .875rem; }
  .frame { max-width: 30rem; }
  .rule { gap: 1rem; }
  .clown { width: clamp(9rem, 24svh, 12rem); }
  .lockup { gap: .5rem; }
  .eyebrow { font-size: .8125rem; letter-spacing: .14em; gap: .625rem; }
  .seal { width: 4.25rem; left: -1.875rem; }
  .hours { font-size: 1.0625rem; }
  .info { padding-block: .75rem; }
  .footline { max-width: 23rem; font-size: .8125rem; letter-spacing: .065em; }
}
/* Reduce artwork and spacing on laptops, keeping all text at its normal size. */
@media (min-width: 42.001rem) and (min-height: 40.001rem) and (max-height: 50rem) {
  .stage { padding-block: 1rem; }
  .clown { width: clamp(8rem, 20svh, 11rem); }
  .col { gap: .875rem; }
  .rule { gap: 1rem; }
  .lockup { gap: .5rem; }
  .info, .tile { padding-block: .75rem; }
}
/* Preserve the two-column composition on wide, shallow screens. */
@media (max-height: 40rem) and (min-width: 44rem) and (min-aspect-ratio: 7/5) {
  .frame { width: min(100%, 62.5rem); }
  .rule { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(1.5rem, 4vw, 3rem); }
  .col { gap: 1rem; }
  .clown { width: clamp(9rem, 35svh, 14rem); }
  .seal { width: 3.75rem; left: -1.5rem; }
  .wordmark { font-size: clamp(3.25rem, 7vw, 4.5rem); }
  .eyebrow { font-size: .75rem; letter-spacing: .12em; gap: .5rem; }
  .hours { font-size: 1.0625rem; }
  .info { padding-block: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  html, body, .stage { min-height: 0; background: #fff; }
  .frame { animation: none; }
  .grain { display: none; }
  .tile { break-inside: avoid; }
}
