:root {
  color-scheme: only light;
  --ink: #090806;
  --charcoal: #15120d;
  --panel: #1d1812;
  --bone: #f4ecdf;
  --muted: rgba(244, 236, 223, .68);
  --paper: #efe3ca;
  --line: rgba(244, 236, 223, .14);
  --amber: #e6a94f;
  --amber-soft: #f4cd88;
  --sage: #94b395;
  --rose: #a45654;
  --radius: 8px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color-scheme: only light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--bone);
  background: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  forced-color-adjust: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  appearance: none;
  -webkit-appearance: none;
  color-scheme: only light;
  font: inherit;
  max-width: 100%;
  -webkit-text-fill-color: currentColor;
  caret-color: var(--amber);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 8, 6, .86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: var(--mono);
  font-weight: 800;
  letter-spacing: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}

.shell {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 78px) 0 72px;
}

.hero,
.split {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(28px, 5vw, 68px);
  align-items: end;
}

.hero > *,
.split > *,
.grid > *,
.article-body > *,
.paper > *,
.panel > *,
.card > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: .76rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 7.2rem);
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.4vw, 4.4rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.8vw, 1.25rem);
}

.hero-media,
.panel,
.card,
.article-body {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--charcoal);
}

.hero-media {
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  min-height: 230px;
  padding: 22px;
}

.card .tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #171008;
  background: var(--amber);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 900;
}

.card h3 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2.4rem);
  font-weight: 400;
  line-height: 1.04;
}

.card p {
  color: var(--muted);
}

.article-body {
  margin-top: 44px;
  padding: clamp(24px, 5vw, 54px);
}

.article-body p,
.article-body li {
  color: rgba(244, 236, 223, .76);
}

.article-body h2 {
  margin-top: 42px;
  font-size: clamp(1.9rem, 3.4vw, 3.4rem);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.note {
  margin-top: 28px;
  padding: 18px;
  border-radius: var(--radius);
  color: #20170f;
  background: var(--paper);
}

.note p {
  margin: 0;
  color: rgba(32, 23, 15, .74);
}

.meta-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(244, 236, 223, .12);
  border-radius: var(--radius);
  background: rgba(244, 236, 223, .12);
}

.meta-list div {
  padding: 16px;
  background: rgba(244, 236, 223, .045);
}

.meta-list span {
  display: block;
  color: var(--muted);
  font-size: .86rem;
}

.meta-list b {
  display: block;
  margin-top: 4px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(244, 236, 223, .18);
  border-radius: 999px;
  color: var(--bone);
  background: rgba(244, 236, 223, .06);
  font-weight: 800;
}

.btn.primary {
  color: #171008;
  background: var(--amber);
  border-color: var(--amber);
}

.paper {
  margin-top: 42px;
  padding: clamp(24px, 5vw, 46px);
  border-radius: var(--radius);
  color: #20170f;
  background: var(--paper);
}

.paper .eyebrow {
  color: #8b5a16;
}

.paper p {
  color: rgba(32, 23, 15, .74);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: only light;
  }

  html,
  body {
    background: var(--ink);
    color: var(--bone);
  }

  .topbar,
  .hero-media,
  .panel,
  .card,
  .article-body {
    background-color: var(--charcoal);
  }

  .paper,
  .note {
    color: #20170f;
    background: var(--paper);
  }

  img,
  picture,
  video {
    filter: none;
  }
}

@media (max-width: 920px) {
  .hero,
  .split,
  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar,
  .nav {
    display: block;
  }

  .nav {
    margin-top: 10px;
  }

  .nav a {
    display: inline-flex;
    margin: 0 12px 8px 0;
  }

  .shell {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.2rem);
    line-height: 1.04;
  }

  .card {
    min-height: auto;
  }
}
