:root {
  color-scheme: dark;
  --ink: #f8f3ef;
  --muted: rgba(248, 243, 239, 0.74);
  --line: rgba(248, 243, 239, 0.24);
  --panel: rgba(6, 8, 29, 0.94);
  --accent: #ff6b94;
  --focus: #ffd0dc;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: #070a22;
}

body {
  height: 100%;
  margin: 0;
  min-width: 320px;
  overflow: hidden;
  background: #070a22;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  display: grid;
  height: 100svh;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  isolation: isolate;
}

.hero__image,
.hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  z-index: -3;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.04) brightness(0.9);
}

.hero__veil {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 5, 25, 0.84) 0%, rgba(5, 6, 25, 0.42) 50%, rgba(3, 4, 21, 0.14) 100%),
    linear-gradient(0deg, rgba(4, 5, 23, 0.76) 0%, transparent 38%, rgba(4, 5, 23, 0.36) 100%);
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 0.55px, transparent 0.55px);
  background-size: 4px 4px;
  content: "";
  opacity: 0.12;
  pointer-events: none;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  width: min(100% - 3rem, 92rem);
  margin: 0 auto;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.masthead__link,
.masthead__button {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
  text-underline-offset: 0.28rem;
  transition: color 160ms ease;
}

.masthead__link:hover,
.masthead__button:hover {
  color: var(--ink);
}

.hero__content {
  align-self: center;
  width: min(100% - 3rem, 92rem);
  margin: 0 auto;
  padding: clamp(1rem, 5vh, 4rem) 0;
}

.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7.4vw, 7.7rem);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 0.91;
  text-wrap: balance;
}

h1 em {
  color: #ff9bb7;
  font-weight: 400;
}

.intro {
  max-width: 38rem;
  margin: 1.7rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #0a0b22;
}

.button--primary:hover {
  background: #fff;
}

.button--quiet {
  background: rgba(7, 8, 30, 0.22);
  backdrop-filter: blur(8px);
}

.button--quiet:hover {
  border-color: rgba(248, 243, 239, 0.58);
  background: rgba(7, 8, 30, 0.48);
}

.masthead__link:focus-visible,
.masthead__button:focus-visible,
.button:focus-visible,
.hero__footer a:focus-visible,
.dialog-close:focus-visible,
.dialog-contact:focus-visible,
.dialog-pagination button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.hero__footer {
  display: flex;
  width: min(100% - 3rem, 92rem);
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 0.9rem 0 max(1rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: rgba(248, 243, 239, 0.66);
  font-size: 0.78rem;
  line-height: 1.45;
}

.hero__footer p {
  margin: 0;
}

.hero__footer a {
  text-decoration-color: rgba(248, 243, 239, 0.36);
  text-underline-offset: 0.24rem;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.hero__footer a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.image-credit {
  display: grid;
  gap: 0.18rem;
  max-width: 43rem;
  text-align: right;
}

.image-credit p:last-child {
  color: rgba(248, 243, 239, 0.5);
}

.side-dialog {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(47rem, 100%);
  height: 100svh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--panel);
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.62);
  color: var(--ink);
}

.side-dialog--right {
  inset: 0 0 0 auto;
  border-right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.side-dialog[open].side-dialog--left {
  animation: panel-from-left 260ms ease-out;
}

.side-dialog[open].side-dialog--right {
  animation: panel-from-right 260ms ease-out;
}

.side-dialog::backdrop {
  background: rgba(1, 2, 14, 0.8);
  backdrop-filter: blur(8px);
}

.side-dialog__inner {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  padding: clamp(1.25rem, 4vw, 3rem);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: clamp(1rem, 3vh, 2rem);
  border-bottom: 1px solid var(--line);
}

.dialog-close {
  flex: 0 0 auto;
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.dialog-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dialog-kicker {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.side-dialog h2 {
  max-width: 16ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.dialog-pages {
  display: grid;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}

.dialog-page {
  min-height: 0;
  align-self: center;
  padding: clamp(1rem, 3vh, 2rem) 0;
}

.dialog-page[hidden] {
  display: none;
}

.page-number {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dialog-copy {
  color: rgba(248, 243, 239, 0.8);
  font-size: clamp(0.95rem, 1.6vw, 1.06rem);
  line-height: 1.62;
}

.dialog-copy p {
  margin: 0 0 1rem;
}

.dialog-copy p:last-child,
.dialog-copy ul:last-child {
  margin-bottom: 0;
}

.dialog-copy ul {
  display: grid;
  gap: 0.55rem;
  margin: 0.85rem 0 1rem;
  padding-left: 1.2rem;
}

.dialog-copy strong {
  color: var(--ink);
}

.dialog-copy--lead {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.5;
}

.date-range {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.dialog-contact {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.7rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.dialog-pagination {
  display: grid;
  grid-template-columns: 2.75rem 1fr 2.75rem;
  align-items: center;
  gap: 0.75rem;
  padding-top: clamp(0.75rem, 2vh, 1.25rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.dialog-pagination button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
}

.dialog-pagination button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.dialog-pagination button:disabled {
  cursor: default;
  opacity: 0.28;
}

.log-entry {
  display: grid;
  gap: clamp(1rem, 3vh, 1.8rem);
  align-content: center;
}

.log-entry__media {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.log-entry__media img {
  width: 100%;
  height: min(34svh, 18rem);
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.log-entry__media figcaption,
.log-entry__copy time {
  color: rgba(248, 243, 239, 0.55);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.log-entry__copy h3 {
  margin: 0.4rem 0 0.65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 400;
  line-height: 1;
}

.log-entry__copy p {
  margin: 0;
  color: rgba(248, 243, 239, 0.78);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.6;
}

@keyframes panel-from-left {
  from { transform: translateX(-2rem); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes panel-from-right {
  from { transform: translateX(2rem); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 700px) {
  .hero__image {
    object-position: 55% center;
  }

  .hero__veil {
    background:
      linear-gradient(0deg, rgba(3, 5, 25, 0.9) 0%, rgba(5, 6, 25, 0.42) 62%, rgba(4, 5, 23, 0.48) 100%),
      linear-gradient(90deg, rgba(3, 5, 25, 0.55), transparent);
  }

  .masthead,
  .hero__content {
    width: min(100% - 2rem, 92rem);
  }

  .masthead {
    padding: 1.1rem 0;
  }

  .masthead__link,
  .masthead__button {
    font-size: 0.8rem;
  }

  .hero__content {
    padding: clamp(0.75rem, 3vh, 2rem) 0;
  }

  h1 {
    font-size: clamp(2.65rem, 13.4vw, 4.5rem);
    line-height: 0.94;
  }

  .intro {
    max-width: 29rem;
  }

  .hero__footer {
    width: calc(100% - 2rem);
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.65rem 0 max(0.75rem, env(safe-area-inset-bottom));
    font-size: 0.7rem;
  }

  .image-credit {
    gap: 0.1rem;
    text-align: left;
  }

  .side-dialog {
    width: 100%;
    border: 0;
  }

  .side-dialog__inner {
    padding: 1rem;
  }

  .dialog-header {
    padding-bottom: 0.85rem;
  }

  .side-dialog h2 {
    max-width: 13ch;
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .dialog-page {
    padding: 0.8rem 0;
  }

  .page-number {
    margin-bottom: 0.65rem;
  }

  .dialog-copy {
    font-size: clamp(0.88rem, 3.8vw, 1rem);
    line-height: 1.48;
  }

  .dialog-copy--lead {
    font-size: clamp(1.05rem, 4.7vw, 1.35rem);
    line-height: 1.42;
  }

  .dialog-copy ul {
    gap: 0.4rem;
    margin: 0.65rem 0 0.8rem;
  }

  .log-entry__media img {
    height: min(30svh, 14rem);
  }
}

@media (max-height: 700px) and (min-width: 701px) {
  .hero__content {
    padding: 1rem 0;
  }

  h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
  }

  .intro {
    margin-top: 1.1rem;
  }

  .actions {
    margin-top: 1.25rem;
  }
}

@media (max-height: 620px) {
  .masthead {
    padding: 0.7rem 0;
  }

  .hero__content {
    padding: 0.45rem 0;
  }

  .eyebrow {
    margin-bottom: 0.55rem;
  }

  h1 {
    font-size: clamp(2.15rem, 9.5vh, 4.65rem);
  }

  .intro {
    margin-top: 0.75rem;
    line-height: 1.35;
  }

  .actions {
    margin-top: 0.8rem;
  }

  .button {
    min-height: 2.55rem;
    padding: 0.55rem 0.95rem;
  }

  .hero__footer {
    padding-top: 0.5rem;
    padding-bottom: max(0.55rem, env(safe-area-inset-bottom));
  }

  .side-dialog__inner {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .dialog-header {
    padding-bottom: 0.55rem;
  }

  .dialog-kicker {
    margin-bottom: 0.3rem;
  }

  .side-dialog h2 {
    font-size: clamp(1.55rem, 6.6vh, 2.35rem);
  }

  .dialog-page {
    padding: 0.45rem 0;
  }

  .page-number {
    margin-bottom: 0.4rem;
  }

  .dialog-copy {
    font-size: clamp(0.78rem, 2.8vh, 0.92rem);
    line-height: 1.34;
  }

  .dialog-copy p {
    margin-bottom: 0.55rem;
  }

  .dialog-copy ul {
    gap: 0.25rem;
    margin: 0.45rem 0 0.55rem;
  }

  .dialog-copy--lead {
    font-size: clamp(0.95rem, 3.5vh, 1.2rem);
    line-height: 1.35;
  }

  .dialog-pagination {
    grid-template-columns: 2.35rem 1fr 2.35rem;
    padding-top: 0.45rem;
  }

  .dialog-pagination button {
    width: 2.35rem;
    height: 2.35rem;
  }

  .log-entry {
    gap: 0.55rem;
  }

  .log-entry__media {
    gap: 0.3rem;
  }

  .log-entry__media img {
    height: min(24svh, 10rem);
  }

  .log-entry__copy h3 {
    margin: 0.25rem 0 0.35rem;
    font-size: 1.55rem;
  }

  .log-entry__copy p {
    font-size: 0.83rem;
    line-height: 1.38;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
