@import url("assets/fonts/fonts.css");

:root {
  color-scheme: dark;
  --canvas: #0c0b11;
  --ink: #f7efe7;
  --muted: #beb5bb;
  --accent: #e6b08b;
  --line: #f2d4bf24;
  --reading: "Inter", Arial, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--canvas);
  color: var(--ink);
  margin: 0;
  font: 400 1rem/1.6 var(--reading);
}

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

a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

button, summary {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(100% - clamp(2.5rem, 10.5vw, 11rem), 84rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset: 1rem auto auto 1rem;
  z-index: 3;
  padding: .7rem 1rem;
  color: var(--canvas);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
}

.site-header__inner, .site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.site-header__inner {
  min-height: 5.5rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: .8rem;
  align-items: center;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.brand__orbit {
  position: relative;
  width: 1.65rem;
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.brand__orbit::before {
  position: absolute;
  content: "";
  inset: .34rem -.22rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  transform: rotate(-43deg);
}

.brand__orbit::after {
  position: absolute;
  content: "";
  inset: .05rem .06rem auto auto;
  width: .29rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
}

.site-header nav {
  display: flex;
  gap: clamp(1.25rem, 3.4vw, 3.3rem);
  color: var(--muted);
  font-size: .82rem;
}

.site-header nav a:hover, .site-footer a:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  display: grid;
  isolation: isolate;
  min-height: 42rem;
  min-height: max(42rem, 100svh);
  overflow: hidden;
  background: #151223;
}

.hero__image, .hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: 62% 52%;
}

.hero::after {
  content: "";
  background:
    linear-gradient(90deg, #0e0b15e8 0%, #0e0b15b0 25%, #0e0b1544 53%, #0e0b1500 74%),
    linear-gradient(0deg, var(--canvas) 0%, transparent 18%, transparent 76%, #0e0b15a0 100%);
}

.hero__inner {
  display: flex;
  position: relative;
  align-items: center;
  padding-block: 7.5rem 6rem;
}

.hero__copy {
  max-width: 42rem;
}

.hero h1 {
  max-width: 100%;
  margin: 0;
  font: 500 clamp(4rem, 8.5vw, 9rem)/.86 var(--display);
  letter-spacing: -.066em;
  text-wrap: nowrap;
}

.hero h1 em {
  color: var(--accent);
  font-weight: 500;
}

.hero__copy p {
  max-width: 26rem;
  margin: 1.75rem 0 2rem;
  color: #ded4db;
  font-size: clamp(.93rem, 1.32vw, 1.11rem);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero__server-picker {
  display: grid;
  gap: .5rem;
}

.hero__server-picker > span {
  color: var(--accent);
  font-size: .9rem;
}

.hero__servers {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.65rem;
  min-height: 3.35rem;
  padding: .65rem 1.15rem;
  border: 1px solid #e6b08b86;
  border-radius: .15rem;
  background: #18121c6b;
  color: var(--ink);
  font-size: .87rem;
  font-weight: 500;
  transition: background .2s, border-color .2s;
}

.hero__link:hover {
  border-color: var(--accent);
  background: #4a2d338a;
}

.hero__link--primary {
  justify-content: center;
  border-color: var(--accent);
  background: var(--accent);
  color: #21151a;
  font-weight: 700;
}

.hero__link--primary:hover {
  background: #f3c6a8;
}

.hero__link span {
  color: var(--accent);
  font-size: 1.12rem;
}

.hero__caption {
  position: absolute;
  right: 0;
  bottom: 1.55rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0;
  color: #e1c6b8;
  font-size: .68rem;
  letter-spacing: .1em;
}

.hero__caption span {
  width: 1.4rem;
  height: 1px;
  background: var(--accent);
}

.journal {
  padding-block: clamp(4rem, 8vw, 8rem) clamp(4.25rem, 7vw, 7rem);
}

.journal__heading {
  margin-bottom: 2.5rem;
}

.journal h2 {
  margin: 0 0 .5rem;
  font: 500 clamp(2.8rem, 5.7vw, 5.35rem)/.96 var(--display);
  letter-spacing: -.047em;
}

.journal__heading p {
  margin: .95rem 0 0;
  color: var(--muted);
}

.journal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6.5rem);
}

.journal__image {
  margin: 0;
}

.journal__image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: .15rem;
  background: #17141f;
}

.journal__image figcaption {
  margin-top: .7rem;
  color: var(--muted);
  font-size: .72rem;
}

.entries {
  border-top: 1px solid var(--line);
}

.entries details {
  border-bottom: 1px solid var(--line);
}

.entries summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem .15rem;
  list-style: none;
  cursor: pointer;
  font: 500 clamp(1.65rem, 2.85vw, 2.6rem)/1.08 var(--display);
  transition: color .2s;
}

.entries summary::-webkit-details-marker {
  display: none;
}

.entries summary:hover,
.entries details[open] summary {
  color: var(--accent);
}

.entry__sign {
  position: relative;
  flex: 0 0 .75rem;
  width: .75rem;
  height: .75rem;
  margin-inline-end: .22rem;
  color: var(--accent);
}

.entry__sign::before, .entry__sign::after {
  position: absolute;
  top: 50%;
  width: 100%;
  height: 1px;
  background: currentColor;
  content: "";
}

.entry__sign::after {
  transform: rotate(90deg);
}

.entries details[open] .entry__sign::after {
  display: none;
}

.entries details p {
  max-width: 33rem;
  margin: -.08rem 1.5rem 1.45rem .15rem;
  color: #d3c9cf;
  font-size: .93rem;
  line-height: 1.75;
}

.site-footer__inner {
  min-height: 5.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .76rem;
}

.site-footer a {
  flex-shrink: 0;
}

.site-footer a span {
  margin-inline-start: .35rem;
  color: var(--accent);
}

@media (max-width: 680px) {
  .site-header__inner {
    min-height: 4.35rem;
  }

  .site-header nav .nav-observation {
    display: none;
  }

  .hero {
    min-height: max(40rem, 100svh);
  }

  .hero__image {
    object-position: 77% center;
  }

  .hero::after {
    background:
      linear-gradient(0deg, var(--canvas) 0%, #0c0b11e0 21%, #0c0b1170 55%, transparent 75%, #0c0b11a8 100%),
      linear-gradient(90deg, #0e0b154a 0%, transparent 100%);
  }

  .hero__inner {
    align-items: end;
    padding-block: 7.25rem 6rem;
  }

  .hero h1 {
    font-size: clamp(3.55rem, 13vw, 5.5rem);
    text-wrap: wrap;
  }

  .hero__copy p {
    max-width: 22rem;
    margin-block: 1.4rem 1.65rem;
  }

  .hero__caption {
    right: auto;
    left: 0;
    bottom: 1.5rem;
  }

  .journal__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  *, *::before, *::after {
    transition: none !important;
  }
}
