/* The Iron Pit. Colours come from the book: black iron, torchlight, and the red behind the helm's eye slits. */
:root {
  --iron: #0d0c0b; --iron-2: #161412; --iron-3: #211d1a; --line: #332c27;
  --bone: #e9e1d2; --ash: #a89d8c; --ember: #d8442b; --ember-2: #f0603f; --torch: #d9a441;
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--iron); color: var(--bone); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--torch); text-underline-offset: 3px; }
a:hover { color: var(--ember-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--bone); color: var(--iron); padding: 8px 12px; z-index: 9; }
:focus-visible { outline: 2px solid var(--torch); outline-offset: 3px; }

.top { display: flex; align-items: center; gap: 18px; padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(13, 12, 11, .94); backdrop-filter: blur(6px); z-index: 5; }
.mark { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bone); text-decoration: none; white-space: nowrap; }
.top nav { display: flex; gap: 18px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.top nav a { color: var(--ash); text-decoration: none; font-size: .95rem; white-space: nowrap; padding: 6px 0; }
.top nav a:hover, .top nav a[aria-current] { color: var(--bone); }
.top nav a[aria-current] { border-bottom: 2px solid var(--ember); }

main > section, main > article { padding: clamp(36px, 7vw, 76px) clamp(16px, 4vw, 40px); max-width: 1120px; margin: 0 auto; }
.band { max-width: none !important; background: var(--iron-2); border-block: 1px solid var(--line); }
.band > * { max-width: 1040px; margin-inline: auto; }
.narrow { max-width: 720px !important; }
.kicker { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ember-2); margin-bottom: .8em; }
.kicker a { color: inherit; }
.lead { font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; color: var(--bone); }
.byline, .note, .fine, .opt { color: var(--ash); }
.note { font-size: .95rem; }
.fine { font-size: .85rem; }
.count { font-family: var(--serif); font-size: 1.35rem; color: var(--ember-2); }

.btn { display: inline-block; background: var(--ember); color: #fff; border: 1px solid var(--ember); padding: 11px 20px; border-radius: 4px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ember-2); border-color: var(--ember-2); color: #fff; }
.btn.ghost { background: transparent; color: var(--bone); border-color: var(--ash); }
.btn.ghost:hover { border-color: var(--bone); background: var(--iron-3); }
.btn.small { padding: 7px 13px; font-size: .9rem; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; align-items: center; }

.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero.book { align-items: start; }
.hero-text p { font-family: var(--serif); font-size: 1.12rem; }
.hero-cover img { border-radius: 4px; box-shadow: 0 24px 60px rgba(0, 0, 0, .7), 0 0 80px rgba(216, 68, 43, .16); }
.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.band.split { display: block; }
.band.split { padding-inline: clamp(16px, 4vw, 40px); }
.band.split::after { content: ''; display: table; clear: both; }
.band.split > div { float: left; width: 58%; margin: 0 0 0 max(0px, calc((100% - 1040px) / 2)); }
.band.split > a, .band.split > img { float: right; width: min(30%, 300px); margin: 0 max(0px, calc((100% - 1040px) / 2)) 0 0; }
.cover, .portrait { border-radius: 4px; border: 1px solid var(--line); }

.cards { display: grid; gap: 16px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: block; background: var(--iron-3); border: 1px solid var(--line); border-radius: 6px; padding: 22px; color: var(--bone); text-decoration: none; }
a.card:hover { border-color: var(--ember); color: var(--bone); }
.card p { color: var(--ash); margin-bottom: .8em; }
.card span { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--torch); }
.card.flat p:last-child { margin-bottom: 0; }

.faces { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px; margin: 1.4em 0; }
.face { color: var(--ash); text-decoration: none; font-size: .8rem; text-align: center; }
.face img { border-radius: 4px; border: 1px solid var(--line); margin-bottom: 6px; }
.face:hover { color: var(--bone); }
.face:hover img { border-color: var(--ember); }

.people, .places { display: grid; gap: clamp(28px, 5vw, 48px); }
.person { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(18px, 4vw, 36px); align-items: start; scroll-margin-top: 80px; }
.person.small { grid-template-columns: 130px minmax(0, 1fr); margin: 1.6em 0; }
.person h2 { margin-bottom: .3em; }
.person p[data-canon] { font-family: var(--serif); font-size: 1.12rem; }
.place { max-width: 760px; scroll-margin-top: 80px; }

blockquote.book, .book-text { font-family: var(--serif); font-size: 1.14rem; line-height: 1.7; }
blockquote.book { margin: 1.2em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--ember); }
blockquote.book p:last-of-type { margin-bottom: .4em; }
blockquote.book cite { display: block; font: normal .85rem var(--sans); color: var(--ash); }
.aside { font-family: var(--serif); font-style: italic; color: var(--ash); }
.reading { max-width: 720px !important; }
.book-text p { text-indent: 1.4em; margin-bottom: .2em; }
.book-text p:first-child, .book-text p[data-canon="opening:1"] { text-indent: 0; }
.book-text p:first-child { text-align: center; margin-bottom: 1.2em; color: var(--ember-2); }
.more { margin-top: 1.6em; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--ash); }
.dive { max-width: 760px !important; }
.dive h2 { margin-top: 1.6em; }

.table { overflow-x: auto; margin: 1em 0; }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--ash); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
td:first-child { color: var(--ash); width: 5.5em; }
.faq dt { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; margin-top: 1.2em; }
.faq dd { margin: .3em 0 0; color: var(--ash); max-width: 760px; }
.ticks, .steps { padding-left: 1.2em; }
.ticks li, .steps li { margin-bottom: .5em; }

form label { display: block; font-size: .92rem; color: var(--ash); margin: 14px 0 6px; }
input, textarea { width: 100%; background: var(--iron); color: var(--bone); border: 1px solid var(--ash); border-radius: 4px; padding: 11px 12px; font: 1rem var(--sans); }
input:focus, textarea:focus { border-color: var(--torch); outline: none; }
.panel { background: var(--iron-2); border: 1px solid var(--line); border-radius: 6px; padding: 8px 22px 22px; margin: 1.4em 0 1em; }
.panel .btn { margin-top: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.msg { min-height: 1.4em; margin: 12px 0 0; font-size: .95rem; }
.msg.ok { color: #8fce8a; }
.msg.err { color: var(--ember-2); }

.foot { border-top: 1px solid var(--line); padding: 40px clamp(16px, 4vw, 40px) 56px; text-align: center; }
.foot > * { max-width: 640px; margin-inline: auto; }
.seal { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ash); cursor: pointer; user-select: none; }
.seal:hover { color: var(--bone); }
.seal a { color: var(--ember-2); }
.list label { margin-top: 22px; }
.list .row { display: flex; gap: 10px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 26px auto 18px; }
.foot nav a { color: var(--ash); text-decoration: none; font-size: .92rem; }
.foot nav a:hover { color: var(--bone); }

body.dark { background: #060505; }
.cellar { text-align: center; }
.cellar .portrait { width: 240px; margin: 0 auto 24px; }
.cellar .actions { justify-content: center; }

@media (max-width: 860px) {
  .hero, .split { grid-template-columns: minmax(0, 1fr); }
  .hero-cover { order: -1; max-width: 240px; }
  .band.split > div, .band.split > a, .band.split > img { float: none; width: auto; margin: 0; }
  .band.split > a, .band.split > img { max-width: 220px; margin-top: 20px; }
  .cards.three, .cards.two { grid-template-columns: minmax(0, 1fr); }
  .faces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .person { grid-template-columns: 110px minmax(0, 1fr); }
  .top { flex-wrap: wrap; gap: 8px 14px; }
  .top nav { order: 3; width: 100%; margin-left: 0; }
  .top .btn { margin-left: auto; }
  .list .row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
