/* Moorvella — site.css */
:root {
  --paper: #FFFFFF;
  --shallows: #EEF4F3;
  --ink: #182226;
  --ink-2: #4A5A60;
  --lake: #0F5E63;
  --deep: #0A3338;
  --line: #D8E2E1;
  --measure: 62ch;
  --font: "Newsreader", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10191B; --shallows: #16242A; --ink: #EEF2F1; --ink-2: #A9B7B9; --lake: #7FC4C2; --deep: #0A3338; --line: #27383C;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 19px; line-height: 1.55; font-weight: 400;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
}
a { color: var(--lake); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--lake); outline-offset: 3px; }
h1, h2, h3 { font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: 0; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* header */
.top { position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 16px 24px; padding-block: 28px 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 500; }
.brand svg { width: 22px; height: 22px; }
.menu { display: flex; align-items: baseline; gap: 22px; margin: 0; padding: 0; list-style: none; font-size: 17px; }
.menu a { color: var(--ink-2); text-decoration: none; }
.menu a:hover, .menu a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

/* hero */
.hero { position: relative; padding-block: 88px 72px; overflow: hidden; }
.hero .name { font-size: clamp(58px, 10vw, 128px); font-weight: 500; line-height: 0.95; letter-spacing: -0.015em; margin-left: -0.04em; }
.hero .tag { font-size: clamp(22px, 2.6vw, 30px); font-style: italic; font-weight: 400; color: var(--ink-2); max-width: 30ch; margin-top: 22px; line-height: 1.3; }
.hero .intro { max-width: var(--measure); margin-top: 32px; }
.shore { position: absolute; right: -10%; top: 2%; width: 56%; max-width: 740px; pointer-events: none; opacity: .9; }
.shore path { fill: none; stroke: var(--lake); stroke-opacity: .28; stroke-width: 1.1; }
.shore path:nth-child(1) { fill: var(--shallows); stroke-opacity: .5; }
@media (max-width: 760px) { .shore { width: 120%; right: -50%; top: 0; opacity: .6; } .hero { padding-block: 56px 48px; } .menu { gap: 16px; font-size: 16px; } }

/* sections */
.section { padding-block: 56px; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 26px; }
.section p, .section li { max-width: var(--measure); }
.section p + p { margin-top: 1em; }
.section h3 { font-size: 23px; margin: 1.6em 0 .4em; }
.section h3:first-of-type { margin-top: 0; }
ul { padding-left: 1.2em; margin: .6em 0 0; }
li + li { margin-top: .35em; }

/* the product ledger */
.ledger { border-top: 1px solid var(--line); }
.entry { display: grid; grid-template-columns: minmax(180px, 1fr) 3fr; gap: 18px 40px; padding-block: 30px; border-bottom: 1px solid var(--line); align-items: start; }
.entry:last-child { border-bottom: 0; }
.entry h3 { font-size: 27px; margin: 0; }
.entry .kind { color: var(--ink-2); font-size: 17px; margin-top: 4px; }
.entry .links { margin-top: 12px; font-size: 17px; display: flex; gap: 18px; flex-wrap: wrap; }
.entry .status { color: var(--ink-2); font-style: italic; }
@media (max-width: 640px) { .entry { grid-template-columns: 1fr; gap: 10px; } }

/* contact */
.contact { padding-block: 56px 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact h2 { font-size: clamp(28px, 3.4vw, 40px); }
.contact .big { font-size: clamp(22px, 2.6vw, 30px); }
@media (max-width: 640px) { .contact { grid-template-columns: 1fr; } }

/* footer */
.foot { padding-block: 34px 44px; color: var(--ink-2); font-size: 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: inherit; }

/* document pages */
.doc { padding-block: 56px 72px; }
.doc h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 10px; }
.doc .updated { color: var(--ink-2); font-style: italic; margin-bottom: 36px; }
.doc h2 { font-size: 27px; margin: 1.8em 0 .5em; }
.doc h2:first-of-type { margin-top: .4em; }
.doc p, .doc li { max-width: var(--measure); }
.doc p + p { margin-top: 1em; }
.doc dl { max-width: var(--measure); margin: 0; }
.doc dt { font-weight: 500; margin-top: 1.1em; }
.doc dd { margin: .2em 0 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
