/* Stow & Style — quiet apartment storage, original CSS only */
:root {
  --bg: #f3ece1;
  --bg-deep: #ebe2d4;
  --paper: #fbf7f0;
  --ink: #2b241b;
  --muted: #6d6458;
  --line: #ddd2c0;
  --line-strong: #cbbba3;
  --accent: #8f5432;
  --accent-soft: #c4a07a;
  --clay: #c4784a;
  --sage: #c5d1c8;
  --sage-deep: #8fa396;
  --bin: rgba(255, 255, 255, 0.62);
  --tape: #e0b85a;
  --warn: #b54a3a;
  --shadow: 0 18px 50px rgba(43, 36, 27, 0.07);
  --max: 72rem;
  --read: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--ink); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3, h4, .brand, .lane-name, .kicker, .nav-links {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin: 2.6rem 0 0.8rem; }
h3 { font-size: 1.12rem; margin: 1.8rem 0 0.5rem; }
h4 { font-size: 1rem; margin: 1.4rem 0 0.4rem; }

p { margin: 0 0 1.05rem; }
.lede, .hero-copy p:first-of-type { font-size: 1.12rem; }

ul, ol { margin: 0 0 1.2rem; padding-left: 1.2rem; }
li { margin: 0.35rem 0; }
li > ul, li > ol { margin: 0.2rem 0 0.4rem; }

strong { font-weight: 650; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.7rem;
  z-index: 20;
}
.skip:focus { top: 0.75rem; }

.site-header {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 236, 225, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.brand {
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.04em;
}
.brand:hover { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.2rem 1.25rem 4rem;
}

.article-wrap { max-width: var(--read); }

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.meta-desc {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 1.4rem;
}

.disclosure {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-soft);
  padding: 0.85rem 1rem;
  margin: 0 0 1.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.disclosure p { margin: 0 0 0.35rem; }
.disclosure p:last-child { margin: 0; }

.hero-block {
  margin: 0 0 2.4rem;
}

.hero-copy {
  max-width: var(--read);
}

.how-list {
  max-width: var(--read);
  padding-left: 1.35rem;
}
.how-list li { margin: 0.55rem 0; }

.lane-grid {
  display: grid;
  gap: 1.25rem;
  margin: 1.4rem 0 2.2rem;
}
@media (min-width: 720px) {
  .lane-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.lane-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.5rem 1.4rem 1.35rem;
  box-shadow: var(--shadow);
  min-height: 100%;
}
.lane-card h2 { margin-top: 0; font-size: 1.55rem; }
.lane-card p { color: var(--muted); }
.lane-card ol, .lane-card ul {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}
.lane-card li { margin: 0; border-top: 1px solid var(--line); }
.lane-card li:first-child { border-top: 0; }
.lane-card a {
  display: block;
  padding: 0.72rem 0;
  color: var(--ink);
  text-decoration: none;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.lane-card a:hover { color: var(--accent); }
.lane-card a span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}

.also-row {
  max-width: var(--read);
  margin: 0 0 2.5rem;
}
.also-row ul { padding-left: 1.15rem; }

.positioning {
  max-width: var(--read);
  padding: 0.2rem 0 0;
}

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 2.2rem 1.25rem 2.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer-inner { max-width: var(--max); margin: 0 auto; }
.site-footer p { margin: 0 0 0.65rem; }
.site-footer .assoc {
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.footer-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

.prose h2:first-child { margin-top: 0.4rem; }
.prose a[href="#affiliate-placeholder"] {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 1.5px dashed var(--accent-soft);
  color: var(--ink);
}
.prose a[href="#affiliate-placeholder"]:hover {
  color: var(--accent);
  border-bottom-style: solid;
}

/* ---- Hero diagrams (original CSS, no product photos) ---- */
.hero-diagram {
  margin: 0 0 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1rem 1rem 0.85rem;
  overflow: hidden;
}
.hero-diagram figcaption {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-top: 0.75rem;
  line-height: 1.4;
}
.diagram {
  position: relative;
  min-height: 168px;
  background:
    linear-gradient(180deg, #f7f1e8 0%, #efe6d8 100%);
  border: 1px solid var(--line-strong);
  overflow: hidden;
}

.tape {
  height: 12px;
  background: var(--tape);
  background-image: repeating-linear-gradient(
    90deg,
    #2b241b 0 1.5px,
    transparent 1.5px 9px
  );
  border-radius: 1px;
  box-shadow: 0 1px 0 #c9a24a;
}
.tape-label {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.bin {
  background: var(--bin);
  border: 1.5px solid #8ea197;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}
.x-mark {
  width: 18px;
  height: 18px;
  position: relative;
}
.x-mark::before, .x-mark::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  width: 2px;
  height: 18px;
  background: var(--warn);
}
.x-mark::before { transform: rotate(45deg); }
.x-mark::after { transform: rotate(-45deg); }

/* 1. small pantry cabinet */
.d-pantry {
  display: grid;
  grid-template-rows: 18px 1fr 18px 1fr;
  gap: 6px;
  padding: 14px 16px 18px;
  height: 220px;
}
.d-pantry .cab-top, .d-pantry .shelf {
  background: #e6d8c4;
  border: 1px solid #c9b79a;
}
.d-pantry .bay {
  display: grid;
  grid-template-columns: 52px 1fr 64px;
  gap: 10px;
  align-items: end;
  padding: 4px 8px 0;
}
.d-pantry .stack { display: flex; flex-direction: column; gap: 3px; justify-content: flex-end; }
.d-pantry .stack .bin { height: 22px; }
.d-pantry .empty { border: 1.5px dashed #c9b79a; min-height: 40px; }
.d-pantry .turn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid #8fa396;
  background: radial-gradient(circle at 50% 50%, transparent 38%, rgba(143,163,150,0.35) 40% 52%, transparent 54%);
  justify-self: end;
  align-self: center;
}
.d-pantry .depth { display: flex; align-items: center; gap: 8px; padding: 0 8px; }

/* 2. closet pantry overhead */
.d-closet {
  height: 230px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 28px;
  gap: 10px;
}
.d-closet .box {
  border: 2px solid #c9b79a;
  background: #f6efe4;
  display: grid;
  grid-template-rows: 36px 36px 1fr;
  position: relative;
}
.d-closet .sh {
  border-bottom: 2px solid #c9b79a;
  display: flex;
  gap: 6px;
  padding: 6px;
  align-items: stretch;
}
.d-closet .sh .bin { flex: 1; }
.d-closet .rod {
  position: absolute;
  left: 8px;
  right: 28%;
  bottom: 28px;
  height: 4px;
  background: #8a7a64;
  border-radius: 2px;
}
.d-closet .rod::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 4px;
  height: 28px;
  border: 1.5px solid #b7a48a;
  border-top: 0;
  opacity: 0.7;
}
.d-closet .door {
  border: 2px solid #c9b79a;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 4px;
  background: #efe4d4;
}
.d-closet .door i {
  display: block;
  flex: 1;
  background: rgba(143,163,150,0.35);
  border: 1px solid #8fa396;
}

/* 3. spice drawer */
.d-spice {
  height: 210px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 12px;
}
.d-spice .drawer {
  border: 2px solid #c9b79a;
  background: #efe6d6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 12px;
  align-content: center;
}
.d-spice .jar {
  height: 22px;
  background: #d7c4a6;
  border: 1px solid #b08968;
  border-radius: 3px 3px 2px 2px;
}
.d-spice .side {
  border: 2px solid #c9b79a;
  background: #f6efe4;
  position: relative;
  padding: 10px;
}
.d-spice .clear {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 18px;
  height: 42%;
  border-bottom: 2px dashed #8f5432;
}
.d-spice .tall {
  position: absolute;
  left: 28%;
  width: 22px;
  bottom: 12px;
  top: 12px;
  background: #c4784a;
  opacity: 0.55;
}
.d-spice .side .x-mark { position: absolute; top: 8px; right: 8px; }

/* 4. snack zone */
.d-snack {
  height: 200px;
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}
.d-snack .kid {
  border-top: 2px dotted #8f5432;
  position: relative;
  height: 0;
  margin: 0 8px 8px;
}
.d-snack .row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  height: 92px;
  padding: 0 8px 8px;
}
.d-snack .bin {
  position: relative;
}
.d-snack .bin::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 42%;
  background: #f3ece1;
  border-top: 1.5px solid #8fa396;
}

/* 5. over-door side view */
.d-door {
  height: 230px;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 28px 70px 1fr;
  gap: 0;
  align-items: stretch;
}
.d-door .frame { background: #d7c4a6; }
.d-door .slab {
  background: #efe4d4;
  border: 2px solid #b89f7e;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 8px 10px;
  position: relative;
}
.d-door .hook {
  position: absolute;
  top: 4px;
  left: -10px;
  right: 8px;
  height: 10px;
  border: 2px solid #6d6458;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}
.d-door .bsk {
  flex: 1;
  background: rgba(143,163,150,0.4);
  border: 1px solid #8fa396;
}
.d-door .interior {
  margin-left: 16px;
  border-left: 2px dashed var(--line-strong);
  position: relative;
}
.d-door .hit {
  position: absolute;
  left: 12px;
  top: 38%;
  width: 70%;
  height: 10px;
  background: #e6d8c4;
  border: 1px solid #c9b79a;
}
.d-door .hit .x-mark { position: absolute; right: -8px; top: -14px; }

/* 6. P-trap */
.d-ptrap {
  height: 220px;
  padding: 14px 16px;
  display: grid;
  grid-template-rows: 22px 1fr 16px;
}
.d-ptrap .top { background: #d7c4a6; }
.d-ptrap .floor { background: #cbbba3; }
.d-ptrap .bay {
  position: relative;
  background: #f6efe4;
  border-left: 2px solid #c9b79a;
  border-right: 2px solid #c9b79a;
}
.d-ptrap .pipe {
  position: absolute;
  left: 50%;
  top: 0;
  width: 18px;
  height: 38%;
  background: #9aa7a0;
  transform: translateX(-50%);
}
.d-ptrap .u {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 58px;
  height: 48px;
  border: 10px solid #9aa7a0;
  border-top: 0;
  border-radius: 0 0 32px 32px;
  transform: translateX(-50%);
  background: transparent;
}
.d-ptrap .caddy {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 32%;
  height: 54%;
  border: 2px solid #8fa396;
  background: rgba(197, 209, 200, 0.5);
}
.d-ptrap .gap {
  position: absolute;
  left: 34%;
  bottom: 18px;
  width: 12%;
  border-top: 2px dashed var(--accent);
}

/* 7. mat + rack exploded */
.d-mat {
  height: 220px;
  padding: 16px;
  display: grid;
  grid-template-rows: 1fr 18px 48px;
  gap: 8px;
}
.d-mat .rack-row {
  display: flex;
  gap: 8px;
  align-items: end;
  padding-left: 12%;
}
.d-mat .bot {
  width: 16px;
  height: 40px;
  background: #c4784a;
  opacity: 0.7;
}
.d-mat .rack {
  width: 40%;
  height: 22px;
  background: #8fa396;
}
.d-mat .mat {
  background: #d5e0dc;
  border: 2px solid #8fa396;
  position: relative;
}
.d-mat .cut {
  position: absolute;
  left: 46%;
  top: -4px;
  width: 28px;
  height: 22px;
  background: var(--paper);
  border: 2px dashed #6d6458;
}
.d-mat .floor {
  background: #d7c4a6;
}

/* 8. tiny bath plan */
.d-bath {
  height: 230px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 1fr 0.7fr;
  gap: 6px;
  background: #efe6d6;
}
.d-bath .vanity {
  background: #e6d8c4;
  border: 2px solid #c9b79a;
  grid-row: 1 / 3;
  position: relative;
}
.d-bath .tray {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 12%;
  height: 22%;
  border: 1.5px solid #8fa396;
  background: var(--bin);
}
.d-bath .toilet {
  background: #fbf7f0;
  border: 2px solid #c9b79a;
  border-radius: 40% 40% 12px 12px;
}
.d-bath .door {
  border: 2px dashed var(--accent);
  border-left: 3px solid var(--ink);
  position: relative;
}
.d-bath .arc {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70%;
  height: 90%;
  border: 2px dotted #c4784a;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 100% 0 0;
}

/* 9. over-toilet skip */
.d-ott {
  height: 230px;
  padding: 12px 20px 8px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
}
.d-ott .unit {
  width: 46%;
  height: 92%;
  border: 2px solid #c9b79a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  position: relative;
  background: rgba(246, 239, 228, 0.8);
}
.d-ott .sh { height: 8px; background: #d7c4a6; }
.d-ott .bowl {
  width: 28%;
  height: 34%;
  background: #fbf7f0;
  border: 2px solid #c9b79a;
  border-radius: 8px 8px 40% 40%;
  margin: 0 -6%;
  position: relative;
  z-index: 1;
}
.d-ott .unit .x-mark { position: absolute; right: 8px; top: 42%; }

/* 10. hangers */
.d-hang {
  height: 200px;
  padding: 18px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.d-hang .rod-box {
  border: 2px solid #c9b79a;
  background: #f6efe4;
  padding: 22px 10px 12px;
  position: relative;
}
.d-hang .bar {
  height: 4px;
  background: #6d6458;
  margin-bottom: 8px;
}
.d-hang .messy span {
  display: inline-block;
  width: 10px;
  height: 48px;
  background: #c4784a;
  margin-right: 7px;
  transform-origin: top;
}
.d-hang .messy span:nth-child(odd) { transform: rotate(8deg); background: #8a7a64; width: 14px; }
.d-hang .neat span {
  display: inline-block;
  width: 5px;
  height: 52px;
  background: #5c5348;
  margin-right: 4px;
}

/* 11. entry plan */
.d-entry {
  height: 220px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 18px;
  gap: 6px;
  background: #efe6d6;
}
.d-entry .hall {
  border: 2px solid #c9b79a;
  position: relative;
  background: #f6efe4;
}
.d-entry .rad {
  position: absolute;
  right: 8px;
  top: 18%;
  bottom: 18%;
  width: 14px;
  background: repeating-linear-gradient(#c4784a 0 3px, #f3ece1 3px 6px);
  opacity: 0.7;
}
.d-entry .hooks {
  position: absolute;
  left: 10px;
  top: 20%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.d-entry .hooks i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ink);
}
.d-entry .tray {
  position: absolute;
  left: 36px;
  top: 38%;
  width: 42px;
  height: 28px;
  border: 1.5px solid #8fa396;
  background: var(--bin);
}
.d-entry .arc {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 55%;
  height: 70%;
  border: 2px dotted #c4784a;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 100% 0 0;
}

/* 12. labels */
.d-label {
  height: 200px;
  padding: 22px 16px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 0.7fr;
  gap: 10px;
  align-items: end;
}
.d-label .bin { height: 110px; position: relative; }
.d-label .lab {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 18px;
  height: 14px;
  background: #fbf7f0;
  border: 1px solid #2b241b;
}
.d-label .maker {
  height: 54px;
  background: #2b241b;
  border-radius: 4px;
  position: relative;
}
.d-label .maker::after {
  content: "";
  position: absolute;
  right: -22px;
  top: 8px;
  width: 28px;
  height: 18px;
  background: repeating-linear-gradient(#e0b85a, #f3ece1 4px);
  border: 1px solid #6d6458;
}
.d-label .nope {
  position: absolute;
  right: 10px;
  top: 10px;
}

@media (min-width: 640px) {
  main { padding: 3rem 2rem 5rem; }
  .site-header { padding: 1.2rem 2rem; }
  .hero-diagram { padding: 1.25rem 1.25rem 1rem; }
  .diagram { min-height: 200px; }
}

@media (min-width: 960px) {
  html { font-size: 18px; }
  main { padding: 3.5rem 2rem 5.5rem; }
}
