/* Viking Sats — one stylesheet. Editorial, not a template. */

:root {
  --charcoal: #0E1116;
  --gold: #C9A36A;
  --cream: #F3EEE4;
  --muted: #8A8376;
  --ink: #16141A;
  --gold-line: rgba(201, 163, 106, 0.38);
  --cream-dim: rgba(243, 238, 228, 0.72);
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --display: "Fraunces", "Source Serif 4", Georgia, serif;
  --measure: 38rem;
  --wide: 64rem;
  --pad: clamp(1.25rem, 4vw, 2.25rem);
  --section: clamp(3.25rem, 8vw, 6rem);
}

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

html {
  color-scheme: light;
  hanging-punctuation: first last;
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: var(--charcoal);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  background: var(--gold);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 0.875rem;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

/* ——— Masthead ——— */

.masthead {
  background: var(--charcoal);
  color: var(--cream);
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid rgba(201, 163, 106, 0.18);
}

.masthead__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.9rem var(--pad);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
  min-width: 0;
}

.brand:hover {
  color: var(--gold);
}

.brand__mark {
  width: 1.7rem;
  height: 2.15rem;
  flex-shrink: 0;
}

.brand__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
  color: var(--cream-dim);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--gold);
}

.nav .subscribe {
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.42rem 0.75rem;
  text-decoration: none;
}

.nav .subscribe:hover {
  background: var(--gold);
  color: var(--charcoal);
}

/* ——— Hero ——— */

.hero {
  background: var(--charcoal);
  color: var(--cream);
  text-align: center;
  padding: 3.25rem var(--pad) 4.25rem;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.75rem;
}

.hero .kicker {
  color: var(--muted);
}

.hero__wordmark {
  width: min(100%, 28rem);
  margin: 0 auto 1.75rem;
  background: var(--charcoal);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.55rem, 4.4vw, 2.35rem);
  font-optical-sizing: auto;
  line-height: 1.22;
  letter-spacing: -0.018em;
  max-width: 18ch;
  margin: 0 auto 2rem;
  color: var(--cream);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  line-height: 1;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.btn--solid {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}

.btn--solid:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--charcoal);
}

.btn--line {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn--line:hover {
  background: var(--gold);
  color: var(--charcoal);
}

.btn--ink {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}

.btn--ink:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal);
}

.hero__rule {
  width: 3rem;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 2.5rem auto 1.15rem;
}

.hero__note {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* ——— Page frame ——— */

.pagehead {
  background: var(--charcoal);
  color: var(--cream);
  padding: 2.75rem 0 3rem;
}

.bound {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.pagehead .kicker {
  margin-bottom: 0.85rem;
}

.pagehead h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  max-width: var(--measure);
}

.pagehead .lede {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--cream-dim);
  max-width: 36rem;
  margin: 1rem 0 0;
}

.shell {
  max-width: var(--wide);
  margin: 0 auto;
  padding: var(--section) var(--pad);
}

.measure {
  max-width: var(--measure);
}

/* ——— Is / is not ——— */

.distinction {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 0.5rem;
}

.distinction h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.85rem;
}

.distinction p {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink);
}

.distinction .not p {
  color: var(--ink);
}

.distinction ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.distinction li {
  position: relative;
  padding-left: 1.15rem;
  margin: 0 0 0.65rem;
  font-size: 1.12rem;
  line-height: 1.45;
}

.distinction li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.distinction li:last-child {
  margin-bottom: 0;
}

/* ——— Issue card ——— */

.folio {
  border-top: 1px solid var(--gold-line);
}

.folio h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.75rem;
}

.issue {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--charcoal);
  padding: 1.75rem 1.35rem 1.6rem;
  overflow: hidden;
  background: var(--cream);
  max-width: 42rem;
  transition: border-color 0.12s ease;
}

.issue:hover {
  color: inherit;
  border-color: var(--gold);
}

.issue__index {
  position: absolute;
  right: 0.4rem;
  top: -0.55rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(5.5rem, 18vw, 8.5rem);
  line-height: 0.8;
  color: var(--gold);
  opacity: 0.18;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}

.issue__meta {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.7rem;
  position: relative;
}

.issue__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.65rem, 3.4vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.9rem;
  position: relative;
  max-width: 16ch;
}

.issue__tease {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.55;
}

.issue__go {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
}

.issue:hover .issue__go {
  color: var(--charcoal);
}

/* ——— Close / about body ——— */

.invitation {
  border-top: 1px solid var(--gold-line);
  text-align: center;
}

.invitation p {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  line-height: 1.4;
  font-weight: 400;
  max-width: 28rem;
  margin: 0 auto 1.5rem;
  letter-spacing: -0.015em;
}

.prose p {
  margin: 0 0 1.15rem;
  font-size: 1.125rem;
  line-height: 1.7;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose .btn {
  margin-top: 0.5rem;
}

.pull {
  border-left: 2px solid var(--gold);
  margin: 2rem 0;
  padding: 0.15rem 0 0.15rem 1.25rem;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--charcoal);
}

.publisher {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gold-line);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ——— Archive list ——— */

.archive {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--charcoal);
}

.archive li {
  border-bottom: 1px solid var(--charcoal);
}

.archive a {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 0.75rem 1rem;
  align-items: baseline;
  padding: 1.35rem 0;
  text-decoration: none;
}

.archive a:hover .archive__title {
  color: var(--gold);
}

.archive__num {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.archive__title {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.archive__date {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  grid-column: 2;
}

.archive a:hover {
  color: inherit;
}

/* ——— Footer ——— */

.colophon {
  background: var(--charcoal);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1.55;
  padding: 1.75rem 0 2rem;
  border-top: 1px solid transparent;
}

.colophon__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.colophon p {
  margin: 0;
}

.colophon a {
  color: var(--gold);
  text-decoration: none;
}

.colophon a:hover {
  text-decoration: underline;
}

.colophon strong {
  color: var(--cream-dim);
  font-weight: 500;
}

/* ——— Breakpoints ——— */

@media (min-width: 640px) {
  body {
    font-size: 1.125rem;
  }

  .hero {
    padding: 4.5rem var(--pad) 5.25rem;
  }

  .distinction {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    position: relative;
  }

  .distinction::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0.2rem;
    bottom: 0.2rem;
    width: 1px;
    background: var(--gold-line);
  }

  .issue {
    padding: 2.25rem 2.25rem 2rem;
  }

  .archive a {
    grid-template-columns: 4rem 1fr auto;
    align-items: center;
  }

  .archive__date {
    grid-column: auto;
  }

  .colophon__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
  }
}

@media (min-width: 900px) {
  .nav ul {
    gap: 0.2rem 1.6rem;
  }

  .hero__wordmark {
    width: 32rem;
  }
}

@media (max-width: 419px) {
  .nav ul {
    gap: 0.15rem 0.7rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .nav .subscribe {
    padding: 0.38rem 0.55rem;
  }

  .brand__name {
    letter-spacing: 0.06em;
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  a,
  .btn,
  .issue {
    transition: none;
  }
}

@media print {
  .skip,
  .nav,
  .actions,
  .btn {
    display: none !important;
  }

  body,
  .masthead,
  .hero,
  .pagehead,
  .colophon {
    background: #fff;
    color: #000;
  }

  .masthead,
  .hero,
  .pagehead,
  .colophon {
    border: 0;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}
