:root {
  --spruce: #143027;
  --spruce-2: #1e4638;
  --ice: #e4eef2;
  --paper: #f3e6c4;
  --ink: #1a2420;
  --berry: #8e2436;
  --foil: #a6843d;
  --line: #c9b48a;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, #f7f1df 0 18%, transparent 40%),
    linear-gradient(180deg, var(--ice), #f7f4ee 28rem);
  color: var(--ink);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.55;
}

a { color: var(--berry); }
a:hover { color: var(--spruce); }

.skip {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: var(--paper);
  padding: 0.4rem 0.7rem;
}
.skip:focus { top: 0.5rem; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  background:
    radial-gradient(circle at 90% 0%, #2a5a48 0 12%, transparent 36%),
    var(--spruce);
  color: var(--paper);
  padding: 0.9rem 6vw;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--paper);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.35rem;
  background:
    linear-gradient(#8e2436, #8e2436) center 30% / 0.35rem 0.7rem no-repeat,
    linear-gradient(#8e2436, #8e2436) center 30% / 0.7rem 0.35rem no-repeat,
    #f3e6c4;
  box-shadow: inset 0 0 0 2px #a6843d;
}
.brand:hover { color: white; }

.brand-fact {
  margin: 0;
  color: #d5e4dc;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.92rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-left: auto;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.95rem;
}
.nav a { color: var(--paper); text-decoration: none; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--foil); }

.header-cta {
  color: var(--spruce);
  background: var(--paper);
  text-decoration: none;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.95rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}
.header-cta:hover { color: var(--berry); }

main {
  width: min(74rem, calc(100% - 8vw));
  margin: 1.5rem auto 3rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0.2rem 0 0.8rem;
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.2;
  margin: 2rem 0 0.6rem;
  max-width: 28ch;
}

h3 { margin: 1.1rem 0 0.3rem; font-size: 1.2rem; }

.answer {
  font-size: 1.2rem;
  max-width: 62ch;
  background: var(--paper);
  border-left: 8px solid var(--foil);
  padding: 0.9rem 1rem 1rem;
  margin: 0 0 0.8rem;
}

.updated, .site-footer time { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.85rem; color: #3d4a44; }

.crumbs { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.9rem; }

.notice {
  background: #e7f2ea;
  border: 1px solid var(--spruce);
  padding: 0.7rem 0.9rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; align-items: center; margin: 0.4rem 0 1.2rem; }
.button, button {
  justify-self: start;
  background: var(--berry);
  color: #fff8ef;
  border: 0;
  padding: 0.8rem 1.15rem;
  cursor: pointer;
  text-decoration: none;
  font-family: ui-sans-serif, system-ui, sans-serif;
  border-radius: 999px;
}
.button:hover, button:hover { background: #6e1b2a; color: white; }
.quiet { font-family: ui-sans-serif, system-ui, sans-serif; }

.facts, .steps, .scenes { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; max-width: none; }
.facts li, .steps li {
  background: white;
  border: 1px solid var(--line);
  padding: 0.85rem 0.95rem;
  max-width: none;
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; counter-reset: step; }
.steps li { position: relative; padding-top: 2rem; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0.7rem;
  left: 0.95rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  color: var(--berry);
}
.scenes { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: none; }
.scenes a {
  display: inline-block;
  text-decoration: none;
  background: var(--spruce);
  color: var(--paper);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.95rem;
}
.scenes a:hover { background: var(--berry); color: white; }

.gallery { margin-top: 1.5rem; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gallery figure { margin: 0; background: white; border: 1px solid var(--line); padding: 0.6rem; }
.gallery figcaption {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.95rem;
  margin-top: 0.45rem;
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.pair span {
  display: block;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--berry);
  margin-bottom: 0.25rem;
}
.pair img, form, .table-wrap { background: white; }
.pair img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }

form {
  display: grid;
  gap: 0.85rem;
  max-width: 38rem;
  padding: 1rem;
  border: 1px solid var(--line);
  margin: 1rem 0 1.5rem;
}
label { display: grid; gap: 0.3rem; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.95rem; }
label.check { grid-template-columns: auto 1fr; align-items: start; }
input, select, textarea, button { font: inherit; }
input, select, textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--spruce);
  background: #fffdf8;
  color: var(--ink);
}
textarea { min-height: 8rem; }
button {
  justify-self: start;
}
.hint { margin: 0; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.92rem; color: #314039; }
#form-error:empty { display: none; }
#form-error { color: var(--berry); font-family: ui-sans-serif, system-ui, sans-serif; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 60rem; font-size: 0.98rem; }
th, td { border-bottom: 1px solid var(--line); padding: 0.7rem 0.75rem; vertical-align: top; text-align: left; }
thead th { background: var(--spruce); color: var(--paper); font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 600; }
tbody th { width: 12rem; }
caption { caption-side: bottom; text-align: left; padding: 0.6rem; font-size: 0.9rem; }

.site-footer {
  background: var(--spruce-2);
  color: #e7f0ea;
  padding: 1.4rem 6vw 2rem;
  font-size: 1rem;
}
.site-footer a { color: var(--paper); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; padding: 0; list-style: none; font-family: ui-sans-serif, system-ui, sans-serif; }
.site-footer time { color: #c5d5cc; }

ol, ul { max-width: 68ch; }
p { max-width: 68ch; }

@media (max-width: 900px) {
  .facts, .steps, .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { margin-left: 0; }
  .facts, .steps, .gallery-grid, .pair { grid-template-columns: 1fr; }
  main { width: min(74rem, calc(100% - 1.5rem)); }
}
