:root {
  --wine: #761d35;
  --wine-dark: #4e1728;
  --ink: #302a28;
  --muted: #736962;
  --line: #e4d9d0;
  --tint: #f5eee7;
  --white: #fff;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #e5d9cd;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body {
  max-width: 1280px;
  margin: 26px auto;
  background: #faf7f3;
  box-shadow: 0 9px 45px #48302318;
  font-size: 1rem;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a:hover { color: var(--wine); }
:focus-visible { outline: 3px solid #b67945; outline-offset: 4px; }
button:disabled { cursor: default; }
.container { width: calc(100% - 80px); margin-inline: auto; }
.skip { position: fixed; top: -100px; background: white; padding: 12px; z-index: 9; }
.skip:focus { top: 8px; }
.header { background: #fffdfa; border-top: 4px solid var(--wine); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; }
.brand { font-family: var(--serif); font-size: 2.65rem; font-weight: bold; letter-spacing: -2px; line-height: 1.1; color: var(--wine); white-space: nowrap; }
.brand > span { color: var(--ink); margin-left: 8px; }
.brand-dot { color: var(--wine); }
.masthead-note { color: var(--muted); font-size: .75rem; letter-spacing: 3px; }
.navigation { width: 100%; padding-inline: 40px; display: flex; gap: 30px; background: var(--wine); }
.navigation a { color: #f3dfe5; font-size: .9rem; padding: 15px 0 12px; border-bottom: 3px solid transparent; white-space: nowrap; }
.navigation a:hover { color: white; }
.navigation a[aria-current=page] { border-color: #dfb88d; color: white; font-weight: bold; }
.navigation a:focus-visible { outline-color: #f6d0a1; outline-offset: -2px; }
.menu-button { display: none; background: transparent; border: 1px solid var(--line); padding: 8px 13px; color: var(--wine); min-height: 44px; }
main { min-height: 60vh; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; line-height: 1.2; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.2rem, 4.1vw, 3.45rem); letter-spacing: -1.5px; margin: 0; }
h2 { font-size: 1.8rem; margin: 0; }
h3 { font-size: 1.6rem; margin: 0 0 14px; }
p { overflow-wrap: anywhere; }
.eyebrow { font-size: .75rem; letter-spacing: 2px; font-weight: bold; color: var(--wine); text-transform: uppercase; margin: 0 0 17px; }
.intro { margin: 32px 0 0; display: grid; grid-template-columns: 1.2fr 1fr; background: var(--wine-dark); color: #fffaf4; }
.intro-text { padding: 42px 36px; align-self: center; }
.intro .eyebrow { color: #e4bd97; }
.intro h1 em { color: #ead0b5; font-weight: normal; }
.intro-copy { color: #f0dfdf; margin: 24px 0 0; max-width: 480px; font-size: 1rem; line-height: 1.8; }
.intro-image { margin: 0; min-width: 0; min-height: 320px; position: relative; }
.intro-image img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 60%; position: absolute; inset: 0; }
.home-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; padding: 26px 0; align-items: stretch; }
.home-grid > *, .lower-grid > *, .resource-grid > *, .game-grid > * { min-width: 0; }
.writing-panel, .lower-grid > section { background: white; border: 1px solid var(--line); padding: 28px; }
.writing-panel { display: flex; flex-direction: column; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; align-items: baseline; margin-bottom: 24px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.text-link { display: inline-flex; align-items: center; gap: 9px; font-size: .875rem; color: var(--wine); font-weight: bold; min-height: 28px; }
.text-link span { flex-shrink: 0; }
.empty { padding: 32px; background: var(--tint); border: 1px solid var(--line); border-left: 3px solid #b88f6c; }
.empty p { color: var(--muted); margin: 10px 0 0; max-width: 560px; }
.empty .small-heading { font-size: 1.5rem; line-height: 1.4; }
.writing-panel .empty { flex: 1; padding: 20px 0 8px; background: transparent; border: 0; }
.index-mark { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: #a57584; margin-bottom: 22px; }
.atolye-teaser { background: #eee1d4; border: 1px solid #dfcbb9; border-top: 3px solid var(--wine); color: var(--wine-dark); padding: 28px; }
.atolye-teaser .eyebrow { color: var(--wine); }
.atolye-teaser p { color: #655044; }
.atolye-teaser h3 { font-size: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; border: 1px solid var(--wine); padding: 11px 21px; background: var(--wine); color: white; font-weight: bold; font-size: .9rem; min-height: 46px; max-width: 100%; }
.button:hover { background: var(--wine-dark); color: white; }
.button.light { background: var(--wine); border-color: var(--wine); color: white; }
.button.light:hover { background: var(--wine-dark); }
.button.secondary { background: white; color: var(--wine); }
.button.secondary:hover { background: var(--tint); }
.button:disabled { opacity: .5; }
.lower-grid { padding: 0 0 38px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lower-grid .library-panel { background: #f0e7dd; border-color: #dfcbb9; }
.small-note { font-size: .875rem; color: var(--muted); }
.resource { display: block; border-bottom: 1px solid var(--line); padding: 18px 0; }
.resource:first-child { padding-top: 0; }
.resource:last-child { border-bottom: 0; padding-bottom: 0; }
.resource-title { font-family: var(--serif); font-size: 1.3rem; display: flex; justify-content: space-between; gap: 16px; overflow-wrap: anywhere; }
.resource-title > span { flex-shrink: 0; }
.resource p { font-size: .9rem; color: var(--muted); margin: 5px 0; }
.resource .category { display: block; font-size: .75rem; color: var(--wine); letter-spacing: .8px; margin-bottom: 5px; }
.page-head { padding: 36px; margin: 32px 0 24px; border-left: 4px solid var(--wine); background: #eee2d6; }
.page-head h1 { font-size: clamp(2.2rem, 4.1vw, 3.25rem); max-width: 900px; }
.page-head p:last-child { font-size: 1rem; color: #68584e; margin: 16px 0 0; max-width: 740px; }
.page-body { padding-bottom: 40px; }
.page-body > .empty { background: white; }
.resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.resource-grid .resource { background: white; border: 1px solid var(--line); padding: 28px; }
.about { background: white; padding: 32px; margin-bottom: 40px; border: 1px solid var(--line); font-size: 1.05rem; }
.about p { max-width: 750px; margin: 0 0 24px; }
.about h2 { margin: 32px 0 18px; }
.footer { width: 100%; padding: 28px 40px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; color: #e5d0d7; background: var(--wine-dark); font-size: .8rem; }
.footer-brand { font-family: var(--serif); color: #fff7ed; font-size: 1.3rem; font-weight: bold; }
.footer-brand:hover { color: #e7c296; }
.footer p { margin: 0; flex: 1; min-width: 210px; }
.footer > span { white-space: nowrap; }
.game { background: white; border: 1px solid var(--line); padding: 30px; margin-bottom: 24px; }
.game-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 25px; }
.game-top h2 { font-size: 1.5rem; }
.progress-label { font-size: .875rem; color: var(--wine); }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.column-label { font-size: .75rem; letter-spacing: 1.5px; color: var(--muted); margin: 0 0 12px; font-weight: bold; }
.choices { display: grid; gap: 10px; grid-auto-rows: minmax(90px, auto); }
.choice { width: 100%; text-align: left; background: #fcfaf7; border: 1px solid var(--line); padding: 15px 18px; color: var(--ink); display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.choice:hover:not(:disabled) { border-color: var(--wine); background: var(--tint); }
.choice[aria-pressed=true] { background: var(--wine); color: white; border-color: var(--wine); }
.choice.matched { background: #edf4ee; color: #276144; border-color: #b6cfbf; }
.choice-number { font-size: .75rem; opacity: .7; min-width: 20px; }
.game-message { min-height: 58px; margin: 22px 0 8px; color: var(--wine); font-weight: bold; }
.game-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.source-list { padding-left: 20px; font-size: .9rem; overflow-wrap: anywhere; }
.source-list a { text-decoration: underline; text-underline-offset: 3px; }
.source-list li { margin-block: 8px; }
details { border: 1px solid var(--line); background: #f1e7dc; padding: 20px 24px; }
summary { cursor: pointer; color: var(--wine); font-weight: bold; font-size: .9rem; }
.complete { margin-top: 22px; background: var(--tint); padding: 23px; }
.complete h3 { margin: 0 0 8px; }
.complete p { margin: 0; }
.article-list article { border-bottom: 1px solid var(--line); padding: 25px 0; }
.article-list p { white-space: pre-line; }
.book-card { background: white; border: 1px solid var(--line); padding: 25px; }
@supports (grid-template-rows: subgrid) {
  .game-grid { grid-template-rows: auto repeat(5, minmax(72px, auto)); row-gap: 10px; }
  .game-grid > div { display: grid; grid-template-rows: subgrid; grid-row: span 6; }
  .choices { display: contents; }
  .column-label { margin-bottom: 4px; }
}
@media (max-width: 1332px) { body { margin: 20px; } }
@media (max-width: 1000px) {
  .container { width: calc(100% - 48px); }
  .navigation, .footer { width: 100%; padding-inline: 24px; }
  .navigation { gap: 24px; }
  .intro-text { padding: 30px 26px; }
  .intro h1 { font-size: 2.55rem; }
  .home-grid { grid-template-columns: 1.15fr 1fr; }
  .writing-panel, .lower-grid > section, .atolye-teaser { padding: 23px; }
  .section-heading h2 { font-size: 1.65rem; }
  .masthead-note { letter-spacing: 1.5px; }
}
@media (max-width: 800px) {
  body { margin: 14px; }
  .masthead { padding-block: 23px; }
  .brand { font-size: 2.3rem; }
  .masthead-note { display: none; }
  .menu-button { display: block; }
  .navigation { display: none; padding-block: 8px; gap: 0; }
  .navigation.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .navigation a { padding: 12px 4px; font-size: .95rem; }
  .intro { grid-template-columns: 1.2fr 1fr; margin-top: 24px; }
  .intro h1 { font-size: 2.15rem; }
  .intro-text { padding: 26px 23px; }
  .intro-image { min-height: 300px; }
  .intro-copy { font-size: 1rem; line-height: 1.65; margin-top: 19px; }
  .home-grid, .lower-grid { gap: 20px; }
  .home-grid { grid-template-columns: 1fr 1fr; }
  .page-head { padding: 28px; margin-top: 24px; }
  .game { padding: 23px; }
  .game-grid { column-gap: 16px; }
  .footer p { flex-basis: 65%; }
}
@media (max-width: 620px) {
  body { margin: 10px; }
  .container { width: calc(100% - 32px); }
  .navigation, .footer { width: 100%; padding-inline: 16px; }
  .brand { font-size: 2rem; letter-spacing: -1.5px; }
  .brand > span { margin-left: 5px; }
  .menu-button { padding: 7px 10px; font-size: .875rem; }
  .masthead { gap: 10px; padding-block: 19px; }
  .intro { grid-template-columns: 1fr; margin-top: 18px; }
  .intro-text { padding: 28px 24px; }
  .intro h1 { font-size: clamp(2rem, 7.3vw, 2.8rem); }
  .intro-image { min-height: 0; aspect-ratio: 2.1; }
  .intro-image img { object-position: 60% 67%; }
  .home-grid, .lower-grid, .resource-grid { grid-template-columns: 1fr; gap: 18px; }
  .home-grid { padding-block: 18px; }
  .lower-grid { padding-bottom: 25px; }
  .section-heading { gap: 8px 14px; margin-bottom: 17px; padding-bottom: 14px; }
  .writing-panel, .lower-grid > section, .atolye-teaser { padding: 22px; }
  .empty { padding: 25px; }
  .writing-panel .empty { padding-top: 8px; }
  .atolye-teaser h3 { font-size: 1.8rem; }
  .page-head { padding: 23px; margin: 18px 0; }
  .page-head h1 { font-size: 2.25rem; }
  .page-body { padding-bottom: 25px; }
  .game { padding: 16px; }
  .game-grid { column-gap: 10px; }
  .choice { padding: 12px 9px; font-size: .875rem; gap: 5px; }
  .choice-number { display: none; }
  .game-top h2 { font-size: 1.4rem; }
  .game-message { font-size: .9rem; }
  .game-grid { grid-template-rows: auto repeat(5, minmax(88px, auto)); }
  .column-label { font-size: .75rem; letter-spacing: 1px; }
  .about { padding: 24px; margin-bottom: 25px; }
  .footer { gap: 10px; padding-block: 23px; }
  .footer p { flex-basis: 100%; min-width: 0; }
}
@media (max-width: 360px) {
  .brand { font-size: 1.7rem; }
  .menu-button { padding-inline: 8px; }
  .navigation.open { grid-template-columns: 1fr; }
  .intro-text { padding: 23px 19px; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button { transition: background .15s, color .15s, border-color .15s; }
}
