@font-face {
  font-family: Inter;
  src: url("fonts/inter.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("fonts/inter-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #181614;
  --panel: #211d1a;
  --paper: #f5f2ec;
  --gallery: #ebe6de;
  --coral: #ff644b;
  --red-ink: #ae3424;
  --soft-ink: #5d554e;
  --light-text: #c7bdb3;
  --dark-line: #403932;
  --light-line: #d9d1c6;
  --display: "Instrument Serif", Georgia, serif;
  --gutter: clamp(1.25rem, 4.6vw, 4.25rem);
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--ink);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, p, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  transform: translateY(-180%);
  background: var(--paper);
  color: var(--ink);
}

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

.wrap {
  width: min(100% - var(--gutter) * 2, 77rem);
  margin-inline: auto;
}

.site-header {
  background: var(--ink);
  color: var(--paper);
  border-block-end: 1px solid var(--dark-line);
}

.header-inner {
  min-height: 4.75rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -.045em;
  text-decoration: none;
}

.brand img { border-radius: 24%; flex-shrink: 0; }

.main-nav, .footer-inner nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}

.main-nav a, .footer-inner nav a {
  color: var(--light-text);
  font-size: .875rem;
  text-decoration: none;
}

.main-nav a:hover, .footer-inner nav a:hover { color: var(--paper); }

.header-cta {
  justify-self: end;
  border: 1px solid #635750;
  border-radius: .4rem;
  padding: .7rem .9rem;
  color: var(--paper);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}

.header-cta:hover { border-color: var(--coral); background: #30231f; }

.hero { background: var(--ink); color: var(--paper); }

.hero-inner {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: clamp(1.75rem, 6vw, 5.75rem);
  padding-block: clamp(2.75rem, 6vw, 5.2rem);
}

.eyebrow, .hero-art figcaption {
  display: flex;
  gap: .65rem;
  align-items: center;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .8rem;
  line-height: 1.5;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.eyebrow { color: var(--coral); }

.record-dot, .status-dot {
  display: inline-block;
  width: .48rem;
  height: .48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--coral);
}

.record-dot { box-shadow: 0 0 0 .22rem #ff644b24; }

.hero h1 {
  margin-block: .85rem 1.35rem;
  font: 400 clamp(5rem, 9.5vw, 9.25rem)/.82 var(--display);
  letter-spacing: -.035em;
}

.hero h1 em { color: var(--coral); }

.hero-description {
  max-width: 23rem;
  color: var(--light-text);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.hero-download {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: center;
  margin-top: 1.75rem;
}

.hero-download > span {
  color: var(--light-text);
  font-size: .875rem;
  line-height: 1.55;
}

.store-link {
  display: inline-block;
  width: fit-content;
  border-radius: .5rem;
  transition: transform .18s ease;
}

.store-link:hover { transform: translateY(-2px); }

.store-link img { width: 9.75rem; height: auto; }

.hero-art {
  position: relative;
  isolation: isolate;
  min-width: 0;
  aspect-ratio: 1.12;
  overflow: hidden;
  border: 1px solid var(--dark-line);
  border-radius: .8rem;
  background:
    linear-gradient(90deg, #e6b9980c 1px, transparent 1px) center / 2.5rem 2.5rem,
    linear-gradient(#e6b9980c 1px, transparent 1px) center / 2.5rem 2.5rem,
    radial-gradient(ellipse at 74% 28%, #392720, transparent 63%),
    var(--panel);
}

.art-reel {
  position: absolute;
  top: -34%;
  right: -29%;
  width: 92%;
  aspect-ratio: 1;
  border: 1px solid #e4b89c18;
  border-radius: 50%;
  box-shadow: 0 0 0 22px #e4b89c0d, 0 0 0 46px #e4b89c09, 0 0 0 70px #e4b89c08;
}

.art-wave {
  position: absolute;
  top: 46%;
  left: 3.5%;
  width: 41%;
  height: 21%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  transform: translateY(-50%);
  background: linear-gradient(transparent 49%, #ed644e35 49.5% 50.5%, transparent 51%);
}

.art-wave i {
  width: 2.25%;
  height: var(--level);
  border-radius: 10px;
  background: #f05e45;
  opacity: .8;
}

.hero-screen {
  position: absolute;
  top: 7.2%;
  right: 6%;
  width: 63%;
  height: auto;
  filter: drop-shadow(-4px 20px 20px #0b080796);
}

.hero-art figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 3rem;
  padding: .75rem 1.15rem;
  border-top: 1px solid var(--dark-line);
  background: var(--ink);
  color: var(--light-text);
}

.status-dot { width: .38rem; height: .38rem; }

.features { background: var(--paper); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding-block: 2.6rem;
}

.feature {
  display: flex;
  gap: .9rem;
  padding-inline: clamp(1.15rem, 3vw, 2.55rem);
}

.feature:first-child { padding-inline-start: 0; }
.feature:last-child { padding-inline-end: 0; }
.feature + .feature { border-inline-start: 1px solid var(--light-line); }
.feature h2 { font-size: 1.05rem; line-height: 1.4; }
.feature p { margin-top: .35rem; color: var(--soft-ink); font-size: 1rem; line-height: 1.55; }

.feature-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border-radius: .5rem;
  background: #f4ded5;
  color: var(--red-ink);
}

.icon-lock {
  position: relative;
  width: .9rem;
  height: .7rem;
  margin-top: .3rem;
  border: 1.5px solid;
  border-radius: .18rem;
}

.icon-lock::before {
  content: "";
  position: absolute;
  left: .12rem;
  right: .12rem;
  bottom: 100%;
  height: .45rem;
  border: 1.5px solid;
  border-bottom: 0;
  border-radius: .35rem .35rem 0 0;
}

.icon-globe {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  border: 1.5px solid;
  border-radius: 50%;
}

.icon-globe::before, .icon-globe::after {
  content: "";
  position: absolute;
}

.icon-globe::before { inset: -1px 24%; border: 1px solid; border-radius: 50%; }
.icon-globe::after { inset: 50% 0 auto; border-top: 1px solid; }

.icon-wave {
  position: relative;
  width: 2px;
  height: 1.25rem;
  border-radius: 2px;
  background: currentColor;
}

.icon-wave::before, .icon-wave::after {
  content: "";
  position: absolute;
  inset: 25% 0;
  border-radius: inherit;
  background: inherit;
}

.icon-wave::before { transform: translateX(-.3rem); }
.icon-wave::after { transform: translateX(.3rem); }

.gallery-section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  background: var(--gallery);
  border-block: 1px solid var(--light-line);
}

.section-intro h2, .closing h2 {
  font: 400 clamp(3rem, 6vw, 5.75rem)/.98 var(--display);
  letter-spacing: -.022em;
}

.section-intro h2 em { color: var(--red-ink); }

.section-intro p {
  margin-top: .85rem;
  color: var(--soft-ink);
  font-size: 1.05rem;
  line-height: 1.6;
}

.gallery-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.25rem;
  margin-bottom: 1.9rem;
}

.gallery-controls { display: flex; gap: .5rem; }

.gallery-controls button {
  min-height: 2.75rem;
  padding: .55rem .85rem;
  border: 1px solid #9a8a7d;
  border-radius: .4rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: .875rem;
}

.gallery-controls button:hover:not(:disabled) { background: var(--paper); }
.gallery-controls button:disabled { opacity: .5; cursor: default; }

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3.75rem) / 4);
  gap: 1.25rem;
  margin: 0 -.375rem -.375rem;
  padding: .375rem .375rem .85rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: .375rem;
  scrollbar-color: #9a8a7d transparent;
  scrollbar-width: thin;
}

.gallery-track li { min-width: 0; scroll-snap-align: start; }

.gallery-track a {
  display: block;
  border-radius: .65rem;
  border: 1px solid #cec3b7;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-track img { width: 100%; height: auto; }
.gallery-track a:hover { border-color: #968375; }

.screenshot-dialog {
  max-width: calc(100% - 1.25rem);
  max-height: 100%;
  padding: .65rem;
  border: 1px solid var(--dark-line);
  border-radius: .75rem;
  background: var(--ink);
  color: var(--paper);
}

.screenshot-dialog::backdrop { background: #100d0be6; }

.screenshot-dialog img {
  width: auto;
  height: min(76vh, 995px);
  height: min(76dvh, 995px);
  max-width: 100%;
  object-fit: contain;
  margin-inline: auto;
  border-radius: .45rem;
}

.screenshot-dialog form { display: flex; justify-content: end; padding-bottom: .4rem; }

.dialog-close {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid #635750;
  border-radius: .4rem;
  background: var(--panel);
  color: var(--paper);
  font-size: 1.5rem;
  cursor: pointer;
}

.faq { padding-block: clamp(3.5rem, 7vw, 6.5rem); background: var(--paper); }

.faq-inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(1.5rem, 6vw, 6rem);
}

.faq-list { border-top: 1px solid var(--light-line); }
.faq-list details { border-bottom: 1px solid var(--light-line); }

.faq-list summary {
  position: relative;
  padding: 1.25rem 2.5rem 1.25rem 0;
  list-style: none;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: .4rem;
  color: var(--red-ink);
  font: 400 1.35rem/1 Inter, sans-serif;
}

.faq-list details[open] summary::after { content: "−"; }

.faq-list details p {
  max-width: 36rem;
  padding: 0 1.5rem 1.25rem 0;
  color: var(--soft-ink);
  line-height: 1.65;
}

.closing { background: var(--panel); color: var(--paper); }

.closing-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.6rem;
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.75rem);
}

.closing-inner > img { border-radius: 23%; }
.closing h2 { font-size: clamp(2.7rem, 4.5vw, 4.75rem); }
.closing p { margin-top: .55rem; color: var(--light-text); line-height: 1.5; }

.site-footer {
  border-top: 1px solid var(--dark-line);
  background: var(--ink);
  color: var(--paper);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .75rem 1.25rem;
  align-items: center;
  padding-block: 1.4rem;
}

.footer-inner .brand { font-size: 1rem; }
.footer-inner p { text-align: end; color: var(--light-text); font-size: .875rem; }
.footer-inner [aria-current="page"] { color: var(--paper); text-decoration: underline; text-underline-offset: .25em; }

.policy-page main { background: var(--paper); }

.policy {
  width: min(100% - var(--gutter) * 2, 45rem);
  margin-inline: auto;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.policy-heading { padding-bottom: 1.6rem; border-bottom: 1px solid var(--light-line); margin-bottom: 1.7rem; }

.policy h1 {
  font: 400 clamp(4rem, 8vw, 7.5rem)/.9 var(--display);
  letter-spacing: -.03em;
}

.policy-heading p { margin-top: .85rem; color: var(--soft-ink); }
.policy h2 { margin: 2rem 0 .6rem; font-size: 1.25rem; }
.policy > p { margin-top: .75rem; line-height: 1.75; }
.policy a { color: var(--red-ink); text-underline-offset: .2em; overflow-wrap: anywhere; }
.policy-links { display: flex; flex-wrap: wrap; column-gap: 1.45rem; }

@media (max-width: 59rem) {
  .hero-inner { gap: 2rem; }
  .hero h1 { font-size: clamp(4.1rem, 9.4vw, 7.5rem); }
  .hero-art { aspect-ratio: 1.04; }
  .feature { flex-direction: column; gap: .6rem; }
  .gallery-track { grid-auto-columns: calc((100% - 2.5rem) / 3); }
}

@media (max-width: 43rem) {
  .header-inner { min-height: 4.35rem; grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 2.85rem 2.25rem; }
  .hero h1 { font-size: clamp(4.8rem, 15vw, 7.25rem); }
  .hero-art { width: 100%; max-width: 32rem; }
  .hero-download { margin-top: 1.4rem; }
  .feature-grid { grid-template-columns: 1fr; padding-block: 0; }
  .feature { flex-direction: row; gap: .9rem; padding: 1.3rem 0; }
  .feature + .feature { border-inline-start: 0; border-block-start: 1px solid var(--light-line); }
  .gallery-intro { flex-wrap: wrap; gap: .9rem; margin-bottom: 1.2rem; }
  .gallery-track { grid-auto-columns: min(72%, 17rem); gap: .85rem; }
  .faq-inner { grid-template-columns: 1fr; }
  .closing-inner { grid-template-columns: 1fr; justify-items: start; gap: 1rem; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner p { grid-column: 1 / -1; text-align: start; }
}

@media (max-width: 23rem) {
  .hero h1 { font-size: clamp(3.95rem, 20vw, 4.8rem); }
  .hero-art figcaption { min-height: 2.4rem; padding: .55rem .75rem; font-size: .72rem; }
  .footer-inner nav { gap: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .header-cta, .store-link { transition: none; }
}
