/* Reset + element defaults matched to the source's computed baseline. */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-reg);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;             /* source clips horizontally too */
}

/* the source sets text-transform:capitalize on headings, which is why the
   live site reads "Decking Material Options For Every Style & Budget" */
h1,h2,h3,h4,h5,h6 {
  margin: 0 0 10px; font-weight: var(--fw-xbold); line-height: 1.2; color: var(--text);
  text-transform: capitalize;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); color: var(--brand); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); color: var(--text-dark); }
p  { margin: 0 0 1em; }
/* Long unbreakable strings (bare URLs in body copy) otherwise set the
   document's intrinsic width and widen the mobile layout viewport - measured
   441 at a 390 device on /llm-info/, which renders the whole page zoomed out. */
p, li, td, th, dd, figcaption, blockquote { overflow-wrap: break-word; }
a { overflow-wrap: break-word; }
a  { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; border: 0; }
ul,ol { margin: 0 0 1em; padding-left: 1.2em; }
button { font: inherit; }

/* Nunito Sans - the family the source actually loads (Google Fonts, SIL OFL).
   Variable font, so 300-800 all render from real outlines with one file. */
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/NunitoSans-Variable.ttf") format("truetype-variations");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/NunitoSans-Italic-Variable.ttf") format("truetype-variations");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

/* --- shared layout primitives ------------------------------------------- */
/* Source inner width is exactly 1200 at 1440, 734 at 768, 356 at 390.
   With border-box the gutter must be added to the cap, or desktop content
   comes out 2*gutter too narrow. */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.band { padding-block: var(--band-pad-y); }  /* overridden per band by bands.css */
.band--light  { background: var(--surface-alt); }
.band--white  { background: var(--white); }
.band--dark   { background: var(--text-dark); color: var(--white); }
.band--dark h2, .band--dark h3 { color: var(--white); }

.sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.skip-link {
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--brand); color:var(--black); padding:10px 18px; font-weight:var(--fw-bold);
}
.skip-link:focus { left:0; }

:where(a,button,input,textarea,select):focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
}

/* measured type scale: H1 17/20/33, H2 26/30/40 across 390/768/1440 */
@media (max-width: 1024px) {
  :root { --fs-h1: 20px; --fs-h2: 30px; --fs-h2-sm: 32px; }
}
@media (max-width: 767px) {
  :root { --fs-h1: 17px; --fs-h2: 26px; --fs-h2-sm: 28px; --fs-h3-lg: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}
