/* Absolom — skinned after the 2012 Mortalis design (assets in ../webdesign). */

@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/cinzel-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/cinzel-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1EFF, U+2020,
                 U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ground: #0d0907;
  --panel: #17110d;
  --panel-lit: #1f1711;
  --edge: #3a2c21;
  --edge-lit: #55402d;
  --gold: #c8a24a;
  --gold-lit: #e7c778;
  --gold-dim: #8a6d2f;
  --ink: #cfc3ac;
  --ink-dim: #94886f;
  --radius: 3px;
  --display: "Cinzel", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 15px/1.65 "Segoe UI", Roboto, -apple-system, system-ui, sans-serif;
}

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin: 0;
}

a { color: var(--gold-lit); }
code {
  font-family: Consolas, "SF Mono", monospace;
  font-size: 0.9em;
  color: var(--gold-lit);
}
strong { color: #e4d9c2; }

/* --- masthead ------------------------------------------------------------ */

.masthead {
  background: var(--ground) url("/img/banner.jpg") center top no-repeat;
  background-size: 1920px auto;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem 5rem;
}

/* The art puts its figure right of centre, where the old wordmark sat left of
   it; 186px is that offset in the 1920-wide plate. */
.crest {
  max-width: 34rem;
  margin-right: min(372px, 24vw);
}

.wordmark a {
  color: inherit;
  text-decoration: none;
  outline: none;
}

.wordmark {
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e9c76d;
  text-shadow: 0 0 28px rgba(0, 0, 0, 0.95), 0 2px 3px rgba(0, 0, 0, 0.9);
}

.tagline {
  margin: 0.6rem 0 0;
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b8a583;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
}

/* --- the slab the page sits on ------------------------------------------- */

.page {
  max-width: 62rem;
  margin: -6rem auto 0;
  padding: 2.5rem clamp(1rem, 4vw, 3rem) 3.5rem;
  position: relative;
  background:
    linear-gradient(180deg, rgba(38, 27, 20, 0.55), rgba(11, 8, 6, 0.72)),
    var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.75) inset, 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* The grunge the original dusts everything with, kept faint. */
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/img/texture.jpg") repeat;
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
  border-radius: var(--radius);
}

.page > * { position: relative; }

.intro { text-align: center; padding-bottom: 2.5rem; }
.intro h2 {
  font-size: 1.1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #d9c48e;
}
.intro p {
  margin: 0.9rem auto 0;
  max-width: 34rem;
  color: var(--ink-dim);
}

/* --- steps --------------------------------------------------------------- */

.step, .panel {
  background: linear-gradient(180deg, var(--panel-lit), #120d09);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 1.6rem clamp(1rem, 3vw, 2rem) 1.8rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6) inset;
}

.step + .panel, .panel + .panel { margin-top: 2.5rem; }

.step-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(90, 68, 45, 0.45);
}

.step-icon { flex: none; }

.step h3 {
  font-size: 1.15rem;
  letter-spacing: 0.1em;
}

.step p, .panel p { margin: 0 0 1.2rem; color: var(--ink-dim); }
.step p:last-child { margin-bottom: 0; }

.flow {
  text-align: center;
  padding: 0.9rem 0;
  line-height: 0;
}
.flow img { opacity: 0.9; }

/* --- panels and facts ---------------------------------------------------- */

.panel h2 {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  color: #d9c48e;
}

.facts { margin: 0; }
.facts dt {
  margin-top: 1rem;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 0.3rem 0 0; color: var(--ink-dim); }

/* --- the download block -------------------------------------------------- */

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.downloads .download { flex: 1 1 14rem; margin-bottom: 0; }

.download {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(180deg, #2a1f16, #170f0a);
  border: 1px solid var(--edge-lit);
  border-radius: var(--radius);
  color: var(--gold-lit);
  transition: border-color 0.15s, background 0.15s;
}
.download:hover, .download:focus-visible {
  background: linear-gradient(180deg, #33271b, #1c130c);
  border-color: var(--gold-dim);
}

.download-title {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.download-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--ink-dim);
}

.download-off {
  opacity: 0.55;
  cursor: not-allowed;
}

/* --- forms --------------------------------------------------------------- */

.field { margin: 0 0 1.1rem; }

label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: #0b0806;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
}
input:focus { border-color: var(--gold-dim); outline: none; }

input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #7d7260;
}

.captcha {
  display: block;
  /* A block image ignores the centring its text siblings get. */
  margin: 0 auto 0.7rem;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  max-width: 100%;
  height: auto;
}

.field-captcha { text-align: center; }
.field-captcha input {
  max-width: 14rem;
  margin: 0 auto;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
}

/* The honeypot must stay reachable to a bot and invisible to a person. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.actions { margin: 1.5rem 0 0; text-align: center; }

button {
  padding: 0.7rem 2.2rem;
  background: linear-gradient(180deg, var(--gold-lit), #a97f22);
  border: 1px solid #6d5218;
  border-radius: var(--radius);
  color: #1a1206;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
button:hover { background: linear-gradient(180deg, #f3d68d, #bb8f2a); }

.gate { text-align: center; }

/* --- notices ------------------------------------------------------------- */

.banner {
  margin: 0 0 2rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--edge-lit);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(45, 32, 20, 0.55);
}
.banner-error { border-left-color: #b5482f; }
.banner-ok { border-left-color: #5d8f3f; }
.banner p { margin: 0; }
.banner strong { color: var(--gold-lit); }

/* --- footer -------------------------------------------------------------- */

footer {
  position: relative;
  margin-top: 5rem;
  padding: 12rem 1rem 3.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #6f6453;
}

footer .band {
  position: absolute;
  top: 5rem;
  left: 0;
  right: 0;
  height: 60px;
  background: url("/img/footer-band.png") repeat-x center;
  border-top: 1px solid rgba(120, 90, 60, 0.35);
}

footer .helm {
  position: absolute;
  /* The plate has the band 66px down inside this crop; line the two up so the
     helm straddles it the way it does in the original. */
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

footer p { position: relative; margin: 0; }

@media (max-width: 40rem) {
  .masthead { min-height: 240px; background-size: cover; padding-bottom: 4rem; }
  .crest { margin-right: 0; }
  .page { margin-top: -4.5rem; border-left: none; border-right: none; }
  .step-head { gap: 0.6rem; }
}
