/* The Small-Space Host
   Identity: a planning notebook. Forest green leads; graph paper and drafting dimension marks are the
   one bold device; clay is reserved for measurements. Newsreader for reading, Barlow Semi Condensed for
   the numbers (it echoes the lettering on the Pins' floor plans). */

:root {
  --forest: #2E4636;
  --forest-deep: #22362A;
  --paper: #FCFAF6;
  --cream: #F3ECE0;
  --walnut: #6B4A31;
  --clay: #A4532A;          /* measurement ink; 5.1:1 on paper */
  --ink: #1F2622;
  --stone: #57544C;         /* secondary text; 7.0:1 on paper */
  --grid: #E3D9C8;
  --rule: #D9CDB9;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --label: "Barlow Semi Condensed", "Bahnschrift", "Arial Narrow", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.35rem;
  --step-2: 1.7rem;
  --step-3: 2.25rem;
  --step-4: clamp(2.3rem, 5vw + 1rem, 3.6rem);

  --measure: 66ch;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.68 var(--serif);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--forest-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--forest); color: var(--paper); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* ---------------------------------------------------------------- masthead */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--forest); text-decoration: none;
         font-weight: 600; font-size: var(--step-1); letter-spacing: -0.01em; min-height: 44px; }
.brand:hover { color: var(--forest-deep); }
.mark { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.masthead nav { display: flex; gap: 1.25rem; font-family: var(--label); font-weight: 500; font-size: 1.05rem; }
.masthead nav a { text-decoration: none; padding-block: .6rem; }
.masthead nav a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- dimension mark: |—— 12 ft x 13 ft ——| */
.dim {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--label); font-weight: 600; font-size: 0.95rem; line-height: 1.2;
  color: var(--clay); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.dim::before, .dim::after {
  content: ""; width: 1.4em; height: .7em;
  border-top: 1.5px solid currentColor; transform: translateY(.35em);
}
.dim::before { border-left: 1.5px solid currentColor; }
.dim::after { border-right: 1.5px solid currentColor; }

/* graph paper: 1 ft squares at plan scale */
.graph {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---------------------------------------------------------------- home */
.hero { display: grid; gap: 2rem; padding-block: clamp(2rem, 6vw, 4.5rem) 2.5rem; align-items: center; }
.hero h1 { font-size: var(--step-4); line-height: 1.06; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 1rem; color: var(--forest); max-width: 14ch; }
.hero-text p { max-width: 46ch; margin: 0 0 1rem; }
.text-link { font-family: var(--label); font-weight: 600; font-size: 1.1rem; }
.hero-plan { position: relative; display: block; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--paper); }
.hero-plan img { width: 100%; }
.hero-plan .dim { margin: .2rem 1rem .9rem; }
@media (min-width: 900px) { .hero { grid-template-columns: 5fr 6fr; gap: 3.5rem; } }

.index { padding-block: 1rem 4rem; }
.index > h2, .plans > h2, .picks > h2 { font-size: var(--step-3); line-height: 1.15; color: var(--forest); margin: 1.5rem 0 1rem; font-weight: 600; }
.topic { border-top: 2px solid var(--forest); padding-top: 1.25rem; margin-top: 2rem; }
.topic h3 { font-size: var(--step-2); margin: 0; font-weight: 600; line-height: 1.2; }
.topic h3 a { text-decoration: none; }
.topic h3 a:hover { text-decoration: underline; }
.topic-q { margin: .25rem 0 1rem; color: var(--stone); font-style: italic; }
.guide-list { list-style: none; margin: 0; padding: 0; }
.guide-list li { display: grid; gap: .3rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.guide-list a { font-size: var(--step-1); line-height: 1.3; font-weight: 600; }
.guide-list .parts { color: var(--stone); font-size: 1rem; }
.draft-tag { font-family: var(--label); font-size: .95rem; color: var(--walnut); }
.empty { color: var(--stone); }

/* ---------------------------------------------------------------- guide */
.draft-banner { background: var(--cream); border-left: 4px solid var(--walnut); padding: .75rem 1rem; margin-top: 1rem; font-size: 1rem; }
/* every guide section shares one 60rem column so left edges line up; reading text is capped inside it */
.guide .wrap { width: min(100% - 2 * var(--gutter), 60rem); }
.guide-head { padding-block: clamp(1.75rem, 5vw, 3.5rem) 1rem; }
.guide-head h1 { max-width: 22ch; }
.crumb { font-family: var(--label); font-weight: 500; font-size: 1.05rem; margin: 0 0 .6rem; }
.guide-head h1, .page-head h1 { font-size: var(--step-4); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 1rem; color: var(--forest); }
.standfirst { font-size: var(--step-1); line-height: 1.45; color: var(--ink); margin: 0 0 1.25rem; max-width: 40ch; }
.disclose { font-size: 1rem; color: var(--stone); border-top: 1px solid var(--rule); padding-top: .75rem; margin: 0; max-width: 60ch; }

.wide { max-width: 60rem; }
.plan { margin: 1.5rem 0 2.5rem; }
.plan-frame { border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--paper); }
.plan figcaption { display: grid; gap: .3rem; padding-top: .8rem; font-size: 1rem; color: var(--stone); }
.plan figcaption strong { color: var(--ink); font-size: var(--step-0); }

.prose { padding-bottom: 1rem; }
.prose > * { max-width: var(--measure); }
.prose h2 { font-size: var(--step-2); line-height: 1.2; color: var(--forest); margin: 2.5rem 0 .6rem; font-weight: 600; scroll-margin-top: 1rem; }
.prose p, .prose li { hyphens: auto; }
.prose p { margin: 0 0 1.1rem; }

/* measure first: the graph-paper panel */
.measure { margin: 2rem 0 3rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--rule); border-radius: 6px; max-width: 60rem; }
.measure { background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px; }
.measure h2 { margin: 0 0 1rem; font-size: var(--step-2); color: var(--forest); }
.measure dl { margin: 0; display: grid; gap: 0; }
.measure-row { display: grid; gap: .35rem; padding: .9rem 1rem; background: color-mix(in srgb, var(--paper) 92%, transparent); border-top: 1px solid var(--rule); }
.measure dt { font-weight: 600; line-height: 1.35; }
.measure dd { margin: 0; display: grid; gap: .25rem; }
.measure dd .dim { font-size: 1.15rem; }
.measure small { color: var(--stone); font-size: .95rem; line-height: 1.45; }
@media (min-width: 720px) { .measure-row { grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; } }

.plans { padding-bottom: 1rem; }
.plans-grid { display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 900px) { .plans-grid { grid-template-columns: 1fr 1fr; } }
.plan-block h3 { font-size: var(--step-1); color: var(--forest); margin: 0 0 .6rem; line-height: 1.3; }
.checks, .steps { margin: 0; padding: 0; }
.checks { list-style: none; }
.checks li { position: relative; padding: .45rem 0 .45rem 2rem; border-bottom: 1px solid var(--rule); }
.checks li::before { content: ""; position: absolute; left: 0; top: .72rem; width: 1.05rem; height: 1.05rem; border: 2px solid var(--forest); border-radius: 3px; }
.steps { list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: .45rem 0 .45rem 2.4rem; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: .5rem; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--forest); color: var(--paper); font: 600 .95rem/1.6rem var(--label); text-align: center; }
.compare { display: grid; gap: 1rem; }
@media (min-width: 600px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-col { border-top: 3px solid var(--forest); padding-top: .6rem; }
.compare-col + .compare-col { border-top-color: var(--walnut); }
.compare h4 { margin: 0 0 .4rem; font-size: var(--step-0); }
.compare ul { margin: 0; padding-left: 1.1rem; }
.compare li { margin-bottom: .35rem; }

/* picks */
.picks { padding-bottom: 4rem; max-width: 60rem; }
.picks-note { color: var(--stone); max-width: 60ch; margin-top: 0; }
.pick { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--rule); scroll-margin-top: 1rem; }
.pick-icon { width: 64px; height: 64px; border-radius: 6px; }
.pick h3 { margin: 0; font-size: var(--step-1); line-height: 1.3; }
.pick-role { font-family: var(--label); font-weight: 600; color: var(--walnut); margin: .1rem 0 .5rem; }
.pick p { margin: 0 0 .6rem; }
.pick-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 0 0 .4rem; }
.pick-facts div { display: flex; gap: .4rem; }
.pick-facts dt { color: var(--stone); }
.pick-facts dd { margin: 0; font-family: var(--label); font-weight: 600; color: var(--clay); }
.pick-checked { font-size: .95rem; color: var(--stone); }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.buy { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 4px;
  background: var(--forest); color: var(--paper); text-decoration: none; font-family: var(--label); font-weight: 600; font-size: 1.05rem; }
.buy:hover { background: var(--forest-deep); color: var(--paper); }
.paid { font-family: var(--label); font-weight: 500; color: var(--stone); }
@media (min-width: 600px) { .pick { grid-template-columns: 80px 1fr; } .pick-icon { width: 80px; height: 80px; } }

.page-head { padding-block: clamp(1.75rem, 5vw, 3.5rem) 3rem; }

/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--forest); color: #E9EFE6; margin-top: 2rem; padding-block: 2.5rem 1.25rem; font-size: 1rem; line-height: 1.55; }
.site-foot a { color: #FFFFFF; }
.foot-grid { display: grid; gap: 1.5rem; }
.foot-name { font-weight: 600; font-size: var(--step-1); margin: 0 0 .3rem; color: #FFFFFF; }
.site-foot p { margin: 0 0 .6rem; max-width: 52ch; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-family: var(--label); font-weight: 500; font-size: 1.05rem; }
.site-foot nav a { padding-block: .5rem; }
.copy { font-size: .9rem; color: #C9D4C5; margin-top: 1.5rem; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1fr 1.4fr auto; } .site-foot nav { flex-direction: column; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .masthead nav, .site-foot nav, .buy-row { display: none; } body { background: #fff; } }
