/* Site stylesheet. Colours and type are set once in :root. */
:root {
  --bg: #f7f3ec;
  --paper: #fffdf9;
  --ink: #26302b;
  --muted: #56615a;
  --green: #33503f;
  --green-dark: #263d30;
  --terra: #9a4a2c;
  --line: #ddd3c3;
  --sage: #dfe6d9;
  --blush: #f1dfd3;
  --sand: #efe6d8;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
}
@media (min-width: 700px) { body { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--terra); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--ink); }
h1 { font-size: 2rem; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.7em 0 .4em; }
@media (min-width: 700px) { h1 { font-size: 2.6rem; } h2 { font-size: 1.7rem; } h3 { font-size: 1.3rem; } }
p { margin: 0 0 1.1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 14px; z-index: 20; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 68px; }
.brand { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; padding: 12px 0; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand:hover { color: var(--green); }
.nav-toggle { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer; display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 600; padding: 8px 0; display: block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--terra); }
@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 10px; }
  .nav-toggle::before { content: ""; width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding-bottom: 12px; }
  .site-nav a { padding: 12px 0; border-top: 1px solid var(--line); font-size: 1.05rem; }
}

/* Home hero */
.hero { padding: 44px 0 36px; text-align: center; }
.hero h1 { max-width: 20em; margin: 0 auto .4em; }
.hero p { max-width: 36em; margin: 0 auto 1.4em; color: var(--muted); }
.search { max-width: 560px; margin: 0 auto; position: relative; }
.search input { width: 100%; font: inherit; padding: 14px 18px; border: 2px solid var(--green); border-radius: 999px; background: var(--paper); color: var(--ink); }
.search-results { max-width: 1120px; margin: 28px auto 0; text-align: left; }
.search-results p { text-align: center; color: var(--muted); }

.section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: .95rem; font-weight: 600; white-space: nowrap; }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(5, 1fr); } }
.tile { aspect-ratio: 1 / 1; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.05rem; text-align: center; padding: 12px; line-height: 1.25; transition: transform .15s ease; }
.tile:hover { transform: translateY(-3px); color: var(--ink); }
.tile svg { width: 46%; max-width: 84px; height: auto; }
.t-walls { background: var(--blush); } .t-storage { background: var(--sage); } .t-lighting { background: #f3e3b8; } .t-kitchen-bath { background: #dbe6e6; } .t-seasonal { background: #e9d5c9; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 30px 24px; } }
@media (min-width: 1000px) { .cards.four { grid-template-columns: repeat(4, 1fr); } }
.card a { text-decoration: none; color: var(--ink); display: block; }
.card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; background: var(--sand); }
.card .cat { display: block; margin-top: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--terra); }
.card h3 { margin: 4px 0 0; font-size: 1.05rem; line-height: 1.3; }
@media (min-width: 700px) { .card h3 { font-size: 1.2rem; } }
.card a:hover h3 { text-decoration: underline; text-decoration-color: var(--terra); }

/* About + signup blocks */
.split { display: grid; gap: 22px; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.panel h2 { margin-top: 0; }
.panel.green { background: var(--green); border-color: var(--green); color: #f7f3ec; }
.panel.green h2 { color: #fff; }
.panel.green a { color: #fff; }
.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.signup input { flex: 1 1 220px; font: inherit; padding: 12px 14px; border-radius: 8px; border: 2px solid transparent; }
.btn { font: inherit; font-weight: 700; padding: 12px 20px; border-radius: 8px; border: 0; background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { background: #000; color: #fff; }
.btn.pin { background: #a31621; }
.btn.pin:hover { background: #7d0f18; }
.form-note { font-size: .9rem; margin: 12px 0 0; min-height: 1.4em; }

/* Article */
.crumbs { font-size: .88rem; color: var(--muted); padding: 22px 0 6px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }
.post-head { padding: 6px 0 4px; }
.meta { color: var(--muted); font-size: .92rem; margin-bottom: 1.2em; }
.post-hero { margin: 0 auto 28px; max-width: 420px; }
.post-hero img { width: 100%; aspect-ratio: 2 / 3; border-radius: 16px; background: var(--sand); }
.prose { max-width: 720px; margin: 0 auto; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose h2 { scroll-margin-top: 16px; }
.toc { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 10px; padding: 18px 22px; margin: 26px 0; }
.toc h2 { font-size: 1.1rem; margin: 0 0 .5em; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: .25em; }
.box { border-radius: 14px; padding: 22px 24px 10px; margin: 30px 0; }
.box h2 { margin-top: 0; font-size: 1.3rem; }
.box.cost { background: var(--blush); }
.box.check { background: var(--sage); }
.box.check ul { list-style: none; padding-left: 0; }
.box.check li { padding-left: 1.7em; position: relative; }
.box.check li::before { content: ""; position: absolute; left: 0; top: .35em; width: .95em; height: .95em; border: 2px solid var(--green); border-radius: 4px; background: var(--paper); }
.table-scroll { overflow-x: auto; margin: 0 0 1.3em; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--sans); background: var(--sand); }
.faq h3 { font-size: 1.12rem; margin-top: 1.4em; }
.ad-slot { min-height: 280px; margin: 34px auto; max-width: 720px; background: transparent; }
.share { margin: 34px 0; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; text-align: center; }
.share p { margin-bottom: .8em; }
.prevnext { display: grid; gap: 14px; margin: 34px 0 10px; }
@media (min-width: 700px) { .prevnext { grid-template-columns: 1fr 1fr; } .prevnext .next { text-align: right; } }
.prevnext a { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; line-height: 1.3; }
.prevnext span { display: block; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--terra); margin-bottom: 4px; }
.page-head { padding: 40px 0 10px; }
.page-head p { color: var(--muted); max-width: 40em; }
.owner-note { border: 2px dashed var(--terra); background: #fff6ef; border-radius: 12px; padding: 16px 20px; margin: 22px 0; font-size: .95rem; }
.owner-note strong { color: var(--terra); }

/* Footer */
.site-footer { background: var(--green-dark); color: #dfe6d9; margin-top: 56px; padding: 40px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; gap: 26px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin: 0 0 .6em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4em; }
.small { font-size: .85rem; color: #b9c6bd; margin-top: 26px; border-top: 1px solid #3f5a4a; padding-top: 18px; }
