/* Fonts, served from this site (SIL Open Font License, see /fonts/OFL-*.txt).
   Figtree 400-500 (variable), Instrument Serif regular and italic. */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000000;
  --fg: #ffffff;
  --dim: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.56);
  --text-subtle: rgba(255, 255, 255, 0.48);
  --line: rgba(255, 255, 255, 0.36);
  --field-error: rgba(255, 255, 255, 0.6);
  --measure: 65ch;
  --type-body: 16px;
  --leading-body: 1.5;
  --type-display: clamp(2.9rem, 1.6rem + 6.4vw, 7.25rem);
  --type-title: clamp(1.85rem, 3.2vw, 2.4rem);
  --type-lost: clamp(3rem, 7vw, 5.75rem);
  --type-fine: 0.92rem;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background: var(--bg);
  color: var(--fg);
  color-scheme: dark;
  font-family: var(--sans);
  font-size: var(--type-body);
  line-height: var(--leading-body);
}

body {
  background: var(--bg);
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip:focus,
.skip:focus-visible {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 5;
  width: auto;
  height: auto;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0.75rem 1rem;
  overflow: visible;
  clip: auto;
  clip-path: none;
  background: var(--bg);
  color: var(--fg);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

#content:focus {
  outline: none;
}

.page {
  display: flex;
  flex-direction: column;
  width: min(1240px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 clamp(1.35rem, 5vw, 4rem);
}

main {
  flex: 1;
}

.column {
  width: min(40rem, 100%);
  margin-inline: auto;
}

.poster {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(2.75rem, 7vh, 4.5rem) 0 clamp(4.5rem, 12vh, 7rem);
  text-align: center;
}

.waterline {
  position: absolute;
  bottom: clamp(1.5rem, 5vh, 3rem);
  left: 0;
  display: block;
  width: 100%;
  height: 14px;
  color: var(--line);
}

.hero-mark {
  display: block;
  width: clamp(192px, 29.6vw, 310px);
  aspect-ratio: 1;
  margin: 0 0 clamp(1.35rem, 2.8vh, 2rem);
  background: var(--fg);
  -webkit-mask: url("/mark.svg") center / 130% no-repeat;
  mask: url("/mark.svg") center / 130% no-repeat;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
.couplet {
  text-align: center;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--type-display);
  line-height: 0.92;
  letter-spacing: -0.028em;
}

.couplet {
  margin: clamp(1.65rem, 3.4vh, 2.25rem) 0 0;
  color: var(--fg);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 0.95rem + 1vw, 1.75rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.letter {
  width: min(36rem, 100%);
  margin: 0 auto;
  padding-top: clamp(4.5rem, 12vh, 7.5rem);
  scroll-margin-top: 2.5rem;
}

h2 {
  margin: 0 0 2.15rem;
  color: var(--fg);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--type-title);
  letter-spacing: -0.03em;
  line-height: 1;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}

label {
  display: block;
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

input,
textarea {
  display: block;
  width: 100%;
  margin: 0.45rem 0 1.55rem;
  padding: 0.55rem 0 0.7rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 1.05rem;
  caret-color: var(--fg);
}

input {
  min-height: 44px;
}

input:focus,
textarea:focus {
  border-bottom-color: var(--fg);
}

input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--fg);
  caret-color: var(--fg);
  box-shadow: inset 0 0 0 1000px var(--bg);
  transition: background-color 9999s ease-out;
}

textarea {
  min-height: 8rem;
  line-height: 1.5;
  resize: vertical;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
input.error,
textarea.error,
input[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus,
input.error:focus,
textarea.error:focus {
  border-bottom-color: var(--field-error);
}

.send {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.35rem;
}

button,
.back {
  appearance: none;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.15rem 0 0.2rem;
  border: 0;
  border-bottom: 1px solid var(--fg);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

button:disabled,
button:disabled:hover {
  color: var(--dim);
  border-bottom-color: var(--dim);
  cursor: default;
}

.form-status {
  min-height: 1.3em;
  max-width: 100%;
  margin: 0;
  color: var(--dim);
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}

.form-status[data-kind="error"] {
  color: var(--fg);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.form-status[data-kind="ok"] {
  color: var(--fg);
}

.colophon {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  width: min(36rem, 100%);
  margin: clamp(4.25rem, 11vh, 6.5rem) auto 0;
  padding: 1.2rem 0 clamp(1.5rem, 3vh, 2.1rem);
  border-top: 1px solid var(--line);
  color: var(--text-subtle);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.colophon p {
  margin: 0;
  max-width: 100%;
  text-wrap: pretty;
}

.colophon a {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.lost {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2.75rem, 7vh, 4.5rem) 0 clamp(4.5rem, 12vh, 7rem);
  text-align: center;
}

.lost h1 {
  max-width: 9em;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--type-lost);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.lost .back {
  margin-top: 2.25rem;
}

.letter h1 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--type-title);
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: left;
}

.letter.prose {
  width: min(var(--measure), 100%);
}

.prose {
  overflow-wrap: break-word;
}

.prose > h1 + .fine {
  margin: 0 0 2.15rem;
}

.prose h2 {
  margin-top: 2.15rem;
}

.prose > p {
  margin: 0 0 1.05rem;
}

.prose > p:last-child {
  margin-bottom: 0;
}

.fine {
  margin: 1.35rem 0 0;
  color: var(--dim);
  font-size: var(--type-fine);
}

.lost .fine {
  max-width: var(--measure);
}

.fine a,
.prose a:not(.back) {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.fine a,
.fine a:link,
.fine a:visited,
.fine a:hover,
.fine a:active,
.fine a:focus,
.fine a:focus-visible {
  color: inherit;
}

.colophon a,
.colophon a:link,
.colophon a:visited,
.colophon a:hover,
.colophon a:active,
.colophon a:focus,
.colophon a:focus-visible {
  color: inherit;
}

.prose a:not(.back),
.prose a:not(.back):link,
.prose a:not(.back):visited,
.prose a:not(.back):hover,
.prose a:not(.back):active,
.prose a:not(.back):focus {
  color: var(--fg);
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes surface {
    from {
      opacity: 0;
      transform: translateY(28px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .poster .hero-mark,
  .poster h1,
  .poster .couplet,
  .poster .waterline {
    animation: surface 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .poster .hero-mark {
    animation-delay: 0ms;
  }

  .poster h1 {
    animation-delay: 80ms;
  }

  .poster .couplet {
    animation-delay: 160ms;
  }

  .poster .waterline {
    animation-delay: 240ms;
  }

  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 720px) {
  .hero-mark {
    width: min(214px, 54.6vw);
  }

  button,
  .back,
  .fine a {
    min-width: 44px;
    min-height: 44px;
  }

  .fine a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .colophon a {
    display: inline;
    position: relative;
  }

  .colophon a::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: max(100%, 44px);
    height: 44px;
    transform: translate(-50%, -50%);
  }

  .prose a:not(.back) {
    position: relative;
  }

  .prose a:not(.back)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 44px;
    transform: translateY(-50%);
  }

  .pair {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .colophon {
    align-items: center;
    text-align: center;
  }
}

@media print {
  :root {
    --bg: #ffffff;
    --fg: #000000;
    --dim: #000000;
    --faint: #000000;
    --text-subtle: #000000;
    --line: #000000;
    --field-error: #000000;
  }

  html {
    background: #ffffff;
    color: #000000;
    color-scheme: light;
  }

  .skip {
    display: none;
  }

  a {
    text-decoration-line: underline;
    text-underline-offset: 0.2em;
  }

  .hero-mark {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .waterline {
    display: none;
  }
}
