/* Alderloft — single-page site */

:root {
  --paper: #F3EEE4;       /* sailcloth ground */
  --sailcloth: #FBF8F2;   /* cards, sail */
  --ink: #1E2A25;         /* deep river green */
  --ink-soft: #3A4640;
  --muted: #5C665F;
  --rule: #D9D0BF;
  --accent: #A4452A;      /* cut alder wood */
  --accent-dark: #8E3B22;
  --accent-light: #D9825F;
  --green: #1E6B4A;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --gutter: clamp(20px, 8.3vw, 120px);
  --section-y: clamp(72px, 9vw, 128px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; }
a { color: var(--ink); text-underline-offset: 6px; }
a:hover { color: var(--accent-dark); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 16px; color: var(--paper); }

.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.02em; }
.accent { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 14px 26px; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: 17px; line-height: 1.2;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2B3A33; color: var(--paper); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-light { background: var(--sailcloth); color: var(--ink); font-size: 18px; padding: 16px 30px; }
.btn-light:hover { background: #fff; color: var(--ink); }
.text-link { font-weight: 500; font-size: 17px; padding: 14px 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand span { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 40px; font-size: 16px; font-weight: 500; }
.nav-link { text-decoration: none; padding: 12px 0; }
.nav-pill { text-decoration: none; padding: 11px 20px; border: 1px solid var(--ink); border-radius: 999px; }
.nav-pill:hover { background: var(--ink); color: var(--paper); }

/* Hero */
.hero {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  align-items: end; padding-top: clamp(56px, 7.8vw, 112px); padding-bottom: var(--section-y);
}
.hero-copy { grid-column: span 7; display: flex; flex-direction: column; gap: 32px; }
.hero h1 { font-size: clamp(52px, 7.2vw, 104px); line-height: 0.98; letter-spacing: -0.025em; }
.hero h1 em { color: var(--accent); }
.lede { max-width: 600px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 4px; }
.hero-art { grid-column: span 5; display: flex; justify-content: flex-end; }
.hero-art svg { width: 100%; max-width: 460px; height: auto; }

/* The name */
.name-section { background: var(--ink); color: var(--paper); padding-block: var(--section-y); }
.name-section .eyebrow { color: #A9B3AC; }
.section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 20px;
  align-items: end; margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head > div { grid-column: span 7; display: flex; flex-direction: column; gap: 20px; }
.section-note { grid-column: 8 / span 5; font-size: 19px; color: var(--ink-soft); }
.work .section-head > div { grid-column: span 12; }
.name-section .section-note { color: #C9D0CA; }

.defs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.def {
  border: 1px solid #3C4A44; border-radius: 4px; padding: clamp(28px, 3.3vw, 48px);
  display: flex; flex-direction: column; gap: 28px;
}
.def-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.def-top svg { flex-shrink: 0; }
.def h3 { font-size: clamp(44px, 4vw, 56px); letter-spacing: -0.02em; line-height: 1.1; }
.pron { font-family: var(--mono); font-size: 14px; color: #A9B3AC; margin-top: 6px; }
.def > p { color: #DCE1DC; line-height: 1.65; }
.def .def-line {
  margin-top: auto; padding-top: 20px; border-top: 1px solid #3C4A44;
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.4; color: var(--paper);
}

/* How we work */
.work { padding-block: var(--section-y); }
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.principles li { border-top: 2px solid var(--ink); padding-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.num { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.principles h3 { font-size: 32px; font-weight: 500; line-height: 1.15; }
.principles p { color: var(--ink-soft); }

/* Products */
.products { padding-bottom: var(--section-y); }
.products-head { border-top: 1px solid var(--rule); padding-top: clamp(72px, 7.8vw, 112px); margin-bottom: 56px; }
.product-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.card {
  border-radius: 4px; padding: clamp(28px, 3.3vw, 48px); min-height: 420px;
  display: flex; flex-direction: column; gap: 28px;
}
.card-main { grid-column: span 7; background: var(--sailcloth); border: 1px solid var(--rule); }
.card-next { grid-column: span 5; border: 1.5px dashed #B9AE99; justify-content: space-between; gap: 24px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.card-meta, .card-meta-label {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--green); }
.dot { width: 8px; height: 8px; border-radius: 99px; background: var(--green); }
.product-id { display: flex; align-items: center; gap: 28px; }
.product-id img { width: 104px; height: 104px; flex-shrink: 0; }
.product-id h3 { font-size: clamp(52px, 5vw, 72px); letter-spacing: -0.025em; line-height: 1; }
.by { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); margin-top: 8px; }
.card-copy { max-width: 520px; font-size: 19px; color: var(--ink-soft); }
.card-actions { margin-top: auto; display: flex; gap: 16px; align-items: center; }
.card-next h3 { font-size: 36px; line-height: 1.1; margin-bottom: 12px; }
.card-next p { color: var(--ink-soft); }

/* Contact */
.contact { background: var(--accent); color: var(--sailcloth); padding-block: var(--section-y); }
.contact h2 { font-size: clamp(56px, 8.3vw, 120px); line-height: 0.96; letter-spacing: -0.03em; margin-bottom: 40px; }
.contact-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; flex-wrap: wrap; }
.contact-row p { max-width: 560px; font-size: 20px; }

/* Footer */
.site-footer { background: var(--ink); color: #C9D0CA; font-size: 15px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding-block: 36px; }
.footer-brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.footer-name { font-family: var(--serif); font-size: 22px; color: var(--paper); }
.footer-tag { font-family: var(--serif); font-style: italic; font-size: 17px; }

/* Tablet */
@media (max-width: 1024px) {
  .hero-copy { grid-column: span 12; }
  .hero-art { grid-column: span 12; justify-content: center; margin-top: 48px; }
  .hero-art svg { max-width: 380px; }
  .section-head > div, .section-note { grid-column: span 12; }
  .section-note { max-width: 560px; }
  .card-main, .card-next { grid-column: span 12; }
  .card-next { min-height: 0; }
}

/* Phone */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .header-inner { padding-block: 18px; }
  .brand span { font-size: 24px; }
  .nav { gap: 0; }
  .nav-link { display: none; }
  .nav-pill { padding: 10px 18px; min-height: 44px; display: inline-flex; align-items: center; }
  .hero-copy { gap: 24px; }
  .hero-art { justify-content: center; margin-top: 40px; }
  .hero-art svg { max-width: 300px; }
  .defs, .principles { grid-template-columns: minmax(0, 1fr); }
  .principles { gap: 40px; }
  .def-top svg { width: 72px; height: auto; }
  .card { min-height: 0; }
  .product-id { gap: 16px; }
  .product-id img { width: 64px; height: 64px; }
  .product-id h3 { font-size: 42px; }
  .by { font-size: 18px; margin-top: 4px; }
  .card-next svg { width: 88px; height: auto; }
  .contact-row { align-items: flex-start; flex-direction: column; }
  .contact-row p { font-size: 18px; }
  .btn-light { font-size: 17px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
