/* Darkmere Labs — one stylesheet, no framework.
   The page is a lakeshore: dark water above the horizon, pale shore below. */
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --water: #0b1a1d;
  --water-deep: #061012;
  --moon: #f1efe7;
  --mist: #a9bab7;
  --shore: #e8edeb;
  --shore-edge: #d5dddb;
  --ink: #10201f;
  --ink-soft: #3f5553;
  --mineral: #2f6d7a;
  --mineral-ink: #1f4f59;
  --measure: 65ch;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--shore);
  color: var(--ink);
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.6;
  font-variation-settings: "opsz" 16;
}
a { color: var(--mineral-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mineral); }
:focus-visible { outline: 2px solid var(--mineral); outline-offset: 3px; }

/* water */
.water {
  background: linear-gradient(180deg, var(--water) 0%, var(--water-deep) 100%);
  color: var(--moon);
}
.water a { color: var(--mist); }
.water a:hover { color: var(--moon); }
.nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 22px var(--gutter) 0;
  font-size: 1rem;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.nav .home { text-decoration: none; letter-spacing: 0.01em; }

.hero { padding: clamp(48px, 9vw, 120px) var(--gutter) 0; }
.wordmark {
  margin: 0;
  font-weight: 300;
  font-size: clamp(3.4rem, 12vw, 9.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 72;
}
.reflection {
  display: block;
  transform: scaleY(-1);
  color: var(--moon);
  opacity: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
  filter: blur(0.6px);
  animation: surface 1.6s ease-out 0.2s forwards;
  user-select: none;
  pointer-events: none;
}
@keyframes surface { to { opacity: 0.22; } }
@media (prefers-reduced-motion: reduce) {
  .reflection { animation: none; opacity: 0.22; }
}
.tagline {
  max-width: 30ch;
  margin: 32px 0 0;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.25;
  font-weight: 400;
}
.hero p.sub { max-width: var(--measure); margin: 18px 0 0; color: var(--mist); }
.horizon { height: 1px; background: linear-gradient(90deg, rgba(241,239,231,0.55), rgba(241,239,231,0.08)); margin-top: clamp(40px, 7vw, 96px); }

/* shore */
.shore { padding: clamp(40px, 6vw, 80px) var(--gutter) 64px; }
.shore h1, .shore h2 { font-weight: 400; letter-spacing: -0.01em; line-height: 1.15; }
.shore h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 8px; font-variation-settings: "opsz" 48; }
.shore h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 56px 0 12px; font-variation-settings: "opsz" 36; }
.shore p, .shore li { max-width: var(--measure); }
.lede { font-size: 1.3rem; color: var(--ink-soft); margin-top: 0; }
.rule { border: 0; border-top: 1px solid var(--shore-edge); margin: 40px 0; max-width: var(--measure); }

.products { list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
.products li { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 20px 0; border-top: 1px solid var(--shore-edge); }
.products li:last-child { border-bottom: 1px solid var(--shore-edge); }
.products .name { font-size: 1.35rem; }
.products .what { color: var(--ink-soft); margin: 0; }
.products .where { font-size: 1rem; }

.button {
  display: inline-block;
  padding: 10px 18px;
  background: var(--mineral);
  color: var(--moon);
  text-decoration: none;
  border-radius: 3px;
  font-size: 1.05rem;
}
.button:hover { background: var(--mineral-ink); color: var(--moon); }
.button.quiet { background: transparent; color: var(--mineral-ink); border: 1px solid var(--mineral); }
.note { background: #dfe7e5; border-left: 3px solid var(--mineral); padding: 12px 16px; max-width: var(--measure); }
.note p { margin: 0; }
dl { max-width: var(--measure); }
dt { font-weight: 600; margin-top: 18px; }
dd { margin: 4px 0 0; color: var(--ink-soft); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: #dfe7e5; padding: 0 5px; border-radius: 3px; }
.updated { color: var(--ink-soft); font-size: 1rem; }

footer { padding: 32px var(--gutter) 48px; border-top: 1px solid var(--shore-edge); color: var(--ink-soft); font-size: 1rem; display: flex; flex-wrap: wrap; gap: 8px 28px; }
footer a { color: var(--ink-soft); }

@media (max-width: 600px) {
  body { font-size: 1.05rem; }
  .nav { flex-direction: column; gap: 10px; }
}
