:root {
  color-scheme: light;
  --paper: #f3eee4;
  --card: #fffaf3;
  --ink: #1b1916;
  --muted: #3a342c;
  --line: #e4d8c6;
  --frame: #16352f;
  --frame-deep: #102821;
  --mist: #d7efe6;
  --copper: #6f3418;
  --focus: #6f3418;
  --max: 72rem;
}

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

html {
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 8vw, 3.35rem);
}

h2 {
  margin: 2rem 0 0.6rem;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
}

p,
li,
dd {
  overflow-wrap: anywhere;
}

p {
  margin: 0 0 0.9rem;
}

a {
  color: var(--copper);
  text-underline-offset: 0.18em;
}

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

:focus {
  outline: none;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 5;
  background: var(--card);
  color: var(--ink);
  padding: 0.65rem 0.9rem;
}

.skip:focus {
  top: 0.75rem;
}

.site-header {
  background: var(--frame);
  color: var(--paper);
  border-bottom: 4px solid var(--copper);
}

.bar,
.wrap,
.status-bar p {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.25rem;
  padding: 0.75rem 0 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  color: var(--paper);
  text-decoration: none;
}

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

.mark {
  width: 32px;
  height: 40px;
  flex: none;
  border: 2px solid var(--mist);
  border-radius: 2px;
  background:
    linear-gradient(var(--mist), var(--mist)) center / 2px 100% no-repeat,
    linear-gradient(var(--mist), var(--mist)) center / 100% 2px no-repeat,
    var(--frame-deep);
  box-shadow: inset 0 0 0 4px var(--frame);
}

.brand-kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
}

.brand-name {
  display: block;
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1;
  color: #fffaf3;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #f3eee4;
  text-decoration: none;
}

.site-header a:hover,
.site-header a[aria-current="page"] {
  color: #fffaf3;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.site-header a:focus-visible,
.site-footer a:focus-visible {
  outline-color: #fffaf3;
}

.status-bar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.status-bar p {
  margin: 0;
  padding: 0.75rem 0;
}

.status-bar strong {
  color: var(--copper);
}

main {
  padding: 1.5rem 0 3rem;
}

.lede {
  font-size: 1.15rem;
  max-width: 40rem;
  color: var(--ink);
}

.hero {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 650;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: var(--copper);
  color: #fffaf3;
  text-decoration: none;
}

.button:hover {
  background: var(--frame);
  color: #fffaf3;
}

.button-quiet {
  background: transparent;
  color: var(--copper);
  box-shadow: inset 0 0 0 1.5px var(--copper);
}

.button-quiet:hover {
  background: var(--card);
  color: var(--ink);
}

.window-art {
  width: min(11rem, 48vw);
  justify-self: start;
}

.panel,
.split,
section {
  margin-top: 0.5rem;
}

.card-grid {
  display: grid;
  gap: 0.8rem;
}

.card,
.note,
.disclosure {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1rem 1rem 0.4rem;
}

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

.card a,
.note a,
.disclosure a {
  color: var(--copper);
}

.note,
.disclosure {
  padding-bottom: 0.8rem;
}

.disclosure {
  border-color: var(--copper);
  box-shadow: inset 4px 0 0 var(--copper);
}

.checklist,
.note ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

.checklist li,
.note li {
  margin: 0.35rem 0;
}

.fact {
  margin: 0 0 1rem;
}

.fact dt {
  margin-top: 0.8rem;
  font-weight: 700;
}

.fact dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.on-page {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin: 0.5rem 0 0.2rem;
}

.on-page a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.end-link {
  margin-top: 2rem;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
}

.site-footer {
  background: var(--frame-deep);
  color: #f3eee4;
  padding: 1.5rem 0 2rem;
}

.site-footer a {
  color: #f3eee4;
}

.footer-status,
.fine {
  max-width: 40rem;
}

.fine {
  color: #d7cbb8;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 0.4rem;
}

@media (min-width: 800px) {
  .hero {
    grid-template-columns: minmax(0, 1.5fr) minmax(8rem, 0.5fr);
  }

  .window-art {
    width: 11rem;
    justify-self: end;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
    gap: 1.25rem;
    align-items: start;
  }

  .bar,
  .status-bar p,
  .wrap {
    width: min(var(--max), calc(100% - 3rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
