/* Kormoran Labs: the shared stylesheet of every page. */
/* Fonts are served from this site (SIL Open Font License, Latin subset), never from Google. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/cormorant-garamond.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url(fonts/cormorant-garamond-italic.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(fonts/jetbrains-mono.woff2) format("woff2"); }
@font-face { font-family: "Syne"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/syne.woff2) format("woff2"); }

/* Kormoran Labs colours (logo pack v1). The eye is the only accent. */
:root {
  --abyss: #07090D;
  --deep-water: #0F171C;
  --tide: #2A3940;
  --mist: #8E9AA0;
  --slate: #4E5A60;
  --moonbone: #E9E6DF;
  --emerald: #3CF0B4;
  --emerald-deep: #097052;

  --ground: var(--abyss);
  --panel: var(--deep-water);
  --hairline: var(--tide);
  --text: var(--moonbone);
  --muted: var(--mist);
  --accent: var(--emerald);
  --moon: var(--moonbone);
  --eye-halo: 0.22;

  --sans: "Syne", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --ground: var(--moonbone);
    --panel: #F3F1EC;
    --hairline: #CFCBC2;
    --text: var(--abyss);
    --muted: var(--slate);
    --accent: var(--emerald-deep);
    --moon: var(--abyss);
    --eye-halo: 0;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.3125rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 30rem) { .wrap { padding: 0 1rem; } }

/* Type roles */
.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.label .eye { color: var(--accent); }
.wordmark { display: inline-flex; align-items: baseline; gap: 0.35em; white-space: nowrap; text-decoration: none; }
.wordmark .k { font-family: var(--sans); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.wordmark .l { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.15em; }

/* The mark: one ink that follows the scheme, the eye in emerald. */
/* Set inline on the symbol's shapes (selectors don't reach inside <use>); custom properties inherit. */

/* Header */
.top { border-bottom: 1px solid var(--hairline); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand .mark { width: 2.5rem; height: 2.5rem; }
.brand .wordmark { font-size: 0.95rem; }
.top nav { display: flex; gap: 1.5rem; }
.top nav a {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding: 0.5rem 0;
}
.top nav a:hover { color: var(--text); }
@media (max-width: 40rem) {
  .brand .wordmark { display: none; }
  .top nav { gap: 1rem; }
  .top nav a { font-size: 0.7rem; letter-spacing: 0.1em; }
}

/* Hero */
.hero { padding: clamp(3.5rem, 10vw, 7.5rem) 0 clamp(3.5rem, 9vw, 6.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(2.9rem, 7.4vw, 5.75rem); line-height: 1.02; letter-spacing: -0.015em;
  margin: 1.25rem 0 1.25rem;
}
.hero h1 span { display: block; }
.hero .tagline {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.3; margin: 0 0 1.5rem;
  padding-left: 1rem; border-left: 2px solid var(--accent);
}
.hero .lede { color: var(--muted); max-width: 32rem; margin: 0; }
.hero .mark { width: 100%; max-width: 24rem; justify-self: end; }
@media (max-width: 48rem) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .mark { order: -1; max-width: 13rem; justify-self: start; }
}

/* The water: thinning hairlines, the mark's reflection used as a divider. */
.water { display: grid; gap: 7px; padding: 0.25rem 0; }
.water span { display: block; height: 1px; background: var(--hairline); margin: 0 auto; }
.water span:nth-child(1) { width: 100%; }
.water span:nth-child(2) { width: 82%; }
.water span:nth-child(3) { width: 60%; }
.water span:nth-child(4) { width: 34%; }

/* Products */
.product { padding: clamp(4rem, 9vw, 6.5rem) 0; scroll-margin-top: 1rem; }
.product-head { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 2rem; align-items: center; margin-bottom: 2.5rem; }
.product-icon { width: 5.5rem; height: 5.5rem; border-radius: 1.35rem; border: 1px solid var(--hairline); }
.product h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 5vw, 3.5rem); line-height: 1.05;
  margin: 0.4rem 0 0;
}
.product .claim {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.15rem); line-height: 1.25; margin: 0 0 1.25rem; max-width: 42rem; text-wrap: balance;
}
.product .body { color: var(--muted); max-width: 42rem; margin: 0 0 2.75rem; }
.product .body p { margin: 0 0 1em; }
.product .body p:last-child { margin-bottom: 0; }
@media (max-width: 30rem) {
  .product-head { grid-template-columns: 1fr; }
  .product-icon { width: 4.5rem; height: 4.5rem; border-radius: 1.1rem; }
}

.points { list-style: none; margin: 0 0 2.75rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.points li { background: var(--panel); padding: 1.5rem 1.5rem 1.75rem; }
.points .label { margin-bottom: 0.75rem; }
.points h3 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.2; margin: 0 0 0.5rem; }
.points p:not(.label) { margin: 0; color: var(--muted); font-size: 1.15rem; line-height: 1.5; }
@media (max-width: 52rem) { .points { grid-template-columns: 1fr; } }

.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; margin: 0 0 2.75rem; padding: 0; list-style: none; }
.flow li { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.flow li:not(:last-child)::after { content: "\2192"; margin-left: 0.9rem; color: var(--muted); }
.flow li:last-child { color: var(--accent); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.button {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3rem; padding: 0.75rem 1.4rem;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--ground); background: var(--text); border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}
.button:hover { background: var(--accent); color: var(--abyss); }
@media (prefers-color-scheme: light) { .button:hover { color: var(--moonbone); } }
.button .arrow { transition: transform .15s ease; }
.button:hover .arrow { transform: translateX(3px); }
.button.email { text-transform: none; letter-spacing: 0.04em; font-size: 0.9rem; }
.contact h2 { margin: 0.4rem 0 1rem; }
.note { font-style: italic; color: var(--muted); margin: 0; font-size: 1.15rem; }

/* Product screens, in a simple phone outline; a swipeable strip on narrow screens. */
.screens { list-style: none; margin: 0 0 3rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); }
.screens figure { margin: 0; }
.phone { padding: 0.4rem; border: 1px solid var(--hairline); border-radius: 2rem; background: var(--panel); }
.phone img { width: 100%; height: auto; aspect-ratio: 393 / 852; border-radius: 1.6rem; }
.screens figcaption { margin-top: 0.9rem; text-align: center; }
@media (max-width: 52rem) {
  .screens {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-left: -1.5rem; margin-right: -1.5rem; padding: 0 1.5rem 0.5rem; scroll-padding: 0 1.5rem;
    scrollbar-width: none;
  }
  .screens::-webkit-scrollbar { display: none; }
  .screens li { flex: 0 0 min(62%, 15rem); scroll-snap-align: start; }
}
@media (max-width: 30rem) {
  .screens { margin-left: -1rem; margin-right: -1rem; padding: 0 1rem 0.5rem; scroll-padding: 0 1rem; }
}

.facts { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0 0 2.75rem; }
.facts li {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--hairline); border-radius: 999px; padding: 0.45rem 0.85rem; color: var(--muted);
}

/* Footer */
footer { border-top: 1px solid var(--hairline); padding: 3rem 0 3.5rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
footer .brand .mark { width: 2rem; height: 2rem; }
footer .brand .wordmark { display: inline-flex; font-size: 0.85rem; }
footer .label a { text-decoration: none; }
footer .label a:hover { color: var(--text); }

/* A quiet text link in mono, beside a note. */
.text-link {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 0.35em;
}
.text-link:hover { color: var(--text); text-decoration-color: var(--accent); }

/* Legal pages: one readable column. */
.legal { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 9vw, 6rem); }
.legal .wrap > * { max-width: 42rem; }
.legal h1 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; margin: 1rem 0 1rem; text-wrap: balance;
}
.legal .updated { margin-bottom: 2.5rem; }
.legal .summary {
  font-style: italic; font-size: clamp(1.35rem, 2.4vw, 1.6rem); line-height: 1.45;
  padding-left: 1rem; border-left: 2px solid var(--accent); margin: 0 0 1rem;
}
.legal h2 {
  font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.2;
  margin: 2.75rem 0 0.75rem; padding-top: 2rem; border-top: 1px solid var(--hairline);
}
.legal p { margin: 0 0 1em; }
.legal ul { margin: 0 0 1em; padding-left: 1.2em; }
.legal li { margin: 0 0 0.5em; }
.legal li::marker { color: var(--accent); }
.legal strong { font-weight: 600; }
.legal a { text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
.legal a:hover { color: var(--accent); }
