/* Cordwood Labs — site styles.
   Palette and type are the approved brand tokens; see the brand sheet in
   Brand/logo/. Do not introduce colours outside this set. */

:root {
  --sans: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --bg: #FBF8F2;
  --surface: #FFFFFF;
  --text: #241A12;
  --muted: #8A7663;
  --rule: #E6DBC8;
  --accent: #A85013;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17110E;
    --surface: #211913;
    --text: #F1E9DD;
    --muted: #9C8874;
    --rule: #3A2D23;
    --accent: #D9843F;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding-block: clamp(3rem, 12vh, 7rem);
  padding-inline: 24px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main { max-width: 34rem; margin: 0 auto; }

/* Logo. Brand rule: minimum lockup height 40px, and clear space equal to the
   cap height of CORDWOOD (~35% of total lockup height) on all four sides. */
.lockup {
  display: block;
  width: 236px;
  max-width: 68%;
  height: auto;
  margin-bottom: clamp(3rem, 9vh, 4.5rem);
}
.lockup--dark { display: none; }
@media (prefers-color-scheme: dark) {
  .lockup--light { display: none; }
  .lockup--dark { display: block; }
}
/* 190px wide puts the lockup at ~40px tall, the documented minimum. Any
   narrower and LABS drops under 5px and stops being legible. */
.lockup--small { width: 190px; margin-bottom: clamp(2rem, 6vh, 3rem); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

h1 {
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}

h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 2.5rem 0 0.75rem;
}

p { margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }

ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.contact {
  margin-top: clamp(2.5rem, 7vh, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.contact dl {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.6rem 1.5rem;
  margin: 0;
}
.contact dt {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.32em;
}
.contact dd { margin: 0; }
@media (max-width: 30rem) {
  .contact dl { grid-template-columns: 1fr; gap: 0.15rem; }
  .contact dd + dt { margin-top: 1rem; }
}

footer {
  margin-top: clamp(3rem, 9vh, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  justify-content: space-between;
}
footer p { margin: 0; }
