/* One stylesheet for the whole site. Warm paper, sea-ink type, one green
   accent. Fonts are system stacks on purpose: nothing is fetched from
   anywhere, so the page has no third-party requests to explain. */
:root {
  color-scheme: light;
  --paper: #f5f0e6;
  --paper-deep: #ebe4d5;
  --ink: #16243b;
  --ink-soft: #46536b;
  --ink-dim: #7c869a;
  --line: #d6cdb9;
  --sea: #0f6f63;
  --sea-deep: #0a4f47;
  --foam: #e3ede9;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Gill Sans", "Trebuchet MS", "Segoe UI", Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--serif);
  -webkit-font-smoothing: antialiased;
  /* Faint laid-paper texture: two hairline grids offset from each other. */
  background-image:
    repeating-linear-gradient(0deg, rgba(22, 36, 59, 0.025) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(22, 36, 59, 0.018) 0 1px, transparent 1px 28px);
}
a { color: inherit; }
::selection { background: var(--sea); color: var(--paper); }

.wrap { width: min(1040px, calc(100% - 48px)); margin: 0 auto; }
.wrap-narrow { width: min(720px, calc(100% - 48px)); margin: 0 auto; }

/* Header */
header { padding: 26px 0; }
nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; font-family: var(--sans); font-weight: 600;
  letter-spacing: 0.01em; font-size: 1.05rem;
}
.wordmark svg { width: 30px; height: 30px; display: block; }
.nav-links { display: flex; gap: 26px; font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); }
.nav-links a { text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--sea); }

/* Eyebrow labels, tracked, in the sans */
.eyebrow {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--sea);
  margin: 0 0 12px;
}

/* Hero */
.hero { padding: 72px 0 40px; position: relative; }
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(3rem, 9vw, 6.4rem);
  line-height: 0.98; letter-spacing: -0.03em; font-weight: 500;
  max-width: 11ch;
}
.hero h1 em { font-style: italic; color: var(--sea); }
.hero .lead {
  font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5;
  color: var(--ink-soft); max-width: 34ch; margin: 0 0 34px;
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  text-decoration: none; border: 1.5px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--sea-deep); border-color: var(--sea-deep); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--paper-deep); }

/* Staggered reveal on load; the only motion on the page. */
.rise { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise:nth-child(2) { animation-delay: 0.08s; }
.rise:nth-child(3) { animation-delay: 0.16s; }
.rise:nth-child(4) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } html { scroll-behavior: auto; } .btn:hover { transform: none; } }

/* Tide line: a wave rule between sections instead of a flat border. */
.tide { display: block; width: 100%; height: 22px; color: var(--line); margin: 40px 0; }
.tide svg { width: 100%; height: 100%; display: block; }

/* Sections */
section { padding: 34px 0; }
.section-head { display: grid; gap: 8px; margin-bottom: 30px; }
.section-head h2 {
  margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  line-height: 1.12; letter-spacing: -0.02em; font-weight: 500;
}
.section-head p { margin: 0; color: var(--ink-soft); max-width: 52ch; }

/* Products: the live ones, then a dashed card for whatever is on the bench. */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px 28px 26px; border: 1px solid var(--line); border-radius: 18px;
  background: rgba(255, 253, 248, 0.7);
  text-decoration: none; position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
a.card:hover, a.card:focus-visible {
  border-color: var(--sea); transform: translateY(-2px);
  box-shadow: 0 18px 40px -24px rgba(22, 36, 59, 0.35);
}
.card-bench { background: transparent; border-style: dashed; }
.card h3 { margin: 0; font-size: 1.6rem; font-weight: 500; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-soft); }
.card .go { margin-top: auto; font-family: var(--sans); font-size: 0.9rem; font-weight: 600; color: var(--sea); }
.status {
  align-self: flex-start; font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: var(--foam); color: var(--sea-deep);
}
.status-bench { background: var(--paper-deep); color: var(--ink-dim); }

/* Principles: numbered, set as a ledger. */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principles li { padding: 26px 22px 26px 0; border-bottom: 1px solid var(--line); }
.principles li + li { border-left: 1px solid var(--line); padding-left: 22px; }
.principles .n { display: block; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--ink-dim); margin-bottom: 14px; }
.principles h3 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 500; }
.principles p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* Contact: the address line is the object of the section. */
.contact p { color: var(--ink-soft); max-width: 52ch; }
.contact .mail {
  display: inline-block; margin-top: 10px;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem); letter-spacing: -0.01em;
  text-decoration: none; border-bottom: 2px solid var(--sea); padding-bottom: 2px;
}
.contact .mail:hover, .contact .mail:focus-visible { color: var(--sea); }

/* Footer */
footer { margin-top: 40px; padding: 30px 0 46px; border-top: 1px solid var(--line); color: var(--ink-dim); font-family: var(--sans); font-size: 0.88rem; }
footer .wrap, footer .wrap-narrow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer a { text-decoration: none; }
footer a:hover, footer a:focus-visible { color: var(--sea); }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; }

/* Legal pages */
main.legal { padding: 24px 0 70px; }
main.legal h1 { margin: 8px 0 10px; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 500; }
main.legal h2 { margin: 42px 0 10px; font-size: 1.45rem; font-weight: 500; letter-spacing: -0.01em; }
main.legal p, main.legal li { color: var(--ink-soft); }
main.legal p { margin: 0 0 14px; }
main.legal strong { color: var(--ink); font-weight: 600; }
.updated { color: var(--ink-dim); font-size: 0.9rem; margin-bottom: 30px; }
.box { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 253, 248, 0.7); margin: 18px 0; }
.box p { margin: 0 0 10px; } .box p:last-child { margin: 0; }
table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); }
th { font-family: var(--sans); color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; font-weight: 600; }

@media (max-width: 900px) { .products { grid-template-columns: 1fr 1fr; } .card-bench { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .products { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principles li + li { border-left: 0; padding-left: 0; }
  .principles li { padding-right: 0; }
  .hero { padding-top: 48px; }
  .nav-links { gap: 18px; }
  .nav-links .nav-mid { display: none; }
  th, td { display: block; padding: 6px 0; border-top: 0; }
  tr { display: block; border-top: 1px solid var(--line); padding: 10px 0; }
  th { padding-top: 0; }
}
