/* Aesirbard teaser page (decision 048). The approved key art with the
   approved logo laid over it, a line of mood and the calls to action.
   System fonts only; no remote resources. Focus and hover brighten the
   control and add a soft white-blue glow; never a yellow or gold outline
   box (decision 046). */

:root {
  --ink-0: #06090e;
  --ink-1: #0a0f16;
  --edge: #2b3d54;
  --ley-core: #f4fcff;
  --ley-ice: #9deaff;
  --text: #e4ebf2;
  --text-muted: #a8b7c7;
  --text-dim: #8395a8;
  --serif:
    'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia,
    serif;
  --sans:
    system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ink-0);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  outline: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Skip link: hidden until focused. */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--ley-core);
  color: var(--ink-0);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
  outline: none;
  box-shadow: 0 0 18px rgb(157 234 255 / 0.6);
}

/* Hero: the key art, with the logo laid over its dark sky at 85% of the
   width, as the creator approved (M1.6). */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-0);
}
.hero__art img {
  width: 100%;
  height: min(56.25vw, 74svh);
  object-fit: cover;
  object-position: 50% 62%;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background: linear-gradient(to bottom, rgb(6 9 14 / 0), var(--ink-0));
  pointer-events: none;
}
.hero__logo {
  position: absolute;
  top: 7%;
  left: 50%;
  width: min(85%, 1400px);
  margin: 0;
  transform: translateX(-50%);
  filter: drop-shadow(0 6px 14px rgb(0 0 0 / 0.7));
}
.hero__logo img {
  width: 100%;
}

/* Mood and calls to action. */
.teaser {
  padding: 8px 16px 56px;
  text-align: center;
}
.teaser--page {
  padding-top: 18svh;
}
.teaser__mood {
  margin: 0 auto;
  max-width: 34ch;
  font: italic 400 clamp(1.3rem, 2.6vw, 1.85rem) / 1.4 var(--serif);
  text-wrap: balance;
}
.teaser__sub {
  margin: 12px auto 0;
  max-width: 62ch;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-wrap: balance;
}
.teaser__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--edge);
  border-radius: 6px;
  background: var(--ink-1);
  color: var(--text);
  font: 600 1rem var(--sans);
  text-decoration: none;
  transition:
    filter 0.15s ease,
    box-shadow 0.15s ease;
}
/* An outline button in the ward's white-blue, as the creator asked (M1.9):
   "I think it would work better as an outline button." */
.button--primary {
  border: 2px solid var(--ley-ice);
  background: transparent;
  color: var(--ley-core);
}
.button:hover,
.button:focus-visible {
  outline: none;
  filter: brightness(1.18);
  background: rgb(157 234 255 / 0.08);
  box-shadow:
    0 0 0 3px rgb(157 234 255 / 0.25),
    0 0 24px rgb(157 234 255 / 0.6);
}

.site-footer {
  padding: 20px 16px 28px;
  border-top: 1px solid var(--edge);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.site-footer p {
  margin: 0;
}
.site-footer a {
  color: var(--text-muted);
  text-underline-offset: 3px;
}
.site-footer a:hover,
.site-footer a:focus-visible {
  outline: none;
  color: var(--ley-core);
  text-shadow: 0 0 12px rgb(157 234 255 / 0.6);
}
.site-footer__status {
  margin-top: 4px;
}

/* Portrait screens (phones, tablets held upright): a taller crop that keeps
   the figure and the ward in view, and a wider logo. */
@media (orientation: portrait) {
  .hero__art img {
    height: min(125vw, 70svh);
    object-position: 52% 60%;
  }
  .hero__logo {
    top: 6%;
    width: 92%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
