/*
  Timber Twins — site styles.

  Carried forward from the v1 single-page site: the palette, the type stack, the
  half-lap mark, and dark mode. Added for the multi-page site: header/nav, footer,
  page furniture, prose, image figures.

  No web fonts, no external requests of any kind — system stacks only. That is a
  deliberate speed and privacy property of this site, not an oversight.
  See REVAMP-PLAN.md section 8.
*/

/* ---------- tokens ---------- */
:root {
  --paper:     #F4F5F3;
  --paper-2:   #EAECE8;
  --ink:       #171A17;
  --ink-soft:  #4A514B;
  --ink-faint: #767D76;
  --rule:      #C9CEC7;
  --chalk:     #24657F;
  --sisal:     #96692F;

  --display: "Bahnschrift SemiCondensed", "Bahnschrift", "DIN Alternate", "Oswald",
             "Franklin Gothic Medium", "Arial Narrow", system-ui, sans-serif;
  --body: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "Consolas", "SF Mono", monospace;

  --measure: 720px;
  --gutter: 28px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:     #15181A;
    --paper-2:   #1D2124;
    --ink:       #E7EAE5;
    --ink-soft:  #AEB5AE;
    --ink-faint: #838A83;
    --rule:      #333A3C;
    --chalk:     #7CB8D4;
    --sisal:     #CCA06A;
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

main { flex: 1 0 auto; padding-bottom: 72px; }

a { color: var(--chalk); }

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

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 18px;
  border: 2px solid var(--chalk);
  z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--rule);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.mark { display: block; width: 30px; height: 30px; color: var(--ink); flex: none; }

.brand-name {
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.nav ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Tap targets are ≥44px tall with real spacing — see REVAMP-PLAN.md section 6. */
.nav a {
  display: block;
  padding: 11px 14px;
  min-height: 44px;
  font-family: var(--display);
  font-size: 1.06rem;
  letter-spacing: .01em;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--sisal); }

/* ---------- page furniture ---------- */
.hero, .page-head { padding-top: clamp(44px, 9vh, 88px); }

h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.5rem, 8vw, 3.9rem);
  line-height: .96;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}

.rule {
  width: 54px;
  height: 3px;
  background: var(--sisal);
  margin: 24px 0 22px;
}

.lede {
  font-size: clamp(1.08rem, 3vw, 1.28rem);
  color: var(--ink-soft);
  margin: 0;
  max-width: 46ch;
}
.lede strong { color: var(--ink); font-weight: 600; }

.lede-sm {
  font-size: 1.06rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 50ch;
}

.section { margin-top: clamp(44px, 7vh, 68px); }

.h-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 16px;
}

.note {
  font-size: .95rem;
  color: var(--ink-faint);
  max-width: 52ch;
  margin: 14px 0 0;
}

/* ---------- what we make ---------- */
.making {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 44ch;
}
.making li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
.making li:first-child { border-top: 1px solid var(--rule); }
.making .what { font-family: var(--display); font-size: 1.1rem; letter-spacing: .01em; }
.making .state {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* ---------- calls to action ---------- */
.cta-row { margin: 0; }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: .01em;
  padding: 13px 22px;
  min-height: 44px;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover, .btn:focus-visible {
  background: transparent;
  color: var(--ink);
}

/* ---------- prose ---------- */
.prose { max-width: 62ch; }
.prose h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: .005em;
  margin: 40px 0 12px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; color: var(--ink-soft); }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose ul { margin: 0 0 16px; padding-left: 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose li strong { color: var(--ink); font-weight: 600; }

/* ---------- contact list ---------- */
.contact-list { margin: 0; padding: 0; list-style: none; max-width: 44ch; }
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}
.contact-list li:first-child { border-top: 1px solid var(--rule); }
.contact-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  min-width: 8ch;
}
.contact-value {
  font-family: var(--display);
  font-size: 1.12rem;
  color: var(--chalk);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.contact-value:hover, .contact-value:focus-visible { border-bottom-color: var(--chalk); }

/* ---------- figures (image slots) ---------- */
.fig { margin: 32px 0 0; }
.fig img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper-2);
}
/* Portrait shots, capped so they don't swallow the viewport. Applied automatically by
   the figures macro when height > width. */
.fig--tall { max-width: 460px; }

/* Two or more figures side by side on wide screens, stacked on phones. */
.fig-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-top: 32px;
}
.fig-row .fig { margin-top: 0; max-width: none; }
.fig-cap {
  font-size: .9rem;
  color: var(--ink-faint);
  margin-top: 10px;
  max-width: 56ch;
}
/* Render label — emitted automatically by the figures macro, never hand-written. */
.fig-cap--render {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .02em;
  border-left: 3px solid var(--sisal);
  padding-left: 10px;
}

/* ---------- footer ---------- */
.site-foot {
  flex: none;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  padding-bottom: 30px;
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px 28px;
  flex-wrap: wrap;
}

.foot-brand {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot-links a {
  display: block;
  padding: 11px 10px;
  min-height: 44px;
  font-size: .95rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.foot-links a:hover, .foot-links a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--sisal);
}

/* ---------- small screens ---------- */
@media (max-width: 560px) {
  :root { --gutter: 22px; }
  .head-inner { padding-top: 14px; padding-bottom: 14px; }
  .nav a { padding: 11px 10px; }
  .foot-inner { justify-content: flex-start; }
}
