:root {
  color-scheme: light;
  --bg: #f4efe7;
  --bg-2: #ebe2d5;
  --panel: rgba(255, 255, 255, 0.78);
  --ink: #1d231f;
  --muted: #5f685f;
  --line: rgba(29, 35, 31, 0.12);
  --accent: #1f6f5b;
  --accent-2: #c87a2f;
  --shadow: 0 18px 50px rgba(29, 35, 31, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(31, 111, 91, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(200, 122, 47, 0.18), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

a {
  color: inherit;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(29, 35, 31, 0.16));
}

.brand-text {
  display: grid;
  gap: 2px;
  font: 400 0.92rem/1.2 system-ui, sans-serif;
  color: var(--muted);
}

.brand-text strong {
  color: var(--ink);
  font-size: 1rem;
}

.nav {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  font: 700 0.92rem/1 system-ui, sans-serif;
  color: var(--muted);
}

.nav a[aria-current="page"] {
  background: rgba(31, 111, 91, 0.12);
  color: var(--accent);
  border-color: rgba(31, 111, 91, 0.2);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.25;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 60px;
}

.hero {
  margin-bottom: 28px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
  font: 700 0.82rem/1 system-ui, sans-serif;
}

.eyebrow {
  margin: 0 0 12px;
  font: 700 0.78rem/1.2 system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2 {
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  max-width: 12ch;
}

.lede {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--muted);
  font: 400 1.05rem/1.65 system-ui, sans-serif;
}

.panel {
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-top: 20px;
}

.docs-shell .panel {
  margin-top: 16px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.callout {
  background: linear-gradient(180deg, rgba(31, 111, 91, 0.12), rgba(255, 255, 255, 0.8));
  border: 1px solid rgba(31, 111, 91, 0.18);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.callout strong {
  display: block;
  margin-bottom: 8px;
  font: 700 1rem/1.3 system-ui, sans-serif;
}

.callout p {
  margin: 0;
  color: var(--muted);
  font: 400 0.95rem/1.6 system-ui, sans-serif;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  gap: 10px;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(31, 111, 91, 0.12);
  color: var(--accent);
  font: 800 1rem/1 system-ui, sans-serif;
}

.step h3 {
  margin: 0;
  font: 700 1.05rem/1.3 system-ui, sans-serif;
}

.step p,
.step li {
  color: var(--muted);
  font: 400 0.95rem/1.65 system-ui, sans-serif;
}

.step ul {
  margin: 8px 0 0 20px;
  padding: 0;
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.65);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  padding: 10px 12px 12px;
  color: var(--muted);
  font: 400 0.82rem/1.45 system-ui, sans-serif;
}

.note-box {
  border-left: 4px solid var(--accent-2);
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(200, 122, 47, 0.08);
  color: var(--muted);
  font: 400 0.95rem/1.6 system-ui, sans-serif;
}

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1.5px dashed rgba(31, 111, 91, 0.35);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.dropzone.dragover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone-copy {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 24px;
  text-align: center;
}

.dropzone-copy strong {
  font: 700 1.1rem/1.2 system-ui, sans-serif;
}

.dropzone-copy span {
  color: var(--muted);
  font: 400 0.95rem/1.4 system-ui, sans-serif;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

button,
.download {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: 700 0.95rem/1 system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

button {
  background: var(--accent);
  color: white;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.download {
  background: rgba(31, 111, 91, 0.12);
  color: var(--accent);
}

.download[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.4;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
}

.stats div {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.54);
  padding: 14px 16px;
}

dt {
  color: var(--muted);
  font: 700 0.78rem/1.2 system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

dd {
  margin: 8px 0 0;
  font: 700 1rem/1.3 system-ui, sans-serif;
  word-break: break-word;
}

.message {
  margin: 18px 0 0;
  padding: 16px;
  border-radius: 14px;
  background: rgba(29, 35, 31, 0.04);
  border: 1px solid var(--line);
  overflow: auto;
  font: 400 0.9rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--muted);
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font: 400 0.95rem/1.5 system-ui, sans-serif;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  background: rgba(255, 255, 255, 0.6);
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font: 400 0.88rem/1.45 system-ui, sans-serif;
}

th {
  position: sticky;
  top: 0;
  background: rgba(244, 239, 231, 0.98);
  font: 700 0.78rem/1.2 system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

tbody tr:hover {
  background: rgba(31, 111, 91, 0.06);
}

@media (max-width: 720px) {
  .shell {
    padding-inline: 14px;
  }

  .topbar {
    padding-inline: 14px;
    align-items: flex-start;
    flex-direction: column;
  }

  .panel {
    padding: 16px;
  }

  .hero-grid,
  .figure-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding: 32px 20px 48px;
  color: var(--muted);
  font: 400 0.9rem/1.6 system-ui, sans-serif;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-inner p {
  margin: 0;
  max-width: 70ch;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
}

.footer-links svg {
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}