:root {
  --paper: #efe4d2;
  --sheet: #fffaf3;
  --ink: #1b1511;
  --muted: #5c4e44;
  --line: #e0d0bf;
  --red: #c44732;
  --pine: #1e4638;
  --shadow: 0 24px 50px rgba(68, 38, 16, 0.12);
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --display: "Fraunces", "Noto Serif SC", serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(88, 48, 22, 0.045) 0.7px, transparent 0.7px),
    linear-gradient(180deg, rgba(255, 250, 243, 0.55), transparent 28%);
  background-size: 3px 3px, 100% 100%;
}

a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--sheet);
  padding: 8px 12px;
  z-index: 5;
}

.skip:focus { top: 12px; }

.top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  padding: 18px 28px 16px;
  position: sticky;
  top: 0;
  z-index: 3;
  background: color-mix(in srgb, var(--paper) 90%, white);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 1px 0 var(--red);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.seal,
.mini-seal {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--red);
  color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
  transform: rotate(-8deg);
  font-family: var(--serif);
  font-size: 20px;
  font-style: normal;
  background: rgba(196, 71, 50, 0.05);
}

.brand-name { display: grid; line-height: 1.05; }

.brand-name strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.brand-name small,
.eyebrow {
  font-family: var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  font-size: 0.72rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  max-width: 100%;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
}

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

@media (max-width: 900px) {
  .top { padding: 14px 16px 12px; }
  .nav { flex-basis: 100%; justify-content: flex-start; }
}

.prose {
  width: min(760px, calc(100% - 40px));
  margin: 36px auto 72px;
}

.prose h1,
.read-inner h2,
.studio-copy h1,
.editor-panel h1 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.prose h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }

.prose h2,
.read-inner h2,
.read-inner h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
}

.lede { font-size: 1.15rem; max-width: 38em; }

.read-inner {
  width: min(1080px, calc(100% - 40px));
  margin: 12px auto 64px;
}

.read-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin: 20px 0 28px;
}

.read-grid article {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.read-grid h3 { margin: 0 0 6px; font-size: 1.25rem; }

.read-grid a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.foot {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.foot p { margin: 0; }

.foot a { margin-right: 14px; }

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

::selection { background: #f0c2b8; }

@media (max-width: 800px) {
  .top { align-items: flex-start; flex-direction: column; padding: 16px; }
  .read-grid { grid-template-columns: 1fr; }
  .prose { width: min(760px, calc(100% - 32px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
