/* Fathom's website: the saloon at night. Fonts and images are served with the site; no third-party requests. */
@font-face { font-family: 'Fell'; src: url('fonts/im-fell-english-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Fell'; font-style: italic; src: url('fonts/im-fell-english-latin-400-italic.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Fell SC'; src: url('fonts/im-fell-english-sc-latin-400-normal.woff2') format('woff2'); font-display: swap; }

:root {
  color-scheme: dark;
  --sea: #06090b;
  --deck: #0d1215;
  --panel: #121a1e;
  --rule: rgba(212, 163, 92, 0.22);
  --bone: #ece2cf;
  --muted: #a69b88;
  --brass: #d4a35c;
  --copper: #b8673a;
  --teal: #5fd4c8;
  --live: #d03a2c;
  --measure: 34rem;
}

* { box-sizing: border-box; }
html { background: var(--sea); }
body {
  margin: 0;
  background: var(--sea);
  color: var(--bone);
  font: 1.125rem/1.6 'Fell', 'Iowan Old Style', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: var(--brass); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--bone); }
h1, h2, h3, .sc { font-family: 'Fell SC', 'Fell', Georgia, serif; font-weight: 400; letter-spacing: 0.04em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; margin: 0 0 0.6rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.25rem; color: var(--brass); }
p { margin: 0 0 1rem; }
em { color: var(--muted); }

.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.measure { max-width: var(--measure); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--panel); padding: 0.5rem 1rem; z-index: 10; }

/* Top bar */
.bar { position: absolute; inset: 0 0 auto; z-index: 3; padding: 1rem 0; }
.bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.bar a { color: var(--bone); text-decoration: none; font-family: 'Fell SC', serif; letter-spacing: 0.08em; }
.bar nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.bar nav a { color: var(--muted); }
.bar nav a:hover { color: var(--bone); }

/* Hero: the Purser, lit by the porthole */
.hero { position: relative; min-height: min(100svh, 62rem); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero picture, .hero > img { position: absolute; inset: 0; z-index: -2; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
@media (min-aspect-ratio: 1/1) { .hero img { object-position: 50% 46%; } } /* wide screens: the visor and his eyes */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6, 9, 11, 0.55) 0%, rgba(6, 9, 11, 0) 22%, rgba(6, 9, 11, 0) 42%, rgba(6, 9, 11, 0.85) 72%, var(--sea) 100%);
}
.hero .wrap { padding: 8rem 0 3.5rem; }
.title { font-family: 'Fell SC', serif; font-size: clamp(2.3rem, 10.5vw, 6.5rem); line-height: 0.95; letter-spacing: 0.06em; margin: 0; white-space: nowrap; }
.title i { font-family: 'Fell', serif; font-size: 0.48em; letter-spacing: 0; color: var(--muted); margin: 0 0.12em 0 0.02em; vertical-align: 0.28em; }
.tagline { font-style: italic; font-size: clamp(1.15rem, 2.6vw, 1.5rem); color: var(--bone); margin: 0.6rem 0 1.4rem; opacity: 0.92; }
.lede { max-width: 30rem; color: var(--bone); opacity: 0.88; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.6rem; }
.badge img { height: 3rem; width: auto; }
.soon {
  display: inline-block; padding: 0.55rem 1.1rem; border: 1px solid var(--brass); border-radius: 999px;
  font-family: 'Fell SC', serif; letter-spacing: 0.08em; color: var(--brass); background: rgba(6, 9, 11, 0.5);
}
html[data-released='false'] .when-released, html[data-released='true'] .when-unreleased { display: none; }
.cta .quiet { color: var(--muted); font-size: 0.95rem; }

/* Sections */
section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
section + section { border-top: 1px solid var(--rule); }
.kicker { font-family: 'Fell SC', serif; letter-spacing: 0.14em; color: var(--copper); font-size: 0.95rem; margin: 0 0 0.6rem; }

/* Trailer beside the rules of the wager */
.split { display: grid; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
@media (min-width: 52rem) { .split { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); } }
.phone { border-radius: 1.6rem; overflow: hidden; border: 1px solid var(--rule); background: #000; aspect-ratio: 9 / 16; max-width: 20rem; width: 100%; margin-inline: auto; box-shadow: 0 2rem 4rem -1.5rem rgba(0, 0, 0, 0.9), 0 0 4rem -1rem rgba(95, 212, 200, 0.12); }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.4rem; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0 1rem; }
.steps li::before {
  counter-increment: step; content: counter(step, upper-roman);
  font-family: 'Fell SC', serif; color: var(--brass); font-size: 1.3rem; line-height: 1.5; text-align: right;
}
.steps p { margin: 0; color: var(--muted); }
.steps h3 { color: var(--bone); }
.shells { display: inline-flex; gap: 0.3rem; vertical-align: middle; margin-left: 0.35rem; }
.shells i { width: 0.55rem; height: 1.15rem; border-radius: 0.15rem; background: var(--bone); display: inline-block; }
.shells i.live { background: linear-gradient(180deg, var(--live) 0 62%, #4a1410 62% 72%, var(--live) 72%); }

/* Stills */
.stills { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin-top: 2.2rem; }
.stills figure { margin: 0; }
.stills img { border-radius: 1rem; border: 1px solid var(--rule); aspect-ratio: 9 / 16; object-fit: cover; width: 100%; }
.stills figcaption { font-style: italic; color: var(--muted); font-size: 0.98rem; margin-top: 0.6rem; }

/* The manifest of items */
.manifest { display: grid; gap: 0 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); margin-top: 2rem; }
.manifest div { padding: 1rem 0; border-bottom: 1px dashed var(--rule); }
.manifest dt { font-family: 'Fell SC', serif; color: var(--brass); font-size: 1.15rem; letter-spacing: 0.04em; }
.manifest dd { margin: 0.1rem 0 0; color: var(--muted); }

/* Ways to play */
.modes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin-top: 2rem; }
.modes article { background: var(--panel); border: 1px solid var(--rule); border-radius: 1rem; padding: 1.5rem; }
.modes p { color: var(--muted); margin: 0.4rem 0 0; }

/* Footer */
footer { border-top: 1px solid var(--rule); padding: 2.5rem 0 3rem; color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
footer a { color: var(--muted); }
.legal { flex-basis: 100%; font-size: 0.82rem; opacity: 0.8; }

/* Text pages: press kit, privacy, support, join */
.page { padding: 7rem 0 4rem; }
.page h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1.05; margin: 0 0 0.4rem; }
.page h2 { margin-top: 2.6rem; font-size: 1.6rem; }
.page .meta { color: var(--muted); font-style: italic; margin-bottom: 2rem; }
.page ul { padding-left: 1.2rem; }
.page li { margin-bottom: 0.4rem; }
.page table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; font-size: 1rem; }
.page th, .page td { text-align: left; vertical-align: top; padding: 0.55rem 0.8rem 0.55rem 0; border-bottom: 1px solid var(--rule); }
.page th { font-family: 'Fell SC', serif; font-weight: 400; color: var(--brass); white-space: nowrap; letter-spacing: 0.04em; }
.facts { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .facts { grid-template-columns: 18rem 1fr; } .facts > aside { position: sticky; top: 1.5rem; align-self: start; } }
.dl { display: inline-flex; gap: 0.5rem; align-items: center; padding: 0.5rem 0.9rem; border: 1px solid var(--rule); border-radius: 0.6rem; text-decoration: none; margin: 0 0.5rem 0.5rem 0; }
.press-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); }
.press-grid a { display: block; }
.press-grid img { border-radius: 0.6rem; border: 1px solid var(--rule); aspect-ratio: 9 / 19.5; object-fit: cover; width: 100%; }

/* Join with a code */
.code { font-family: 'Fell SC', serif; font-size: clamp(2.6rem, 12vw, 4rem); letter-spacing: 0.3em; color: var(--bone); margin: 1rem 0; padding: 0.4rem 0 0.4rem 0.3em; border: 1px solid var(--rule); border-radius: 1rem; text-align: center; background: var(--panel); }
.button { display: inline-block; padding: 0.8rem 1.5rem; border-radius: 0.8rem; background: linear-gradient(180deg, #e2bb7a, #b98a45); color: #1b120a; text-decoration: none; font-family: 'Fell SC', serif; letter-spacing: 0.08em; font-size: 1.1rem; }
.button:hover { color: #000; }

@media (prefers-reduced-motion: reduce) { video[autoplay] { display: none; } .phone .poster-fallback { display: block; } }
.phone .poster-fallback { display: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
