/* ── PourFigure: jobsite-honest utility design ──────────────────
   Palette: poured-concrete grays, one safety-orange accent.
   Display face: Barlow Condensed (signage). Body: system stack. */

:root {
  --bg:      #ECECEA;   /* cured slab */
  --surface: #FFFFFF;
  --ink:     #20242A;   /* rebar charcoal */
  --muted:   #5C6670;   /* steel */
  --line:    #C9CBC8;   /* form board */
  --accent:  #E8590C;   /* safety orange */
  --accent-ink: #FFFFFF;
  --tag:     #F7F6F3;   /* stamped tag */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

h1, h2, h3, .brand, .result-num, summary {
  font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
}
h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 700; letter-spacing: .01em;
     text-transform: uppercase; margin: .2em 0 .5em; }
h2 { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
     border-bottom: 3px solid var(--ink); padding-bottom: .15em; margin-top: 2.2em; }

main { max-width: 860px; margin: 0 auto; padding: 1rem 1rem 3rem; }

/* header */
.site-head {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center;
  padding: .7rem 1rem; background: var(--ink); color: #fff;
}
.brand { color: #fff; text-decoration: none; font-size: 1.4rem; font-weight: 700;
         text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; gap: .45rem; }
.brand-mark { width: 14px; height: 14px; background: var(--accent); display: inline-block; }
.site-head nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-head nav a { color: #D9DBDD; text-decoration: none; font-size: .92rem; }
.site-head nav a:hover, .site-head nav a:focus { color: #fff; text-decoration: underline; }

/* calculator card */
.calc {
  background: var(--surface); border: 1px solid var(--line);
  border-top: 6px solid var(--ink);
  padding: 1.2rem; margin: 1rem 0 1.5rem;
}
.calc .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .9rem; }
.calc label { display: block; font-size: .8rem; font-weight: 600; text-transform: uppercase;
              letter-spacing: .05em; color: var(--muted); margin-bottom: .25rem; }
.calc input, .calc select {
  width: 100%; padding: .55rem .6rem; font-size: 1.05rem;
  border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink);
}
.calc input:focus, .calc select:focus { outline: 3px solid var(--accent); outline-offset: 1px; }

/* signature: the stamped result tag */
.result {
  margin-top: 1.1rem; background: var(--tag);
  border: 1px solid var(--line); border-left: 8px solid var(--accent);
  padding: .9rem 1.1rem;
}
.result-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.result-num { font-size: clamp(2.2rem, 7vw, 3.2rem); font-weight: 700; line-height: 1.05; }
.result-num small { font-size: .45em; font-weight: 600; color: var(--muted); }
.result-sub { margin: .3rem 0 0; color: var(--muted); font-size: .95rem; }

/* content */
table { border-collapse: collapse; width: 100%; margin: 1rem 0; background: var(--surface); }
th, td { border: 1px solid var(--line); padding: .5rem .65rem; text-align: left; font-size: .95rem; }
th { background: var(--ink); color: #fff; font-weight: 600; }
tbody tr:nth-child(even) { background: #F4F4F2; }

.faq details { background: var(--surface); border: 1px solid var(--line); margin: .5rem 0; }
.faq summary { cursor: pointer; padding: .7rem .9rem; font-size: 1.1rem; font-weight: 600; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq p { padding: 0 .9rem; }

.tool-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; margin: 1.2rem 0; }
.tool-cards a {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-bottom: 4px solid var(--accent); padding: .9rem 1rem;
  text-decoration: none; color: var(--ink);
}
.tool-cards a strong { display: block; font-size: 1.05rem; }
.tool-cards a span { color: var(--muted); font-size: .9rem; }
.tool-cards a:hover, .tool-cards a:focus { border-color: var(--ink); }

.note { background: var(--surface); border-left: 4px solid var(--muted); padding: .7rem 1rem; color: var(--muted); }

/* footer */
.site-foot { border-top: 3px solid var(--ink); margin-top: 2rem; padding: 1rem; font-size: .88rem; color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .5rem; }
.site-foot a { color: var(--muted); }

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

@media (prefers-reduced-motion: no-preference) {
  .result { transition: border-color .15s ease; }
}
