/* 00-tokens.css: colours, fonts and spacing for Steel Garden Worx.
   Black and gold from their logo: the header, opening section and footer are
   always black; the rest follows the visitor's light or dark setting. The
   gold is sampled from the logo they sent (from-client, Word file). */
@font-face {
  font-family: "Josefin Sans";
  src: url("/fonts/josefin-sans.woff2") format("woff2");
  font-weight: 100 700; font-style: normal; font-display: swap;
}

:root {
  /* brand, the same in both modes */
  --black: #0b0a08;
  --black-2: #14120e;
  --black-3: #1e1b15;
  --black-line: #2e2920;
  --gold: #c9ad72;
  --gold-hi: #e8d9a8;
  --gold-lo: #8d6f3e;
  --gold-grad: linear-gradient(100deg, #9c7d47 0%, #e8d9a8 38%, #b8975a 62%, #e2cf98 100%);
  --on-black: #f1ead9;
  --on-black-2: #bdb39d;

  /* content, light */
  --bg: #f6f2ea;
  --bg-2: #ede7da;
  --surface: #fffdf8;
  --ink: #17140f;
  --ink-2: #544c3f;
  --ink-3: #6f6658;
  --line: #e2dac8;
  --line-2: #cdbfa3;
  --accent-ink: #7a5d2b;
  --shot-bg: #ddd5c4;
  --tbc-bg: #fff1b8;
  --tbc-line: #c9a227;
  --tbc-ink: #5b4a0f;
  --shadow: 0 1px 0 rgba(23, 20, 15, .04), 0 24px 48px -30px rgba(23, 20, 15, .45);

  --display: "Josefin Sans", "Century Gothic", "Avenir Next", ui-sans-serif, sans-serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 6px;
  --r-lg: 10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0c0a;
    --bg-2: #14120e;
    --surface: #1a1712;
    --ink: #f1ead9;
    --ink-2: #bdb39d;
    --ink-3: #958b79;
    --line: #2b261e;
    --line-2: #3d362a;
    --accent-ink: #d6bb80;
    --shot-bg: #24201a;
    --tbc-bg: #3d3412;
    --tbc-line: #c9a227;
    --tbc-ink: #f3dc85;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 24px 48px -30px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}

/* 10-base.css: reset and the few pieces every site needs. Phone-safe by
   default: single-column grids use minmax(0, 1fr) so long words can't push
   the page wider than the screen. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
main:focus { outline: none; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: .005em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 60ch; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--black); padding: 10px 14px; border-radius: var(--r); z-index: 100; }
.skip:focus { top: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--gold-grad); color: var(--black); padding: 14px 22px; border-radius: var(--r); border: 0; font: 700 1rem/1.1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: filter .15s ease, transform .15s ease; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-line { background: transparent; color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold); }
.btn-line:hover { background: rgba(201, 173, 114, .1); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* header: always black */
.site-header { background: var(--black); color: var(--on-black); border-bottom: 1px solid var(--black-line); position: sticky; top: 0; z-index: 10; }
.bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--on-black); text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand-name { font: 600 1.06rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-top: .15em; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link { color: var(--on-black-2); text-decoration: none; padding: 8px 12px; border-radius: var(--r); font-weight: 600; font-size: .95rem; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--on-black); background: var(--black-3); }
.nav .btn { margin-left: 10px; padding: 10px 16px; font-size: .95rem; }
.menu-toggle { display: none; margin-left: auto; background: none; color: var(--on-black); border: 1px solid var(--black-line); border-radius: var(--r); padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--black); border-bottom: 1px solid var(--black-line); padding: 8px var(--gutter) 18px; }
  .nav.open { display: flex; }
  .nav-link { padding: 12px; }
  .nav .btn { margin: 8px 0 0; }
}
@media (max-width: 400px) { .brand-name { font-size: .92rem; letter-spacing: .12em; } .brand img { width: 40px; height: 40px; } }

/* sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-2); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* footer: always black */
.site-footer { background: var(--black); color: var(--on-black-2); font-size: .94rem; border-top: 1px solid var(--black-line); }
.site-footer a { color: var(--on-black); }
.credit a { color: inherit; }

/* 20-components.css: the pieces the pages are built from. */

.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; }
.nw, a[href^="tel:"] { white-space: nowrap; }
.muted { color: var(--ink-3); font-size: .92rem; }

/* preview strip and "fill this in" marks; both go before launch */
.preview-note { background: var(--tbc-bg); color: var(--tbc-ink); border-bottom: 1px solid var(--tbc-line); font-size: .86rem; line-height: 1.45; }
.preview-note p { margin: 0; padding: 8px 0; }
.preview-note .tbc { background: var(--bg); }
.tbc { background: var(--tbc-bg); color: var(--tbc-ink); outline: 1px dashed var(--tbc-line); outline-offset: -1px; border-radius: 4px; padding: 0 .35em; font-weight: 600; white-space: nowrap; }

/* eyebrow with the deco rule from the logo */
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 600 .8rem/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink); padding-top: .2em; }
.eyebrow::before { content: ""; width: 34px; height: 5px; flex: none; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head .lede { margin-bottom: 0; }
.gilt { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* hero: always black */
.hero { position: relative; overflow: hidden; background: var(--black); color: var(--on-black); padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); }
.hero::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -360px; border-radius: 50%; border: 1px solid rgba(201, 173, 114, .14); box-shadow: 0 0 0 18px rgba(201, 173, 114, .03), 0 0 0 19px rgba(201, 173, 114, .1); pointer-events: none; }
.hero .eyebrow { color: var(--gold); }
.hero .lede { color: var(--on-black-2); }
.hero .hero-intro { color: var(--on-black); margin-bottom: .7em; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-phones { margin: 22px 0 0; color: var(--on-black-2); font-size: .95rem; }
.hero-phones a { color: var(--gold-hi); font-weight: 600; }
.hero-photo { margin: 0; justify-self: center; width: min(100%, 400px); }
.arch-frame { position: relative; padding: 10px; border: 1px solid var(--gold); border-radius: 999px 999px 4px 4px; }
.arch-frame::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(201, 173, 114, .45); border-radius: 999px 999px 2px 2px; pointer-events: none; }
.arch-frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; border-radius: 999px 999px 0 0; }
.hero-photo figcaption { margin-top: 12px; text-align: center; font-size: .86rem; color: var(--on-black-2); letter-spacing: .02em; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { width: min(100%, 320px); }
}

/* facts band: black, under the hero */
.facts { background: var(--black-2); color: var(--on-black-2); border-top: 1px solid var(--black-line); border-bottom: 1px solid var(--black-line); }
.fact-list { list-style: none; margin: 0 auto; padding-top: 24px; padding-bottom: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; }
.fact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; line-height: 1.4; }
.fact-list svg { width: 28px; height: 28px; color: var(--gold); flex: none; }
.fact-list strong { display: block; color: var(--on-black); font: 600 1.06rem/1.25 var(--display); letter-spacing: .02em; padding-top: .15em; margin-bottom: 2px; }
@media (max-width: 900px) { .fact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .fact-list { grid-template-columns: minmax(0, 1fr); } }

/* the range */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.filters button { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; font: 600 .92rem/1 var(--sans); cursor: pointer; }
.filters button span { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.filters button:hover { color: var(--ink); border-color: var(--accent-ink); }
.filters button[aria-pressed="true"] { background: var(--black); color: var(--gold-hi); border-color: var(--gold); }
.filters button[aria-pressed="true"] span { color: var(--gold); }
.pieces { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 22px; }
.piece { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: 90px; transition: border-color .2s ease; }
.piece:hover, .piece:target { border-color: var(--gold); }
.shot { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--shot-bg); }
.shot-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(.72) saturate(.9); transform: scale(1.15); }
.shot-img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.piece-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.piece-cat { margin: 0 0 6px; font: 600 .72rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); padding-top: .15em; }
.piece h3 { font-size: 1.28rem; margin: 0 0 6px; }
.piece-size { margin: 0; color: var(--ink-2); font-size: .94rem; }
.piece-price { margin: 6px 0 0; font: 750 1.3rem/1.2 var(--sans); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.piece-options { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 4px; }
.piece-options li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); font-size: .94rem; }
.piece-options li:last-child { border-bottom: 0; }
.piece-options b { color: var(--ink); font: 750 1.12rem/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.piece-note { margin: 6px 0 0; color: var(--ink-3); font-size: .88rem; }
.piece-order { position: relative; margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border-radius: var(--r); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-weight: 650; font-size: .94rem; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.piece-body > :nth-last-child(2) { margin-bottom: 16px; }
.piece-order svg { width: 18px; height: 18px; color: var(--accent-ink); }
.piece-order:hover { background: var(--black); border-color: var(--black); color: var(--gold-hi); }
.piece-order:hover svg { color: var(--gold); }
.range-foot { margin: 26px 0 0; color: var(--ink-2); font-size: .95rem; max-width: 70ch; }
/* phones: two pieces a row so the whole range is a short scroll */
@media (max-width: 560px) {
  .pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .piece-body { padding: 12px 12px 14px; }
  .piece-cat { font-size: .64rem; letter-spacing: .16em; }
  .piece h3 { font-size: 1.04rem; }
  .piece-size, .piece-options li { font-size: .82rem; }
  .piece-options li { flex-wrap: wrap; gap: 0 8px; }
  .piece-price { font-size: 1.12rem; }
  .piece-options b { font-size: 1rem; }
  .piece-note { font-size: .8rem; }
  .piece-body > :nth-last-child(2) { margin-bottom: 12px; }
  .piece-order { padding: 9px 8px; font-size: .86rem; gap: 6px; }
  .piece-order svg { width: 16px; height: 16px; }
  .piece-order .long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .piece, .piece-order { transition: none; } }

/* two-up sections */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-even { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.framed { margin: 0; padding: 8px; border: 1px solid var(--gold); border-radius: var(--r-lg); background: var(--surface); }
.framed img { width: 100%; border-radius: 4px; }
.framed figcaption { padding: 10px 6px 2px; font-size: .86rem; color: var(--ink-3); }
.mini-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.mini-steps li { counter-increment: s; display: flex; gap: 14px; align-items: baseline; }
.mini-steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold); color: var(--accent-ink); font: 600 .9rem/1 var(--display); padding-top: .15em; transform: translateY(-2px); }

/* ordering */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { counter-increment: step; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--black); color: var(--gold-hi); box-shadow: 0 0 0 1px var(--gold), 0 0 0 4px var(--surface), 0 0 0 5px var(--gold); font: 600 1rem/1 var(--display); padding-top: .15em; margin: 4px 0 16px 4px; }
.steps h3 { font-size: 1.15rem; margin-bottom: .35em; }
.steps p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.timing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 20px 0 0; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.timing div { padding: 16px 20px; }
.timing div + div { border-left: 1px solid var(--line-2); }
.timing dt { font: 600 .74rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); padding-top: .15em; margin-bottom: 6px; }
.timing dd { margin: 0; font-weight: 650; }
@media (max-width: 640px) {
  .timing { grid-template-columns: minmax(0, 1fr); }
  .timing div + div { border-left: 0; border-top: 1px solid var(--line-2); }
}

/* contact */
.info-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list svg { width: 22px; height: 22px; color: var(--accent-ink); flex: none; margin-top: 2px; }
.info-list small { display: block; color: var(--ink-3); font-size: .88rem; line-height: 1.45; margin-top: 2px; }
.info-list a { font-weight: 650; overflow-wrap: anywhere; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow); }
.talk { border-top: 3px solid var(--gold); }
.talk h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.people li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.person { margin: 0; display: grid; }
.person strong { font: 600 1.15rem/1.2 var(--display); padding-top: .15em; }
.person a { color: var(--ink-2); text-decoration: none; font-variant-numeric: tabular-nums; }
.person-actions { margin: 0; display: flex; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-weight: 650; font-size: .9rem; }
.chip svg { width: 17px; height: 17px; color: var(--accent-ink); }
.chip:hover { background: var(--black); border-color: var(--black); color: var(--gold-hi); }
.chip:hover svg { color: var(--gold); }

/* footer */
.foot { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 28px; padding-top: clamp(40px, 6vw, 64px); padding-bottom: 32px; }
.foot h2 { font: 600 .78rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; padding-top: .15em; }
.foot p { margin: 0 0 6px; }
.foot-brand img { width: 108px; height: 108px; border-radius: 50%; margin-bottom: 14px; }
.foot-brand p { max-width: 34ch; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid var(--black-line); font-size: .88rem; }
.foot-base p { margin: 0; }
@media (max-width: 860px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .foot { grid-template-columns: minmax(0, 1fr); } }

/* inner pages */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 40px); }
.page-head .lede { margin-bottom: 0; }
.page-404 { padding-bottom: clamp(64px, 10vw, 140px); }
.page-404 .lede { margin-bottom: 0; }
.section-tight { padding-top: 0; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

/* phone action bar */
.actionbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .actionbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--black); border-top: 1px solid var(--gold-lo); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 24px -16px rgba(0, 0, 0, .5); }
  .actionbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px; color: var(--on-black); text-decoration: none; font-size: .8rem; font-weight: 650; }
  .actionbar a:nth-child(2) { color: var(--gold-hi); }
  .actionbar svg { width: 22px; height: 22px; }
  .actionbar a + a { border-left: 1px solid var(--black-line); }
}
