:root {
  --root: #0e130c;
  --root-2: #171b13;
  --paper: #e8d6a6;
  --paper-dim: #b8ad8d;
  --lichen: #95a472;
  --moss: #3f4a32;
  --rust: #9b4a32;
  --blue: #60748a;
  --line: rgba(232, 214, 166, 0.2);
  --font: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", "Geist Mono Fallback", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--root);
  color: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button {
  border: 0;
  color: inherit;
  font: inherit;
}

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

code {
  font-family: var(--mono);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: #fff3c5;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.65rem;
  font-weight: 760;
}

.brand img {
  image-rendering: pixelated;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(0.8rem, 2.5vw, 1.8rem);
  font-size: 0.94rem;
  font-weight: 680;
}

.site-nav a {
  color: rgba(255, 243, 197, 0.78);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff3c5;
}

.docs-link {
  padding: 0.56rem 0.8rem;
  background: rgba(255, 243, 197, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 243, 197, 0.2);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #11160f;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: pixelated;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 13, 10, 0.9), rgba(9, 13, 10, 0.44) 45%, rgba(9, 13, 10, 0.1)),
    linear-gradient(0deg, rgba(9, 13, 10, 0.92), rgba(9, 13, 10, 0.08) 46%);
}

.hero-word {
  position: absolute;
  left: clamp(1rem, 5vw, 4.5rem);
  right: clamp(1rem, 5vw, 4.5rem);
  bottom: clamp(7.5rem, 13vw, 10rem);
  display: grid;
  gap: 0.2rem;
  max-width: 1250px;
  pointer-events: none;
}

.hero-word span {
  display: block;
  width: max-content;
  max-width: 100%;
  color: #fff0bd;
  font-size: clamp(5rem, 17vw, 17rem);
  font-weight: 860;
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
}

.hero-word span:nth-child(2) {
  margin-left: clamp(0rem, 13vw, 11rem);
  color: #d2c89f;
}

.hero-note {
  position: absolute;
  right: clamp(1rem, 6vw, 5rem);
  bottom: clamp(13.5rem, 18vw, 15rem);
  width: min(380px, calc(100vw - 2rem));
  color: #fff3c5;
}

.hero-note h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-note p {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 760;
  line-height: 1.04;
}

.hero-note a {
  color: rgba(255, 243, 197, 0.76);
  font-weight: 720;
}

.hero-note a:hover,
.hero-note a:focus-visible {
  color: #fff3c5;
}

.command-bar {
  position: absolute;
  right: clamp(1rem, 5vw, 4.5rem);
  bottom: clamp(1rem, 4vw, 3rem);
  left: clamp(1rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 66px;
  padding: 1rem 1.1rem;
  cursor: pointer;
  text-align: left;
  background: rgba(14, 19, 12, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 243, 197, 0.2),
    inset 0 0 0 1px rgba(255, 243, 197, 0.14);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.command-bar:hover,
.command-bar:focus-visible {
  background: rgba(31, 38, 26, 0.86);
}

.command-bar span {
  color: #fff3c5;
  font-weight: 780;
}

.command-bar code {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 243, 197, 0.82);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thesis {
  position: relative;
  min-height: 64vh;
  display: grid;
  place-items: center;
  padding: clamp(4rem, 11vw, 9rem) clamp(1rem, 6vw, 5rem);
  background:
    linear-gradient(180deg, #0e130c 0%, #171b13 100%);
}

.thesis-center-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05) 20%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(90deg, rgba(14, 19, 12, 0.25), rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0) 78%, rgba(14, 19, 12, 0.25)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 68%, rgba(255, 255, 255, 0.03));
  mix-blend-mode: screen;
}

.thesis p {
  position: relative;
  z-index: 1;
  max-width: 1050px;
  margin: 0;
  color: rgba(232, 214, 166, 0.25);
  font-size: clamp(2rem, 6vw, 6.2rem);
  font-weight: 790;
  line-height: 0.98;
  letter-spacing: 0;
}

.reading-copy {
  text-wrap: balance;
}

.reading-word {
  display: inline-block;
  transition:
    opacity 0.14s linear,
    color 0.14s linear,
    filter 0.14s linear;
  will-change: opacity, color, filter;
}

.gallery {
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 3rem) clamp(5rem, 10vw, 8rem);
  background:
    linear-gradient(180deg, #171b13 0%, #10150e 48%, #171b13 100%);
}

.gallery-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  max-width: 1370px;
  margin: 0 auto clamp(2rem, 5vw, 4rem);
}

.gallery h2,
.setup h2 {
  margin: 0;
  color: #fff0bd;
  font-size: clamp(2.4rem, 7vw, 7.8rem);
  font-weight: 850;
  line-height: 0.86;
  letter-spacing: 0;
}

.gallery-copy p {
  margin: 0;
  color: rgba(232, 214, 166, 0.72);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.contact-sheet {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.7rem, 1.6vw, 1.15rem);
  max-width: 1460px;
  margin: 0 auto;
}

.print {
  grid-column: span 12;
  position: relative;
  min-height: 330px;
  overflow: hidden;
  padding: 0;
  cursor: zoom-in;
  background: #0b0f0a;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.print::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(232, 214, 166, 0.18);
}

.print img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: filter 0.22s ease;
}

.print:hover img,
.print:focus-visible img {
  filter: saturate(1.14) contrast(1.06);
}

.print span {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.4rem 0.48rem;
  background: rgba(14, 19, 12, 0.78);
  color: #fff3c5;
  font-size: 0.82rem;
  font-weight: 730;
}

.setup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: clamp(1rem, 2vw, 1.4rem);
  padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 4vw, 3rem);
  background:
    linear-gradient(160deg, rgba(96, 116, 138, 0.2), transparent 42%),
    #151910;
}

.setup-card,
.setup-links {
  background: rgba(232, 214, 166, 0.07);
  box-shadow: inset 0 0 0 1px rgba(232, 214, 166, 0.13);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
}

.setup-card {
  min-height: 360px;
  padding: clamp(1.2rem, 3vw, 2.4rem);
}

.setup-card.angled {
  align-self: end;
  min-height: 300px;
  background: rgba(149, 164, 114, 0.12);
}

.setup-mark {
  margin-bottom: clamp(2rem, 8vw, 6rem);
  color: rgba(232, 214, 166, 0.42);
  font-size: clamp(4rem, 11vw, 10rem);
  font-weight: 850;
  line-height: 0.78;
}

.install-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 1rem;
  align-items: center;
  width: 100%;
  margin-top: clamp(1.4rem, 4vw, 3rem);
  padding: 1rem;
  cursor: pointer;
  text-align: left;
  background: #e8d6a6;
  color: #151910;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.install-line:hover,
.install-line:focus-visible {
  background: #f2dfad;
}

.install-line code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.install-line span {
  font-weight: 780;
}

.ask {
  max-width: 620px;
  margin: 0;
  color: #f0dfb1;
  font-size: clamp(1.35rem, 3vw, 2.8rem);
  font-weight: 760;
  line-height: 1.02;
}

.setup-links {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.setup-links a {
  padding: clamp(1rem, 2.5vw, 1.8rem);
  color: #e8d6a6;
  font-weight: 760;
}

.setup-links a + a {
  box-shadow: inset 1px 0 0 rgba(232, 214, 166, 0.13);
}

.setup-links a:hover,
.setup-links a:focus-visible {
  background: rgba(232, 214, 166, 0.08);
}

.footer {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  padding: clamp(1.2rem, 4vw, 3rem);
  background: #080c08;
  color: #e8d6a6;
}

.footer nav {
  position: relative;
  z-index: 2;
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-weight: 740;
}

.footer nav a {
  color: rgba(232, 214, 166, 0.72);
}

.footer nav a:hover,
.footer nav a:focus-visible {
  color: #e8d6a6;
}

.footer strong {
  position: absolute;
  right: -0.04em;
  bottom: -0.16em;
  left: -0.04em;
  z-index: 1;
  color: rgba(232, 214, 166, 0.16);
  font-size: clamp(6rem, 25vw, 24rem);
  font-weight: 900;
  line-height: 0.75;
  letter-spacing: 0;
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 8, 5, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  width: min(94vw, 1180px);
  max-height: 92vh;
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
}

.lightbox figcaption {
  margin-top: 0.6rem;
  color: #fff3c5;
  font-weight: 760;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  min-height: 42px;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  background: #e8d6a6;
  color: #10150e;
  font-weight: 760;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  padding: 0.7rem 0.9rem;
  background: #e8d6a6;
  color: #10150e;
  font-weight: 760;
}

@media (min-width: 720px) {
  .print {
    grid-column: span 4;
  }

  .print.landscape {
    grid-column: span 8;
  }

  .print.portrait {
    grid-column: span 3;
    min-height: 560px;
  }
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
  }

  .site-nav a:not(.docs-link) {
    display: none;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-word {
    bottom: 15rem;
  }

  .hero-word span {
    font-size: clamp(4rem, 18vw, 8rem);
  }

  .hero-word span:nth-child(2) {
    margin-left: 0;
  }

  .hero-note {
    right: auto;
    bottom: 8.8rem;
    left: 1rem;
    width: min(340px, calc(100vw - 2rem));
  }

  .command-bar {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .gallery-copy,
  .setup,
  .setup-links {
    grid-template-columns: 1fr;
  }

  .setup-links a + a {
    box-shadow: inset 0 1px 0 rgba(232, 214, 166, 0.13);
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 1rem;
  }

  .site-nav {
    margin-left: auto;
  }

  .site-nav a.docs-link {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    z-index: 40;
  }

  .brand span {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-word span {
    font-size: clamp(3.5rem, 17vw, 4.2rem);
  }

  .hero-note p {
    font-size: 1.35rem;
  }

  .command-bar code,
  .install-line code {
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  .command-bar code {
    display: none;
  }

  .print,
  .print.portrait {
    min-height: 430px;
  }

  .print.landscape {
    min-height: 260px;
  }
}
