/* Sourcebourne landing page.
   Palette comes from the world: the airless dusk over the Reach, its pale
   layered rock, the charcoal of the House crests, and Faraday amber. */
:root {
  --sky: #17212b;
  --sky-line: rgba(223, 224, 219, .22);
  --sky-text: #dfe0db;
  --sky-dim: #9aa5ab;
  --stone: #dfe0db;
  --stone-light: #eeefeb;
  --strata: #b9bbb3;
  --ink: #26292b;
  --ink-soft: #50565a;
  --amber: #ffb600;
  --amber-ink: #7a5600;

  --serif: "Spectral", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--serif);
}
p { margin: 0 0 1.1em; }
a { color: inherit; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2.5rem, 36rem); }

/* ---------- Sky: wordmark, pitch, record ---------- */
.sky { background: var(--sky); color: var(--sky-text); position: relative; padding-top: 1.75rem; }

.wordmark {
  font: 600 .95rem/1 var(--sans);
  font-stretch: 125%;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

h1 {
  font: 300 clamp(2.9rem, 8.2vw, 5.6rem)/.98 var(--serif);
  letter-spacing: -.02em;
  margin: 0 0 1.25rem;
}
.series { font: 500 .95rem/1.4 var(--sans); color: var(--sky-dim); margin-bottom: 1.5rem; }
.logline { max-width: 34rem; font-size: 1.2rem; line-height: 1.6; margin-bottom: 2rem; }

/* Signup: the form itself is rendered by the EmailOctopus script. These
   rules restyle its fields and button for the dark sky; !important is needed
   because its stylesheet loads after this one. */
.signup { max-width: 30rem; }
.signup .emailoctopus-form-wrapper,
.signup .form-container,
.signup .inline-container { background: transparent !important; padding: 0 !important; margin: 0 !important; max-width: none !important; }
.signup .form-control {
  font: 400 1.05rem/1.2 var(--serif) !important;
  color: var(--sky-text) !important;
  background: transparent !important;
  border: 1px solid var(--sky-dim) !important;
  border-radius: 2px !important;
  padding: .8rem .9rem !important;
  height: auto !important;
}
.signup .form-control::placeholder { color: #71808a !important; }
.signup .btn-primary {
  font: 600 .95rem/1 var(--sans) !important;
  color: var(--sky) !important;
  background: var(--amber) !important;
  border: 0 !important;
  border-radius: 2px !important;
  padding: .9rem 1.25rem !important;
  cursor: pointer;
}
.signup .btn-primary:hover { background: #ffc633 !important; }
.signup .emailoctopus-success-message,
.signup .emailoctopus-error-message { font: 400 .95rem/1.45 var(--sans); color: var(--sky-text) !important; }
.signup-note { font: 400 .85rem/1.45 var(--sans); color: var(--sky-dim); margin: .7rem 0 0; }

/* The record: a ledger, not a card. Rules separate fields. */
.record { margin: .6rem 0 0; border-top: 2px solid var(--sky-text); }
.record > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--sky-line);
}
.record dt { font: 500 .8rem/1.9 var(--sans); color: var(--sky-dim); }
.record dd { margin: 0; font-size: 1.1rem; line-height: 1.45; }
.record > .record-title { grid-template-columns: minmax(0, 1fr) auto; }
.record-title dt, .record-title dd { font: 600 .8rem/1.9 var(--sans); font-stretch: 112%; color: var(--sky-text); }
.record-title dd { text-align: right; color: var(--sky-dim); font-weight: 500; }
.record-formula dd { font-style: italic; }
.record .record-status { border-bottom: 2px solid var(--sky-text); padding: .9rem 0 1rem; }
.record-status dt { line-height: 2.6; }
.record-status dd { font: 600 1.5rem/1.3 var(--sans); font-stretch: 112%; }
.record-status s { color: var(--sky-dim); font-weight: 400; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.record-status strong { color: var(--amber); font-weight: 700; margin-left: .35em; }

/* The page's one moment of motion: the record is amended. */
@media (prefers-reduced-motion: no-preference) {
  .record-status s { text-decoration-color: transparent; animation: strike .5s 1.1s ease-out forwards; }
  .record-status strong { opacity: 0; animation: amend .7s 1.7s ease-out forwards; }
}
@keyframes strike { to { text-decoration-color: var(--amber); } }
@keyframes amend { from { opacity: 0; letter-spacing: .3em; } to { opacity: 1; letter-spacing: 0; } }

.horizon { display: block; width: 100%; height: clamp(70px, 11vw, 150px); margin-bottom: -1px; }

/* ---------- Stone: blurb ---------- */
.blurb { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.blurb p { font-size: 1.2rem; }
.motto { font-style: italic; color: var(--ink-soft); }
.blurb .turn { font: 300 clamp(2.2rem, 6vw, 3.4rem)/1.1 var(--serif); letter-spacing: -.015em; margin: 1.4em 0 .9em; }

/* ---------- Houses ---------- */
.houses { background: var(--stone-light); border-top: 1px solid var(--strata); border-bottom: 1px solid var(--strata); padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
h2 { font: 400 clamp(1.8rem, 4vw, 2.5rem)/1.15 var(--serif); letter-spacing: -.01em; margin: 0 0 .9rem; }
.houses-intro { max-width: 38rem; color: var(--ink-soft); margin-bottom: 2.75rem; }
.crests { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.crests img { display: block; height: 7.5rem; width: auto; max-width: 100%; object-fit: contain; object-position: left bottom; margin-bottom: 1rem; }
h3 { font: 600 1.05rem/1.2 var(--sans); font-stretch: 112%; margin: 0 0 .3rem; }
.crests p { font: 400 .9rem/1.45 var(--sans); color: var(--ink-soft); margin: 0; }

/* ---------- Footer ---------- */
footer { padding: 3rem 0 3.5rem; }
footer p { margin: 0 0 .5rem; }
footer a { text-decoration-color: var(--amber-ink); text-decoration-thickness: 2px; }
.fine { font: 400 .8rem/1.4 var(--sans); color: var(--ink-soft); }

/* ---------- Small screens ---------- */
@media (max-width: 52rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .crests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 26rem) {
  .record > div { grid-template-columns: 5rem minmax(0, 1fr); }
}
