:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --ink: #1c1915;
  --muted: #5c564c;
  --line: rgba(28, 25, 21, 0.14);
  --pine: #2c3f36;
  --glow: #c9a36a;
  --ad-blue: #0018a8;
  --ad-yellow: #fedf00;
  --ad-red: #d52b1e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: "Segoe UI", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(201, 163, 106, 0.22), transparent 52%),
    radial-gradient(circle at 12% 78%, rgba(201, 163, 106, 0.08) 0 1.1px, transparent 1.7px),
    radial-gradient(circle at 88% 24%, rgba(201, 163, 106, 0.1) 0 1px, transparent 1.6px);
}

a {
  color: var(--pine);
  text-underline-offset: 3px;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.cursor-light {
  --lx: 12%;
  --ly: 0%;
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(244, 239, 230, 0.34);
  -webkit-mask-image: radial-gradient(
    38rem 38rem at var(--lx) var(--ly),
    transparent 0%,
    transparent 16%,
    rgba(0, 0, 0, 0.55) 48%,
    #000 76%
  );
  mask-image: radial-gradient(
    38rem 38rem at var(--lx) var(--ly),
    transparent 0%,
    transparent 16%,
    rgba(0, 0, 0, 0.55) 48%,
    #000 76%
  );
}

@media (max-width: 720px), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-light {
    background: rgba(244, 239, 230, 0.22);
    -webkit-mask-image: radial-gradient(
      42rem 32rem at 0% 0%,
      transparent 0%,
      rgba(0, 0, 0, 0.28) 40%,
      #000 82%
    );
    mask-image: radial-gradient(
      42rem 32rem at 0% 0%,
      transparent 0%,
      rgba(0, 0, 0, 0.28) 40%,
      #000 82%
    );
  }
}

.site-header,
main {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  max-width: 36rem;
  margin: 0 auto;
  padding: 0.75rem 1.4rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.15rem 0 1.05rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
}

.brand-mark line {
  stroke: var(--glow);
  stroke-width: 1.35;
}

.brand-mark .n-y {
  fill: var(--ad-yellow);
}

.brand-mark .n-b {
  fill: var(--ad-blue);
}

.brand-mark .n-r {
  fill: var(--ad-red);
}

.stage {
  margin: 0 0 0.05rem;
  display: flex;
  justify-content: center;
}

.stage svg {
  width: min(100%, 22rem);
  height: auto;
  overflow: visible;
  touch-action: pan-y;
}

@media (prefers-reduced-motion: no-preference) {
  #mark-stage:not([data-ready="1"]) {
    visibility: hidden;
  }
}

.stage path {
  fill: none;
  stroke-linecap: round;
}

.stage .mark-dot {
  fill: var(--glow);
  stroke: var(--paper);
  stroke-width: 1.15;
}

.discs .n-y {
  fill: url(#enamel-y);
  stroke: none;
}

.discs .n-b {
  fill: url(#enamel-b);
  stroke: none;
}

.discs .n-r {
  fill: url(#enamel-r);
  stroke: none;
}

.brand-word {
  font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-ai {
  font-weight: 700;
}

.langs {
  display: flex;
  gap: 0.1rem;
}

.langs button {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.55rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  cursor: pointer;
}

.langs button[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--ink);
}

main {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0.15rem 1.4rem 4.5rem;
}

.entry {
  max-width: none;
}

.kicker {
  margin: 0 0 0.4rem;
  font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  font-style: italic;
  color: #9a7340;
}

.mission {
  font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.65rem, 3.6vw, 2.18rem);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.025em;
  margin: 0 0 1.55rem;
}

.doors {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.doors > div {
  margin: 0;
  padding: 0.9rem 0 0.9rem 1.05rem;
  border-left: 2px solid rgba(154, 115, 64, 0.78);
}

.doors a {
  color: var(--ink);
  text-decoration-color: rgba(154, 115, 64, 0.9);
  text-decoration-thickness: 1px;
}

.doors a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

.doors dt {
  font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-size: 1.16rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
}

.doors dd {
  margin: 0;
  color: #3f3a33;
}

@media (max-width: 480px) {
  .site-header,
  main {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .mission {
    max-width: none;
  }
}
