/* Layout: a single calm column. Header with the one nav link, hero, story, offer cards, product preview on the
   home page; the contact details on contact.html. Shared by both pages. */
:root {
  --bg: #F4EFE3;
  --surface: #FBF8EF;
  --ink: #0F1733;
  --muted: #3A4770;
  --accent: #C69A4A;
  --accent-ink: #8A6A2E;
  --teal: #2A8E92;
  --rule: rgba(15, 23, 51, 0.16);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1733;
    --surface: #162049;
    --ink: #F4EFE3;
    --muted: #B9BFD3;
    --accent: #C69A4A;
    --accent-ink: #E2B86A;
    --teal: #4FB5B9;
    --rule: rgba(244, 239, 227, 0.18);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1733;
  --surface: #162049;
  --ink: #F4EFE3;
  --muted: #B9BFD3;
  --accent: #C69A4A;
  --accent-ink: #E2B86A;
  --teal: #4FB5B9;
  --rule: rgba(244, 239, 227, 0.18);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; margin: 0; }
p { margin: 0; max-width: 62ch; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Header */
header.top {
  padding-block: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
}
.brand { display: block; line-height: 0; }
.logo { height: clamp(120px, 22vw, 200px); width: auto; display: block; max-width: 100%; }
.status {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-align: right;
}

.nav { display: flex; gap: 22px; }
.nav a {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.nav a:hover { color: var(--ink); border-color: var(--teal); }
.nav a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }
.lede a { color: var(--accent-ink); }
.aside { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* Hero */
.hero { padding-block: clamp(56px, 12vw, 120px) 56px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-ink);
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.06;
  letter-spacing: 0.002em;
  max-width: 16ch;
}
.lede {
  margin-top: 28px;
  font-size: 19px;
  color: var(--muted);
  max-width: 56ch;
}
.lede + .lede { margin-top: 14px; }

/* Areas */
.areas {
  padding-block: 48px 64px;
  border-top: 1px solid var(--rule);
}
.areas h2 {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 28px;
  font-weight: 500;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 28px 26px 30px;
  min-width: 0;
}
.card h3 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.card p { color: var(--muted); font-size: 16px; }

/* Teal accents: small, bright notes from the style manual */
.status::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); margin-right: 10px; vertical-align: middle; }
.eyebrow::before { content: ""; display: inline-block; width: 40px; height: 3px; background: var(--teal); margin-right: 14px; vertical-align: middle; }
.card { border-top: 3px solid var(--teal); }
.story .founded { border-left: 3px solid var(--teal); padding-left: 20px; }

/* Story */
.story { padding-block: 48px 56px; border-top: 1px solid var(--rule); }
.story h2 {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--muted); font-weight: 500; margin-bottom: 24px;
}
.story .founded { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); line-height: 1.15; max-width: 28ch; }
.story p + p { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* Contact */
.contact {
  padding-block: 56px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.contact h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 44px);
  line-height: 1.1;
}
.contact .details { display: grid; gap: 14px; }
.detail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.detail-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  width: 56px;
}
.detail-value {
  font-size: 18px;
  overflow-wrap: anywhere;
  user-select: all;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.person { font-family: var(--serif); font-size: 24px; line-height: 1.2; margin-top: 8px; }
.person:first-child { margin-top: 0; }

/* Products */
.products { padding-block: 48px 56px; border-top: 1px solid var(--rule); }
.products h2 {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--muted); font-weight: 500; margin-bottom: 28px;
}
.products .intro { color: var(--muted); font-size: 18px; margin: -12px 0 28px; }
.product-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .products .intro { color: var(--muted); font-size: 18px; margin: -12px 0 28px; }
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .products .intro { color: var(--muted); font-size: 18px; margin: -12px 0 28px; }
.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.product {
  background: var(--surface); border: 1px solid var(--rule);
  padding: 20px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.product .tile { width: 72px; height: 72px; background: #F4EFE3; display: grid; place-items: center; }
.product .tile svg { width: 52px; height: 52px; display: block; }
.product h3 { font-family: var(--serif); font-size: 24px; line-height: 1.15; }
.product p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.product a { margin-top: auto; font-size: 14px; color: var(--accent-ink); }

/* The note form */
.note { display: grid; gap: 18px; margin-top: 36px; max-width: 520px; }
.note label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 6px;
}
.note label .opt { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 13px; }
.note input, .note textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 10px 12px;
}
.note input:focus-visible, .note textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.note textarea { min-height: 160px; resize: vertical; }
.note .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.note button {
  justify-self: start;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 12px 22px;
  min-height: 44px;
  cursor: pointer;
}
.note button:hover { background: var(--teal); border-color: var(--teal); }
.note .hint { color: var(--muted); font-size: 15px; }
.sent { padding-block: 56px; border-top: 1px solid var(--rule); }
.sent h1 { font-family: var(--serif); font-size: clamp(32px, 4.5vw, 44px); line-height: 1.1; margin-bottom: 16px; }
.sent p { color: var(--muted); font-size: 18px; }
.sent p + p { margin-top: 12px; }
.contact .note { grid-column: 1 / -1; }

/* Footer */
footer a { color: var(--accent-ink); }
footer {
  padding-block: 28px 36px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 640px) {
  header.top { flex-direction: column; align-items: flex-start; }
  .status { text-align: left; }
  .aside { gap: 18px; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .detail-label { width: 100%; }
}
@media print {
  @page { size: A4; margin: 18mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .status, .nav, .note, .product a { display: none; }
  .card, .product { border: none; padding: 0 0 12pt; break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  a { color: inherit; text-decoration: none; }
  .detail-value { border: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
