/* Ply-Lam static site */

:root {
  --ink: #1f2b30;          /* deep slate, body text and header */
  --muted: #56666c;
  --paper: #ffffff;
  --panel: #eef1f0;        /* cool light grey panels */
  --rule: #d3d9d7;
  --veneer: #d9b67c;       /* birch face veneer */
  --veneer-dark: #a8783c;  /* veneer edge / accent text on light */
  --core: #c39a5c;         /* cross-grain core ply */
  --pt: #4f6b45;           /* pressure treated green */
  --focus: #2f7dd1;

  --font-head: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-color: var(--veneer-dark); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--veneer-dark); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 600; margin-top: 0; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); padding: .5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------------- Header */

.site-header { background: var(--ink); color: #fff; }

.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px; flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.75rem; letter-spacing: .01em; }

/* little stacked-ply logo mark */
.brand-mark { display: grid; gap: 2px; width: 30px; }
.brand-mark i { height: 5px; border-radius: 1px; background: var(--veneer); }
.brand-mark i:nth-child(even) { background: var(--core); opacity: .8; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-button { display: none; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: .55rem .8rem; color: #dfe6e8; text-decoration: none;
  font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; border-radius: 3px;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--veneer); }

/* the plywood edge under the header: alternating face and cross plies */
.ply-band {
  height: 14px;
  background:
    linear-gradient(var(--veneer) 0 3px, var(--core) 3px 5px, var(--veneer) 5px 8px, var(--core) 8px 10px, var(--veneer) 10px 14px);
}

@media (max-width: 860px) {
  .nav-button {
    display: inline-block; cursor: pointer; padding: .45rem .9rem;
    border: 1px solid rgba(255,255,255,.4); border-radius: 3px;
    font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  }
  .nav-toggle:focus-visible + .nav-button { outline: 3px solid var(--focus); outline-offset: 2px; }
  .site-nav { display: none; flex-basis: 100%; padding-bottom: .75rem; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; }
}

/* ---------------- Home */

.hero { background: var(--panel); padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); max-width: 15ch; }
.lede { font-size: 1.15rem; color: var(--ink); }

.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

.button {
  display: inline-block; padding: .7rem 1.2rem; border-radius: 3px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem;
  border: 2px solid var(--ink);
}
.button:hover { background: #33454c; color: #fff; }
.button-quiet { background: transparent; color: var(--ink); }
.button-quiet:hover { background: var(--ink); color: #fff; }

/* Cross section drawn to scale: 1 inch = 72px */
.section-diagram { display: grid; gap: 1.5rem; }
.xs p { margin: .5rem 0 0; color: var(--muted); }
.xs p strong { color: var(--ink); font-family: var(--font-head); font-size: 1.2rem; margin-right: .35rem; }
.xs-board {
  height: calc(var(--t) * 72px);
  display: grid; border-radius: 2px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.xs-board.plies-3 { grid-template-rows: repeat(3, 1fr); }
.xs-board.plies-4 { grid-template-rows: repeat(4, 1fr); }
.xs-board i { border-bottom: 1px solid rgba(80,50,15,.35); }
.xs-board i:last-child { border-bottom: 0; }
/* face grain runs along the board */
.xs-board i:nth-child(odd) {
  background: repeating-linear-gradient(0deg, var(--veneer) 0 3px, #d0aa6c 3px 4px, var(--veneer) 4px 7px);
}
/* cross grain shows end grain */
.xs-board i:nth-child(even) {
  background: repeating-linear-gradient(90deg, var(--core) 0 5px, #b58b4e 5px 6px, var(--core) 6px 11px);
}
.xs-note { margin: 0; font-size: .95rem; color: var(--muted); }

.points {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.points > div { border-top: 4px solid var(--veneer); padding-top: 1rem; }
.points h2 { font-size: 1.45rem; }

.band { background: var(--ink); color: #fff; padding: 2rem 0; }
.band-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.band p { margin: 0; font-size: 1.15rem; }
.band .button { background: var(--veneer); border-color: var(--veneer); color: var(--ink); }
.band .button:hover { background: #e6c793; }

@media (max-width: 860px) {
  .hero-grid, .points { grid-template-columns: 1fr; }
}

/* ---------------- Interior pages */

.page { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.page.narrow { max-width: 760px; }
.page > h2 { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }

.crumb { margin: 0 0 .5rem; font-size: .95rem; }
.crumb a { color: var(--muted); }
.crumb a::before { content: "\2039\00a0"; }

.intro { font-size: 1.15rem; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start; margin-bottom: 2.5rem;
}
.split + .split { padding-top: 2.5rem; border-top: 1px solid var(--rule); }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
}

figure { margin: 0; }
figure a { display: block; }
figure img { border: 1px solid var(--rule); background: var(--panel); min-height: 80px; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: .4rem; }

.link-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.link-list li { border-top: 1px solid var(--rule); }
.link-list li:last-child { border-bottom: 1px solid var(--rule); }
.link-list a { display: block; padding: .7rem 0; font-weight: 600; text-decoration: none; }
.link-list a:hover { color: var(--veneer-dark); }

.callout { border-left: 4px solid var(--veneer); background: var(--panel); padding: .75rem 1rem; }

/* ---------------- Spec tables */

.table-scroll { overflow-x: auto; margin: 1rem 0 .5rem; border: 1px solid var(--rule); }
table.spec { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
.spec caption { text-align: left; padding: .8rem 1rem; font-weight: 600; background: var(--panel); border-bottom: 1px solid var(--rule); }
.spec th, .spec td { padding: .55rem 1rem; text-align: right; border-bottom: 1px solid var(--rule); }
.spec thead th {
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.2;
  vertical-align: bottom; background: var(--ink); color: #fff; position: sticky; top: 0;
}
.spec th[scope="row"] { text-align: left; font-weight: 600; white-space: nowrap; }
.spec thead th:first-child { text-align: left; }
.spec td:nth-child(4) { font-weight: 600; }
.spec tbody tr:last-child > * { border-bottom: 0; }
.spec tr.baseline > * { background: #f7efe1; color: var(--muted); }
.spec tr.baseline th { font-weight: 400; font-style: italic; }
.table-note { font-size: .9rem; color: var(--muted); }

/* ---------------- Benefits */

.benefit h2 { padding-left: .9rem; border-left: 5px solid var(--veneer); }

/* ---------------- Applications */

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.choice-card { display: block; text-decoration: none; border: 1px solid var(--rule); }
.choice-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--panel); }
.choice-card span {
  display: block; padding: 1rem 1.25rem; background: var(--ink); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 1.5rem;
}
.choice-card:hover span { background: var(--veneer); color: var(--ink); }
@media (max-width: 600px) { .choice { grid-template-columns: 1fr; } }

/* ---------------- Exterior guide */

.guide-block { margin: 2rem 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

/* ---------------- Partners */

.partners { margin: 2rem 0 0; }
.partners > div { display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.partners > div:last-child { border-bottom: 1px solid var(--rule); }
.partners dt { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; }
.partners dd { margin: 0; }
@media (max-width: 560px) { .partners > div { grid-template-columns: 1fr; gap: .25rem; } }

/* ---------------- Product testing */

.report-item {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(1.5rem, 4vw, 3rem);
  padding: 2.5rem 0; border-top: 1px solid var(--rule); align-items: start;
}
.report-item h2 { font-size: 1.5rem; }
@media (max-width: 760px) { .report-item { grid-template-columns: 1fr; } }

/* ---------------- Footer */

.site-footer { background: var(--panel); border-top: 1px solid var(--rule); padding: 2.5rem 0; font-size: .95rem; }
.footer-row { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-brand { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; margin-bottom: .25rem; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, auto); gap: .3rem 2rem; }

@media print {
  .site-header, .site-footer { display: none; }
  .spec thead th { position: static; }
}
