/* Pencilstead Plans, garden workshop journal direction (04-Brand-and-Website.md). System fonts only. */
:root {
  --paper: #F7F4EB; --white: #FFFFFF; --ink: #1E332C; --evergreen: #24533F; --terracotta: #93472F;
  --line: #CBD3C9; --muted: #4A5A53;
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); }
@media (min-width: 720px) { body { font-size: 18px; } }
img, svg { max-width: 100%; height: auto; }
a { color: var(--evergreen); text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.8rem); margin-top: 1.6em; }
h3 { font-size: 1.15rem; }
p { max-width: 68ch; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--white); padding: 8px; z-index: 9; }
.sandbox-strip { background: var(--terracotta); color: var(--white); font-size: .9rem; padding: 6px 0; }
.sandbox-strip strong { letter-spacing: .04em; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.wordmark { font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: var(--ink); text-decoration: none; margin-right: auto; padding: 10px 0; }
.nav a, .nav summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); text-decoration: none; font-weight: 500; cursor: pointer; }
.nav a:hover { text-decoration: underline; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav .wide { display: none; }
@media (min-width: 720px) { .nav .wide { display: inline-flex; } .nav details { display: none; } }
.nav details { position: relative; }
.nav details[open] .menu { position: absolute; right: 0; top: 48px; background: var(--white); border: 1px solid var(--line); padding: 6px; min-width: 180px; z-index: 5; display: flex; flex-direction: column; }
.nav summary { list-style: none; border: 1px solid var(--line); border-radius: 6px; }
.nav summary::-webkit-details-marker { display: none; }
main { padding: 28px 0 56px; }
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: .95rem; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 8px; }
.site-footer nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border-radius: 8px; border: 2px solid var(--evergreen); background: var(--evergreen); color: var(--white); font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: #1b4232; color: var(--white); }
.btn.secondary { background: transparent; color: var(--evergreen); }
.btn.secondary:hover { background: var(--white); color: var(--ink); }
.btn.quiet { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.btn-row form { margin: 0; }
.grid-2 { display: grid; gap: 28px; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.cards { display: grid; gap: 20px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
figure { margin: 0; }
.render { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.render img { display: block; width: 100%; aspect-ratio: 5 / 3; object-fit: contain; background: var(--white); }
.render figcaption { padding: 8px 12px; font-size: .9rem; border-top: 1px solid var(--line); }
.label { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--terracotta); }
.kicker { font-weight: 600; color: var(--muted); margin: 0 0 4px; }
.facts { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.facts th, .facts td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { font-weight: 600; width: 45%; }
.formats { display: grid; gap: 20px; }
@media (min-width: 720px) { .formats { grid-template-columns: 1fr 1fr; } }
.format h3 { margin-bottom: 4px; }
.price { font-family: var(--display); font-size: 2rem; font-weight: 700; margin: 4px 0 8px; }
.checks li { margin: 4px 0; }
.note { border-left: 4px solid var(--terracotta); background: var(--white); padding: 12px 16px; margin: 16px 0; }
.status-box { border: 2px solid var(--line); background: var(--white); border-radius: 10px; padding: 20px; margin: 16px 0; }
.status-box.ready { border-color: var(--evergreen); }
.status-box.failed { border-color: var(--terracotta); }
label { display: block; font-weight: 600; margin: 12px 0 6px; }
input[type=email], select { width: 100%; max-width: 420px; min-height: 48px; padding: 10px 12px; font: inherit; border: 2px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); }
.error { color: var(--terracotta); font-weight: 600; }
.summary-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.summary-table td, .summary-table th { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.summary-table td.num { text-align: right; }
.muted { color: var(--muted); }
.draft-banner { border: 2px dashed var(--terracotta); padding: 12px 16px; background: var(--white); font-weight: 600; }
/* build guide */
.build { display: grid; gap: 20px; }
@media (min-width: 1000px) { .build { grid-template-columns: 230px 1fr 280px; align-items: start; } }
.steplist ol { list-style: none; padding: 0; margin: 0; }
.steplist a { display: flex; gap: 8px; align-items: flex-start; min-height: 44px; padding: 6px 8px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.steplist a[aria-current=step] { background: var(--white); border: 1px solid var(--evergreen); font-weight: 700; }
.steplist .tick { flex: 0 0 1.4em; color: var(--evergreen); font-weight: 700; }
.step-diagram { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.step-diagram img { display: block; width: 100%; aspect-ratio: 5 / 3; object-fit: contain; }
.step-nav { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 16px 0; }
@media (max-width: 719px) { .step-nav.sticky { position: sticky; bottom: 0; background: var(--paper); padding: 10px 0; border-top: 1px solid var(--line); margin-bottom: 0; } }
.saved { font-weight: 600; color: var(--evergreen); min-height: 1.5em; }
.side details > summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
@media (min-width: 1000px) { .steplist details > summary { display: none; } }
.sim-banner { background: #3b3b3b; color: var(--white); padding: 14px 18px; border-radius: 8px; font-weight: 700; }
.sim-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sim-table td, .sim-table th { border-bottom: 1px solid var(--line); padding: 6px; text-align: left; vertical-align: top; }
.sim-table form { display: inline; }
.sim-table button { min-height: 44px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.checks-passed > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.checks-passed > summary h3 { display: inline; margin: 0; }
.checks-passed > summary .showall { color: var(--evergreen); text-decoration: underline; font-size: 0.95em; }
.checks-passed[open] > summary .showall { display: none; }
/* Product hero: phone reads name, rendering, fit facts; wide puts the rendering left of name and facts. */
.product-hero { display: grid; gap: 20px; grid-template-areas: "head" "gallery" "facts"; }
.product-hero .ph-head { grid-area: head; } .product-hero .ph-gallery { grid-area: gallery; } .product-hero .ph-facts { grid-area: facts; }
.product-hero .ph-head h1 { margin-bottom: 8px; }
@media (min-width: 860px) { .product-hero { grid-template-columns: 1.1fr 1fr; grid-template-areas: "gallery head" "gallery facts"; align-items: start; column-gap: 28px; } }
/* Long temporary wordmark: on phones it may take two lines, the nav items never wrap. */
.nav a, .nav summary { white-space: nowrap; }
@media (max-width: 459px) { .wordmark { font-size: 1.1rem; line-height: 1.25; } .site-header .wrap { gap: 8px; } .nav a, .nav summary { padding: 0 8px; } }
/* Free project page: every step readable in place. */
.free-step { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 20px; }
.free-step .step-diagram { max-width: 720px; }
.free-step ol.lines { padding-left: 1.4em; }
.toc { columns: 2 260px; padding-left: 1.4em; }
.toc a { display: inline-block; min-height: 32px; }
.note.warn { border-left-color: #B3261E; background: #FFF6F4; }
.draft-disclosure p, .note.warn p { margin: 0; }
