/* Double D — Custom woodworking · Zanesville */

:root {
  /* REPLACEABLE IMAGES */
  /* All pictures are <img> tags in index.html (see assets/manifest.json).
     No CSS background images are used. */

  --char: #1C1A18;
  --char-2: #24211E;
  --char-3: #322E2A;
  --cream: #F3EEE6;
  --cream-2: #E9E1D5;
  --line: #EADFCC;
  --walnut: #9A5B2E;
  --walnut-dark: #7E4A25;
  --walnut-light: #D49B6A;
  --ink: #2A2622;
  --ink-soft: #5C544C;
  --mute: #A39A90;
  --epoxy: #3D6A6E;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --band: clamp(4rem, 9vw, 7.5rem);
  --header-h: 4.5rem;
}

@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: .005em;
  text-transform: uppercase;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.75rem, 7.2vw, 5.4rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--walnut-light); outline-offset: 3px; }
#work :focus-visible, .band--cream-2 :focus-visible, .form-card :focus-visible { outline-color: var(--walnut-dark); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 0; background: var(--cream); color: var(--ink); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.kicker {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--walnut-light);
  margin: 0 0 1rem;
  display: flex; align-items: center; gap: .75rem;
}
.kicker::before { content: ""; width: 2.25rem; height: 2px; background: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem;
  padding: .8rem 1.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--walnut);
  background: var(--walnut);
  color: #FFF8EF;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--walnut-dark); border-color: var(--walnut-dark); }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--ghost { background: transparent; border-color: rgba(234, 223, 204, .55); color: var(--cream); }
.btn--ghost:hover { background: rgba(234, 223, 204, .08); border-color: var(--cream); }
.btn--small { min-height: 2.6rem; padding: .45rem 1.1rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(28, 26, 24, .97);
  color: var(--cream);
  border-bottom: 1px solid rgba(234, 223, 204, .12);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.wordmark__name {
  font-family: var(--display); font-weight: 700;
  font-size: 2rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--cream);
}
.wordmark__name span { color: var(--walnut-light); }
.wordmark__line {
  font-family: var(--display); font-weight: 600;
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--mute); margin-top: .3rem;
}
.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  background: none; border: 1px solid rgba(234, 223, 204, .35); color: var(--cream);
  font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .5rem .8rem; border-radius: 2px; cursor: pointer;
}
.nav-toggle__bars { width: 18px; height: 12px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--cream); opacity: .85;
}
.site-nav a:not(.btn):hover { opacity: 1; color: var(--walnut-light); }

/* mobile nav (JS adds .js to <html>) */
.js .site-nav { display: none; }
.js .site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--char); border-bottom: 1px solid rgba(234, 223, 204, .12);
  padding: 1rem var(--pad) 1.5rem;
}
.site-nav li + li { margin-top: .9rem; }
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .site-header .wrap { flex-wrap: wrap; padding-bottom: .75rem; }
html:not(.js) .site-nav ul { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
html:not(.js) .site-nav li + li { margin-top: 0; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .js .site-nav, .js .site-nav.is-open { display: block; position: static; padding: 0; border: 0; background: none; }
  .site-nav ul { display: flex; align-items: center; gap: 2rem; }
  .site-nav li + li { margin-top: 0; }
}

/* ---------- Hero ---------- */
.hero { background: var(--char); color: var(--cream); overflow: hidden; }
.hero__grid { display: grid; gap: 2.5rem; padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); align-items: center; }
.hero h1 { color: #FBF7F1; max-width: 13ch; font-size: clamp(2.7rem, 6vw, 4.6rem); }
.hero h1 em { font-style: normal; color: var(--walnut-light); }
.hero__lede { font-size: 1.2rem; color: #D9D0C4; max-width: 34rem; margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__media { position: relative; margin: 0; }
.hero__media img { width: 100%; border-radius: 2px; }
.hero__media::after {
  /* dimension line under the photo, like a shop drawing */
  content: ""; display: block; height: 14px; margin-top: .9rem;
  border-left: 1.5px solid var(--walnut-light); border-right: 1.5px solid var(--walnut-light);
  background: linear-gradient(var(--walnut-light), var(--walnut-light)) center / 100% 1.5px no-repeat;
  opacity: .8;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 5fr 6fr; gap: 3.5rem; }
}

/* ---------- Sections ---------- */
.band { padding: var(--band) 0; }
.band--dark { background: var(--char); color: var(--cream); }
.band--dark-2 { background: var(--char-2); color: var(--cream); }
.band--cream-2 { background: var(--cream-2); }
.section-head { display: grid; gap: 1rem 3rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p { color: var(--ink-soft); max-width: 36rem; font-size: 1.15rem; margin: 0; }
.band--dark .section-head p, .band--dark-2 .section-head p { color: #CFC6BA; }
.section-head .kicker { color: var(--walnut); }
.band--dark .section-head .kicker, .band--dark-2 .section-head .kicker { color: var(--walnut-light); }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; }
}

/* ---------- Work / gallery ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; }
.chip {
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .45rem 1rem; border: 1.5px solid #CDBFAE; background: transparent; color: var(--ink);
  border-radius: 99px; cursor: pointer;
}
.chip:hover { border-color: var(--walnut); color: var(--walnut); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.gallery { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 2rem 1.75rem; } }
.piece { margin: 0; }
.piece img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--char-2);
  border-radius: 2px; transition: transform .35s ease, box-shadow .35s ease;
}
.js .piece img { cursor: zoom-in; }
.piece:hover img { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(28, 26, 24, .6); }
.piece figcaption {
  font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .85rem 0 0; border-top: 0; display: flex; align-items: baseline; gap: .6rem;
}
.piece figcaption::before { content: ""; width: 1.25rem; height: 2px; background: var(--walnut); flex: none; transform: translateY(-.3rem); }
.work-cta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 2rem; border-top: 1px solid #D6CABA;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
}
.work-cta p { margin: 0; font-size: 1.2rem; color: var(--ink-soft); max-width: 38rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(18, 16, 14, .97);
  display: flex; align-items: center; justify-content: center; padding: 4rem 1rem 2rem;
}
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox figure { width: 100%; }
.lightbox img { width: 100%; max-height: 78vh; margin: 0 auto; object-fit: contain; }
.lightbox figcaption { color: var(--cream); text-align: center; margin-top: 1rem; font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: .08em; text-transform: uppercase; }
.lightbox button {
  position: absolute; background: none; border: 1px solid rgba(234, 223, 204, .4); color: var(--cream);
  width: 3rem; height: 3rem; font-size: 1.5rem; line-height: 1; cursor: pointer; border-radius: 2px;
}
.lightbox button:hover { border-color: var(--cream); }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Small to large (ruler) ---------- */
.ruler { list-style: none; margin: 0; padding: 0; position: relative; }
.ruler__ends {
  display: flex; justify-content: space-between;
  font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--walnut-light); margin-bottom: .75rem;
}
.ruler__ends span:last-child::after { content: " →"; }
.ruler__ends span:first-child::before { content: "← "; }
.ruler__item { position: relative; padding: 0 0 1.75rem 2.25rem; }
.ruler__item::before {
  /* tick on the ruler */
  content: ""; position: absolute; left: 0; top: .55rem; width: 1.25rem; height: 2px; background: var(--walnut-light);
}
.ruler::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px;
  background: repeating-linear-gradient(180deg, rgba(234, 223, 204, .45) 0 1px, transparent 1px 12px);
  border-left: 2px solid rgba(234, 223, 204, .6);
}
.ruler__num { font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: .15em; color: var(--mute); display: block; }
.ruler__item h3 { margin: .1rem 0 .35rem; color: #FBF7F1; }
.ruler__item p { margin: 0; color: #CFC6BA; font-size: 1rem; max-width: 22rem; }
@media (min-width: 900px) {
  .ruler { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; padding-top: 2.5rem; }
  .ruler::before {
    left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 22px;
    border-left: 0; border-top: 2px solid rgba(234, 223, 204, .6);
    background:
      repeating-linear-gradient(90deg, rgba(234, 223, 204, .6) 0 1.5px, transparent 1.5px 100%) 0 0 / calc(100% / 6) 22px repeat-x,
      repeating-linear-gradient(90deg, rgba(234, 223, 204, .35) 0 1px, transparent 1px 16px) 0 0 / 100% 9px no-repeat;
  }
  .ruler__item { padding: 0 1.5rem 0 0; }
  .ruler__item::before { left: 0; top: -2.5rem; width: 2px; height: 2.1rem; }
  /* the type grows from small to large along the ruler */
  .ruler__item:nth-child(1) h3 { font-size: 1.35rem; }
  .ruler__item:nth-child(2) h3 { font-size: 1.55rem; }
  .ruler__item:nth-child(3) h3 { font-size: 1.75rem; }
  .ruler__item:nth-child(4) h3 { font-size: 1.95rem; }
  .ruler__item:nth-child(5) h3 { font-size: 2.15rem; }
  .ruler__item:nth-child(6) h3 { font-size: 2.35rem; }
}

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 3rem; counter-reset: step; }
.step { display: grid; gap: 1.25rem; }
.step__media { margin: 0; }
.step__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.step__num {
  font-family: var(--display); font-weight: 700; font-size: 4.5rem; line-height: .8; color: transparent;
  -webkit-text-stroke: 1.5px var(--walnut-light); display: block; margin-bottom: .6rem;
}
.step h3 { font-size: 2rem; color: #FBF7F1; margin-bottom: .4rem; }
.step p { color: #CFC6BA; margin: 0; max-width: 26rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.25rem; }
  .step:nth-child(2) { margin-top: 3.5rem; }
  .step:nth-child(3) { margin-top: 7rem; }
}

/* ---------- Zanesville ---------- */
.home-grid { display: grid; gap: 2.5rem; align-items: center; }
.home-grid__media { margin: 0; }
.home-grid__media img { width: 100%; border-radius: 2px; }
.home-grid .kicker { color: var(--walnut); }
.home-grid p { font-size: 1.15rem; color: var(--ink-soft); max-width: 32rem; }
.home-grid .btn { margin-top: .75rem; }
@media (min-width: 900px) { .home-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }

/* ---------- Start a Project ---------- */
.start-grid { display: grid; gap: 2.5rem; }
.start-intro p { color: #CFC6BA; font-size: 1.15rem; max-width: 28rem; }
.start-intro__media { margin: 2rem 0 0; max-width: 26rem; }
.start-intro__media img { width: 100%; border-radius: 2px; }
.start-list { list-style: none; margin: 1.5rem 0 0; padding: 0; color: #E4DCD0; }
.start-list li { padding: .55rem 0; border-top: 1px solid rgba(234, 223, 204, .14); display: flex; gap: .75rem; }
.start-list li::before { content: "—"; color: var(--walnut-light); }
@media (min-width: 900px) { .start-grid { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; } }

.form-card { background: var(--cream); color: var(--ink); padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: 3px; }
.form-card h3 { font-size: 1.9rem; margin-bottom: .25rem; }
.form-note { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.5rem; }
.fields { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .fields { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.field label small { font-weight: 400; color: var(--ink-soft); font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #FFFDF9; border: 1.5px solid #CDBFAE; border-radius: 2px; padding: .75rem .85rem;
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--walnut); box-shadow: 0 0 0 3px rgba(154, 91, 46, .22); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.cf-turnstile { margin-top: 1.25rem; min-height: 65px; }
.form-status { margin: 1rem 0 0; padding: 1rem 1.1rem; border-radius: 2px; font-weight: 500; }
.form-status--ok { background: #E3EAD8; color: #2F4420; }
.form-status--err { background: #F3DED3; color: #6B2C12; }

/* ---------- Footer ---------- */
.site-footer { background: #141210; color: #CFC6BA; padding: clamp(3rem, 7vw, 4.5rem) 0 2rem; font-size: 1rem; }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1.3fr 1fr; } }
.site-footer h2 { font-size: 1.1rem; letter-spacing: .16em; color: var(--mute); margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: .45rem; }
.site-footer a { color: var(--cream); text-decoration-color: rgba(234, 223, 204, .35); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--walnut-light); }
.site-footer .btn, .site-footer .btn:hover { color: #FFF8EF; }
.footer-brand p { margin: 1rem 0 1.25rem; max-width: 22rem; }
.fine { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(234, 223, 204, .12); font-size: .875rem; color: var(--mute); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.fine p { margin: 0; }
.fine a { color: var(--mute); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; align-items: center; background: var(--char); color: var(--cream); }
.notfound p { color: #CFC6BA; font-size: 1.2rem; max-width: 32rem; }
.notfound ul { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.notfound ul a { color: var(--walnut-light); font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Phone refinements ---------- */
@media (max-width: 619px) {
  .wordmark__name { font-size: 1.75rem; }
  .wordmark__line { font-size: .7rem; letter-spacing: .12em; }
  .hero .kicker { display: none; } /* the descriptor already sits under the wordmark */
  .hero h1 { max-width: none; font-size: 2.6rem; }
  .hero__grid { gap: 1.75rem; }
  .hero__lede { font-size: 1.1rem; margin-bottom: 1.4rem; }
  .hero__actions { gap: .6rem; }
  .hero__actions .btn { padding: .7rem 1.1rem; font-size: 1.05rem; min-height: 3rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 1.1rem .9rem; }
  .piece figcaption { font-size: 1.1rem; padding-top: .6rem; gap: .4rem; }
  .piece figcaption::before { width: .7rem; }
  .step__num { font-size: 3.5rem; }
}
@media (max-width: 899px) {
  .ruler__ends { display: none; }
  .start-intro__media { display: none; } /* keep the form close on phones */
}

/* Let the project form grids shrink to the available mobile width. */
.start-grid > *, .fields > * { min-width: 0; }
