:root {
  color-scheme: light;
  --paper: #f7f4ec;
  --white: #fffcf7;
  --ink: #142a20;
  --muted: #4b5a50;
  --green: #194f37;
  --line: #d9ded2;
  --sand: #f0e7d6;
  --sage: #e4ebde;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--sans); }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.042em; }
h2 { font-size: clamp(2.25rem, 4.1vw, 3.6rem); }
h3 { line-height: 1.25; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
button { font: inherit; }
:focus-visible { outline: 3px solid #9d491b; outline-offset: 4px; }
.wrap { width: min(100% - 4.5rem, 72rem); margin-inline: auto; }
.skip-link { position: absolute; top: .7rem; left: .7rem; z-index: 5; padding: .5rem .8rem; transform: translateY(-180%); background: var(--white); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.7rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-weight: 700; text-decoration: none; letter-spacing: -.022em; }
.brand-mark { display: inline-block; flex: 0 0 auto; width: 1.78rem; height: 1.78rem; position: relative; border-radius: .42rem; background: var(--green); }
.brand-mark::before { content: ""; position: absolute; inset: .47rem .43rem .42rem; border: 1.5px solid #f3f4e8; border-radius: .12rem; }
.brand-mark::after { content: ""; position: absolute; width: .46rem; height: .32rem; left: .66rem; top: .68rem; border-left: 1.5px solid #f3f4e8; border-bottom: 1.5px solid #f3f4e8; transform: rotate(-45deg); }
.nav-link { display: inline-flex; min-height: 2.75rem; align-items: center; font-size: .9rem; font-weight: 650; text-decoration: none; }
.nav-link:hover, .text-link:hover, .sources a:hover { color: #914315; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr); align-items: center; gap: clamp(2rem, 5.5vw, 5.25rem); padding-block: clamp(3.25rem, 6.5vw, 6rem); }
.kicker { color: var(--green); font-size: .8rem; font-weight: 750; letter-spacing: .105em; text-transform: uppercase; }
.status-dot { display: inline-block; width: .46rem; height: .46rem; margin-right: .42rem; vertical-align: .09em; border-radius: 50%; background: #77946a; }
.hero h1 { margin: .9rem 0 1.15rem; font-size: clamp(3rem, 5.15vw, 4.65rem); line-height: .97; }
.hero h1 em { display: block; color: var(--green); font-weight: 400; }
.hero-lede { max-width: 29rem; font-size: clamp(1.04rem, 1.62vw, 1.22rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; margin-top: 1.65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.3rem; padding: .8rem 1.25rem; border: 1px solid transparent; border-radius: .55rem; background: var(--green); color: #fff; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { background: #103c29; }
.button:disabled { cursor: wait; opacity: .7; }
.text-link { display: inline-flex; min-height: 2.75rem; align-items: center; color: var(--green); font-weight: 650; }
.fine-print { margin-top: .7rem; color: var(--muted); font-size: .875rem; }

.hero-art { position: relative; isolation: isolate; min-width: 0; aspect-ratio: 1.19; overflow: hidden; border: 1px solid #cfdbca; border-radius: 1.4rem; background: repeating-radial-gradient(ellipse at 83% 18%, transparent 0 19px, #43674212 20px 21px, transparent 22px 38px), #dce5d7; }
.hero-photo { position: absolute; padding: 1.3% 1.3% 3.5%; border: 1px solid #e5e1d6; border-radius: 2.5% / 3.5%; background: #fffdf8; box-shadow: 0 12px 25px #18352342; }
.hero-photo img { aspect-ratio: 1.4; height: auto; object-fit: cover; border-radius: .13rem; }
.photo-back { width: 45%; left: 7.5%; top: 14%; transform: rotate(-16deg); }
.photo-main { width: 68%; left: 16%; top: 20%; transform: rotate(-5deg); }
.photo-front { width: 40%; right: 8%; bottom: 13%; transform: rotate(13deg); }
.date-stamp { position: absolute; display: flex; align-items: center; gap: .65rem; left: 9%; bottom: 17%; padding: .55rem .75rem; border: 1px solid #d5dfce; border-radius: .55rem; background: #fcfcf5; color: var(--green); box-shadow: 0 5px 16px #162d2629; font-size: .87rem; line-height: 1.3; }
.date-stamp small { display: block; color: var(--muted); font-size: .75rem; }
.hero-art > figcaption { position: absolute; right: 1rem; bottom: .65rem; color: #354a3d; font-size: .75rem; font-weight: 650; }

.problems { padding-block: 3.65rem; border-block: 1px solid var(--line); background: #f0f0e7; }
.problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 3.4rem); margin-top: 2rem; }
.problem-grid article + article { border-left: 1px solid #d4dace; padding-left: clamp(1.2rem, 3vw, 3.4rem); }
.problem-grid h3 { margin: .8rem 0 .45rem; font-size: 1.2rem; letter-spacing: -.02em; }
.problem-grid p, .sources, .section-intro > p:last-child, .demo-note { color: var(--muted); }
.issue-icon { display: inline-grid; place-items: center; width: 2.65rem; height: 2.65rem; border-radius: .55rem; background: #dae6d8; color: var(--green); }
.icon-json { background: #ebdfc9; color: #734517; font: 700 1rem var(--mono); }
.icon-copies { background: #e2e7d8; }
.calendar-icon { display: inline-block; position: relative; width: 1.12rem; height: 1.05rem; border: 1.5px solid currentColor; border-radius: .13rem; }
.calendar-icon::before, .calendar-icon::after { content: ""; position: absolute; left: 0; right: 0; top: .25rem; height: 1.5px; background: currentColor; }
.calendar-icon::after { top: .54rem; left: .24rem; right: .35rem; }
.copies-icon { display: block; width: .83rem; height: .91rem; position: relative; border: 1.5px solid currentColor; border-radius: .15rem; transform: translate(.13rem, .13rem); }
.copies-icon::before { content: ""; position: absolute; inset: -.31rem .18rem .2rem -.32rem; border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor; border-radius: .15rem 0 0; }
.sources { margin-top: 1.4rem; font-size: .875rem; }

.demo { padding-top: clamp(3.8rem, 7vw, 6.25rem); padding-bottom: clamp(3rem, 6vw, 4.65rem); scroll-margin-top: 1.5rem; }
.section-intro h2 { margin: .5rem 0 .7rem; }
.section-intro > p:last-child { max-width: 39rem; }
.compare-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 1rem; margin-top: 1.65rem; }
.compare-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--white); }
.compare-header { padding: 1.2rem 1.35rem 1.15rem; background: var(--sand); }
.after .compare-header { background: var(--sage); }
.label { display: inline-block; padding: .18rem .56rem; border-radius: 2rem; background: #e5d3b8; color: #67441e; font-size: .78rem; font-weight: 750; }
.after .label { background: #c9dbc6; color: #194831; }
.compare-header h3 { margin: .5rem 0 .28rem; font-size: clamp(1.25rem, 2.2vw, 1.65rem); letter-spacing: -.03em; }
.compare-header > p { color: var(--muted); font-size: .875rem; }
.archive, .library { padding: 1rem 1.35rem 1.3rem; }
.archive-folder { display: flex; align-items: center; gap: .65rem; padding: .28rem 0; font-weight: 700; }
.folder-icon { position: relative; display: inline-block; flex: 0 0 auto; width: 1.02rem; height: .68rem; border: 1.4px solid #886032; border-radius: .12rem; }
.folder-icon::before { content: ""; position: absolute; width: .47rem; height: .24rem; top: -.24rem; left: -.08rem; border: 1.4px solid #886032; border-bottom: 0; border-radius: .12rem .12rem 0 0; }
code { font: .85rem/1.45 var(--mono); overflow-wrap: anywhere; }
.file-list { margin: 0 0 .65rem .46rem; padding: 0 0 0 .7rem; border-left: 1px solid #dfded3; list-style: none; }
.file-list:last-child { margin-bottom: 0; }
.file-list li { display: flex; align-items: center; gap: .56rem; padding: .3rem 0; min-width: 0; }
.file-list img { flex: 0 0 auto; width: 2.55rem; height: 1.88rem; border-radius: .2rem; object-fit: cover; }
.file-list small { display: block; color: var(--muted); font-size: .78rem; }
.file-list .sidecar { color: #4e574d; padding: .12rem 0 .4rem; }
.sidecar code { font-size: .75rem; }
.sidecar > span { display: inline-grid; place-items: center; flex: 0 0 auto; width: 2.55rem; color: #734517; font: .75rem var(--mono); }
.library h4 { margin-bottom: .45rem; color: var(--green); font-size: .9rem; }
.library section + section { margin-top: .78rem; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.photo-grid figure { overflow: hidden; border: 1px solid #e0e4d9; border-radius: .55rem; background: #f5f6ef; }
.photo-grid img { height: auto; aspect-ratio: 2.18; object-fit: cover; }
.photo-grid figcaption { padding: .36rem .53rem .45rem; }
.photo-grid time { display: block; font-size: .84rem; font-weight: 700; }
.photo-grid code { display: block; color: var(--muted); font-size: .73rem; }
.demo-note { margin-top: .85rem; font-size: .875rem; }
.backup-note { display: grid; grid-template-columns: minmax(0, .35fr) minmax(0, 1fr); align-items: baseline; gap: .5rem 1.5rem; margin-top: 1.5rem; padding: 1rem 1.3rem; border-left: 3px solid #77946a; background: #eef0e5; }
.backup-note h3 { color: var(--green); font-size: 1.05rem; }
.backup-note ol { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.backup-note li + li { margin-top: .35rem; }

.ask { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; padding: clamp(1.5rem, 4.5vw, 3rem); border-radius: 1.1rem; background: #153e2b; color: #fbfaf1; }
.ask h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.ask p { margin-top: .65rem; color: #e0e9da; }
.ask form { flex: 0 0 auto; }
.button-light { background: #f7f4e8; color: #153e2b; }
.button-light:hover { background: #dce8d4; }
.ask :focus-visible { outline-color: #ffbd86; }
.site-footer { margin-top: 2.55rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.6rem; padding-block: 1.2rem; }
.footer-inner .wordmark { font-size: .9rem; }
.footer-inner p { color: var(--muted); font-size: .875rem; }
.measurement-note { flex-basis: 100%; max-width: 47rem; scroll-margin-top: 1.5rem; }

.result-page { min-height: 100vh; background: radial-gradient(ellipse at 50% 34%, #e5ecde, transparent 67%), var(--paper); }
.result-main { padding-block: clamp(3.5rem, 11vw, 9rem); }
.result-card { max-width: 38rem; margin-inline: auto; padding: clamp(1.5rem, 5vw, 3.5rem); border: 1px solid var(--line); border-radius: 1.2rem; background: var(--white); text-align: center; }
.result-icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.1rem; border-radius: 50%; background: #dfebda; color: var(--green); font-size: 1.4rem; font-weight: 800; }
.result-card h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); }
.result-card p { max-width: 25rem; margin: .9rem auto 0; color: var(--muted); }
.result-card .button { margin-top: 1.4rem; }

@media (max-width: 52rem) {
  .wrap { width: min(100% - 3rem, 72rem); }
  .hero { gap: 1.6rem; }
  .hero h1 { font-size: clamp(2.7rem, 5.7vw, 3.55rem); }
  .hero-art { aspect-ratio: 1.04; }
  .photo-main { top: 27%; }
  .photo-back { top: 18%; }
  .photo-front { bottom: 17%; }
  .date-stamp { bottom: 19%; }
}

@media (max-width: 42rem) {
  .wrap { width: min(100% - 2rem, 72rem); }
  .header-inner { min-height: 4rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.65rem; padding-block: 2.65rem 2.5rem; }
  .hero h1 { font-size: clamp(2.8rem, 11vw, 4.5rem); }
  .hero-art { width: 100%; max-width: 35rem; aspect-ratio: 1.25; }
  .photo-back { top: 12%; }
  .photo-main { top: 18%; }
  .photo-front { bottom: 13%; }
  .date-stamp { bottom: 15%; }
  .problems { padding-block: 2.7rem; }
  .problem-grid { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; margin-top: 1.4rem; }
  .problem-grid article + article { border-left: 0; border-top: 1px solid #d4dace; padding: 1.05rem 0 0; }
  .compare-grid { grid-template-columns: minmax(0, 1fr); }
  .backup-note { grid-template-columns: minmax(0, 1fr); }
  .compare-header, .archive, .library { padding-inline: 1rem; }
  .ask { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 24rem) {
  .wordmark { gap: .42rem; font-size: .9rem; }
  .header-inner nav a { font-size: .8rem; }
  .hero-actions { gap: .4rem .8rem; }
  .hero-actions .text-link { font-size: .92rem; }
  .date-stamp { padding: .3rem .52rem; font-size: .76rem; }
  .date-stamp small { font-size: .66rem; }
}
