/* Vidar Mail - one page. Light-first, cold, northern. A serif system stack; no external resources. */
:root {
  --ground: #eef1ef;
  --paper: #f7f8f6;
  --line: #ccd5d0;
  --ink: #1b2622;
  --muted: #58655f;
  --pine: #1f4a3a;
  --iron: #35506a;
  --on-pine: #f1f5f2;
  --ok: #2a6b4a;
  --bad: #9d3a33;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #121b17;
    --paper: #182420;
    --line: #2a3a33;
    --ink: #e4ebe6;
    --muted: #98a8a0;
    --pine: #8fc3a8;
    --iron: #9fb8cc;
    --on-pine: #0f1a15;
    --ok: #7fc49a;
    --bad: #e39a93;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #121b17;
  --paper: #182420;
  --line: #2a3a33;
  --ink: #e4ebe6;
  --muted: #98a8a0;
  --pine: #8fc3a8;
  --iron: #9fb8cc;
  --on-pine: #0f1a15;
  --ok: #7fc49a;
  --bad: #e39a93;
  color-scheme: dark;
}
* { 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(--ink);
  font: 18px/1.65 Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
a { color: var(--iron); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--pine); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--iron); outline-offset: 2px; }

.page { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Top band: the mark beside the name, a snow line beneath. */
.top { padding: 56px 0 36px; display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.top .mark { width: 112px; height: 112px; flex: 0 0 auto; color: var(--pine); }
.top .mark .snow { color: var(--iron); }
.top h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 400; line-height: 0.95; letter-spacing: -0.02em; margin: 0; }
.top .lede { flex: 1 1 100%; margin: 28px 0 0; font-size: 1.3rem; line-height: 1.45; color: var(--muted); font-style: italic; max-width: none; }
.snowline { border: 0; border-top: 2px solid var(--iron); margin: 0; opacity: 0.55; }

/* Two columns from 900px: the rail on the left, the prose on the right. One column below that. */
.body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 24px; }
.rail { padding: 28px 0 0; }
.rail nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.rail nav a { text-decoration: none; color: var(--muted); font-size: 1rem; }
.rail nav a:hover { color: var(--pine); text-decoration: underline; }
.rail .where { color: var(--muted); font-size: 0.95rem; margin: 18px 0 0; }
@media (min-width: 900px) {
  .body { grid-template-columns: 240px minmax(0, 1fr); column-gap: 72px; }
  .rail { position: sticky; top: 0; align-self: start; padding-top: 44px; }
  .rail nav ul { flex-direction: column; gap: 10px; }
  .rail nav a { font-size: 1.05rem; }
  .rail .where { margin-top: 36px; }
}

main { max-width: 68ch; }
main section { padding: 44px 0 8px; }
main section + section { border-top: 1px solid var(--line); margin-top: 28px; }
h2 { font-size: 1.9rem; font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 18px; }
p { margin: 0 0 16px; }
.quiet { color: var(--muted); font-size: 0.95rem; }

/* What you get: a plain list, each line set off by a pine dash. */
.gets { list-style: none; margin: 0 0 16px; padding: 0; }
.gets li { position: relative; padding-left: 1.6em; margin-bottom: 10px; }
.gets li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 1em; height: 2px; background: var(--pine); }

/* The four rules: a definition list on a paper ground, two columns where there is room. */
.rules { margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.rules > div { background: var(--paper); padding: 18px 20px 14px; }
.rules dt { font-weight: 700; font-size: 1.05rem; margin: 0 0 6px; color: var(--pine); }
.rules dd { margin: 0; color: var(--ink); }
@media (min-width: 600px) { .rules { grid-template-columns: 1fr 1fr; } }

/* The form. */
form { display: grid; gap: 18px; margin-top: 8px; }
label { display: grid; gap: 6px; font-size: 1rem; }
input, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
  padding: 10px 12px;
}
input:focus, textarea:focus { outline: none; border-bottom-color: var(--pine); background: var(--paper); }
textarea { min-height: 170px; resize: vertical; }
button {
  font: inherit;
  font-weight: 700;
  color: var(--on-pine);
  background: var(--pine);
  border: 0;
  border-radius: 2px;
  padding: 13px 28px;
  cursor: pointer;
  justify-self: start;
  letter-spacing: 0.01em;
}
button:hover { background: var(--iron); }
button[disabled] { opacity: 0.55; cursor: wait; }
/* Honeypot: off-screen, never visible, never in the tab order. A bot that fills every field reveals itself. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-left: 4px solid var(--line); background: var(--paper); margin: 0; }
.notice.bad { border-left-color: var(--bad); }
.notice.ok { border-left-color: var(--ok); }
.notice ul { margin: 8px 0 0; padding-left: 1.2em; }
.cf-turnstile { min-height: 65px; }

footer { border-top: 2px solid var(--iron); padding: 30px 0 64px; color: var(--muted); font-size: 0.95rem; display: grid; gap: 10px; }
footer .mark { width: 34px; height: 34px; color: var(--pine); }
footer .mark .snow { color: var(--iron); }
footer nav a { margin-right: 20px; }

/* thanks.html and form-error.html */
.leaf { padding: 72px 0; max-width: 60ch; }
.leaf .mark { width: 88px; height: 88px; color: var(--pine); margin-bottom: 24px; }
.leaf .mark .snow { color: var(--iron); }
.leaf h1 { font-size: 2.6rem; font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px; }

@media (max-width: 480px) {
  body { font-size: 17px; }
  .top { padding: 40px 0 28px; gap: 18px; }
  .top .mark { width: 80px; height: 80px; }
  .top .lede { font-size: 1.15rem; margin-top: 20px; }
  h2 { font-size: 1.6rem; }
}
