/* nethaven.eu site: landing, questions, sign-up guide, terms, privacy. Headings are set in the serif, everything else in
   the sans, and nothing in italics. No external requests: the fonts are served from this
   site (Fraunces and Geist, SIL Open Font License 1.1, fonts/OFL.txt and fonts/OFL-Geist.txt).
   The HTML links this file with ?v=N: bump it there when this file changes. The web server
   lets browsers keep stylesheets, scripts, fonts and images for a year, and pages for a day. */
@font-face {
  font-family: Fraunces; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: Geist; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/geist.woff2") format("woff2");
}
:root {
  --deep: #081120;
  --hull: #0f1c30;
  --line: #21344d;
  --fog: #edf2f8;
  --mist: #93a7bf;
  --lantern: #f1bd62;
  --ink: #1b1304;
  --serif: Fraunces, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Geist, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
}

* { box-sizing: border-box; }

html { background: var(--deep); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--fog); font: 400 1.0625rem/1.6 var(--sans); background: var(--deep); }

.wrap { max-width: 90rem; margin: 0 auto; padding: 0 var(--gutter); }

a { color: var(--fog); text-decoration-color: var(--lantern); text-underline-offset: 0.2em; }
a:hover { color: var(--lantern); }
:focus-visible { outline: 2px solid var(--lantern); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
p { margin: 0 0 1em; }

.button {
  display: inline-block; padding: 0.85rem 1.4rem; border-radius: 10px; white-space: nowrap;
  background: var(--lantern); color: var(--ink); font-weight: 600; text-decoration: none;
}
.button:hover { background: #f7d08b; color: var(--ink); }
.button.pale { background: var(--fog); color: var(--deep); }
.button.pale:hover { background: #fff; color: var(--deep); }

/* --- Mast: seal, name, links ------------------------------------------------ */
.mast { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.75rem; }
.mast .home { display: flex; align-items: center; gap: 0.75rem; color: var(--fog); text-decoration: none; }
.mast .home img { width: 40px; height: 40px; display: block; }
.mast .home span { font: 500 1.625rem/1 var(--serif); letter-spacing: -0.01em; }
.mast nav { display: flex; gap: clamp(1rem, 2.4vw, 2.1rem); font-size: 0.9688rem; }
.mast nav a { color: var(--mist); text-decoration: none; }
.mast nav a:hover, .mast nav a:last-child { color: var(--fog); }
.mast nav .far { display: none; }

/* --- Hero: the address, lit by the lighthouse --------------------------------- */
.hero { position: relative; overflow: hidden; padding-bottom: clamp(6rem, 13vw, 11rem); }
.hero > .wrap { position: relative; z-index: 1; }

/* Lamp, tower and one beam. --s scales the whole light on small screens. */
.light { --s: 1; position: absolute; top: 8.5rem; right: calc(var(--gutter) + 4rem); width: 0; height: 0; }
.light .beam {
  position: absolute; left: -2200px; top: -2200px; width: 4400px; height: 4400px; border-radius: 50%;
  background: conic-gradient(from 228deg, transparent 0deg, rgba(241, 189, 98, 0) 4deg,
    rgba(241, 189, 98, 0.34) 17deg, rgba(255, 236, 196, 0.5) 20deg, rgba(241, 189, 98, 0.3) 23deg,
    rgba(241, 189, 98, 0) 36deg, transparent 40deg);
  filter: blur(6px); animation: sweep 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes sweep { from { transform: rotate(38deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .light .beam { animation: none; } html { scroll-behavior: auto; } }
.light .tower {
  position: absolute; left: calc(-26px * var(--s)); top: calc(14px * var(--s));
  width: calc(52px * var(--s)); height: calc(330px * var(--s));
  background: linear-gradient(90deg, #16263f, #0d182a); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
}
.light .lamp {
  position: absolute; left: calc(-14px * var(--s)); top: calc(-14px * var(--s));
  width: calc(28px * var(--s)); height: calc(28px * var(--s)); border-radius: 50%; background: #fff3d6;
  box-shadow: 0 0 0 calc(10px * var(--s)) rgba(241, 189, 98, 0.25), 0 0 80px 30px rgba(241, 189, 98, 0.55);
}
.sea {
  position: absolute; left: 0; right: 0; bottom: 0; height: min(300px, 45%);
  background: repeating-linear-gradient(180deg, transparent 0 22px, rgba(147, 167, 191, 0.09) 22px 23px),
    linear-gradient(180deg, transparent, var(--deep) 85%);
}

.kick { margin: clamp(2.5rem, 7vw, 6.5rem) 0 1.1rem; font-size: clamp(1rem, 1.4vw, 1.1875rem); color: var(--mist); max-width: 40rem; }
/* --chars is the length of the whole address; site.js raises it for long names. */
.address {
  --chars: 16;
  font: 400 calc(min(9.25rem, (100vw - 2 * var(--gutter)) / 7.8) * min(1, 16 / var(--chars))) / 1 var(--serif);
  letter-spacing: -0.045em; white-space: nowrap; margin: 0;
}
.address .at { color: var(--mist); font-weight: 300; }
.address .you { position: relative; padding: 0 0.04em 0 0.01em; color: var(--lantern); }
.address .you::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0.05em; height: 0.037em; border-radius: 3px; background: var(--lantern); opacity: 0.55; }
.address .you::after { content: ""; position: absolute; right: -0.04em; top: 0.17em; bottom: 0.11em; width: 0.03em; border-radius: 2px; background: var(--lantern); }
.address .host { font-weight: 300; margin-left: 0.06em; }

.sub { display: grid; grid-template-columns: minmax(0, 35rem) minmax(0, 30rem); gap: 2.5rem clamp(2rem, 6vw, 5rem); margin-top: clamp(2rem, 4.5vw, 4rem); align-items: start; }
.lead { font-size: clamp(1.1875rem, 1.75vw, 1.5rem); line-height: 1.45; color: #dbe4ef; margin: 0; }
.go { padding-top: 0.35rem; }
.field {
  display: flex; align-items: center; gap: 0.25rem; padding: 0.4rem 0.4rem 0.4rem 1.25rem;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 14px; color: var(--mist);
}
.field:focus-within { border-color: var(--lantern); }
.field label { white-space: nowrap; margin-right: 0.5rem; }
.field input {
  flex: 1 1 4rem; min-width: 0; width: 4rem; padding: 0.5rem 0; border: 0; outline: 0; background: none;
  color: var(--fog); font: 500 1.0625rem/1.2 var(--sans);
}
.field input::placeholder { color: var(--mist); opacity: 0.6; }
.field [hidden] { display: none; }
.field .button { margin-left: auto; }
.field.bare { padding: 0; border: 0; background: none; }
.field.bare .button { margin-left: 0; }
.note { margin: 0.9rem 0 0; font-size: 0.9375rem; color: var(--mist); }

/* --- Claims: four statements --------------------------------------------------- */
.claim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 25rem); gap: 0.75rem 3.75rem; align-items: center; padding: clamp(1.5rem, 2.6vw, 2.125rem) 0; border-top: 1px solid var(--line); }
.claim h2 { font-size: clamp(2rem, 5.3vw, 4.75rem); line-height: 0.98; letter-spacing: -0.035em; }
.claim:nth-child(even) h2 { color: var(--lantern); }
.claim p { margin: 0; color: var(--mist); }

/* --- Sections: heading in the margin, content beside it ------------------------ */
.row { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 6vw, 5rem); padding: clamp(3rem, 6vw, 5.5rem) 0; border-top: 1px solid var(--line); }
.row > h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.02; letter-spacing: -0.03em; scroll-margin-top: 1.5rem; }
.row > div > :last-child { margin-bottom: 0; }
.row p { color: var(--mist); max-width: 40rem; }
.row.wide { grid-template-columns: minmax(0, 1fr); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; margin-bottom: 0.9rem; font: 300 3.75rem/1 var(--serif); color: var(--lantern); }
.steps strong { display: block; margin-bottom: 0.35rem; font: 400 1.375rem/1.2 var(--serif); letter-spacing: -0.01em; }
.steps span { color: var(--mist); font-size: 1rem; }

.plain { margin: 0; padding: 0; list-style: none; }
.plain li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0.25rem 2.5rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--line); color: var(--mist); }
.plain li:first-child { padding-top: 0; }
.plain li:last-child { border-bottom: 0; padding-bottom: 0; }
.plain strong { font: 400 1.5rem/1.2 var(--serif); letter-spacing: -0.015em; color: var(--fog); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 3rem; margin: 0; }
.facts dt { margin-bottom: 0.4rem; font: 400 1.5rem/1.2 var(--serif); letter-spacing: -0.015em; }
.facts dd { margin: 0; color: var(--mist); }

/* --- Comparison table: our column lit ------------------------------------------ */
.scroll { overflow-x: auto; }
.compare { width: 100%; min-width: 48rem; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.compare th { font-weight: 500; color: var(--fog); }
.compare thead th { font: 400 1.375rem/1.2 var(--serif); }
.compare tbody th { width: 19%; padding-left: 0; }
.compare td { color: var(--mist); }
.compare .ours { background: var(--hull); color: var(--fog); }
.compare thead .ours { border-top: 2px solid var(--lantern); border-radius: 10px 10px 0 0; color: var(--lantern); }
.compare tbody tr:last-child > * { border-bottom: 0; }

/* --- Berth: the pitch for a server of your own ---------------------------------- */
.berth { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.75rem 3rem; margin-bottom: clamp(3rem, 6vw, 5.5rem); padding: clamp(1.75rem, 4vw, 3.5rem); background: var(--hull); border: 1px solid var(--line); border-radius: 18px; }
.berth > div { flex: 1 1 26rem; max-width: 44rem; }
.berth h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1; letter-spacing: -0.03em; color: var(--lantern); margin-bottom: 1rem; }
.berth p { margin: 0; color: var(--mist); }

/* --- Footer ----------------------------------------------------------------- */
.foot { margin-top: auto; border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--mist); font-size: 0.9375rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.foot a { color: var(--mist); }
.foot a:hover { color: var(--fog); }
.foot nav a { margin-right: 1.5rem; }
.foot nav a:last-child { margin-right: 0; }
.foot p { margin: 0 0 0.6rem; }
.origin { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.flag { display: inline-block; width: 1.5em; height: 1em; margin-right: 0.45em; border-radius: 2px; vertical-align: -0.12em; background: center / cover no-repeat; }
.flag.eu { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 18'%3E%3Crect width='27' height='18' fill='%23003399'/%3E%3Cg fill='%23FFCC00'%3E%3Cpolygon points='13.50,2.00 13.72,2.69 14.45,2.69 13.86,3.12 14.09,3.81 13.50,3.38 12.91,3.81 13.14,3.12 12.55,2.69 13.28,2.69'/%3E%3Cpolygon points='16.50,2.80 16.72,3.49 17.45,3.49 16.86,3.92 17.09,4.61 16.50,4.19 15.91,4.61 16.14,3.92 15.55,3.49 16.28,3.49'/%3E%3Cpolygon points='18.70,5.00 18.92,5.69 19.65,5.69 19.06,6.12 19.28,6.81 18.70,6.38 18.11,6.81 18.33,6.12 17.75,5.69 18.47,5.69'/%3E%3Cpolygon points='19.50,8.00 19.72,8.69 20.45,8.69 19.86,9.12 20.09,9.81 19.50,9.38 18.91,9.81 19.14,9.12 18.55,8.69 19.28,8.69'/%3E%3Cpolygon points='18.70,11.00 18.92,11.69 19.65,11.69 19.06,12.12 19.28,12.81 18.70,12.38 18.11,12.81 18.33,12.12 17.75,11.69 18.47,11.69'/%3E%3Cpolygon points='16.50,13.20 16.72,13.89 17.45,13.89 16.86,14.31 17.09,15.01 16.50,14.58 15.91,15.01 16.14,14.31 15.55,13.89 16.28,13.89'/%3E%3Cpolygon points='13.50,14.00 13.72,14.69 14.45,14.69 13.86,15.12 14.09,15.81 13.50,15.38 12.91,15.81 13.14,15.12 12.55,14.69 13.28,14.69'/%3E%3Cpolygon points='10.50,13.20 10.72,13.89 11.45,13.89 10.86,14.31 11.09,15.01 10.50,14.58 9.91,15.01 10.14,14.31 9.55,13.89 10.28,13.89'/%3E%3Cpolygon points='8.30,11.00 8.53,11.69 9.25,11.69 8.67,12.12 8.89,12.81 8.30,12.38 7.72,12.81 7.94,12.12 7.35,11.69 8.08,11.69'/%3E%3Cpolygon points='7.50,8.00 7.72,8.69 8.45,8.69 7.86,9.12 8.09,9.81 7.50,9.38 6.91,9.81 7.14,9.12 6.55,8.69 7.28,8.69'/%3E%3Cpolygon points='8.30,5.00 8.53,5.69 9.25,5.69 8.67,6.12 8.89,6.81 8.30,6.38 7.72,6.81 7.94,6.12 7.35,5.69 8.08,5.69'/%3E%3Cpolygon points='10.50,2.80 10.72,3.49 11.45,3.49 10.86,3.92 11.09,4.61 10.50,4.19 9.91,4.61 10.14,3.92 9.55,3.49 10.28,3.49'/%3E%3C/g%3E%3C/svg%3E"); }
.flag.nl { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 6'%3E%3Crect width='9' height='6' fill='%2321468B'/%3E%3Crect width='9' height='4' fill='%23FFF'/%3E%3Crect width='9' height='2' fill='%23AE1C28'/%3E%3C/svg%3E"); }
.flag.de { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 6'%3E%3Crect width='9' height='6' fill='%23FFCE00'/%3E%3Crect width='9' height='4' fill='%23DD0000'/%3E%3Crect width='9' height='2' fill='%23000'/%3E%3C/svg%3E"); }
.flag.fr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 6'%3E%3Crect width='9' height='6' fill='%23ED2939'/%3E%3Crect width='6' height='6' fill='%23FFF'/%3E%3Crect width='3' height='6' fill='%23002395'/%3E%3C/svg%3E"); }

/* --- Documents: terms, privacy, not found ------------------------------------- */
/* A shorter hero: the light and the page title. */
.hero.slim { padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.hero.slim .light { --s: 0.8; top: 7.5rem; }
.hero.slim .light .beam, .hero.full .light .beam { animation: none; }
.hero.full { flex: 1; }
.title { margin-top: clamp(2.5rem, 7vw, 6rem); font-size: clamp(2.6rem, 7vw, 6rem); line-height: 0.98; letter-spacing: -0.035em; }
.hero .updated { margin: 1.25rem 0 0; color: var(--mist); }
.hero.full .lead { margin-top: 1.75rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin: 2.25rem 0 0; }

.docgrid { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 46rem); gap: 0 clamp(2rem, 6vw, 5rem); width: 100%; }
.toc { padding-top: clamp(2rem, 4vw, 3.25rem); }
.toc ol { position: sticky; top: 2rem; margin: 0; padding: 0; list-style: none; font-size: 0.9688rem; }
.toc li { margin-bottom: 0.55rem; }
.toc a { color: var(--mist); text-decoration: none; }
.toc a:hover { color: var(--fog); }
.doc { padding: clamp(2rem, 4vw, 3.25rem) 0 5rem; }
.doc > :first-child { margin-top: 0; }
.doc h2 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.015em; margin: 3rem 0 0.75rem; scroll-margin-top: 1.5rem; }
.doc h3 { font-size: 1.3125rem; line-height: 1.3; letter-spacing: -0.01em; margin: 2rem 0 0.4rem; }
.doc p, .doc li { color: #c9d4e2; }
.doc strong { color: var(--fog); font-weight: 600; }
.doc ul { margin: 0 0 1em; padding-left: 1.25rem; }
.doc li { margin-bottom: 0.4em; }
.doc li::marker { color: var(--lantern); }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.25em; font-size: 0.9875rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.7rem 1rem 0.7rem 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 500; color: var(--mist); }
.doc td { color: var(--mist); }
.doc td:first-child { color: var(--fog); }

/* --- Guide: the sign-up walk-through (/sign-up-guide/) ---------------------------------- */
/* One section per step: text beside its screenshot. The red of the numbers matches the frames
   drawn into the screenshots by scripts/nethaven-guide-shots.py. */
.guide { --mark: #ff3b30; counter-reset: leg; }
.need { padding: 1.5rem 1.75rem; background: var(--hull); border: 1px solid var(--line); border-radius: 18px; }
.need h2 { margin-top: 0; }
.need ul { margin-bottom: 1rem; }
.need p { margin: 0; font-size: 0.9688rem; color: var(--mist); }
.need .how { margin-bottom: 1rem; font-size: 1.0625rem; color: #c9d4e2; }
.leg { counter-increment: leg; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: 1.5rem 2.5rem; align-items: start; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.leg > div::before { content: counter(leg); display: block; margin-bottom: 0.5rem; font: 300 3.75rem/1 var(--serif); color: var(--lantern); }
.leg h2 { margin-top: 0; }
.leg figure { margin: 0; display: grid; gap: 1rem; }
.leg img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.leg img.paper { border-radius: 10px; }
.leg.wide { grid-template-columns: minmax(0, 1fr); }
.marks { margin: 0 0 1em; padding: 0; list-style: none; counter-reset: mark; }
.marks li { counter-increment: mark; position: relative; margin-bottom: 0.7em; padding-left: 2.4rem; }
.marks li::before {
  content: counter(mark); position: absolute; left: 0; top: 0.05em; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--mark); color: #fff; font: 700 0.9375rem/1.6rem var(--sans); text-align: center; box-shadow: 0 0 0 2px #fff;
}
.chip { padding: 0.15rem 0.6rem; border: 1px solid var(--lantern); border-radius: 8px; background: none; color: var(--lantern); font: 500 1rem/1.4 var(--sans); cursor: pointer; }
.chip:hover { background: var(--lantern); color: var(--ink); }

@media (min-width: 62rem) { .mast nav .far { display: inline; } }

@media (max-width: 62rem) {
  .docgrid { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}

@media (max-width: 56rem) {
  .leg { grid-template-columns: minmax(0, 1fr); }
  .leg figure { max-width: 24rem; }
  .leg.wide figure { max-width: none; }
  .sub { grid-template-columns: minmax(0, 1fr); }
  .claim, .row { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 40rem) {
  .light, .hero.slim .light { --s: 0.42; top: 6.4rem; right: calc(var(--gutter) + 0.9rem); }
  .kick { padding-right: 3.5rem; margin-top: 2.75rem; }
  .sea { height: 9rem; }
  .claim h2, .row > h2 { letter-spacing: -0.025em; word-spacing: 0.05em; }
  .field { flex-wrap: wrap; padding: 0.75rem 0.75rem 0.75rem 1rem; }
  .field .button { flex: 1 0 100%; margin: 0.5rem 0 0 -0.25rem; text-align: center; }
  .field.bare .button { margin: 0; }
  .plain li, .facts { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .steps li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: 0.5rem; }
  .steps li::before { grid-row: span 2; font-size: 2.75rem; margin: 0; }
}
