@font-face {
  font-family: Fraunces;
  src: url("assets/fraunces.woff2") format("woff2");
  font-weight: 300 600;
  font-display: swap;
}
@font-face {
  font-family: Familjen;
  src: url("assets/familjen.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --background: #f7f1e3;
  --surface: #fffcf5;
  --foreground: #2a2420;
  --secondary: #514839;
  --border: #d6c7a0;
  --primary: #00c753;
  --green-text: #0e3d22;
  --fern: #164731;
  --pale-fern: #e5eddf;
  --ink: #101912;
  --night: #111c33;
  --wine: #361713;
  --plum: #281534;
  --paper: #efd96e;
  color: var(--foreground);
  background: var(--background);
  font: 16px/1.45 Familjen, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .43; cursor: default; }
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--green-text); outline-offset: 4px; }
[hidden] { display: none !important; }
.frame { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 550 27px/1 Fraunces, Georgia, serif; letter-spacing: -.055em; }
.preview-label { color: var(--secondary); font-size: 14px; margin-left: auto; }
.view-nav { border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; gap: 28px; }
.nav-inner button { background: none; color: var(--secondary); border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; min-height: 52px; padding: 3px 0 0; white-space: nowrap; }
.nav-inner button[aria-current] { color: var(--green-text); font-weight: 700; border-color: var(--green-text); }
main { padding-block: clamp(32px, 5vw, 68px) 0; min-height: 65vh; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 500; }
h1 { font-size: clamp(48px, 7.5vw, 104px); letter-spacing: -.064em; word-spacing: .04em; line-height: .98; }
h2 { font-size: clamp(30px, 4vw, 49px); letter-spacing: -.06em; line-height: 1.06; }
h3 { font-size: 24px; letter-spacing: -.04em; line-height: 1.1; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.intro p { color: var(--secondary); font-size: clamp(16px, 2vw, 20px); margin-top: 13px; max-width: 46ch; }
.button { border: 1px solid var(--foreground); border-radius: 6px; padding: 10px 16px; min-height: 45px; color: var(--foreground); background: var(--surface); font-weight: 650; white-space: nowrap; display: inline-flex; justify-content: center; align-items: center; gap: 7px; }
.button.primary { background: var(--primary); border-color: var(--primary); color: var(--ink); }
.button:not(:disabled):hover { border-color: var(--foreground); }
.button.quiet { background: none; border-color: var(--border); }
.button svg { width: 18px; height: 18px; flex-shrink: 0; }
.text-button { background: none; border: 0; padding: 8px 0; color: var(--green-text); text-decoration: underline; text-underline-offset: 4px; }
.section-bar { margin-top: 35px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.section-bar h2 { font: 700 19px/1.4 Familjen, system-ui, sans-serif; letter-spacing: -.015em; }
.carousel-controls { display: flex; gap: 7px; }
.carousel-controls .button, .dialog-close { min-height: 42px; width: 42px; padding: 0; }
.deck { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 59px) / 3.12); gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 8px 3px 14px; scrollbar-color: var(--border) var(--background); scrollbar-width: thin; }
.date-card { position: relative; min-width: 0; display: flex; flex-direction: column; scroll-snap-align: start; scroll-margin-left: 3px; }
.card-hit { text-align: left; padding: 0; background: none; color: inherit; border: 0; letter-spacing: inherit; }
.card-hit::after { content: ""; position: absolute; inset: 0; border-radius: 9px; }
.card-hit:focus-visible { outline-offset: 2px; }
.card-hit:focus-visible::after { outline: 2px solid var(--green-text); outline-offset: -2px; }
.poster { aspect-ratio: 4 / 5; position: relative; display: flex; align-items: end; border-radius: 9px; overflow: hidden; color: var(--surface); isolation: isolate; background: var(--fern); }
.poster--basketball { background: var(--night); }
.poster--dinner { background: var(--wine); }
.poster--wrestling { background: var(--plum); }
.poster--gallery { color: var(--ink); background: var(--paper); }
.poster img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; z-index: -1; }
.poster-type { display: grid; align-content: space-between; position: absolute; inset: 12%; border: 1px solid currentColor; padding: 13%; }
.poster-type span:first-child { overflow-wrap: anywhere; font: 500 clamp(44px, 7vw, 100px)/.89 Fraunces, Georgia, serif; letter-spacing: -.095em; }
.poster-type--edited span:first-child { font-size: clamp(24px, 4vw, 55px); }
.poster-type span:last-child { font-weight: 700; }
.card-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; padding-top: 11px; }
.card-meta h3 { overflow-wrap: anywhere; }
.card-meta p { margin-top: 5px; color: var(--secondary); font-size: 14px; overflow-wrap: anywhere; }
.card-arrow { width: 26px; height: 26px; display: grid; place-items: center; color: var(--green-text); }
.card-arrow svg { width: 20px; height: 20px; }
.card-status { margin-top: 8px; color: var(--green-text); font-size: 14px; font-weight: 700; }
.footer { border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 2px 16px; padding-block: 11px 18px; margin-top: 26px; font-size: 14px; color: var(--secondary); }
.poster-layout { display: grid; grid-template-columns: minmax(200px, .66fr) minmax(0, 1.4fr); gap: clamp(20px, 5vw, 60px); margin-top: 29px; }
.poster-summary { max-width: 420px; }
.poster-summary .poster { aspect-ratio: 5/4; }
.poster-summary h2 { margin-top: 12px; }
.poster-summary p { margin-top: 6px; color: var(--secondary); }
.poster-summary label { display: grid; gap: 4px; margin-bottom: 12px; }
.claimants { border-top: 1px solid var(--border); list-style: none; margin: 15px 0 0; padding: 0; }
.claimant { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--border); padding-block: 12px; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pale-fern); color: var(--green-text); font-weight: 700; }
.claimant h3 { font: 700 18px/1.25 Familjen, system-ui, sans-serif; }
.claimant p, .muted { color: var(--secondary); }
.claimant p { font-size: 14px; margin-top: 3px; }
.claim-actions { display: flex; align-items: center; gap: 8px; }
.state-line { color: var(--green-text); font-weight: 700; padding-block: 8px; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 30px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.metric { padding: 20px; min-width: 0; }
.metric:nth-child(n+4) { border-top: 1px solid var(--border); }
.metric:not(:nth-child(3n)) { border-right: 1px solid var(--border); }
.metric dd { margin-top: 6px; font: 500 clamp(29px, 4vw, 48px)/1 Fraunces, Georgia, serif; letter-spacing: -.06em; }
.metric p { margin-top: 8px; font-size: 14px; color: var(--secondary); }
.notes { margin-top: 24px; max-width: 70ch; }
.notes p { margin-top: 9px; color: var(--secondary); }
dialog { width: min(720px, calc(100% - 24px)); max-height: calc(100% - 24px); box-sizing: border-box; overflow: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--foreground); padding: 0; }
dialog::backdrop { background: var(--ink); }
.dialog-inner { padding: clamp(15px, 4vw, 32px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 18px; }
.dialog-layout { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(12px, 4vw, 26px); }
.detail-poster { align-self: start; }
.date-details { display: grid; gap: 10px; align-content: start; }
.date-details div { border-bottom: 1px solid var(--border); padding-bottom: 9px; }
.date-details dt { color: var(--secondary); font-size: 14px; }
.date-details dd { font-weight: 650; }
.description, .form-description { color: var(--secondary); margin-bottom: 13px; }
.dialog-actions { display: flex; align-items: center; gap: 12px; margin-top: 17px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid label { display: grid; gap: 4px; }
.form-grid .wide { grid-column: 1 / -1; }
input, select, textarea { min-width: 0; width: 100%; background: var(--surface); border: 1px solid var(--border); padding: 8px 10px; border-radius: 5px; color: var(--foreground); }
textarea { resize: vertical; min-height: 76px; }
.editor-select { margin-bottom: 15px; display: grid; gap: 5px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 880px) {
  .frame { width: calc(100% - 44px); }
  .deck { grid-auto-columns: calc((100% - 28px) / 2.25); }
}
@media (max-width: 600px) {
  .frame { width: calc(100% - 32px); }
  .header-inner { min-height: 61px; gap: 8px; }
  .brand { font-size: 23px; }
  .header-inner .button { margin-left: auto; font-size: 14px; padding-inline: 10px; }
  .preview-label { display: none; }
  .nav-inner { gap: 22px; }
  .nav-inner button { min-height: 47px; }
  .intro { display: grid; justify-items: start; gap: 15px; }
  .intro p { margin-top: 8px; max-width: 35ch; }
  .section-bar { margin-top: 18px; }
  .deck { grid-auto-columns: 78%; gap: 11px; width: calc(100% + 16px); }
  .poster-layout { grid-template-columns: 1fr; gap: 23px; }
  .poster-summary .poster { aspect-ratio: 2.25; }
  .claimant { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; }
  .avatar { width: 36px; height: 36px; }
  .claim-actions { gap: 6px; }
  .claim-actions .button { padding-inline: 9px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(n+3) { border-top: 1px solid var(--border); }
  .metric:not(:nth-child(3n)) { border-right: 0; }
  .metric:nth-child(odd) { border-right: 1px solid var(--border); }
  .metric { padding: 12px; }
  .dialog-layout { grid-template-columns: 1fr; }
  .detail-poster { aspect-ratio: 2.1; }
}
