:root {
  color-scheme: dark;
  /* SwiftUI launch background, tabletop palette, and AppColors.accent. */
  --background: #090a0e;
  --surface: #14171f;
  --raised: #1b1f29;
  --line: #303541;
  --text: #f6f6fa;
  --muted: #afb5c3;
  --accent: #ff7d00;
  --accent-text: #ff9e47;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", var(--body);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 1rem / 1.55 var(--body);
}

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

figure,
h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

a:focus-visible,
main:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 4px;
}

section[id] {
  scroll-margin-top: 24px;
}

.wrap {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  inset: 12px auto auto 12px;
  transform: translateY(calc(-100% - 20px));
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--background);
}

.skip-link:focus {
  transform: none;
}

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-header {
  padding-block: 18px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 750 1.32rem / 1.1 var(--rounded);
  letter-spacing: -0.025em;
  text-decoration: none;
}

.app-icon {
  width: 42px;
  border-radius: 23%;
  box-shadow: 0 3px 14px #ff7d0033;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--surface);
}

.site-header nav a {
  padding: 9px 15px;
  border-radius: 18px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.site-header nav a:hover {
  background: var(--raised);
  color: var(--text);
}

h1,
h2,
h3 {
  font-family: var(--rounded);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.15rem, 1.5rem + 2.2vw, 3.6rem);
}

h3 {
  font-size: clamp(1.4rem, 1.25rem + 0.65vw, 1.9rem);
  letter-spacing: -0.025em;
}

.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 13%;
  content: "";
  /* Reference the tabletop grid behind the poster. */
  background-image:
    linear-gradient(to right, #a8adc313 1px, transparent 1px),
    linear-gradient(to bottom, #a8adc313 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center;
  mask-image: radial-gradient(
    ellipse 65% 75% at 50% 50%,
    #000 22%,
    transparent 80%
  );
}

.hero-inner {
  padding-block: clamp(30px, 5vw, 60px) 38px;
}

.hero h1 {
  margin-inline: auto;
  font-size: clamp(2.3rem, 1.25rem + 3.55vw, 4.85rem);
}

.title-line,
.title-platform {
  display: block;
}

.title-brand {
  color: var(--accent);
}

.title-platform {
  margin-top: 0.16em;
  color: var(--muted);
  font-size: 0.73em;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 23px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 8px;
  min-height: 42px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.app-store-link {
  background: var(--accent);
  color: var(--background);
}

.app-store-link:hover {
  background: var(--accent-text);
}

.app-store-link small {
  font-size: 0.75rem;
  font-weight: 600;
}

.discord-link {
  border-color: var(--line);
  background: var(--surface);
}

.discord-link:hover {
  background: var(--raised);
}

.preview-card {
  width: min(100%, 1040px);
  margin: clamp(20px, 3vw, 33px) auto 0;
  padding: 7px;
  border: 1px solid #474654;
  border-radius: 26px;
  background: var(--surface);
  box-shadow:
    0 14px 58px #0009,
    0 0 76px #ff7d0014;
  text-align: start;
}

.preview-media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 19px;
  background: var(--background);
}

.preview-media :is(img, video) {
  width: 100%;
  height: 100%;
}

.preview-media img {
  object-fit: cover;
}

.preview-media video {
  display: block;
  object-fit: contain;
}

.preview-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 12px 14px 7px;
  color: var(--muted);
  font-size: 0.875rem;
}

.preview-card figcaption a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  border-radius: 4px;
  color: var(--accent-text);
  font-weight: 650;
  text-decoration: none;
}

.preview-card figcaption a:hover,
.site-footer > a:last-child:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.platform-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.875rem;
}

#app-store {
  scroll-margin-top: 28px;
}

.section {
  padding-block: clamp(56px, 8vw, 112px);
}

.section-heading {
  max-width: 700px;
  margin-bottom: clamp(24px, 4vw, 44px);
}

.section-heading p:not(.eyebrow),
.feature-copy p,
.support-section p {
  max-width: 55ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(1rem, 0.9rem + 0.38vw, 1.2rem);
}

.screen-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}

.capture-panel {
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--surface);
}

.capture-media {
  overflow: hidden;
  border-radius: 15px;
  background: #08090b;
}

.capture-media img {
  width: 100%;
}

.capture-panel figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  padding: 10px 12px 7px;
  color: var(--muted);
  font-size: 0.875rem;
}

.capture-panel figcaption strong {
  color: var(--text);
  font-weight: 700;
}

.screen-note {
  margin-top: 24px;
  padding-inline-start: 12px;
  border-inline-start: 2px solid var(--accent);
  color: var(--muted);
  font-size: 0.9375rem;
}

.tools-section {
  border-block: 1px solid #262b35;
  background: #101218;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(22px, 5vw, 68px);
}

.feature-copy {
  min-width: 0;
}

.tool-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
  margin-block: clamp(38px, 6vw, 78px);
}

.tool-story {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--surface);
}

.tool-copy {
  padding: 15px 15px 0;
}

.tool-copy p {
  max-width: 47ch;
  margin-top: 9px;
  color: var(--muted);
}

.map-row {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.7fr);
  grid-template-areas: "image copy";
}

.map-row .feature-copy {
  grid-area: copy;
}

.map-row .capture-panel {
  grid-area: image;
}

.eyebrow {
  margin-bottom: 9px;
  color: var(--accent-text);
  font-size: 0.875rem;
  font-weight: 650;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
}

.access-column {
  padding: clamp(18px, 3.2vw, 40px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.unlock-column {
  border-color: #754720;
  background: #1e1714;
}

.unlock-column h3 {
  color: var(--accent-text);
}

.access-column ul {
  margin: 20px 0 0;
  padding-inline-start: 1.2em;
}

.access-column li {
  padding-block: 5px;
}

.access-column li::marker {
  color: var(--accent);
}

.future-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.support-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--raised);
}

.support-section h2 {
  font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem);
}

.support-section p {
  margin-top: 10px;
  font-size: 1rem;
}

.support-link {
  display: inline-flex;
  justify-content: center;
  gap: 12px;
  border-radius: 100px;
  padding: 12px 19px;
  background: var(--accent);
  color: var(--background);
  font-weight: 750;
  text-decoration: none;
}

.support-link:hover {
  background: var(--accent-text);
}

.site-footer {
  margin-block: 40px 0;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}

.site-footer .wordmark {
  font-size: 1rem;
}

.site-footer .app-icon {
  width: 27px;
}

.site-footer > a:last-child {
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}

@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 44px);
  }
}

@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .screen-pair,
  .feature-row,
  .tool-pair,
  .access-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .map-row {
    grid-template-areas: "copy" "image";
  }

  .hero-inner {
    padding-bottom: 15px;
  }

  .preview-card {
    padding: 5px;
    border-radius: 19px;
  }

  .preview-media {
    border-radius: 13px;
  }

  .preview-card figcaption {
    padding: 8px 10px 4px;
  }
}

@media (max-width: 520px) {
  .site-header {
    flex-direction: column;
    padding-block: 14px 6px;
    gap: 13px;
  }

  .site-header nav {
    justify-content: center;
  }

  .site-header nav a {
    padding: 9px 8px;
  }

  .site-header .app-icon {
    width: 34px;
  }
}

@media (max-width: 360px) {
  .site-header nav a {
    padding-inline: 5px;
    font-size: 0.82rem;
  }
}
