@font-face { font-family: Fredoka; src: url('/fonts/fredoka-500.woff2') format('woff2'); font-weight: 500; font-display: swap }
@font-face { font-family: 'DM Sans'; src: url('/fonts/dm-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap }
@font-face { font-family: 'DM Sans'; src: url('/fonts/dm-sans-600.woff2') format('woff2'); font-weight: 600; font-display: swap }
:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --white: #fffef9;
  --ink: #252e28;
  --forest: #314a3b;
  --muted: #555f55;
  --rule: #cccfc2;
  --accent: #924429;
  --serif: "Iowan Old Style", Baskerville, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.5 var(--sans);
}
* { box-sizing: border-box }
body { margin: 0 }
button, a { touch-action: manipulation }
button { font: inherit; color: inherit; cursor: pointer }
button:disabled { cursor: default }
a { color: inherit; text-underline-offset: .18em }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #2175a7; outline-offset: 3px }
a:hover { text-decoration-thickness: 2px }
[hidden] { display: none !important }
.header-inner, main, .site-foot { width: min(1180px, 92%); margin-inline: auto }
.masthead { border-bottom: 1px solid var(--rule) }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 77px }
.wordmark, .footer-mark { text-decoration: none; color: var(--ink); font: 600 1.95rem/1 var(--serif); letter-spacing: -.065em }
.wordmark { display: inline-flex; align-items: center; gap: 13px }
.emblem { display: inline-block; width: 24px; height: 28px; border: 2px solid var(--ink); transform: rotate(-11deg); position: relative; margin: 1px 4px 0 0 }
.emblem::after { content: ""; position: absolute; width: 18px; height: 25px; border: 2px solid var(--ink); left: 7px; top: 2px; background: var(--paper); transform: rotate(24deg) }
.header-inner nav, .site-foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px clamp(12px, 2.2vw, 30px) }
.header-inner nav a { padding-block: 9px; font-size: .96rem; text-decoration: none }
.header-inner nav a:hover, .header-inner nav a[aria-current="page"] { text-decoration: underline }
.skip, .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
.skip:focus { top: 8px; left: 8px; z-index: 4; width: auto; height: auto; clip-path: none; padding: 8px; background: white }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: clamp(24px,4.4vw,62px) 0 24px }
.edition, .meter-label, .ad-label { font: 600 .76rem/1.5 var(--sans); letter-spacing: .11em; text-transform: uppercase }
.edition { display: flex; align-items: center; gap: 10px; color: var(--accent); margin: 0 0 13px }
.accent { width: 24px; height: 2px; background: var(--accent) }
h1 { font: normal clamp(3.3rem, 6.3vw, 6.25rem)/1 var(--serif); letter-spacing: -.057em; margin: 0 }
h1 em { font-weight: 400; color: var(--forest) }
.instruction { margin: 12px 0 0; font-size: clamp(1rem,1.4vw,1.2rem); line-height: 1.5; color: var(--muted) }
.round-info { text-align: right; flex: none; padding-bottom: 5px }
.round-info strong { font: 400 1.23rem var(--serif) }
#progress { display: flex; justify-content: flex-end; gap: 4px; margin-top: 11px }
.pip { width: 21px; height: 4px; background: #ddded4; border-radius: 1px }
.pip.active { background: var(--ink) }
.pip.hit { background: #497154 }
.pip.miss { background: #ab5b3b }
.scorebar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; border-top: 1px solid var(--rule); padding-block: 10px }
.scorebar > div { display: inline-flex; align-items: baseline; gap: 6px }
.scorebar strong { font-size: 1rem; font-variant-numeric: tabular-nums }
.meter-label, .ad-label { color: var(--muted) }
.help { margin-left: auto; text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; border: 0; background: transparent; padding: 4px }
.round-start { display: grid; grid-template-columns: 1.4fr 1fr; background: #304537; color: var(--white); overflow: hidden; border-radius: 4px }
.cover { position: relative; min-width: 0; margin: 0; isolation: isolate }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 51%; z-index: -1 }
.cover figcaption { position: absolute; inset: auto 0 0; padding: 34px 16px 10px; background: linear-gradient(transparent, #15241de0); font-size: .83rem }
.round-invite { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(25px, 5.2vw, 74px); min-height: clamp(232px,25vw,320px) }
.round-invite p { margin: 0; max-width: 28ch; color: #f7f5eb }
.round-invite p:first-child { font: normal clamp(1.8rem,2.55vw,2.7rem)/1.1 var(--serif); letter-spacing: -.034em; margin-bottom: 11px }
.round-invite .primary { margin-top: 20px; color: #213327; background: #f3edda; border-color: #f3edda }
.round-invite .primary:hover:not(:disabled) { background: white }
button:disabled.primary { opacity: .72 }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(10px,1.65vw,24px) }
.gallery:empty, #response:empty { display:none }
.card { min-width: 0; position: relative; border: 1px solid #c6c9bd; background: var(--white); border-radius: 4px; overflow: hidden }
.card:has(.choose:not(:disabled):hover) { border-color: var(--ink) }
.card.correct { outline: 2px solid #47694e; outline-offset: -2px }
.card.wrong { outline: 2px solid #9d4b32; outline-offset: -2px }
.choose { display: block; width: 100%; border: 0; background: none; text-align: left; padding: 0 }
.choose:focus-visible { outline-offset: -4px }
.wall { height: clamp(205px,22vw,320px); display: flex; align-items: center; justify-content: center; padding: clamp(13px,1.85vw,27px); background: #eae6db }
.card:nth-child(2) .wall { background: #e2e5da }
.card:nth-child(3) .wall { background: #e8e1d7 }
.wall img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 3px 6px #27271936,0 0 0 1px #37342926 }
.label { display: flex; align-items: center; gap: .72rem; min-height: 68px; padding: 12px 62px 12px 16px; font: 500 1.21rem var(--serif) }
.letter { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid #929587; border-radius: 50%; font: 500 1.08rem var(--serif) }
.zoom { border: 1px solid var(--rule); border-radius: 50%; position: absolute; right: 12px; bottom: 16px; background: var(--white); width: 36px; height: 36px; padding: 0; display: grid; place-items: center }
.zoom:hover { background: #eae9df }.zoom svg { width: 17px; height: 17px }
.meta { padding: 0 16px 16px; font-size: .875rem; line-height: 1.5; color: var(--muted) }.meta a { display: block; color: var(--ink); font-style: italic }
.card.revealed .zoom { top: 9px; right: 9px; bottom: auto }.card.revealed .label { padding-right: 14px }
.status-tag { display: block; font: 600 .82rem/1.4 var(--sans); color: #466a4c }.card.wrong .status-tag { color: var(--accent) }
#response { margin-top: 19px }.feedback { background: #e9ece3; border-left: 3px solid #526952; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px }
.feedback p { margin: 3px 0; color: #3c493d; line-height: 1.5 }.feedback strong { font: 600 1.3rem var(--serif) }
.primary,.secondary { display: inline-block; padding: 10px 18px; border-radius: 4px; font: 600 1rem/1.35 var(--sans); border: 1px solid var(--ink); text-decoration: none }
.primary { background: var(--ink); color: white }.primary:hover { background: #405144 }.secondary { background: transparent }.secondary:hover { background: #e7e7dd }
.clue-prompt { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 10px }.clue-prompt span { font-size: .875rem; margin-right: 4px }
.reason { border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); padding: 5px 10px; font-size: .875rem }.reason[aria-pressed="true"] { background: var(--ink); color: white }
.test-score { font: 500 1.6rem var(--serif); margin: 23px 0 8px }
.house-slot { margin: clamp(27px,4vw,46px) 0 28px; }
.ad-label { display: block; margin-bottom: 5px; font-size: .7rem; letter-spacing: .1em }
.slice-ad { font-family: 'DM Sans',sans-serif; font-synthesis: none; display: flex; align-items: center; gap: 15px; padding: 10px clamp(12px,2vw,25px); background: #f1eddc; border: 1px solid #d4ceb9; border-radius: 3px; text-decoration: none; color: #423722 }
.slice-ad img { width: 65px; height: 65px; flex: none; object-fit: contain }
.ad-copy { display: flex; align-items: baseline; gap: clamp(9px,1.6vw,20px); flex: 1; line-height: 1.35 }.ad-copy .slice-wordmark { font: 400 2.5rem/1 Fredoka,sans-serif; letter-spacing: -2px; color: #244d36 }.slice-wordmark i { font-style: normal; color: #f67828 }.ad-copy span { font-size: .96rem }
.ad-cta { text-decoration: underline; font-weight: 600; white-space: nowrap }.slice-ad:hover .ad-cta { text-decoration-thickness: 2px }
.site-foot { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; border-top: 1px solid var(--rule); padding: 23px 0 33px; color: var(--muted) }
.footer-mark { font-size: 1.35rem; flex: none }.site-foot nav { gap: 4px 15px }.site-foot nav a,.test-link { font-size: .875rem }.test-link { display: block; margin-bottom: 24px }
dialog { width: max-content; max-width: min(94vw,880px); max-height: 94dvh; padding: 32px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink) }
dialog::backdrop { background: #20251ed9 }.close { position: absolute; right: 8px; top: 8px; border: 1px solid var(--rule); background: var(--paper); border-radius: 50%; width: 34px; height: 34px; font-size: 22px; line-height: 1 }
.modal-title { font: normal 2.3rem var(--serif); margin: 4px 45px 15px 0 }.modal-copy { max-width: 42ch; line-height: 1.65; margin-bottom: 0 }
.large-art { display: block; max-width: 100%; max-height: 73dvh; object-fit: contain; margin: auto }.dialog-label { margin: 12px 0 0; text-align: center }
.results { padding: clamp(34px,5vw,75px) 0 5px }.score { font: normal clamp(3.3rem,7vw,6rem)/1.1 var(--serif); letter-spacing: -.055em; margin: 0 }
.results ol { list-style: none; padding: 0; margin: 22px 0; max-width: 680px }.results li { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--rule); padding: 10px 0 }
.results li img { width: 65px; height: 45px; object-fit: contain; background: #ebe7db }.results li small { display: block; color: var(--muted); margin-top: 3px }.outcome { margin-left: auto; font-weight: 600 }
.actions { display: flex; gap: 10px; flex-wrap: wrap }.document { padding-block: clamp(35px,6vw,84px) clamp(45px,8vw,100px) }.document article { max-width: 760px; margin: 0 auto }
.document h1 { font-size: clamp(2.8rem,6vw,5rem) }.document h2 { font: normal clamp(1.7rem,2.75vw,2.1rem)/1.2 var(--serif); margin: 24px 0 8px; letter-spacing: -.025em }
.document p:not(.edition) { font-size: 1.04rem; margin: .7em 0; line-height: 1.68 }.document p.lead { font: normal clamp(1.2rem,2.8vw,1.55rem)/1.45 var(--serif); color: var(--muted); border-bottom: 1px solid var(--rule); padding-bottom: 1em; margin: 12px 0 24px }
.document p.doc-action { margin-top: 24px }
@media (max-width: 700px) {
  .header-inner { min-height: 59px }.wordmark { font-size: 1.52rem; gap: 8px }.emblem { width: 17px; height: 20px }.emblem::after { width: 13px; height: 18px; left: 4px; top: 1px }
  .header-inner nav { gap: 4px 11px }.header-inner nav a { font-size: .9rem }
  .intro { display: block; padding: 22px 0 9px }.edition { margin-bottom: 6px }.instruction { margin: 8px 0 13px; line-height: 1.4 }.round-info { display: flex; justify-content: space-between; align-items: center; text-align: left; padding: 0 }
  .round-info strong { font-size: 1rem }#progress { margin: 0 }.pip { width: 17px }
  h1 { font-size: clamp(2.7rem,10vw,4.1rem) }.scorebar { gap: 8px 11px; padding-block: 5px }
  .round-start { grid-template-columns: 1fr }.cover { min-height: clamp(140px,25dvh,224px) }
  .round-invite { padding: 17px 18px; min-height: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto; gap: 4px 12px; align-items: center }
  .round-invite p:first-child { font-size: 1.45rem; margin: 0 }.round-invite p:nth-child(2) { grid-column: 1; font-size: .9rem }.round-invite .primary { grid-row: 1 / span 2; grid-column: 2; margin: 0; padding-inline: 12px }
  .gallery { grid-template-columns: 1fr; gap: 7px }.choose { display: grid; grid-template-columns: 54% 46%; align-items: stretch }
  .wall { height: clamp(100px,17dvh,155px); padding: 7px 9px }.label { padding: 8px 10px; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; gap: 3px; min-height: 0; font-size: 1.03rem }.letter { width: 25px; height: 25px; font-size: .89rem }
  .zoom { right: 6px; bottom: auto; top: 6px; width: 30px; height: 30px }
  .meta { border-top: 1px solid var(--rule); padding: 6px 10px }.feedback { align-items: flex-start; flex-direction: column; padding: 12px }.feedback .primary { align-self: flex-end }
  #response { margin-top: 10px }dialog { padding: 32px 14px 18px }.site-foot { flex-direction: column; gap: 11px; padding: 18px 0 23px }.site-foot nav { gap: 9px 16px }
  .house-slot { margin: 23px 0 22px }.ad-copy { display: block }.ad-copy .slice-wordmark { display: block; font-size: 2.06rem; margin-bottom: 4px }.ad-copy span,.ad-cta { font-size: .9rem }
  .slice-ad { gap: 9px; padding: 9px }.slice-ad img { width: 49px; height: 49px }.outcome { flex-shrink: 0; font-size: .9rem }
}
@media (max-width: 370px) {
  .header-inner, main, .site-foot { width: 94% }.header-inner { flex-wrap: wrap; row-gap: 0; padding-block: 5px }.header-inner nav { gap: 8px }.header-inner nav a { font-size: .85rem }
  .round-invite { display: flex; gap: 6px }.round-invite .primary { margin-top: 5px }.round-invite p { max-width: none }
  .slice-ad img { width: 39px; height: 39px }
}
.sandbox-note{background:#f2e7b9;color:#373321;text-align:center;padding:.42rem 1rem;font-size:.9rem}
