@font-face {
  font-family: Inter;
  src: url("/assets/inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #0c0e12;
  --surface: #171b20;
  --raised: #20252c;
  --ink: #f4f3f0;
  --secondary: #b5bcc5;
  --line: #343c45;
  --blue: #087dab;
  --blue-text: #81d0ee;
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 1rem/1.65 var(--sans);
}
a { color: var(--blue-text); text-underline-offset: 4px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 5px; }
.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 1;
  padding: .5rem .75rem;
  background: var(--canvas);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }
.shell { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.top, .footer {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.top { border-bottom: 1px solid var(--line); }
.top nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.top nav a, .footer a { color: var(--secondary); font-size: .9rem; }
.top nav a:hover, .footer a:hover, .top nav a[aria-current="page"] { color: var(--ink); }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  font: 500 1.75rem/1 var(--serif);
  letter-spacing: -.04em;
  text-decoration: none;
}
.wordmark img { display: block; object-fit: contain; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5.4vw, 5rem);
  padding-block: clamp(3rem, 7vw, 6.25rem);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.15rem;
  color: var(--secondary);
  font-size: .9rem;
  font-weight: 500;
}
.status::before {
  content: "";
  width: .45rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue-text);
}
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -.05em; }
h1 { font-size: clamp(2.8rem, 5.35vw, 5rem); line-height: 1.015; }
.description {
  max-width: 29rem;
  margin: 1.35rem 0 1.7rem;
  color: var(--secondary);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}
.button {
  display: inline-block;
  padding: .7rem 1rem;
  border-radius: .6rem;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
}
.button:hover { background: #075f83; color: #fff; }
.preview { margin: 0; min-width: 0; }
.preview-stage {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 22rem;
  padding: clamp(1rem, 6%, 1.7rem);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #35424b;
  border-radius: 1.4rem;
  background:
    radial-gradient(ellipse 64% 68% at 30% 19%, #21485b, transparent 86%),
    linear-gradient(140deg, #1a282e, #0e141a 60%, #0c1015);
}
.hero-mark {
  position: absolute;
  top: 12%;
  left: 8%;
  width: 49%;
  height: auto;
  filter: drop-shadow(0 .9rem 1.4rem #0007);
}
.mailbox {
  z-index: 1;
  justify-self: end;
  width: min(82%, 22rem);
  margin-top: clamp(6.75rem, 12vw, 9.5rem);
  overflow: hidden;
  border: 1px solid #414a54;
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 1rem 2.6rem #0008;
}
.mailbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  padding: .65rem .9rem;
  border-bottom: 1px solid var(--line);
  color: var(--secondary);
  font-size: .85rem;
}
.mailbox-brand { font: 600 1.05rem/1.3 var(--sans); color: var(--ink); }
.mailbox-inner { padding: 0 .9rem .3rem; }
.message {
  display: grid;
  grid-template-columns: 2.15rem minmax(0, 1fr) .4rem;
  align-items: center;
  gap: .65rem;
  min-height: 3.5rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.35;
}
.message:last-child { border-bottom: 0; }
.message strong, .message div span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message strong { font-size: .875rem; font-weight: 600; }
.message div span { margin-top: .1rem; font-size: .85rem; color: var(--secondary); }
.avatar {
  display: grid;
  place-items: center;
  width: 2.15rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--raised);
  color: var(--secondary);
  font-size: .875rem;
  font-weight: 550;
}
.message:first-child .avatar { background: #1c3b4a; color: #bbecff; }
.unread { width: .4rem; aspect-ratio: 1; border-radius: 50%; background: var(--blue-text); }
.preview figcaption { margin-top: .6rem; color: var(--secondary); font-size: .875rem; text-align: right; }

.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.65rem clamp(2rem, 6vw, 5rem);
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
}
.details h2, .legal h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.2; }
.details p { max-width: 31rem; margin: .55rem 0 0; color: var(--secondary); }
.footer { border-top: 1px solid var(--line); color: var(--secondary); }
.legal { max-width: 45rem; padding-block: clamp(2.75rem, 7vw, 5rem); }
.legal h1 { font-size: clamp(2.75rem, 7vw, 4.6rem); }
.legal h2 { margin: 2.3rem 0 .55rem; }
.legal p { margin: .55rem 0 1rem; overflow-wrap: anywhere; }
.legal .date { margin: .85rem 0 1.25rem; color: var(--secondary); }
.lead { font-size: 1.125rem; }

@media (max-width: 49rem) {
  .hero, .details { grid-template-columns: 1fr; }
  .hero-break { display: none; }
  .preview { width: min(100%, 35rem); }
  .top, .footer { min-height: 4.25rem; }
}
@media (max-width: 25rem) {
  .shell { width: calc(100% - 2rem); }
  .top nav { column-gap: .75rem; }
  .preview-stage { min-height: 18rem; }
  .mailbox { width: 88%; }
}
