/* Shedworthy — a cheerful timber-yard and seed-merchant catalogue. System fonts only. */
:root {
  --ink: #26221b; --muted: #5a5244; --green: #2f4b3c; --green-2: #3f6450;
  --sage: #e2e9d8; --sage-line: #b9c8ae; --cream: #f6efe0; --paper: #fffaf0;
  --line: #d8c9aa; --timber: #8a5a2b; --timber-dark: #6b4420;
  --marigold: #e3a13b; --marigold-bg: #fbedd0; --safety: #8a2f24; --safety-bg: #fbece8;
  --shadow: 5px 6px 0 rgba(107,68,32,.11);
  --slab: Rockwell, "Roboto Slab", "Zilla Slab", "Rockwell Nova", Cambria, Georgia, serif;
  --sans: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background-color: var(--cream); background-image: linear-gradient(rgba(138,90,43,.035) 1px, transparent 1px); background-size: 100% 36px; font-family: var(--sans); font-size: 1.05rem; line-height: 1.68; }
a { color: var(--green-2); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--timber); }
:focus-visible { outline: 3px solid #b8750c; outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--green); color: #fff; padding: .5rem .8rem; }
.skip:focus { top: .5rem; z-index: 10; }

.site-header, .site-footer, main { width: min(1100px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0 1.45rem; position: relative; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 11px; border-block: 1px solid var(--timber); background: linear-gradient(90deg,transparent 0 15%,rgba(107,68,32,.28) 15% 15.2%,transparent 15.2% 52%,rgba(107,68,32,.28) 52% 52.2%,transparent 52.2%),repeating-linear-gradient(0deg,var(--sage) 0 3px,#cbd7c0 3px 4px); box-shadow: 0 2px 0 var(--paper); }
.brand { display: flex; gap: .7rem; align-items: center; text-decoration: none; color: var(--green); }
.mark { width: 44px; height: 44px; flex: none; }
.wordmark { font-family: var(--slab); font-size: 1.72rem; font-weight: 700; line-height: 1; letter-spacing: -.015em; }
.wordmark span { color: var(--timber); }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .2rem; }
.site-header nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .92rem; padding: .38rem .58rem; border-bottom: 2px solid transparent; }
.site-header nav a:hover { background: var(--sage); color: var(--green); border-bottom-color: var(--green); }
.site-header nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--marigold); background: var(--marigold-bg); }

h1, h2, h3 { font-family: var(--slab); line-height: 1.18; font-weight: 700; color: var(--green); }
h1 { font-size: clamp(2rem,4.4vw,3.2rem); margin: 0 0 .6rem; letter-spacing: -.015em; }
.eyebrow, .kicker { letter-spacing: .13em; text-transform: uppercase; color: var(--timber-dark); font-size: .75rem; font-weight: 800; margin: 0 0 .5rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.dek, .lede { font-size: 1.16rem; color: var(--muted); }

/* Catalogue opener, with the headline held to a builder's string line. */
.hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: 3rem; align-items: center; padding: 3rem 0 2rem; }
.hero h1 { font-size: clamp(2.35rem,5.4vw,4rem); max-width: 13ch; }
.hero h1 em { display: inline; position: relative; font-style: normal; color: var(--timber); background-image: repeating-linear-gradient(90deg,var(--timber) 0 7px,transparent 7px 12px); background-repeat: repeat-x; background-position: 0 calc(100% - .04em); background-size: auto 2px; }
.hero h1 em::before, .hero h1 em::after { content: ""; position: absolute; bottom: -.08em; width: 5px; height: 10px; background: var(--marigold); border: 1px solid var(--timber-dark); }
.hero h1 em::before { left: -7px; }
.hero h1 em::after { right: -7px; }
.hero-art { margin: 0; position: relative; padding: 0 .7rem .7rem 0; }
.hero-art::after { content: ""; position: absolute; z-index: -1; inset: 0 0 0 .7rem; background: var(--sage); border: 1px solid var(--sage-line); }
.hero-art img { width: 100%; height: auto; display: block; border: 5px solid var(--paper); outline: 1px solid var(--timber); box-shadow: none; }
.hero-art figcaption { font-size: .82rem; color: var(--muted); margin-top: .55rem; font-style: italic; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.button, button.primary, button.choice { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .55rem 1.15rem; border-radius: 2px; text-decoration: none; border: 2px solid var(--green); font: inherit; font-weight: 800; cursor: pointer; }
.button, button.primary { background: var(--green); color: #fff; box-shadow: 3px 3px 0 var(--timber); }
.button:hover, button.primary:hover { background: var(--green-2); color: #fff; }
.button.secondary { background: var(--paper); color: var(--green); box-shadow: 3px 3px 0 var(--sage-line); }
.button.warm { background: var(--marigold); border-color: var(--timber-dark); color: var(--ink); box-shadow: 3px 3px 0 var(--timber-dark); }
.button.warm:hover { background: #edb553; color: var(--ink); }
.hero-points { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .35rem; color: var(--muted); font-size: .96rem; }
.hero-points li::before { content: "◇"; color: var(--green); font-weight: 900; margin-right: .55rem; }

/* Planner docket with a faint builder's string line. */
.tool-callout { position: relative; margin: 1.8rem 0 2.7rem; padding: 1.8rem 1.7rem 1.5rem; border: 2px solid var(--green); border-radius: 0; background: var(--sage); color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 1rem; box-shadow: 6px 6px 0 rgba(107,68,32,.16); }
.tool-callout::before { content: ""; position: absolute; top: .8rem; left: 1rem; right: 1rem; border-top: 2px dashed rgba(107,68,32,.52); }
.tool-callout::after { content: ""; position: absolute; top: .55rem; left: .78rem; width: 6px; height: 13px; border: 1px solid var(--timber-dark); background: var(--marigold); }
.tool-callout h2 { color: var(--green); margin: 0; }
.tool-callout p { margin: .3rem 0; }
.tool-callout .kicker { color: var(--timber-dark); margin-top: .3rem; }
.tool-callout .button { white-space: nowrap; }

.money { margin: 1.5rem 0 2.8rem; }
.money-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin: 1rem 0 2.8rem; }
.principles div { position: relative; background: var(--marigold-bg); padding: 1.15rem 1.2rem; border: 1px solid var(--timber); border-top: 5px solid var(--marigold); }
.principles div::after { content: ""; position: absolute; width: 9px; height: 9px; border: 1px solid var(--timber); border-radius: 50%; background: var(--cream); right: .7rem; top: .65rem; }
.principles strong { font-family: var(--slab); color: var(--green); font-size: 1.1rem; }
.principles p { margin: .3rem 0 0; color: var(--muted); font-size: .95rem; }
.section-head { margin: 0 0 1rem; }
.section-head h2 { margin: 0; font-size: 1.9rem; }
.section-head p { margin: .3rem 0 0; color: var(--muted); }
.directory { margin-bottom: 3rem; }

/* Yard-tag cards: clipped corner, perforation and a marigold stock stamp. */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.card { position: relative; display: block; min-height: 100%; padding: 1.25rem 1.2rem 1.25rem 1.35rem; text-decoration: none; color: inherit; background: linear-gradient(135deg,var(--paper) 0 calc(100% - 26px),var(--marigold-bg) calc(100% - 26px)); border: 1px solid var(--timber); border-radius: 0; clip-path: polygon(0 0,calc(100% - 25px) 0,100% 25px,100% 100%,0 100%); box-shadow: inset 7px 0 0 var(--sage); transition: transform .15s ease, background-color .15s ease; }
.card::before { content: ""; position: absolute; left: .72rem; top: .8rem; bottom: .8rem; border-left: 1px dashed var(--timber); opacity: .5; }
.card::after { content: "YARD NOTE"; position: absolute; right: .75rem; bottom: .65rem; padding: .08rem .32rem; border: 1px solid var(--timber); background: var(--marigold); color: var(--ink); font-size: .56rem; line-height: 1.2; font-weight: 900; letter-spacing: .11em; transform: rotate(-2deg); }
.card:hover { transform: translateY(-3px) rotate(-.15deg); background-color: #fffdf7; }
.card span { display: inline-block; color: var(--timber-dark); font-size: .69rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--marigold); }
.card strong { display: block; font-family: var(--slab); font-size: 1.18rem; line-height: 1.32; color: var(--green); margin: .4rem 0; padding-right: .35rem; }
.card p { margin: 0; padding: 0 .8rem .8rem 0; color: var(--muted); font-size: .94rem; }

.article { background: var(--paper); border: 1px solid var(--line); border-radius: 2px; box-shadow: 6px 6px 0 rgba(107,68,32,.08); padding: 2rem clamp(1rem,4vw,3rem); margin: 1.6rem 0 3rem; }
.prose { max-width: 46rem; }
.page-hero, .diagram, .infographic { margin: 1.25rem 0; max-width: 46rem; }
.page-hero img, .diagram img, .infographic img { display: block; width: 100%; height: auto; border-radius: 0; border: 4px solid var(--paper); outline: 1px solid var(--timber); }
.page-hero figcaption, .diagram figcaption, .infographic figcaption { color: var(--muted); font-size: .86rem; font-style: italic; margin-top: .45rem; }
.prose h2 { margin-top: 2.1rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4rem; font-size: 1.22rem; }
.prose li { margin: .3rem 0; }
.table-wrap { overflow-x: auto; margin: 1.2rem 0; border: 1px solid var(--line); border-radius: 0; background: #fff; }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: .6rem .75rem; vertical-align: top; }
.prose thead th { background: var(--green); color: #fff; font-family: var(--slab); font-weight: 700; white-space: nowrap; }
.prose tbody tr:nth-child(even) { background: #f8f3e6; }
.prose tbody td:first-child { font-weight: 700; color: var(--green); }
.prose tbody tr + tr td { border-top: 1px solid var(--line); }

.shed-tip { position: relative; margin: 1.6rem 0; padding: 1rem 1.2rem 1rem 4rem; background: var(--marigold-bg); border: 1px solid #d8b36f; border-left: 6px solid var(--marigold); border-radius: 0; }
.shed-tip::before { content: ""; position: absolute; left: 1.05rem; top: 1.05rem; width: 2rem; height: 2rem; background: url("/favicon.svg") center/contain no-repeat; }
.shed-tip p { margin: 0; }
.shed-tip .shed-tip-label { font-family: var(--slab); font-weight: 700; color: var(--timber-dark); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .2rem; }
.alphabet { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1.25rem 0; }
.alphabet a { min-width: 1.9rem; padding: .25rem; border: 1px solid var(--timber); border-radius: 0; text-align: center; background: #fff; text-decoration: none; }
.glossary h2 { scroll-margin-top: 1rem; }
.meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .9rem; }
.meta span:first-child::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .35rem; vertical-align: -.15em; background: url("/favicon.svg") center/contain no-repeat; }
blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--green-2); color: var(--muted); }
code { background: var(--sage); padding: .05rem .3rem; border-radius: 2px; }
.embed-code { max-width: 100%; overflow-x: auto; margin: .8rem 0 1.5rem; padding: 1rem; background: var(--sage); border: 1px solid var(--sage-line); border-radius: 0; font-size: .82rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.embed-code code { padding: 0; background: transparent; }
.disclosure { background: var(--marigold-bg); border-left: 4px solid var(--timber); padding: .75rem 1rem; margin: 1rem 0 0; font-size: .95rem; border-radius: 0; }
.sign-off { margin-top: 2.2rem; padding: 1rem 1.2rem; background: var(--sage); border: 1px dashed var(--timber); display: flex; gap: .9rem; align-items: center; }
.sign-off .mark { width: 36px; height: 36px; }
.sign-off p { margin: 0; }
.related { margin-top: 2.5rem; border-top: 2px dashed var(--line); padding-top: .5rem; }

.form, .check-tool { position: relative; background: var(--sage); border: 1px solid var(--green); border-radius: 0; padding: 1.35rem 1.2rem; display: grid; gap: .8rem; margin: 1.2rem 0; }
.check-tool::before { content: ""; position: absolute; left: .65rem; right: .65rem; top: .65rem; border-top: 1px dashed var(--timber); }
.check-tool output { display: grid; gap: .35rem; background: #fff; border-radius: 0; padding: .8rem 1rem; border-left: 5px solid var(--marigold); }
.grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .8rem; }
label { display: flex; flex-direction: column; gap: .25rem; font-size: .95rem; font-weight: 600; }
label.check { flex-direction: row; align-items: center; font-weight: 400; gap: .5rem; }
input, textarea { font: inherit; color: inherit; background: #fff; border: 1px solid #817864; border-radius: 0; padding: .55rem .65rem; min-height: 44px; }
input[type="checkbox"] { min-height: auto; width: 1.1rem; height: 1.1rem; accent-color: var(--green); }
textarea { min-height: 150px; }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.site-footer { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 1.5rem; padding: 2.2rem 0 3rem; color: var(--muted); border-top: 11px solid var(--sage-line); box-shadow: inset 0 2px 0 var(--timber); font-size: .95rem; }
.site-footer a { display: block; margin: .25rem 0; }
.site-footer strong { color: var(--green); font-family: var(--slab); font-size: 1.25rem; }
.foot-brand { display: flex; gap: .8rem; align-items: flex-start; }
.foot-brand p { margin: .3rem 0; }
.foot-head { margin: 0 0 .4rem; font-weight: 800; color: var(--timber-dark); text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; }
.banner { position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: 1rem; align-items: center; background: var(--paper); color: var(--ink); padding: .75rem 1rem; border-top: 4px solid var(--timber); box-shadow: 0 -5px 0 var(--sage); z-index: 4; }
.banner p { margin: 0; max-width: 46rem; }
.banner a { color: var(--green); }
.banner .actions { margin: 0; }
.banner button.choice { min-width: 7rem; background: var(--sage); color: var(--green); border-color: var(--green); box-shadow: 2px 2px 0 var(--timber); }
.banner button.choice[data-accept] { background: var(--marigold); color: var(--ink); border-color: var(--timber-dark); }
.banner[hidden], [hidden] { display: none !important; }

@media (max-width: 820px) {
  .hero, .principles, .cards, .money-grid, .site-footer, .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; gap: 2rem; }
  .site-header { flex-direction: column; align-items: flex-start; }
  .site-header nav { width: 100%; }
  .site-header nav a { padding-inline: .45rem; }
  .tool-callout { flex-direction: column; align-items: flex-start; }
  .banner { flex-direction: column; align-items: stretch; }
  .banner button.choice { flex: 1; }
}
@media (max-width: 480px) {
  .site-header, .site-footer, main { width: min(100% - 1.2rem,1100px); }
  .wordmark { font-size: 1.5rem; }
  .hero h1 { font-size: clamp(2.2rem,13vw,3.1rem); }
  .actions .button { width: 100%; }
  .article { padding-inline: .9rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }
