@charset "UTF-8";

/* Archivo (SIL Open Font License), self-hosted. Axes: weight 100–900, width 62–125%. */
@font-face {
  font-family: "Archivo";
  src: url("archivo.woff2") format("woff2-variations"), url("archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

/* Accent colours are sampled from the coast illustration. */
:root {
  --sky: #3699d7;        /* the painted sky */
  --sky-shadow: #1d6aa1; /* sky in shade: the edge on the name */
  --ochre: #f2a14c;      /* sunlit grass: link underlines */
  --sea: #7cc0ea;        /* labels: the painted sky, lifted for contrast on night water */
  --ink: #ece6db;        /* body text: lit fog */
  --muted: #a7b6c0;
  --rule: #22394a;
  --bg: #0f202d;         /* page background: the sea at night */
  --white: #ffffff;
  --night: #102536;      /* dark text on the sky, in either mode */

  --font: "Archivo", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --measure: 38rem;
  --name-size: clamp(76px, 14.6vw, 230px);
  --tuck: .2;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ochre); color: var(--night); }

.wrap { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 10;
  padding: 10px 14px; background: var(--night); color: var(--white);
}
.skip-link:focus { top: 16px; }

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sea); outline-offset: 4px; border-radius: 2px; }

/* ---------- Sky: the name sits in the sky and sinks into the fog ---------- */
.sky {
  background: var(--sky);
  padding-top: clamp(40px, 7vw, 96px);
  overflow: hidden;
}
.name {
  position: relative;
  z-index: 0;
  margin: 0;
  font-size: var(--name-size);
  line-height: .84;
  font-weight: 800;
  font-stretch: 72%;
  letter-spacing: -.01em;
  color: var(--white);
  /* A flat, print-style offset in shaded sky blue keeps the letters crisp against the fog. */
  text-shadow: .022em .028em 0 var(--sky-shadow);
}
.coast {
  position: relative;
  z-index: 1;
  /* Pull the illustration up so the fog bank and ridges cover the foot of the name. */
  margin-top: calc(var(--tuck) * -1 * var(--name-size));
}
.coast img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  object-position: 50% 100%;
}

/* ---------- Page ---------- */
.page { padding: clamp(28px, 3.5vw, 48px) 0 0; }
.headline {
  margin: 0 0 clamp(20px, 2.5vw, 32px);
  font-size: clamp(36px, 4.8vw, 70px);
  line-height: 1;
  font-weight: 800;
  font-stretch: 72%;
  letter-spacing: -.005em;
  color: var(--ochre);
  text-wrap: balance;
}

.row {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  column-gap: clamp(16px, 2.5vw, 32px);
  padding-block: 26px;
  border-top: 2px solid var(--rule);
}
.row-label {
  margin: .15rem 0 12px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: .01em;
  color: var(--sea);
}
.row-body { max-width: var(--measure); margin: 0; padding: 0; }
.row-body p { margin: 0 0 1em; }
.row-body > :last-child { margin-bottom: 0; }

.now { display: grid; gap: 12px; }
.now div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; }
.now dt { font-weight: 700; }
.now dd { margin: 0; }

/* One link style everywhere: ink text, ochre underline that thickens on hover. */
.links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.links a, .link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--ochre);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  transition: text-decoration-thickness .15s;
}
.links a:hover, .link:hover { text-decoration-thickness: 6px; }

.email { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; }
button.link {
  appearance: none; border: 0; padding: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--ink);
}
.email-status:empty { display: none; }
.email-status { flex-basis: 100%; margin: 0; color: var(--muted); font-size: .9375rem; }

/* ---------- Footer ---------- */
.footer { border-top: 2px solid var(--rule); padding-top: 22px; color: var(--muted); }
.footer-row { padding-bottom: 28px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px 48px; }
.agent-note { margin: 0; max-width: 40rem; font-size: .9375rem; line-height: 1.5; }
.footer .link { color: var(--ink); white-space: nowrap; }

/* ---------- Generated coast: a new one on every visit ---------- */
.coastgen { margin: 0; position: relative; background: var(--sky); border-top: 8px solid var(--white); }
.coastgen svg { display: block; width: 100%; height: clamp(200px, 15vw, 260px); }
.coastgen { display: flex; flex-direction: column-reverse; }
.coastgen-bar {
  padding-top: 18px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px;
  font-size: .9375rem; font-weight: 600; color: var(--night);
}
.coastgen .link { color: var(--night); text-decoration-color: var(--white); }
.coastgen .link:focus-visible { outline-color: var(--night); }

/* ---------- 404 ---------- */
.lost { --name-size: clamp(140px, 30vw, 380px); }

/* ---------- Narrow screens ---------- */
@media (max-width: 700px) {
  :root { --name-size: 26vw; --tuck: .16; }
  .coast img { height: 180px; object-position: 16% 100%; }
  .row { grid-template-columns: 1fr; padding-block: 22px; }
  .row-label { margin-bottom: 8px; }
  .now div { grid-template-columns: 1fr; gap: 0; }
  .footer-row { flex-direction: column; }
  .coastgen svg { height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
