/* Alone Together — announcement page */

@font-face {
  font-family: "Gentium Book Plus";
  src: url("/fonts/gentium-book-plus-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Gentium Book Plus";
  src: url("/fonts/gentium-book-plus-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Gentium Book Plus";
  src: url("/fonts/gentium-book-plus-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/atkinson-hyperlegible-next-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --wash: #c7d5d6;
  --wash-deep: #b3c6c8;
  --ink: #1e3a37;
  --ink-soft: #35504c;
  --saffron: #ff9933;

  --serif: "Gentium Book Plus", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", "Gill Sans", "Segoe UI", system-ui, sans-serif;

  --step-body: clamp(1.125rem, 1.02rem + 0.42vw, 1.3125rem);
  --step-lead: clamp(1.3125rem, 1.1rem + 0.9vw, 1.75rem);
  --step-statement: clamp(1.75rem, 1.3rem + 1.8vw, 2.625rem);
  --step-name: clamp(3rem, 1.6rem + 5.6vw, 5.75rem);
  --step-label: 0.9375rem;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--wash);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--ink-soft) var(--wash);
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--step-body);
  line-height: 1.6;
  caret-color: var(--ink);
}

::selection { background: var(--saffron); color: var(--ink); }

h1, h2, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--ink-soft);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.2em;
  transition: text-decoration-thickness 160ms var(--ease-out);
}
a:hover { text-decoration-thickness: 0.16em; text-decoration-color: var(--ink); }
a:focus-visible, .skip:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  padding: 0.5rem 0.875rem;
  background: var(--ink); color: var(--wash);
  font-family: var(--sans); font-size: var(--step-label);
  text-decoration: none; z-index: 10;
}
.skip:focus { top: 0.75rem; }

/* ---------- Plate: the disc and the bird ---------- */

.plate {
  position: relative;
  height: clamp(18rem, 84vw, 26rem);
  overflow: clip;
}
.plate__disc {
  position: absolute;
  width: 190vw; aspect-ratio: 1;
  left: 50%; bottom: 0;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--wash-deep);
}
.plate__bird {
  position: absolute;
  width: min(52vw, 16rem); height: auto;
  left: 50%; bottom: 12%;
  translate: -54% 0;
  animation: arrive 1100ms var(--ease-out) both;
}

@keyframes arrive {
  from { transform: translate(-2.25rem, 1.5rem) rotate(-5deg); }
  to   { transform: none; }
}

/* ---------- Account: the written entry ---------- */

.account {
  padding: clamp(2rem, 6vw, 3.5rem) var(--gutter) 0;
  max-width: 46rem;
  margin-inline: auto;
}

.lead h1 {
  font-size: var(--step-name);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.lead__what {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  font-size: var(--step-lead);
  line-height: 1.42;
  max-width: 34ch;
  text-wrap: pretty;
}
.lead__status {
  margin-top: 1.5rem;
  overflow-wrap: anywhere;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.entries { margin-top: clamp(4rem, 12vw, 7.5rem); }

.entry + .entry { margin-top: clamp(3rem, 8vw, 4.75rem); }

.entry h2 {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.entry__body { max-width: 62ch; }
.entry__body p + p { margin-top: 1em; }
.entry__body p { text-wrap: pretty; }

.statement {
  font-size: var(--step-statement);
  font-style: italic;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin-bottom: 0.5em;
}

.plain li + li { margin-top: 0.55em; }
.plain li { padding-left: 1.5rem; position: relative; }
.plain li::before {
  content: "";
  position: absolute; left: 0; top: 0.68em;
  width: 0.75rem; height: 1.5px;
  background: var(--ink-soft);
}

/* Standing: what exists is filled, what does not yet is drawn just as carefully */
.standing li {
  position: relative;
  padding-left: 2rem;
}
.standing li + li { margin-top: 0.7em; }
.standing li::before {
  content: "";
  position: absolute; left: 0.1rem; top: 0.46em;
  width: 0.8125rem; height: 0.8125rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}
.standing li.is-done::before { background: var(--saffron); }
.standing__state {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-right: 0.2em;
}

.contact > div + div { margin-top: 1.25em; }
.contact dt {
  font-family: var(--sans);
  font-size: var(--step-label);
  color: var(--ink-soft);
  line-height: 1.4;
}
.contact dd { overflow-wrap: anywhere; }
.contact dd a { text-decoration-skip-ink: none; }

.close {
  margin-top: clamp(4rem, 10vw, 6.5rem);
  font-size: var(--step-statement);
  font-style: italic;
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.foot {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(2rem, 6vw, 3.5rem);
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.foot p + p { margin-top: 0.25rem; }

/* ---------- Wide screens: plate holds still, entries move past ---------- */

@media (min-width: 60rem) {
  .page {
    display: grid;
    grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
    align-items: start;
  }

  .plate {
    position: sticky; top: 0;
    height: 100vh; height: 100svh;
    overflow: visible;
    /* clip the disc at the left and vertical edges only; its arc is the column edge */
    clip-path: inset(0 -100vw 0 0);
  }
  .plate__disc {
    width: 150vh; width: 150svh;
    left: auto; right: 4%; bottom: auto; top: 50%;
    translate: 0 -50%;
  }
  .plate__bird {
    width: min(31vw, 62vh, 30rem);
    left: auto; right: 9%; bottom: auto; top: 50%;
    translate: 0 -56%;
  }

  .account {
    max-width: none;
    margin: 0;
    padding: 0 var(--gutter) 0 clamp(2rem, 5vw, 5rem);
  }

  .lead {
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding-block: 4rem;
  }

  .entries { margin-top: 0; }
}

@media (min-width: 72rem) {
  .entry {
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    column-gap: 2rem;
    align-items: baseline;
  }
  .entry h2 {
    margin-bottom: 0;
    font-size: var(--step-label);
    letter-spacing: 0.012em;
    color: var(--ink-soft);
  }
}

@media (min-width: 60rem) and (max-height: 34rem) {
  .plate { position: relative; }
}

@media (prefers-reduced-motion: reduce) {
  .plate__bird { animation: none; }
  a { transition: none; }
}

@media print {
  html { background: #fff; }
  .plate__disc { display: none; }
  .plate { position: static; height: auto; clip-path: none; }
  .plate__bird { position: static; width: 8rem; translate: none; animation: none; }
  .page { display: block; }
  .lead { min-height: 0; }
}
