/* Tidy Batch Studio: same palette as the shop and the pins. */
:root {
  --green: #184E48; --green-2: #1F5F57; --terra: #98462F; --terra-2: #B4583C;
  --cream: #F6F3ED; --paper: #FFFDF9; --butter: #FFF0C7; --sage: #E4EDE8;
  --ink: #1E3633; --muted: #536663; --line: #D7E2DD; --input: #FFFBEA;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(30, 54, 51, .06), 0 8px 24px rgba(30, 54, 51, .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: ui-rounded, "SF Pro Rounded", "Nunito", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--terra); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--green); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 2.85rem); margin: .25em 0 .4em; font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin: 1.8em 0 .5em; font-weight: 800; }
h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; font-weight: 750; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .35em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.mt-0 { margin-top: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 12px; color: #fff; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.brand img { border-radius: 10px; }
.brand-name span { color: var(--terra); }
.brand-name, .header-row .btn { white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px 20px; padding-bottom: 8px; font-size: .95rem; }
.site-nav a { text-decoration: none; color: var(--muted); font-weight: 600; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--green); }
.site-nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--terra); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 20px; border-radius: 999px; border: 0; font: inherit; font-weight: 700; line-height: 1.2; cursor: pointer; }
.btn:hover { background: var(--green-2); color: #fff; }
.btn-etsy { background: var(--terra); }
.btn-etsy:hover { background: var(--terra-2); }
.btn-ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn-ghost:hover { background: var(--sage); color: var(--green); }
.btn-small { padding: 8px 14px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2em 0; }

/* Sections */
.hero { padding: 44px 0 20px; }
.page-head { padding: 6px 0 4px; }
.eyebrow { font-weight: 700; color: var(--terra); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .3em; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 42em; }
.section { padding: 8px 0 24px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card h3 a { text-decoration: none; }
.card .btn-row { margin-bottom: 0; }
.card .shot { margin: 4px 0 14px; }
.tag { display: inline-block; background: var(--butter); color: var(--ink); font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }
.panel { background: var(--sage); border-radius: var(--radius); padding: 24px; }
.answer { background: var(--butter); border-left: 5px solid var(--terra); border-radius: 10px; padding: 16px 18px; margin: 1.2em 0; }
.answer p:last-child { margin-bottom: 0; }
.note { font-size: .92rem; color: var(--muted); }
.price-line { font-weight: 700; color: var(--muted); }
.shot { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); background: #fff; }
figure { margin: 1.4em 0; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.2em 0; }
table { border-collapse: collapse; width: 100%; background: var(--paper); font-size: .97rem; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--sage); color: var(--green); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.total td { font-weight: 800; color: var(--green); }

/* Articles */
.crumbs { font-size: .9rem; color: var(--muted); margin: 22px 0 0; }
.crumbs a { color: var(--muted); }
.article p, .article li { max-width: 44em; }
.meta-line { font-size: .9rem; color: var(--muted); }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 16px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .92rem; }
.formula { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: .9rem; line-height: 1.7; overflow-x: auto; }
.cta-box { background: var(--green); color: #fff; border-radius: var(--radius); padding: 26px; margin: 2em 0; }
.cta-box h2, .cta-box h3 { color: #fff; margin-top: 0; }
.cta-box p { color: #E4EDE8; }
.cta-box .btn { background: #fff; color: var(--green); }
.cta-box .btn:hover { background: var(--butter); }
.cta-box .btn-etsy { background: var(--terra); color: #fff; }
.cta-box .btn-etsy:hover { background: var(--terra-2); color: #fff; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; color: var(--green); }
details[open] summary { margin-bottom: 8px; }
details p:last-child { margin-bottom: 0; }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; margin: 8px 0 24px; }
.calc fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 14px 18px 4px; margin: 0 0 16px; }
.calc legend { font-family: var(--font-head); font-weight: 800; color: var(--green); padding: 0 6px; font-size: 1.05rem; }
.field { display: grid; grid-template-columns: 1fr 128px; gap: 12px; align-items: center; margin-bottom: 12px; }
.field label { font-weight: 600; font-size: .97rem; line-height: 1.35; }
.field small { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; }
.field input { width: 100%; font: inherit; font-size: 1.05rem; padding: 9px 10px; border: 1.5px solid #B9CBC4; border-radius: 10px; background: var(--input); text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.field input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(24, 78, 72, .18); }
.field input[aria-invalid="true"] { border-color: var(--terra); background: #FCEDE8; }
.results { position: sticky; top: 16px; background: var(--green); color: #fff; border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.results h2 { color: #fff; margin: 0 0 8px; font-size: 1.3rem; }
.result { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.result .k { font-weight: 600; }
.result .k small { display: block; font-weight: 400; color: #CFE0DA; font-size: .83rem; }
.result .v { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result.big .v { font-size: 2rem; color: var(--butter); }
.breakdown { list-style: none; padding: 0 0 8px; margin: 0; font-size: .88rem; color: #CFE0DA; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.breakdown li { display: flex; justify-content: space-between; margin: 0; }
.status { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .12); font-weight: 700; font-size: .95rem; }
.status.ok { background: #2D6A4F; }
.status.warn { background: #7A5A1E; }
.status.bad { background: var(--terra); }
.results .fine { font-size: .82rem; color: #CFE0DA; margin: 10px 0 0; }
.calc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.calc-actions button { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .9rem; cursor: pointer; }
.calc-actions button:hover { background: rgba(255, 255, 255, .12); }
[hidden] { display: none !important; }

/* Footer */
.site-footer { background: var(--green); color: #E4EDE8; margin-top: 48px; padding: 36px 0 18px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.1rem; }
.footer-brand img { border-radius: 8px; }
.footer-title { font-weight: 800; color: #fff; margin-bottom: .4em; }
.site-footer ul { list-style: none; padding: 0; }
.footer-note { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 12px; padding-top: 14px; font-size: .82rem; color: #B9CBC4; }

@media (max-width: 880px) {
  .calc { grid-template-columns: 1fr; }
  .results { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .field { grid-template-columns: 1fr 108px; }
  .hero { padding: 30px 0 14px; }
  .brand { font-size: 1rem; }
  .site-nav { gap: 2px 14px; font-size: .9rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .site-footer, .calc-actions { display: none; }
  .results { position: static; }
}
