/* 55th Parallel — v3
   Plain static site. No build, no JS, no third-party requests.
   All design decisions live in the custom properties below. */

:root {
  /* Colour */
  --bg: #ffffff;
  --ink: #111316;
  --ink-soft: #4f555b;
  --ink-faint: #8a9098;
  --rule: #111316;
  --hairline: rgba(17, 19, 22, 0.14);
  --accent: var(--ink); /* monochrome for now — set a colour here to reintroduce an accent */

  /* Type. Helvetica system stack matches the 55º logo; system mono for the
     latitude coordinate. Both avoid any web-font request. */
  --sans: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Scale: three text sizes only — display, body, small. */
  --measure: 40rem;
  --pad-x: clamp(1.5rem, 5vw, 5rem);
  --pad-y: clamp(1.5rem, 3vw, 2.5rem);
  --step-mark: clamp(2.75rem, 7vw, 5.25rem);
  --step-body: clamp(1.1rem, 1.7vw, 1.35rem);
  --step-small: 0.8125rem;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.006em;
}

img { display: block; max-width: 100%; height: auto; }

::selection { background: var(--accent); color: #fff; }

/* Layout shell: a full-height, padded, centred column. */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 78rem;
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo { height: clamp(72px, 12vw, 150px); width: auto; }

/* The statement, vertically centred in the remaining space. */
.intro {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.6rem);
  padding: clamp(1rem, 3vw, 2.5rem) 0;
}

/* 404 sits its content high rather than centred. */
.intro--top { justify-content: flex-start; }

.wordmark {
  margin: 0;
  font-size: var(--step-mark);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0;
  max-width: var(--measure);
  font-size: var(--step-body);
  line-height: 1.5;
  text-wrap: pretty;
}

/* The 55th parallel: a full-bleed horizon line that draws in slowly, with the
   coordinate read out, vertically centred, at the eastern end. */
.parallel {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: calc(-1 * var(--pad-x));
}

.parallel__line {
  flex: 1 1 auto;
  height: 1px;
  background: var(--rule);
  transform: scaleX(0);
  transform-origin: left center;
  animation: draw 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.parallel__label {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: var(--step-small);
  letter-spacing: 0.1em;
  color: var(--rule);
  opacity: 0;
  animation: fade 0.7s ease 1.5s forwards;
}

/* Company details and links: one left-aligned block, links in a row. */
.colophon {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: clamp(1rem, 2vw, 1.5rem);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.colophon p { margin: 0; }
.colophon__links { margin-top: 0.45rem; }

.sep { color: var(--ink-faint); padding: 0 0.25rem; }

/* Links: ink by default, accent on interaction. */
.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.link:hover { color: var(--accent); text-decoration-color: var(--accent); }
.colophon a.link { color: var(--ink-soft); }
.colophon a.link:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Prose pages (privacy). */
.prose {
  flex: 1 1 auto;
  max-width: var(--measure);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.prose h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.prose h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.prose p { margin: 0 0 1rem; color: var(--ink-soft); }
.prose ul { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--ink-soft); }
.prose li { margin: 0.2rem 0; }
.prose .updated {
  margin-top: 2.5rem;
  font-size: var(--step-small);
  color: var(--ink-faint);
}

/* 404 */
.coord-big {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* One quiet entrance. */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes fade { to { opacity: 1; } }

.reveal { opacity: 0; animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.reveal--1 { animation-delay: 0.05s; }
.reveal--2 { animation-delay: 0.15s; }
.reveal--3 { animation-delay: 0.25s; }
.reveal--4 { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .parallel__line { animation: none; transform: scaleX(1); }
  .parallel__label { animation: none; opacity: 1; }
}

@media (max-width: 640px) {
  .page { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .intro { padding: 0.75rem 0; gap: 0.9rem; }
}
