/* BINARY RPG playtest site · house style (Adventor headings, Pagella body, ink/teal/gold) */
@font-face { font-family: "Adventor"; src: url(/fonts/texgyreadventor-regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Adventor"; src: url(/fonts/texgyreadventor-bold.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pagella"; src: url(/fonts/texgyrepagella-regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pagella"; src: url(/fonts/texgyrepagella-italic.woff) format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Pagella"; src: url(/fonts/texgyrepagella-bold.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pagella"; src: url(/fonts/texgyrepagella-bolditalic.woff) format("woff"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --ink: #1f1d1a; --night: #14110d; --muted: #6b665e; --teal: #2f6f6a; --gold: #a8842c; --gold-hi: #c9a24a;
  --paper: #f4efe4; --shade: #ece6da; --rule: #cfc7b8; --cream: #efe6d2;
  --head: "Adventor", "Century Gothic", "Avenir", sans-serif;
  --body: "Pagella", "Palatino Linotype", "Palatino", "Book Antiqua", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:hover { color: var(--gold); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

/* Buttons */
.btn { display: inline-block; font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; padding: 14px 22px; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-gold { background: var(--gold); color: var(--night); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-hi); color: var(--night); border-color: var(--gold-hi); }
.btn-line { color: var(--cream); border-color: rgba(239,230,210,.6); }
.btn-line:hover { color: var(--night); background: var(--cream); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--teal); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }
.size { font-weight: 400; opacity: .7; letter-spacing: .08em; margin-left: 6px; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; background: var(--night); color: var(--cream); overflow: hidden; display: flex; flex-direction: column; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,17,13,.6) 0%, rgba(20,17,13,0) 18%, rgba(20,17,13,0) 34%, rgba(20,17,13,.72) 58%, rgba(20,17,13,.94) 80%, var(--night) 100%); }
.nav { position: relative; z-index: 2; display: flex; justify-content: flex-end; align-items: center; padding: 22px 28px; }
.nav-links a { font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--cream); text-decoration: none; margin-left: 26px; }
.nav-links a:hover { color: var(--gold-hi); }
.hero-text { position: relative; z-index: 2; margin-top: auto; padding: 0 28px 9vh; text-align: center; }
.kicker { font-family: var(--head); font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-hi); margin: 0 0 14px; }
.wordmark { font-family: var(--head); font-weight: 400; font-size: clamp(34px, 7.4vw, 92px); letter-spacing: .32em; margin: 0 0 0 .32em; color: var(--gold-hi); line-height: 1.05; white-space: nowrap; text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.wordmark span { margin-left: .55em; }
.tagline { font-style: italic; font-size: clamp(17px, 2.2vw, 22px); margin: 14px 0 30px; color: var(--cream); }
.byline { font-family: var(--head); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: rgba(239,230,210,.8); margin: -18px 0 28px; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Intro */
.intro { background: var(--night); color: var(--cream); padding: 30px 0 90px; }
.planets { width: 230px; margin: 0 auto 34px; display: block; }
.lede { font-size: 22px; line-height: 1.55; }
.drop { font-family: var(--head); font-weight: 700; float: left; font-size: 64px; line-height: .82; padding: 6px 10px 0 0; color: var(--gold-hi); }
.intro p { margin: 0 0 1em; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 46px; border-top: 1px solid rgba(201,162,74,.4); padding-top: 30px; }
.pillars h3 { font-family: var(--head); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hi); margin: 0 0 8px; }
.pillars p { font-size: 16px; color: rgba(239,230,210,.82); margin: 0; }

/* Section heads */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.sec-label { font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: .35em; text-transform: uppercase; color: var(--teal); margin: 0 0 8px; }
.sec-head h2 { font-family: var(--head); font-weight: 700; font-size: clamp(30px, 4.6vw, 48px); letter-spacing: .04em; text-transform: uppercase; margin: 0; line-height: 1.05; padding-bottom: 14px; border-bottom: 2.5px solid var(--ink); display: inline-block; }
.sec-sub { margin: 18px 0 0; color: var(--muted); font-style: italic; }

/* Downloads */
.downloads { padding: 100px 0 80px; }
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.book { background: #fff; border: 1px solid var(--rule); display: flex; flex-direction: column; }
.book-cover { display: block; background: var(--night); overflow: hidden; }
.book-cover img { width: 100%; height: auto; transition: transform .4s; }
.book-cover:hover img { transform: scale(1.03); }
.book-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.book-ver { font-family: var(--head); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); margin: 0 0 6px; }
.book h3 { font-family: var(--head); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 10px; line-height: 1.15; }
.book p { font-size: 16px; margin: 0 0 20px; }
.book .btn { margin-top: auto; align-self: flex-start; }
.sheets { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; background: #fff; border: 1px solid var(--rule); margin-top: 32px; padding: 24px; }
.sheets-img img { width: 100%; height: auto; border: 1px solid var(--rule); box-shadow: 0 10px 24px -16px rgba(31,29,26,.5); }
.sheets h3 { font-family: var(--head); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 10px; }
.sheets p { font-size: 16px; margin: 0 0 18px; }
.pb-links { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 16px 0 18px; }
.pb-links a { font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink); border: 1.5px solid var(--ink); padding: 9px 14px; }
.pb-links a:hover { background: var(--ink); color: #fff; }
.sheets .pb-online { font-style: italic; color: var(--muted); margin: 0; }
.coming { text-align: center; margin-top: 40px; color: var(--muted); }

/* Quick play sheet */
.quick { padding: 90px 0; background: var(--shade); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sheet { background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 18px 40px -24px rgba(31,29,26,.45); padding: 48px 54px; font-size: 16.5px; line-height: 1.5; }
.qp-title { display: none; }
.qp-sub { display: none; }
.qp-page { column-count: 2; column-gap: 44px; }
.qp-page + .qp-page { margin-top: 40px; padding-top: 34px; border-top: 2.5px solid var(--ink); }
.qp-page > h2 { column-span: all; font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .35em; text-transform: uppercase; color: var(--teal); margin: 0 0 18px; }
.sheet h3 { font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin: 22px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); break-after: avoid; }
.sheet h3:first-of-type { margin-top: 0; }
.sheet p { margin: 0 0 .7em; }
.sheet ul { margin: 0 0 .8em; padding-left: 1.15em; }
.sheet li { margin-bottom: .35em; }
.sheet li::marker { color: var(--teal); }
.sheet table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 14px; break-inside: avoid; }
.sheet thead th { background: var(--ink); color: #fff; font-family: var(--head); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; text-align: left; padding: 5px 8px; }
.sheet thead th:empty { background: transparent; width: 10px; padding: 0; }
.sheet td { padding: 4px 8px; border-bottom: .6px solid var(--rule); vertical-align: top; }
.sheet td:empty { border: none; padding: 0; }
.sheet tbody tr:nth-child(even) td:not(:empty) { background: #ede7da; }
.sheet td:first-child, .sheet td:nth-child(4) { font-family: var(--head); font-weight: 700; }
.sheet .t-actions td { font-family: var(--body) !important; font-weight: 400 !important; }
.sheet .qp-page:last-child > p:last-child { font-style: italic; color: var(--teal); font-size: 1.1em; }

/* Sign-up */
.playtest { padding: 100px 0 110px; background: var(--night); color: var(--cream); }
.playtest .sec-label { color: var(--gold-hi); }
.playtest .sec-head h2 { border-bottom-color: var(--gold); }
.playtest .sec-sub { color: rgba(239,230,210,.75); }
.signup { display: grid; gap: 22px; }
.signup .row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.signup label { display: block; font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); }
.signup input[type=text], .signup input[type=email], .signup textarea { display: block; width: 100%; margin-top: 8px; padding: 12px 14px; font: 17px var(--body); color: var(--cream); background: rgba(255,255,255,.04); border: 1px solid rgba(201,162,74,.45); border-radius: 0; text-transform: none; letter-spacing: 0; }
.signup input:focus, .signup textarea:focus { outline: none; border-color: var(--gold-hi); background: rgba(255,255,255,.07); }
.signup fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.signup legend { font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); margin-bottom: 10px; padding: 0; width: 100%; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; }
.signup .pill { display: inline-block; font-weight: 400; color: var(--cream); letter-spacing: .1em; padding: 10px 16px; border: 1px solid rgba(239,230,210,.35); cursor: pointer; }
.signup .pill:has(input:checked) { background: var(--gold); border-color: var(--gold); color: var(--night); font-weight: 700; }
.signup .pill:has(input:focus-visible) { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.opt { font-weight: 400; letter-spacing: .05em; text-transform: none; color: rgba(239,230,210,.55); }
.signup .check { display: flex; gap: 12px; align-items: flex-start; font-family: var(--body); font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--cream); }
.check input { margin-top: 5px; accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup .btn { justify-self: start; }
.form-msg { margin: 0; min-height: 1.5em; font-style: italic; }
.form-msg.ok { color: var(--gold-hi); }
.form-msg.err { color: #e59a85; }

/* Thanks */
.thanks { padding: 100px 0 90px; }
.thanks-lede { font-size: 20px; text-align: center; margin: 0 auto 44px; max-width: 640px; }
.insp { display: grid; grid-template-columns: 3fr 2fr; gap: 40px; border-top: 2.5px solid var(--ink); padding-top: 26px; }
.insp h3 { font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); margin: 0 0 12px; }
.insp ul { list-style: none; padding: 0; margin: 0; }
.insp li { font-size: 16px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.insp strong { font-family: var(--head); font-size: 14px; letter-spacing: .03em; }
.author { text-align: center; margin-top: 60px; }
.author .sec-label { margin-bottom: 10px; }
.author-name { font-family: var(--head); font-size: clamp(26px, 4vw, 36px); letter-spacing: .18em; text-transform: uppercase; margin: 0; }
.author-note { font-style: italic; color: var(--muted); margin: 8px 0 0; }

/* Footer */
.foot { background: #0d0b08; color: rgba(239,230,210,.6); text-align: center; padding: 46px 0 52px; font-size: 14px; }
.foot p { margin: 0 0 6px; }
.foot-mark { font-family: var(--head); letter-spacing: .45em; color: var(--gold); font-size: 14px; margin-bottom: 12px !important; }
.foot a { color: var(--gold-hi); text-decoration: none; }

/* Small screens */
@media (max-width: 900px) {
  .books { grid-template-columns: 1fr 1fr; }
  .qp-page { column-count: 1; }
  .sheet { padding: 32px 26px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav-links { display: none; }
  .nav { justify-content: center; }
  .wordmark { font-size: 40px; letter-spacing: .28em; margin-left: .28em; }
  .wordmark span { display: block; margin: 6px 0 0; }
  .sheet table { font-size: 12.5px; }
  .sheet thead th { font-size: 9.5px; letter-spacing: .04em; padding: 5px 5px; }
  .sheet td { padding: 4px 5px; }
  .books, .pillars, .signup .row.two, .sheets, .insp { grid-template-columns: 1fr; }
  .sheets-img { max-width: 260px; }
  .books { max-width: 420px; margin: 0 auto; }
  .lede { font-size: 19px; }
  .sheet { padding: 24px 18px; font-size: 16px; }
}
