@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --abyss: #070d16;
  --abyss-elevated: #0c1522;
  --parchment: #eeeae1;
  --parchment-body: #ccc7bc;
  --stone-mist: #92a0b3;
  --colophon: #7b8a9e;
  --lantern: #dfb475;
  --lantern-bright: #f0cca0;
  --frame-rule: rgba(238, 234, 225, 0.13);
  --plate-rule: rgba(238, 234, 225, 0.11);
  --hairline: rgba(223, 180, 117, 0.42);
  --ornament-rule: rgba(223, 180, 117, 0.28);
  --serif: "Newsreader", Georgia, "Iowan Old Style", Times, serif;
}

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

html {
  background-color: var(--abyss);
  color: var(--parchment);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100svh;
  background-color: #09111e;
  background-image: radial-gradient(
      ellipse 92% 56% at 50% 20%,
      rgba(28, 52, 86, 0.24) 0%,
      rgba(9, 17, 30, 0) 52%,
      rgba(4, 8, 15, 0.32) 100%
    ), url("/media/midnight-rag-c7614b48d1.webp");
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, 384px 384px;
  font-family: var(--serif);
}

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.shell {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: clamp(1.75rem, 3vw, 2.65rem) clamp(1.25rem, 3.8vw, 3.5rem) clamp(2.4rem, 4vw, 3.4rem);
  display: flex;
  flex-direction: column;
}

.shell main {
  flex: 1 0 auto;
}

.masthead {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: clamp(1.15rem, 2.1vw, 1.65rem);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--parchment);
  text-decoration: none;
}

.wordmark-text {
  font-family: var(--serif);
  font-size: clamp(0.88rem, 1.02vw, 0.98rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
  text-transform: uppercase;
  color: var(--parchment);
}

.wordmark-ornament {
  width: clamp(24px, 3.4vw, 46px);
  height: 1px;
  background: var(--ornament-rule);
}

.canvas-stage {
  margin: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 1376 / 530;
  background-color: var(--abyss-elevated);
  border: 1px solid var(--frame-rule);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62), 0 2px 12px rgba(0, 0, 0, 0.38);
}

.canvas-stage picture,
.canvas-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ledger {
  max-width: 1020px;
  margin: clamp(2.9rem, 5vw, 4.4rem) auto 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.75rem);
  align-items: start;
}

.dossier {
  padding-top: 0.2rem;
}

.dossier-portrait {
  width: 132px;
  height: 132px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--frame-rule);
  background-color: var(--abyss-elevated);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.52), 0 2px 8px rgba(0, 0, 0, 0.32);
  margin-bottom: 1.15rem;
}

.dossier-portrait picture,
.dossier-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dossier-rule {
  width: 28px;
  height: 1px;
  background: var(--hairline);
  margin-bottom: 0.85rem;
}

.dossier-name {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  color: var(--parchment);
}

.dossier-meta {
  margin: 0.3rem 0 0;
  font-size: 1.02rem;
  font-weight: 450;
  line-height: 1.55;
  color: #b9c3d0;
}

.dossier-contact {
  margin: 0.95rem 0 0;
  font-size: 1rem;
  font-weight: 450;
}

.mail-link {
  color: var(--lantern);
  text-decoration: underline;
  text-decoration-color: rgba(223, 180, 117, 0.36);
  text-underline-offset: 0.24em;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

.mail-link:hover {
  color: var(--lantern-bright);
  text-decoration-color: rgba(240, 204, 160, 0.82);
}

.mail-link:focus-visible,
.wordmark:focus-visible,
.colophon-link:focus-visible {
  outline: 2px solid var(--lantern);
  outline-offset: 4px;
  border-radius: 2px;
}

.letter {
  max-width: 60ch;
}

.letter p {
  margin: 0 0 1.35rem;
  font-size: clamp(1.06rem, 1.18vw, 1.15rem);
  line-height: 1.74;
  color: var(--parchment-body);
}

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

.letter .lead {
  font-size: clamp(1.3rem, 1.65vw, 1.54rem);
  line-height: 1.46;
  color: var(--parchment);
  margin-bottom: 1.45rem;
}

.letter .lead strong {
  font-weight: 600;
  color: #f7f4ed;
}

.colophon {
  width: 100%;
  margin-top: clamp(3.4rem, 5.5vw, 5rem);
  padding-top: 1.55rem;
  border-top: 1px solid var(--plate-rule);
  text-align: center;
}

.colophon-line {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 450;
  letter-spacing: 0.02em;
  color: #a4b1c2;
}

.colophon-brand {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #cad1da;
}

.colophon-place {
  color: #b2bece;
}

.colophon-sep {
  margin: 0 0.65rem;
  color: rgba(223, 180, 117, 0.48);
}

.colophon-link {
  color: #b9c4d2;
  text-decoration: none;
  transition: color 140ms ease;
}

.colophon-link:hover {
  color: var(--lantern-bright);
}

.not-found {
  max-width: 540px;
  margin: 18vh auto 0;
  padding: 0 1.5rem;
}

.not-found h1 {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone-mist);
  margin: 0 0 1rem;
}

.not-found p {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--parchment-body);
  margin: 0 0 1.5rem;
}

@media (max-width: 760px) {
  .ledger {
    grid-template-columns: 1fr;
    gap: 1.85rem;
  }

  .dossier {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    padding-top: 0;
    padding-bottom: 1.45rem;
    border-bottom: 1px solid rgba(238, 234, 225, 0.08);
  }

  .dossier-portrait {
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
    margin-bottom: 0;
  }

  .dossier-rule {
    display: none;
  }

  .dossier-contact {
    margin-top: 0.4rem;
  }

  .wordmark-ornament {
    width: 18px;
  }
}

@media (max-width: 680px) {
  .canvas-stage {
    aspect-ratio: 1080 / 638;
  }

  .colophon-sep:last-of-type {
    display: none;
  }

  .colophon-link {
    display: block;
    margin-top: 0.32rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mail-link,
  .colophon-link {
    transition: none;
  }
}
