:root {
  color-scheme: light;
  --paper: #f6f1e7;
  --paper-deep: #ece2d1;
  --ink: #24231f;
  --muted: #676258;
  --line: #cfc2ad;
  --copper: #944b20;
  --copper-dark: #663016;
  --steel: #4b5a5d;
  --green: #3e5940;
  --white: #fffdf8;
  --shadow: 0 16px 40px rgb(53 39 23 / 12%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgb(148 75 32 / 9%), transparent 31rem),
    linear-gradient(180deg, var(--paper), #fbf8f1 38rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: var(--copper-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--copper); }
a:focus-visible, button:focus-visible { outline: 3px solid #2471a3; outline-offset: 3px; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: .7rem 1rem;
  color: var(--white);
  background: var(--ink);
}
.skip-link:focus { top: 1rem; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgb(255 253 248 / 92%);
}

.nav-shell, .page, .footer-shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.5rem;
}

.brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
}

.nav-links { display: flex; flex-wrap: wrap; gap: .35rem 1rem; justify-content: flex-end; }
.nav-links a { color: var(--ink); font-size: .94rem; font-weight: 650; text-decoration: none; }
.nav-links a:hover { color: var(--copper); }

.page { padding-block: clamp(2.4rem, 6vw, 5.6rem); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(17rem, .95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero-art {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-art img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.bucket-art img { aspect-ratio: 1 / 1; object-fit: contain; padding: 1rem; }

.eyebrow {
  margin: 0 0 .45rem;
  color: var(--copper-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  color: #27231d;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
}
h1 { max-width: 14ch; margin: 0 0 1rem; font-size: clamp(2.5rem, 7vw, 5.4rem); letter-spacing: -.035em; }
h2 { margin: 0 0 1rem; font-size: clamp(1.75rem, 4vw, 2.7rem); }
h3 { margin: 0 0 .45rem; font-size: 1.28rem; }

.lede { max-width: 62ch; margin: 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin-top: 1.6rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .72rem 1.15rem;
  border: 2px solid var(--copper-dark);
  border-radius: .55rem;
  color: var(--white);
  background: var(--copper-dark);
  font-weight: 800;
  text-decoration: none;
}
.button:hover { color: var(--white); background: var(--copper); border-color: var(--copper); }
.button.secondary { color: var(--copper-dark); background: transparent; }
.button.secondary:hover { color: var(--white); background: var(--copper-dark); }

.section { margin-top: clamp(3.5rem, 8vw, 7rem); }
.section-heading { max-width: 46rem; margin-bottom: 1.7rem; }
.section-heading p { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: rgb(255 253 248 / 86%);
  box-shadow: 0 8px 24px rgb(53 39 23 / 7%);
}
.card p:last-child { margin-bottom: 0; }
.card h2 { font-size: 1.55rem; }
.card .status { color: var(--green); font-size: .86rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

.product-card { display: flex; flex-direction: column; }
.product-card p:last-child { margin-top: auto; padding-top: .65rem; }

.meta-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 1.8rem 0; padding: 0; list-style: none; }
.meta-list li { padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--white); }
.meta-list strong { display: block; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }

.notice {
  margin: 1.35rem 0;
  padding: 1rem 1.1rem;
  border-left: .3rem solid var(--copper);
  background: var(--paper-deep);
}
.notice strong { display: block; }

.download-panel { padding: clamp(1.4rem, 4vw, 2.25rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--white); box-shadow: var(--shadow); }
.hash { display: block; overflow-wrap: anywhere; padding: .75rem; border-radius: .45rem; background: #edeae3; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .83rem; }

.prose { max-width: 52rem; }
.prose h2 { margin-top: 2.7rem; }
.prose h3 { margin-top: 2rem; }
.prose li + li { margin-top: .55rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: .8rem; }
table { width: 100%; min-width: 46rem; border-collapse: collapse; background: var(--white); }
th, td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--paper-deep); font-size: .84rem; letter-spacing: .03em; }
tr:last-child td { border-bottom: 0; }

.resource-list { display: grid; gap: 1rem; padding: 0; list-style: none; }
.resource-list li { padding: 1.2rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--white); }
.resource-meta { display: block; margin-top: .35rem; color: var(--muted); font-size: .88rem; }

.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); background: #e8ddca; }
.footer-shell { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; padding-block: 2rem; }
.footer-links { display: flex; flex-wrap: wrap; align-content: start; gap: .45rem 1.2rem; }
.footer-links a { color: var(--ink); }
.fine { color: var(--muted); font-size: .88rem; }

@media (max-width: 800px) {
  .nav-shell { align-items: flex-start; flex-direction: column; padding-block: 1rem; }
  .nav-links { justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .grid, .meta-list { grid-template-columns: 1fr; }
  .footer-shell { grid-template-columns: 1fr; }
}

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