/* Fox Hardwood Lumber — site styles */

@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #eeebe4;
  --paper-2: #e4e0d7;
  --ink: #1b1a17;
  --ink-2: #5c574f;
  --rule: #cfc9be;
  --dark: #171614;
  --dark-rule: #33302c;
  --dark-text: #e9e5dd;
  --dark-muted: #a29c91;
  --accent: #a8742f;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(72px, 9vw, 120px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
ol { list-style: none; }

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

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

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 14px;
}
.skip-link:focus { top: 12px; }

.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

h1, h2 {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.04;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.75rem); margin-top: 22px; max-width: 12ch; }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); margin-top: 16px; }
h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: 0.02em; }

.text-link { border-bottom: 1px solid var(--rule); transition: border-color 0.2s; }
.text-link:hover { border-color: var(--accent); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 96px; }
.brand { display: block; }
.brand img { width: 132px; }
nav { display: flex; align-items: center; gap: 32px; font-size: 0.9375rem; }
nav a:not(.nav-phone):hover { color: var(--accent); }
.nav-phone {
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.04em;
  border: 1px solid var(--ink); padding: 9px 15px; transition: background 0.2s, color 0.2s;
}
.nav-phone:hover { background: var(--ink); color: var(--paper); }

/* Hero */
.hero { position: relative; isolation: isolate; color: #f4f1ea; background: var(--dark); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 17, 15, 0.82) 0%, rgba(18, 17, 15, 0.6) 45%, rgba(18, 17, 15, 0.18) 100%),
    linear-gradient(0deg, rgba(18, 17, 15, 0.7) 0%, rgba(18, 17, 15, 0) 45%);
}
.hero-inner { min-height: min(82vh, 780px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; padding-bottom: 48px; }
.hero .label { color: rgba(244, 241, 234, 0.78); }
.hero h1 { max-width: 14ch; }
.lede { max-width: 32rem; margin-top: 24px; font-size: 1.1875rem; color: rgba(244, 241, 234, 0.88); }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 18px 56px; margin-top: 44px; padding-top: 20px;
  border-top: 1px solid rgba(244, 241, 234, 0.3); font-size: 0.9375rem; line-height: 1.45;
}
.hero-facts dt { margin-bottom: 6px; }
.hero-facts a { border-bottom: 1px solid rgba(244, 241, 234, 0.35); }
.hero-facts a:hover { border-color: #f4f1ea; }

/* Process */
.process { background: var(--dark); color: var(--dark-text); padding: var(--section) 0; }
.process .label { color: var(--dark-muted); }
.process-head { max-width: 760px; }
.process-body { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; margin-top: 56px; align-items: start; }
.process-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.process-photo figcaption { margin-top: 12px; color: var(--dark-muted); }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; }
.steps li { border-top: 1px solid var(--dark-rule); padding-top: 22px; }
.step-n { display: block; font-family: var(--mono); font-size: 0.75rem; color: var(--accent); margin-bottom: 14px; }
.steps p { margin-top: 8px; color: var(--dark-muted); font-size: 0.96875rem; }

/* About */
.about { padding: var(--section) 0; }
.about-inner { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; }
.about-copy { max-width: 36rem; color: var(--ink-2); font-size: 1.125rem; margin-top: 28px; }
.about-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.about-copy p + p { margin-top: 18px; }

/* Contact */
.contact { border-top: 1px solid var(--rule); padding: var(--section) 0; }
.contact-inner { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.contact-note { max-width: 24rem; margin-top: 24px; color: var(--ink-2); }
.contact-list { border-top: 1px solid var(--ink); }
.contact-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.contact-list dt { padding-top: 4px; }
.contact-list address + .text-link { display: inline-block; margin-top: 6px; }

/* Footer */
.site-footer { background: var(--dark); color: var(--dark-muted); font-size: 0.875rem; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 48px; padding-top: 56px; padding-bottom: 40px; }
.footer-inner img { width: 200px; }
.footer-inner a:hover { color: var(--dark-text); }

@media (max-width: 900px) {
  nav a:not(.nav-phone) { display: none; }
  .header-inner { height: 76px; }
  .brand img { width: 104px; }
  .nav-phone { padding: 8px 11px; font-size: 0.75rem; white-space: nowrap; }

  .hero-inner { min-height: 560px; padding-top: 80px; padding-bottom: 36px; }
  .hero-bg { object-position: 40% 50%; }
  .hero::before { background: linear-gradient(0deg, rgba(18, 17, 15, 0.88) 0%, rgba(18, 17, 15, 0.62) 55%, rgba(18, 17, 15, 0.35) 100%); }
  .hero-facts { gap: 16px 32px; margin-top: 32px; }
  .process-body { grid-template-columns: 1fr; gap: 36px; margin-top: 36px; }

  .steps { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .contact-inner { grid-template-columns: 1fr; gap: 8px; }
  .about-copy { margin-top: 20px; }
  .contact-list { margin-top: 32px; }
  .contact-list > div { grid-template-columns: 110px 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner img { width: 170px; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* 404 */
.not-found { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; max-width: 720px; }
.not-found img { width: 260px; margin-bottom: 32px; }
.not-found h1 { margin-top: 0; max-width: none; }
.not-found p:last-child { color: var(--ink-2); }

/* Email reveal (Turnstile) */
.email-reveal {
  font: inherit; color: inherit; background: none; cursor: pointer;
  border: 0; border-bottom: 1px dashed currentColor; padding: 0;
}
.email-reveal:hover { color: var(--accent); border-bottom-style: solid; }
.email-reveal:disabled { cursor: progress; opacity: 0.7; }
.hero .email-reveal:hover { color: #fff; }
.email-status { display: block; font-size: 0.875rem; color: var(--ink-2); }
.email-status:empty { display: none; }
.hero .email-status { color: rgba(244, 241, 234, 0.8); }
.turnstile-slot:not(:empty) { margin-top: 10px; }
