/* Open World Story Campaign — warm editorial daylight */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --paper: #fbf7ef;
  --paper-2: #f3ebdc;
  --paper-3: #ece0cc;
  --rule: #ddceb4;
  --ink: #2b2620;
  --ink-2: #4a4238;
  --ink-3: #7d7263;
  --terra: #bf5730;
  --terra-dk: #a2451f;
  --olive: #67793f;
  --gold: #b58a34;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Work Sans', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
body.still { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--terra-dk); text-decoration: none; }
a:hover { color: var(--terra); }

.column { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 26px; }
.narrow { max-width: 760px; margin: 0 auto; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.14; letter-spacing: -.015em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: italic; color: var(--terra); }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: .9rem;
}

/* ---- buttons ---- */
.go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.7rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.go-terra { background: var(--terra); color: #fff5ee; }
.go-terra:hover { background: var(--terra-dk); color: #fff5ee; transform: translateY(-1px); }
.go-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.go-line:hover { background: var(--ink); color: var(--paper); }
.go-soft { background: var(--paper-3); color: var(--ink); }
.go-soft:hover { background: var(--rule); color: var(--ink); }
.go-plain { background: none; color: var(--ink-3); padding: .6rem .8rem; }
.go-plain:hover { color: var(--ink); }
.go-s { padding: .55rem 1.1rem; font-size: .87rem; }
.go-wide { width: 100%; }

/* ---- header ---- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 247, 239, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.masthead-row { display: flex; align-items: center; gap: 1.4rem; min-height: 74px; }

.wordmark { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.wordmark img { width: 38px; height: 38px; }
.wordmark b { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; }
.wordmark b em { font-style: italic; color: var(--terra); }

.chapters-nav { display: flex; gap: 1.5rem; margin: 0 auto; }
.chapters-nav a { color: var(--ink-2); font-size: .95rem; font-weight: 500; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.chapters-nav a:hover, .chapters-nav a.here { color: var(--ink); border-bottom-color: var(--terra); }

.reader { display: flex; align-items: center; gap: .5rem; }
.namecard {
  display: none;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  border-radius: 999px;
  padding: .42rem 1rem;
  font-size: .9rem;
  font-weight: 600;
}
.namecard.here { display: inline-flex; }
.namecard b { color: var(--terra-dk); }
.namecard i { width: 7px; height: 7px; border-radius: 50%; background: var(--olive); }

.fold { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .4rem; }
.fold span { width: 24px; height: 2px; background: var(--ink); transition: .2s; }
.fold.here span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fold.here span:nth-child(2) { opacity: 0; }
.fold.here span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- hero ---- */
.opening { padding: 5.4rem 0 0; text-align: center; }
.opening .lede { font-size: 1.14rem; color: var(--ink-2); margin: 1.4rem auto 2.2rem; max-width: 620px; }
.opening-acts { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

.plate { margin-top: 3.6rem; position: relative; }
.plate img { width: 100%; border-radius: 6px; }
.plate figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--ink-3);
  text-align: center;
  margin-top: .9rem;
}

.ledger {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 3.4rem;
}
.ledger div { padding: 1.5rem 1rem; text-align: center; border-right: 1px solid var(--rule); }
.ledger div:last-child { border-right: 0; }
.ledger strong { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--terra); line-height: 1.1; }
.ledger span { font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

/* ---- sections ---- */
.act { padding: 5.4rem 0; }
.act-warm { background: var(--paper-2); border-block: 1px solid var(--rule); }

.act-head { max-width: 640px; margin-bottom: 3rem; }
.act-head.mid { margin-inline: auto; text-align: center; }
.act-head p { color: var(--ink-2); margin-top: 1rem; }

/* ---- game cards ---- */
.shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.tale {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .24s ease, transform .24s ease;
}
.tale:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -26px rgba(43, 38, 32, .4); }
.tale-plate { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-3); }
.tale-plate img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tale:hover .tale-plate img { transform: scale(1.05); }
.tale-body { padding: 1.6rem 1.7rem 1.8rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.tale-no {
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--gold);
  border-bottom: 1px solid var(--rule);
  padding-bottom: .6rem;
}
.tale-body p { font-size: .96rem; color: var(--ink-2); flex: 1; }
.threads { display: flex; flex-wrap: wrap; gap: .4rem; }
.threads span {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--olive);
  background: rgba(103, 121, 63, .1);
  border-radius: 3px;
  padding: .2rem .55rem;
}

/* ---- split ---- */
.spread { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.spread-plate img { border-radius: 6px; border: 1px solid var(--rule); }
.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.5;
  color: var(--ink);
  border-left: 3px solid var(--terra);
  padding: .3rem 0 .3rem 1.3rem;
  margin: 1.6rem 0;
}
.beats { list-style: none; display: grid; gap: .9rem; margin: 1.6rem 0 2rem; }
.beats li { display: grid; grid-template-columns: 20px 1fr; gap: .8rem; align-items: start; color: var(--ink-2); font-size: .98rem; }
.beats li::before { content: '—'; color: var(--terra); font-weight: 600; }

/* ---- editorial features ---- */
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.6rem; }
.trio > div { border-top: 2px solid var(--ink); padding-top: 1.3rem; }
.trio h3 { margin-bottom: .6rem; }
.trio p { color: var(--ink-2); font-size: .96rem; }
.trio .no { display: block; font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1rem; margin-bottom: .3rem; }

/* ---- cta ---- */
.dispatch { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: #fff; }
.dispatch-plate img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.dispatch-note { padding: 3.4rem 2.8rem; display: flex; flex-direction: column; justify-content: center; }
.dispatch-note p { color: var(--ink-2); margin: 1rem 0 1.8rem; }

/* ---- text pages ---- */
.title-block { padding: 3.8rem 0 2.6rem; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.title-block p { color: var(--ink-2); max-width: 640px; margin-top: 1rem; }
.body-copy { max-width: 780px; padding: 3.4rem 0 5rem; }
.body-copy h2 { margin: 2.5rem 0 .9rem; font-size: 1.55rem; }
.body-copy h2:first-child { margin-top: 0; }
.body-copy p, .body-copy li { color: var(--ink-2); margin-bottom: 1rem; }
.body-copy ul, .body-copy ol { padding-left: 1.35rem; }
.aside {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.3rem 1.5rem;
  margin: 1.8rem 0;
}
.aside strong { color: var(--terra-dk); }

/* ---- forms ---- */
.line { display: grid; gap: .35rem; margin-bottom: 1.05rem; }
.line label { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.line input, .line textarea, .line select {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  padding: .8rem 1rem;
}
.line input:focus, .line textarea:focus, .line select:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(191, 87, 48, .12); }
.line textarea { min-height: 150px; resize: vertical; }
.desk { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 2.1rem; }
.posted { background: rgba(103, 121, 63, .12); border: 1px solid rgba(103, 121, 63, .35); color: #4d5c2d; border-radius: 4px; padding: .9rem 1.1rem; margin-bottom: 1.2rem; font-size: .94rem; }

.pair-col { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.4rem; align-items: start; }
.facts { list-style: none; display: grid; gap: 1.3rem; }
.facts li { border-bottom: 1px solid var(--rule); padding-bottom: 1.1rem; color: var(--ink-2); }
.facts li span { display: block; font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); margin-bottom: .2rem; }

/* ---- footer ---- */
.colophon { background: var(--paper-3); border-top: 1px solid var(--rule); padding: 3.8rem 0 1.8rem; }
.colophon-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 2.8rem; }
.colophon-brand p { color: var(--ink-2); font-size: .93rem; margin-top: 1rem; }
.colophon h4 { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--olive); margin-bottom: 1rem; }
.colophon ul { list-style: none; display: grid; gap: .55rem; }
.colophon ul a { color: var(--ink-2); font-size: .94rem; }
.colophon ul a:hover { color: var(--terra-dk); }
.mark18 {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1.5px solid var(--terra);
  color: var(--terra-dk);
  border-radius: 999px;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  padding: .28rem .8rem;
  margin-top: 1.2rem;
}
.colophon-line {
  border-top: 1px solid var(--rule);
  margin-top: 2.8rem;
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--ink-3);
}

/* ---- overlays ---- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(43, 38, 32, .5);
  backdrop-filter: blur(5px);
}
.curtain.here { display: flex; }

.card {
  width: 100%;
  max-width: 470px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 2.3rem;
  box-shadow: 0 40px 80px -30px rgba(43, 38, 32, .5);
}
.card-top { text-align: center; margin-bottom: 1.6rem; }
.card-top img { width: 46px; height: 46px; margin: 0 auto .9rem; }
.card-top h2 { font-size: 1.6rem; }
.card-top p { color: var(--ink-2); font-size: .94rem; margin-top: .5rem; }

.flip { display: flex; gap: 1.6rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.5rem; }
.flip button {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink-3);
  padding: .3rem 0 .7rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.flip button.here { color: var(--ink); border-bottom-color: var(--terra); }

.page { display: none; }
.page.here { display: block; }

.snag {
  display: none;
  background: rgba(191, 87, 48, .1);
  border: 1px solid rgba(191, 87, 48, .4);
  border-radius: 4px;
  color: var(--terra-dk);
  font-size: .89rem;
  padding: .7rem .9rem;
  margin-bottom: 1rem;
}
.snag.here { display: block; }

.footnote { font-size: .84rem; color: var(--ink-3); text-align: center; margin-top: 1rem; }
.pile { display: grid; gap: .7rem; margin-top: 1.4rem; }

.crumbline {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 110;
  transform: translateY(120%);
  transition: transform .35s ease;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -20px 40px -30px rgba(43, 38, 32, .5);
  padding: 1.2rem 0;
}
.crumbline.here { transform: translateY(0); }
.crumbline-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; justify-content: space-between; }
.crumbline p { font-size: .91rem; color: var(--ink-2); max-width: 680px; }
.crumbline-acts { display: flex; gap: .6rem; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .spread, .dispatch, .pair-col { grid-template-columns: 1fr; gap: 2.4rem; }
  .dispatch { gap: 0; }
  .dispatch-note { padding: 2.4rem 1.8rem; }
  .colophon-grid { grid-template-columns: 1fr 1fr; }
  .chapters-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: .6rem 26px 1.2rem;
    display: none;
    margin: 0;
  }
  .chapters-nav.here { display: flex; }
  .chapters-nav a { padding: .8rem 0; border-bottom: 1px solid var(--rule); }
  .fold { display: flex; order: 3; }
  .reader { order: 2; margin-left: auto; }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .opening { padding: 3.6rem 0 0; }
  .act { padding: 3.6rem 0; }
  .ledger div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .colophon-grid { grid-template-columns: 1fr; }
  .card { padding: 1.7rem; }
  .reader .go-line { display: none; }
}

/* locked game buttons for signed-out visitors */
a.shut {
  background: none;
  color: var(--terra-dk);
  border: 1px dashed var(--terra);
  box-shadow: none;
}

a.shut:hover { color: var(--ink); border-color: var(--ink-3); }
