:root {
  color-scheme: light;
  --paper: #fffdf8;
  --ink: #21251f;
  --muted: #55564f;
  --line: #e9e1d3;
  --accent: #ffc480;
  --accent-hover: #ffd49e;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Trebuchet MS", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.65 var(--sans);
}

a { color: inherit; text-underline-offset: .24em; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }

.shell {
  width: min(100% - clamp(2.5rem, 8vw, 8rem), 76rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  z-index: 1;
  inset: .75rem auto auto .75rem;
  background: var(--paper);
  padding: .5rem;
  transform: translateY(-250%);
}
.skip:focus { transform: none; }

.site-header {
  display: flex;
  align-items: center;
  min-height: 5rem;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font: bold 1.65rem/1 var(--serif);
  letter-spacing: -.065em;
  text-decoration: none;
}
.wordmark span { color: #a2491b; }

.hero {
  align-self: center;
  display: grid;
  grid-template-columns: 1.14fr 1fr;
  align-items: center;
  gap: clamp(2.75rem, 6vw, 6.6rem);
  padding-block: clamp(3rem, 8vw, 7.75rem);
}

h1 {
  margin: 0;
  font: normal clamp(2.6rem, 6.5vw, 6.5rem)/.98 var(--serif);
  letter-spacing: -.066em;
  text-wrap: balance;
}
.hero p, .message p {
  max-width: 35rem;
  margin: 1.55rem 0 1.85rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.45vw, 1.3rem);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .85em;
  min-height: 3.4rem;
  border: 1px solid var(--ink);
  border-radius: .3rem;
  padding: .65rem 1.2rem;
  color: var(--ink);
  background: var(--accent);
  font-weight: bold;
  line-height: 1.35;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
}
.button:hover { background: var(--accent-hover); }
.button span { font-size: 1.25em; line-height: 1; }

.hero-art {
  padding: .65rem;
  border: 1px solid var(--line);
  background: #fff7e7;
  box-shadow: .8rem .8rem 0 -1px var(--accent);
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  background: #131c2b;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  row-gap: .8rem;
  padding-block: 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer .wordmark { color: var(--ink); font-size: 1.2rem; }

.message { padding-block: clamp(3rem, 10vw, 8rem); }
.message h1 { max-width: 12ch; font-size: clamp(2.6rem, 7vw, 5rem); }
.legal {
  max-width: 47rem;
  padding-block: clamp(2rem, 7vw, 5rem);
}
.legal header { margin-bottom: 2.5rem; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.65rem); }
.legal h2 {
  margin: 2.2rem 0 .65rem;
  font: normal clamp(1.35rem, 3vw, 1.75rem)/1.25 var(--serif);
  letter-spacing: -.025em;
}
.legal p { margin: .8rem 0; }
.legal ul { padding-inline-start: 1.4rem; }
.legal li + li { margin-top: .4rem; }
.legal code { font-size: 1em; overflow-wrap: anywhere; }

@media (max-width: 48rem) {
  .hero { grid-template-columns: 1fr; gap: 2.75rem; }
  .hero-art { width: min(100% - .75rem, 29rem); }
  .site-header { min-height: 4.2rem; }
}

@media (forced-colors: active) {
  .hero-art, .site-header, .site-footer { border-color: CanvasText; }
  .button { border-color: ButtonText; }
}
