:root {
  color-scheme: light;
  --ink: #172a25;
  --muted: #4a6056;
  --green: #16483a;
  --dark: #132d25;
  --paper: #f5f4ed;
  --white: #fffefa;
  --border: #d3dbcf;
  --accent: #ddf492;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body, figure, dl, dd { margin: 0; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .24em; }
button, select, input { font: inherit; }
:focus-visible { outline: 3px solid #287559; outline-offset: 3px; }
.masthead :focus-visible { outline-color: var(--accent); }
.skip { position: absolute; z-index: 2; top: .75rem; left: .75rem; padding: .5rem; background: var(--white); transform: translateY(-180%); }
.skip:focus { transform: none; }
.wrap { width: min(74rem, calc(100% - 3rem)); margin-inline: auto; }
.masthead {
  color: #f8fbf2;
  background: radial-gradient(ellipse at 86% 90%, #23503e, transparent 56%), var(--dark);
  border-bottom: 5px solid var(--accent);
}
.topline { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid #567568; font-size: .88rem; }
.topline a:first-child, .footer a { font-weight: 750; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 12rem; align-items: center; gap: 2rem; padding-block: clamp(2.4rem, 6vw, 4.5rem); }
.kicker { color: var(--green); font: 750 .74rem/1.35 ui-monospace, "Cascadia Mono", monospace; text-transform: uppercase; letter-spacing: .14em; }
.hero .kicker, h1 span { color: var(--accent); }
h1 { margin-block: .4rem .8rem; font-size: clamp(2.75rem, 7.8vw, 6.15rem); line-height: .96; letter-spacing: -.075em; }
.lede { max-width: 39rem; color: #e2eee4; font-size: clamp(1rem, 2.2vw, 1.23rem); }
.hero-art { display: grid; place-items: center; min-height: 10rem; }
.art-sheet { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; width: 7.2rem; height: 9.3rem; padding: .65rem; border: 1px solid #d6e9d8; background: #294d3f; box-shadow: .48rem .48rem 0 #1c3e32, 1rem 1rem 0 #112c23; transform: rotate(12deg); }
.art-sheet i { border: 1px dashed #d4e5cf; background: #557863; }
.art-sheet i:nth-child(3), .art-sheet i:nth-child(6) { background: var(--accent); border: 1px dashed var(--dark); }
#planner { padding-top: 2rem; }
.planner-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.05rem); line-height: 1.2; letter-spacing: -.045em; }
.kicker + h2 { margin-top: .2rem; }
.workspace { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; gap: 1.1rem; }
form { display: grid; gap: .9rem; min-width: 0; }
fieldset, .results { min-width: 0; padding: 1.1rem; border: 1px solid var(--border); border-radius: .85rem; background: var(--white); }
fieldset { margin: 0; }
legend { padding-inline: .35rem; font-size: 1.05rem; font-weight: 770; }
legend span { margin-right: .25rem; color: var(--green); font: 750 .76rem ui-monospace, monospace; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem .75rem; }
.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
label { min-width: 0; font-size: .81rem; font-weight: 680; }
input, select { display: block; width: 100%; min-width: 0; margin-top: .28rem; min-height: 2.65rem; padding: .45rem .48rem; border: 1px solid #9cac9f; border-radius: .4rem; color: var(--ink); background: #fff; font-size: 1rem; font-weight: 550; font-variant-numeric: tabular-nums; }
[aria-invalid="true"] { border: 2px solid #a03721; }
.unit, .field-note { color: var(--muted); }
.unit { white-space: nowrap; }
.field-note { margin: .55rem 0 0; font-size: .8rem; }
.field-note + .fields { margin-top: .6rem; }
button { cursor: pointer; min-height: 2.75rem; padding: .5rem .85rem; border: 1px solid var(--green); border-radius: .45rem; color: white; background: var(--green); font-size: .88rem; font-weight: 750; }
button:not(:disabled):hover { filter: brightness(1.13); }
button:disabled { opacity: .53; cursor: default; }
.subtle { background: transparent; color: var(--green); border-color: #9cac9f; }
.subtle:not(:disabled):hover { background: #e8eee1; }
.results { padding: clamp(1rem, 2.3vw, 1.55rem); }
.results-head { padding-bottom: .95rem; }
.status, .error { margin-block: 0 .85rem; padding: .65rem .8rem; border-left: 3px solid #bc6e3c; background: #fff0e2; color: #74361f; font-size: .9rem; }
.status:empty { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }
.highlights { display: grid; grid-template-columns: .9fr .9fr 1.25fr; gap: .4rem; margin-bottom: .9rem; }
.highlights div { min-width: 0; padding: .55rem .65rem; border-radius: .45rem; background: #edf2e8; }
.highlights div:first-child { background: #e3efbb; }
.highlights dt { color: #3e5548; font-size: .74rem; font-weight: 700; }
.highlights dd { font-size: clamp(.98rem, 2.6vw, 1.45rem); font-weight: 790; line-height: 1.25; overflow-wrap: anywhere; }
.preview { display: grid; place-items: center; min-height: 16.8rem; padding: .7rem; border: 1px solid var(--border); border-radius: .55rem; background: repeating-linear-gradient(45deg, #f3f5ef, #f3f5ef 8px, #eef1e9 8px, #eef1e9 9px); }
.preview svg { display: block; width: 100%; height: 15.4rem; }
.sheet-edge { fill: #fffefa; stroke: #53675c; }
.usable-edge { fill: #f0f3ea; stroke: #586d62; stroke-dasharray: 4 3; }
.bleed-box { fill: #d8eba9; stroke: #4e6636; }
.trim-box { fill: #a4caad; stroke: #25513d; }
.preview svg rect { vector-effect: non-scaling-stroke; }
figcaption { margin-top: .45rem; font-size: .83rem; color: var(--muted); }
.key { display: flex; flex-wrap: wrap; gap: .3rem .85rem; margin: .5rem 0 1rem; padding: 0; list-style: none; color: var(--muted); font-size: .76rem; }
.key li { display: flex; gap: .35rem; align-items: center; }
.key span { width: .83rem; height: .83rem; border: 1px solid; }
.key .usable { border-style: dashed; background: #f0f3ea; }
.key .bleed { background: #d8eba9; }
.key .trim { background: #a4caad; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .82rem; }
caption { text-align: left; padding-bottom: .25rem; font-size: .94rem; font-weight: 760; }
th, td { padding: .4rem .25rem; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
thead { color: var(--muted); }
td:last-child, thead th:last-child { text-align: right; }
.selected { display: inline-block; padding: 0 .28rem; margin-left: .15rem; background: #e3efbb; border-radius: .25rem; font-size: .7rem; }
.details { margin-top: .7rem; display: grid; gap: .18rem; font-size: .82rem; }
.details div { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.details dt { color: var(--muted); }
.details dd { text-align: right; font-weight: 680; overflow-wrap: anywhere; }
.quote-details { border-top: 1px solid var(--border); padding-top: .65rem; }
.export { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .7rem; margin-top: 1rem; }
.export span { color: var(--muted); font-size: .78rem; }
.export button span { color: inherit; font-size: inherit; }
.method { margin-top: 2.4rem; padding: 1.3rem 0; border-top: 1px solid var(--border); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin: .85rem 0; }
.method h3 { font-size: .97rem; }
.method p:not(.kicker) { color: var(--muted); font-size: .89rem; }
.method h3 + p { margin-top: .3rem; }
.scope { background: #e9eee2; padding: .75rem; border-radius: .45rem; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; padding: .85rem 0 1.7rem; color: var(--muted); font-size: .83rem; }
@media (max-width: 51rem) {
  .workspace { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; gap: .7rem; }
}
@media (max-width: 34rem) {
  .wrap { width: calc(100% - 1.5rem); }
  .hero { display: block; }
  .hero-art { display: none; }
  .four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
