/* =========================================================
   Types of Gutter Guards Nashville — architecture field guide
   One frame, five section bands, no JavaScript.
   ========================================================= */

:root{
  /* palette */
  --deep:        #0b3a38;   /* deep blue-green */
  --deep-2:      #07302f;
  --deep-3:      #052527;
  --mineral:     #43718c;   /* soft mineral blue */
  --mineral-100: #e6eef4;
  --mineral-200: #cddeea;
  --mineral-300: #9fbdd0;
  --mineral-900: #10394a;
  --cream:       #faf6ef;   /* warm off-white */
  --cream-2:     #f4eee4;
  --amber:       #c98a1f;   /* graphics only */
  --amber-text:  #8a5209;   /* AA on cream */
  --amber-bright:#e6a94a;   /* AA on deep bands */
  --ink:         #14302e;
  --ink-mute:    #4a5f5d;
  --link:        #0e5a70;

  /* per-band tokens, light default */
  --fg: var(--ink);
  --fg-mute: var(--ink-mute);
  --line: rgba(20,48,46,.14);
  --line-strong: rgba(20,48,46,.24);
  --focus: var(--deep);
  --accent: var(--amber-text);

  --frame: 1160px;
  --pad: clamp(1rem, 4vw, 2rem);
  --radius: 16px;
}

/* ---------- reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:clamp(1.0625rem,1.02rem + 0.22vw,1.15rem);
  line-height:1.62;
  text-rendering:optimizeLegibility;
}
img,svg{max-width:100%;height:auto}
p{margin:0 0 1.1em}
p:last-child{margin-bottom:0}
strong{font-weight:700}
em{font-style:italic}

a{color:var(--link);text-decoration:underline;text-decoration-thickness:.08em;text-underline-offset:.16em}
a:hover{text-decoration-thickness:.16em}

:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:4px}

.vh{
  position:absolute!important;width:1px;height:1px;
  margin:-1px;padding:0;border:0;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;
}

/* ---------- frame + bands ---------- */
.frame{
  max-width:var(--frame);
  margin-inline:auto;
  padding-inline:var(--pad);
  min-width:0;
}

.band{
  padding-block:clamp(2.75rem,6vw,4.75rem);
  border-top:1px solid var(--line);
  position:relative;
}
.band::before{
  content:"";position:absolute;top:-1px;left:0;width:clamp(90px,16vw,190px);height:3px;
  background:var(--amber);
}

.band--dark{
  --fg:var(--cream);
  --fg-mute:#b9cfcb;
  --line:rgba(250,246,239,.18);
  --line-strong:rgba(250,246,239,.34);
  --focus:var(--amber-bright);
  --accent:var(--amber-bright);
  --dia-ink:#cfe6e2;
  --dia-bg:rgba(250,246,239,.07);
  --dia-line:rgba(250,246,239,.22);
  color:var(--fg);
  background:var(--deep-2);
}
.band--guide{background:var(--cream)}
.band--pro{background:var(--mineral-100)}
.band--fine{background:linear-gradient(180deg,var(--deep-3),var(--deep-2) 55%,var(--deep))}
.band--retail{background:var(--cream-2)}
.band--choose{background:var(--mineral-900)}

/* ---------- headings ---------- */
h1,h2,h3{
  margin:0 0 .6em;
  line-height:1.12;
  letter-spacing:-.012em;
  overflow-wrap:break-word;
}
h1{font-size:clamp(1.85rem,1.25rem + 2.9vw,3.05rem);font-weight:800;max-width:20ch}
h2{
  font-size:clamp(1.45rem,1.1rem + 1.6vw,2.1rem);
  font-weight:750;
  max-width:26ch;
}
h3{font-size:clamp(1.15rem,1.05rem + .5vw,1.4rem);font-weight:700}

.idx{
  display:inline-block;
  margin-right:.55rem;
  font-size:.7em;font-weight:800;letter-spacing:.08em;
  color:var(--accent);
  font-variant-numeric:tabular-nums;
}

.sec-lede{
  font-size:clamp(1.12rem,1.04rem + .38vw,1.3rem);
  line-height:1.5;
  max-width:62ch;
  margin-bottom:clamp(1.6rem,3.5vw,2.4rem);
  color:var(--fg);
}
.band--guide .sec-lede,.band--pro .sec-lede,.band--retail .sec-lede{color:var(--ink)}

.band--dark p{color:var(--fg)}
.band--dark .band-body{max-width:70ch}
.band--fine p:not(.sec-lede),.band--choose p:not(.sec-lede):not(.fallout){max-width:72ch;color:#dcebe8}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  padding-block:clamp(3rem,8vw,5.5rem);
  border-top:none;
  background:
    radial-gradient(120% 90% at 82% 6%, rgba(67,113,140,.34), transparent 62%),
    linear-gradient(168deg,#07302f 0%,#0b3a38 58%,#0d4340 100%);
}
.hero::before{display:none}
.hero .lede{
  font-size:clamp(1.2rem,1.05rem + .75vw,1.5rem);
  line-height:1.45;
  max-width:60ch;
  margin-bottom:1.1em;
  color:#f2f7f5;
}
.hero .hero__note{max-width:66ch;color:#c8ddd9;font-size:1.02rem}

/* roof-edge / gutter cross-section (decorative) */
.xsec{
  position:relative;
  margin-top:clamp(1.75rem,4vw,2.75rem);
  height:clamp(150px,24vw,232px);
  border:1px solid rgba(250,246,239,.16);
  border-radius:var(--radius);
  background:
    linear-gradient(180deg, rgba(159,189,208,.12), rgba(5,37,39,.35));
  overflow:hidden;
}
.xsec > span{position:absolute;display:block}
.xsec__roof{
  left:0;top:4%;width:66%;height:78%;
  background:
    repeating-linear-gradient(118deg, rgba(250,246,239,.16) 0 2px, transparent 2px 17px),
    linear-gradient(155deg,#17544e,#0d3b38);
  clip-path:polygon(0 0, 100% 50%, 100% 76%, 0 26%);
}
.xsec__drops{
  left:58%;top:12%;width:22%;height:30%;
  background-image:radial-gradient(circle, rgba(190,219,232,.8) 1.7px, transparent 1.9px);
  background-size:16px 22px;
}
.xsec__cover{
  left:56%;top:47%;width:30%;height:9px;
  background:linear-gradient(90deg,var(--amber-bright),var(--amber));
  border-radius:8px 12px 3px 3px;
}
.xsec__gutter{
  left:57%;top:53%;width:28%;height:26%;
  border:3px solid var(--mineral-300);
  border-top:none;
  border-radius:0 0 16px 16px;
  background:linear-gradient(180deg, rgba(159,189,208,.10), rgba(159,189,208,.28));
}
.xsec__spout{
  left:80%;top:76%;width:9px;height:20%;
  background:var(--mineral-300);
  opacity:.75;
  border-radius:0 0 3px 3px;
}
.xsec__wall{
  left:0;right:0;bottom:0;height:10%;
  background:rgba(250,246,239,.07);
  border-top:1px solid rgba(250,246,239,.14);
}

/* four controlling paths */
.paths{
  list-style:none;margin:clamp(1.25rem,3vw,1.9rem) 0 0;padding:0;
  display:grid;gap:.7rem;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.paths li{
  display:flex;gap:.65rem;align-items:center;min-width:0;
  padding:.8rem .9rem;
  border:1px solid rgba(250,246,239,.2);
  border-radius:12px;
  background:rgba(250,246,239,.06);
  font-size:1rem;line-height:1.32;font-weight:600;
  color:#eef5f3;
  overflow-wrap:break-word;
}

/* =========================================================
   DIAGRAMS (decorative, CSS-only)
   ========================================================= */
.dia{
  position:relative;flex:0 0 auto;
  width:46px;height:46px;border-radius:13px;
  background:var(--dia-bg,var(--mineral-100));
  border:1px solid var(--dia-line,var(--mineral-200));
  overflow:hidden;
}
.dia--sm{width:30px;height:30px;border-radius:9px}
.dia::before,.dia::after{content:"";position:absolute;inset:0}
.dia::after{content:none}

/* mesh — fine filter surface */
.dia--mesh::before{
  background-image:radial-gradient(circle, var(--dia-ink,var(--deep)) .95px, transparent 1.15px);
  background-size:5px 5px;background-position:2px 2px;
}
.dia--sm.dia--mesh::before{background-size:4px 4px}

/* curved hood — nose + narrow inlet */
.dia--hood::before{
  inset:9px 8px 16px 7px;
  border-top:4px solid var(--dia-ink,var(--deep));
  border-right:4px solid var(--dia-ink,var(--deep));
  border-radius:0 70% 0 0;
}
.dia--hood::after{
  content:"";inset:auto 10px 11px 8px;height:3px;
  background:var(--amber);border-radius:2px;
}
.dia--sm.dia--hood::before{inset:6px 6px 11px 5px;border-width:3px}
.dia--sm.dia--hood::after{inset:auto 7px 7px 6px;height:2px}

/* integrated gutter — one formed piece */
.dia--onepiece::before{
  inset:14px 8px 9px 8px;
  border:4px solid var(--dia-ink,var(--deep));
  border-top:none;
  border-radius:0 0 11px 11px;
}
.dia--onepiece::after{
  content:"";inset:9px 6px auto 6px;height:5px;
  background:var(--dia-ink,var(--deep));border-radius:3px 9px 0 0;
}
.dia--sm.dia--onepiece::before{inset:10px 6px 6px 6px;border-width:3px}
.dia--sm.dia--onepiece::after{inset:6px 4px auto 4px;height:3px}

/* coarse holes */
.dia--holes::before{
  background-image:radial-gradient(circle, var(--dia-ink,var(--deep)) 2.7px, transparent 2.9px);
  background-size:11px 11px;background-position:5px 5px;
}

/* foam — open pores */
.dia--foam::before{
  background-image:
    radial-gradient(circle at 24% 30%, var(--dia-ink,var(--deep)) 3.1px, transparent 3.3px),
    radial-gradient(circle at 63% 21%, var(--dia-ink,var(--deep)) 2.2px, transparent 2.4px),
    radial-gradient(circle at 79% 57%, var(--dia-ink,var(--deep)) 3.4px, transparent 3.6px),
    radial-gradient(circle at 33% 69%, var(--dia-ink,var(--deep)) 2.6px, transparent 2.8px),
    radial-gradient(circle at 55% 46%, var(--dia-ink,var(--deep)) 1.8px, transparent 2px),
    radial-gradient(circle at 15% 55%, var(--dia-ink,var(--deep)) 1.6px, transparent 1.8px);
}

/* bristles */
.dia--brush::before{
  inset:9px 7px 12px 7px;
  background-image:repeating-linear-gradient(90deg, var(--dia-ink,var(--deep)) 0 2px, transparent 2px 6px);
}
.dia--brush::after{
  content:"";inset:auto 6px 9px 6px;height:3px;
  background:var(--dia-ink,var(--deep));border-radius:2px;
}

/* trough — material caught inside */
.dia--trough::before{
  inset:13px 8px 9px 8px;
  border:3px solid var(--dia-ink,var(--deep));
  border-top:none;
  border-radius:0 0 9px 9px;
}
.dia--trough::after{
  content:"";inset:auto 12px 12px 12px;height:5px;
  background-image:radial-gradient(circle, var(--amber) 2px, transparent 2.2px);
  background-size:7px 7px;
}
.dia--sm.dia--trough::before{inset:9px 6px 6px 6px;border-width:2px}
.dia--sm.dia--trough::after{inset:auto 8px 8px 8px;height:4px;background-size:5px 5px}

/* =========================================================
   01 — SIX-TYPE FIELD GUIDE (semantic table, card records)
   ========================================================= */
.fg{
  display:block;
  width:100%;
  border-collapse:collapse;
  margin:0;
}
.fg tbody{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(1rem,2vw,1.5rem);
}
.rec{
  display:flex;
  flex-direction:column;
  min-width:0;
  background:#fff;
  border:1px solid var(--mineral-200);
  border-radius:var(--radius);
  box-shadow:0 1px 0 rgba(20,48,46,.05), 0 12px 26px -22px rgba(11,58,56,.55);
  overflow:hidden;
}
.rec__head{
  display:flex;align-items:center;gap:.85rem;
  min-width:0;
  margin:0;padding:1rem 1.15rem;
  text-align:left;
  background:linear-gradient(180deg,#f2f7fa,#e9f1f6);
  border-bottom:2px solid var(--mineral-200);
  font-weight:700;
}
.rec__head strong{
  font-size:1.06rem;line-height:1.3;color:var(--deep);
  overflow-wrap:break-word;min-width:0;
}
.rec__cell{
  display:block;min-width:0;
  padding:.85rem 1.15rem;
  border-top:1px solid rgba(20,48,46,.10);
}
.rec__cell:first-of-type{border-top:none}
.rec__key{
  display:block;
  font-size:1rem;font-weight:700;
  letter-spacing:.01em;
  color:var(--ink-mute);
  margin-bottom:.15rem;
}
.rec__val{
  display:block;
  font-size:1.0625rem;line-height:1.5;
  color:var(--ink);
  overflow-wrap:break-word;
}
/* how water gets in — the organizing axis of the guide */
.rec__cell--water{
  background:#fdf7ec;
  border-left:4px solid var(--amber);
  padding-left:calc(1.15rem - 4px);
}
.rec__cell--water .rec__key{color:var(--amber-text)}
.rec__cell--water .rec__val{font-weight:600}

/* =========================================================
   02 — PROFESSIONAL ARCHITECTURE RAIL
   ========================================================= */
.rail{position:relative;display:grid;gap:clamp(1rem,2vw,1.5rem)}
.rail::before{
  content:"";position:absolute;left:26px;top:30px;bottom:30px;width:2px;
  background:linear-gradient(180deg,var(--mineral-300),rgba(159,189,208,.35));
}
.prov{
  position:relative;
  min-width:0;
  background:#fff;
  border:1px solid var(--mineral-200);
  border-radius:var(--radius);
  padding:clamp(1.1rem,2.4vw,1.6rem);
  padding-left:clamp(3.6rem,6vw,4.4rem);
  box-shadow:0 12px 26px -24px rgba(11,58,56,.6);
}
.prov__head{display:flex;align-items:center;gap:.8rem;min-width:0;margin-bottom:1rem}
.prov__node{
  position:absolute;left:8px;top:clamp(1.05rem,2.4vw,1.55rem);
  display:flex;align-items:center;justify-content:center;
  width:38px;height:38px;border-radius:50%;
  background:#fff;border:2px solid var(--mineral-300);
}
.prov__node .dia{width:26px;height:26px;border-radius:7px;border:none;background:transparent}
.prov__name{
  margin:0;min-width:0;
  font-size:clamp(1.12rem,1.02rem + .5vw,1.35rem);
  color:var(--deep);
  overflow-wrap:break-word;
}
.prov__fields{
  margin:0;display:grid;gap:0 clamp(1rem,2.2vw,1.75rem);
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.f{
  min-width:0;
  padding:.7rem 0;
  border-top:1px solid rgba(20,48,46,.12);
}
.f dt{
  font-size:1rem;font-weight:700;color:var(--ink-mute);
  margin-bottom:.12rem;
}
.f dd{
  margin:0;font-size:1.0625rem;line-height:1.5;color:var(--ink);
  overflow-wrap:break-word;
}
.sec-close{
  margin-top:clamp(1.4rem,3vw,2rem);
  font-size:1.1rem;
  color:var(--ink);
  border-left:4px solid var(--amber);
  padding-left:1rem;
  max-width:64ch;
}

/* =========================================================
   03 — FINE DEBRIS
   ========================================================= */
.grit{
  position:relative;
  display:flex;flex-wrap:wrap;align-items:stretch;
  gap:clamp(1rem,2.5vw,2rem);
  margin:0 0 clamp(1.6rem,3.5vw,2.3rem);
  padding:clamp(1.1rem,2.6vw,1.7rem);
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(250,246,239,.05);
  overflow:hidden;
}
.grit__field{
  position:absolute;inset:0;
  background-image:radial-gradient(circle, rgba(207,230,226,.28) .9px, transparent 1.1px);
  background-size:9px 9px;
  opacity:.55;
  pointer-events:none;
}
.grit__set{
  position:relative;
  list-style:none;margin:0;padding:0;
  display:flex;flex-wrap:wrap;align-items:center;
  gap:.6rem 1.4rem;
  min-width:0;
}
.grit__set--fine{
  flex:1 1 24rem;
  padding-left:clamp(1rem,2.5vw,1.8rem);
  border-left:1px solid var(--line-strong);
}
.grit__set li{
  display:flex;align-items:center;gap:.6rem;
  font-size:1.0625rem;font-weight:600;color:#eaf3f1;
  min-width:0;overflow-wrap:break-word;
}
.pt{flex:0 0 auto;border-radius:50%;background:var(--amber-bright)}
.pt--xl{width:22px;height:22px}
.pt--s{width:8px;height:8px;background:#bcd8d2}

/* =========================================================
   04 — TWO PATHS: PIECES vs FITTED SYSTEM
   ========================================================= */
.split{
  display:grid;gap:clamp(1rem,2.2vw,1.6rem);
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
}
.way{
  min-width:0;
  background:#fff;
  border:1px solid var(--line-strong);
  border-radius:var(--radius);
  padding:clamp(1.15rem,2.6vw,1.7rem);
}
.way__glyph{
  display:block;width:64px;height:26px;margin-bottom:.85rem;border-radius:6px;
}
.way__glyph--pieces{
  background-image:
    linear-gradient(90deg,var(--mineral) 0 17px,transparent 17px 23px),
    linear-gradient(90deg,transparent 0 23px,var(--mineral) 23px 40px,transparent 40px 46px),
    linear-gradient(90deg,transparent 0 46px,var(--mineral) 46px 64px);
}
.way__glyph--fitted{
  background:linear-gradient(90deg,var(--deep),var(--mineral));
}
.way__label{
  font-size:1.0625rem;font-weight:800;letter-spacing:.01em;
  color:var(--deep);
  margin-bottom:.65rem;
  padding-bottom:.55rem;
  border-bottom:2px solid var(--amber);
}
.way p:not(.way__label){font-size:1.0625rem}

/* =========================================================
   05 — NASHVILLE SELECTION
   ========================================================= */
.axes{
  list-style:none;margin:0 0 clamp(1.6rem,3.5vw,2.2rem);padding:0;
  display:grid;gap:.7rem;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.axes li{
  min-width:0;
  padding:.75rem .9rem;
  border:1px solid var(--line);
  border-top:3px solid var(--amber-bright);
  border-radius:0 0 12px 12px;
  background:rgba(250,246,239,.06);
  font-size:1rem;line-height:1.34;font-weight:600;color:#e8f2ef;
  overflow-wrap:break-word;
}
.tok{
  color:var(--amber-bright);
  font-weight:700;
}
.tok--gut{color:#a9d6ea}
.fallout{
  font-size:1.1rem;font-weight:700;color:#eef5f3;
  margin-bottom:1.1rem;
}
.decide{
  list-style:none;margin:0;padding:0;
  display:grid;gap:clamp(.85rem,2vw,1.3rem);
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.dpath{
  position:relative;min-width:0;
  padding:1.15rem 1.25rem 1.15rem 3.5rem;
  border:1px solid var(--line-strong);
  border-radius:var(--radius);
  background:rgba(250,246,239,.07);
  font-size:1.0625rem;line-height:1.5;color:#e6f0ee;
  overflow-wrap:break-word;
}
.dpath strong{display:block;color:#fff;font-size:1.1rem;line-height:1.35;margin-bottom:.15rem}
.dpath__n{
  position:absolute;left:1.1rem;top:1.15rem;
  display:flex;align-items:center;justify-content:center;
  width:1.9rem;height:1.9rem;border-radius:50%;
  background:var(--amber-bright);color:#062527;
  font-weight:800;font-size:1rem;
  font-variant-numeric:tabular-nums;
}

/* =========================================================
   FOOTER + 404
   ========================================================= */
.site-foot{
  background:var(--deep-3);
  color:#b9cfcb;
  padding-block:1.6rem;
  font-size:1rem;
}
.site-foot p{margin:0}

.notfound{
  min-height:70vh;
  display:flex;align-items:center;
  background:linear-gradient(168deg,#07302f,#0b3a38);
  color:var(--cream);
  padding-block:clamp(3rem,9vw,6rem);
}
.notfound h1{max-width:18ch}
.notfound p{color:#c8ddd9;max-width:52ch;font-size:1.15rem}
.notfound a{color:var(--amber-bright)}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1060px){
  .prov__fields{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 900px){
  .fg tbody{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .decide{grid-template-columns:1fr}
  .axes{grid-template-columns:repeat(2,minmax(0,1fr))}
  .paths{grid-template-columns:repeat(2,minmax(0,1fr))}
  h1,h2{max-width:none}
}
@media (max-width: 700px){
  .prov__fields{grid-template-columns:1fr}
  .grit__set--fine{
    flex-basis:100%;
    padding-left:0;padding-top:1rem;
    border-left:none;
    border-top:1px solid var(--line-strong);
  }
  .rail::before{display:none}
  .prov{padding-left:clamp(1.1rem,2.4vw,1.6rem)}
  .prov__node{position:static;width:30px;height:30px}
  .xsec{height:clamp(140px,34vw,190px)}
}
@media (max-width: 460px){
  .paths{grid-template-columns:1fr}
  .axes{grid-template-columns:1fr}
  h2{gap:.5rem}
  .rec__head{padding:.9rem 1rem}
  .rec__cell{padding:.8rem 1rem}
  .rec__cell--water{padding-left:calc(1rem - 4px)}
  .dpath{padding:1rem 1rem 1rem 3.2rem}
  .dpath__n{left:.9rem;top:1rem}
}

/* =========================================================
   PREFERENCES
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
    transition-duration:.001ms!important;
    scroll-behavior:auto!important;
  }
}
@media (prefers-contrast: more){
  .rec,.prov,.way{border-color:var(--deep)}
  .paths li,.axes li,.dpath{border-color:var(--cream)}
}
@media print{
  .band{background:#fff!important;color:#000!important}
  .xsec,.grit__field,.dia,.way__glyph{display:none}
  .fg tbody,.split,.decide,.axes,.paths{grid-template-columns:1fr}
}
