:root {
  --bg: #0e0d0c;
  --bg-deep: #161412;
  --ink: #f3efe6;
  --muted: #c2b9ac;
  --accent: #d31f1a;
  --accent-dark: #9c1612;
  --gold: #d4a84b;
  --gold-dim: #9a7a2e;
  --card: #191714;
  --line: #2f2b26;
  --placeholder: #241c12;
  --placeholder-line: #d4a84b;
  --max: 68rem;
  --measure: 42rem;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Oswald", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -10%, #221c18 0%, transparent 60%),
    repeating-linear-gradient(
      -45deg,
      transparent 0 11px,
      rgba(255, 255, 255, 0.015) 11px 12px
    );
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--gold); }
a:hover { color: #f0d48a; }
a:focus-visible, button:focus-visible, .card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
img { max-width: 100%; height: auto; display: block; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--bg);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  z-index: 30;
  border: 2px solid var(--gold);
}

.site-header {
  background: #0a0908;
  border-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header::after {
  content: "";
  display: block;
  height: 10px;
  background:
    linear-gradient(var(--accent), var(--accent-dark)) 0 0 / 100% 3px no-repeat,
    linear-gradient(#e8e0d4, #cfc6b8) 0 4px / 100% 2px no-repeat,
    linear-gradient(var(--gold), var(--gold-dim)) 0 8px / 100% 2px no-repeat;
  background-color: #0a0908;
}
.header-inner, .footer-inner, .wrap, .hero-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.wordmark:hover { color: var(--gold); }
.corner-mark {
  width: 1.15rem;
  height: 1.15rem;
  background: var(--accent);
  box-shadow: 3px -3px 0 0 var(--gold);
  display: inline-block;
  flex-shrink: 0;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.15rem;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
nav a:hover,
nav a[aria-current="page"] {
  color: var(--gold);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(22rem, 68vw, 32rem);
  overflow: hidden;
  background: #070706;
  border-bottom: 0;
  padding: 0;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.92) 0%, rgba(8, 7, 6, 0.62) 48%, rgba(8, 7, 6, 0.28) 100%),
    linear-gradient(180deg, rgba(8, 7, 6, 0.2) 0%, rgba(8, 7, 6, 0.82) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 10px,
    #0a0908 10px 20px
  );
  z-index: 2;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 4.25rem 0 3.25rem;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 0.75rem;
}
.hero h1, .page-head h1, .article h1 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(2.05rem, 6.4vw, 3.55rem);
  max-width: 14ch;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.lede {
  font-size: 1.2rem;
  max-width: 40rem;
  color: #e4ddd0;
  margin: 0;
}

.wrap { padding: 2.5rem 0 4rem; flex: 1; }
.page-head { margin-bottom: 1.75rem; max-width: var(--measure); }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
.meta { color: var(--muted); font-size: 0.95rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 0 1.35rem;
  text-decoration: none;
  color: inherit;
  display: block;
  overflow: hidden;
  box-shadow: inset 4px 0 0 var(--accent);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.card:hover {
  border-color: var(--gold);
  box-shadow: inset 4px 0 0 var(--gold), 0 10px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
  color: inherit;
}
.card-media {
  height: 9.5rem;
  overflow: hidden;
  background: #111;
  margin-bottom: 1.1rem;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.card:hover .card-media img { transform: scale(1.05); }
.card h2 {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 1.25rem 0.45rem;
  letter-spacing: 0.02em;
}
.card p { margin: 0 1.25rem; color: var(--muted); font-size: 1rem; }
.card .tag {
  font-family: var(--display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--gold);
  margin: 0 1.25rem 0.4rem;
}

.article { max-width: var(--measure); }
.article-hero {
  margin: 0 0 1.75rem;
  max-width: none;
}
.article-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.page-banner {
  margin: 0 0 1.75rem;
  max-width: none;
}
.page-banner img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  object-position: center 60%;
  border: 1px solid var(--line);
}
.article h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 2.1rem 0 0.7rem;
}
.article h3 {
  margin: 1.5rem 0 0.5rem;
  font-family: var(--display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.article p, .article li { max-width: 65ch; }
.article ul, .article ol { padding-left: 1.25rem; }
.article li { margin: 0.35rem 0; }
.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  margin: 1rem 0 1.25rem;
  background: var(--card);
}
.article th, .article td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.article th {
  background: #241c16;
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.note, .disclaimer {
  background: var(--bg-deep);
  border-left: 4px solid var(--accent);
  padding: 0.9rem 1rem;
  margin: 1.25rem 0;
}
.sources {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 3px solid var(--accent);
  box-shadow: inset 0 3px 0 var(--gold);
  font-size: 0.98rem;
}
.sources h2 { margin-top: 0.6rem; }
.sources ol { padding-left: 1.2rem; }
.sources li { margin: 0.4rem 0; }

.aff {
  background: var(--placeholder);
  border: 1px solid var(--placeholder-line);
  border-left: 4px solid var(--gold);
  padding: 0.9rem 1rem;
  margin: 1.25rem 0;
}
.aff strong { display: block; margin-bottom: 0.25rem; color: var(--gold); }
.aff code {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  word-break: break-word;
  color: #e8e0d4;
}

.legal { max-width: var(--measure); }
.legal h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 2rem 0 0.6rem;
}

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.15rem;
  border: 0;
  box-shadow: 4px 4px 0 var(--gold);
}
.btn:hover {
  background: #ef2a24;
  color: #fff;
}

.site-footer {
  border-top: 0;
  background: #0a0908;
  padding: 1.7rem 0 2rem;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: auto;
  position: relative;
}
.site-footer::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 10px;
  background:
    linear-gradient(var(--accent), var(--accent-dark)) 0 0 / 100% 3px no-repeat,
    linear-gradient(#e8e0d4, #cfc6b8) 0 4px / 100% 2px no-repeat,
    linear-gradient(var(--gold), var(--gold-dim)) 0 8px / 100% 2px no-repeat;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: space-between;
  padding-top: 0.6rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-links a:hover { color: var(--gold); }

@media (max-width: 640px) {
  body { font-size: 1.06rem; }
  .hero {
    min-height: 22rem;
    align-items: flex-end;
  }
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(8, 7, 6, 0.25) 0%, rgba(8, 7, 6, 0.72) 48%, rgba(8, 7, 6, 0.94) 100%);
  }
  .hero-inner { padding: 2.4rem 0 2.2rem; }
  .hero h1 { max-width: 12ch; }
  .card-media { height: 8.25rem; }
  .page-banner img { height: 8.5rem; }
  .header-inner { padding: 0.7rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card-media img { transition: none; }
  .card:hover { transform: none; }
  .card:hover .card-media img { transform: none; }
}

.routine {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: inset 4px 0 0 var(--accent);
  padding: 1.25rem 1.3rem 1.4rem;
  margin: 1.75rem 0;
}
.routine h2 {
  margin-top: 0;
}
.routine-meta {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.routine h3 {
  margin-top: 1.1rem;
}
