:root {
  --bg: #0a0b0d;
  --bg-soft: #101216;
  --panel: #15181d;
  --panel-2: #1b1f25;
  --paper: #f1eadb;
  --text: #d8d3c8;
  --muted: #a29b8f;
  --dim: #756f65;
  --gold: #d7b36a;
  --gold-bright: #efd79b;
  --teal: #5e9488;
  --crimson: #a54b45;
  --line: rgba(215, 179, 106, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 300px;
  background:
    radial-gradient(circle at 12% 0%, rgba(94, 148, 136, 0.12), transparent 34rem),
    radial-gradient(circle at 88% 28%, rgba(165, 75, 69, 0.11), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

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

a {
  color: var(--gold-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--paper);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--paper);
}

h1 {
  font-size: clamp(3rem, 7vw, 6.4rem);
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

p {
  margin-bottom: 1rem;
}

em {
  color: var(--gold-bright);
  font-weight: 400;
}

hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 1.5rem 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-200%);
  padding: 0.55rem 0.85rem;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

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

.site-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  color: var(--paper);
  text-decoration: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  font-weight: 600;
}

.brand-sub {
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.32em;
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav a,
.footer-nav a {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-nav a:hover,
.footer-nav a:hover,
.site-nav a.is-active,
.footer-nav a.is-active {
  color: var(--gold-bright);
}

main {
  display: block;
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.lede {
/*  max-width: 42rem;*/
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.5;
}

.studio-intro {
  padding: clamp(64px, 10vw, 130px) 0 48px;
}

.studio-intro h1 {
/*  max-width: 14ch;*/
  font-size: 4rem;
}

.game-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: 0 0 clamp(64px, 9vw, 120px);
}

.game-feature-media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition:
    border-color 600ms ease,
    box-shadow 600ms ease;
}

.game-feature-media:hover,
.game-feature-media:focus-visible {
  border-color: rgba(215, 179, 106, 0.48);
  box-shadow: 0 30px 82px rgba(0, 0, 0, 0.52);
}

.game-feature-media::after,
.game-hero-media::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: inherit;
  pointer-events: none;
  content: "";
}

.game-feature-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transform: scale(1.001);
  filter: saturate(0.82) contrast(1.06);
  transform-origin: center;
  backface-visibility: hidden;
  will-change: transform;
  transition:
    transform 1000ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 1000ms ease;
}

.game-feature-media:hover img,
.game-feature-media:focus-visible img {
  transform: scale(1.035);
  filter: saturate(0.96) contrast(1.08);
}

.media-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 0.42rem 0.62rem;
  border: 1px solid rgba(239, 215, 155, 0.3);
  background: rgba(10, 11, 13, 0.78);
  color: var(--gold-bright);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.game-feature-copy h2 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  margin-bottom: 1rem;
}

.game-feature-copy p {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.38rem 0.62rem;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.68rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button-primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--bg);
}

.button-primary:hover {
  border-color: var(--gold-bright);
  background: var(--gold-bright);
  color: var(--bg);
}

.button-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--paper);
}

.button-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.app-store {
  width: 100%;
}

.studio-note {
  display: flex;
  flex-direction: column;
  margin-bottom: 90px;
  padding: 32px 0;
  border-top: 1px solid var(--line-soft);
/*  border-bottom: 1px solid var(--line-soft);*/
}

.studio-note h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

.studio-note p:not(.eyebrow) {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
}

/* Navarra page */

.game-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 9vw, 112px);
}

.game-hero-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.game-hero-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.08);
}

.game-hero-copy h1 {
  font-size: clamp(3.1rem, 6.7vw, 6.3rem);
  margin-bottom: 1.2rem;
}

.game-hero-copy .lede {
  max-width: 31rem;
  color: var(--text);
}

.status-note {
  margin: 22px 0 0;
  color: var(--dim);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.section {
  padding: clamp(54px, 8vw, 100px) 0;
  border-top: 1px solid var(--line-soft);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}

.split-section h2 {
  max-width: 12ch;
}

.prose {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.03rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 clamp(54px, 8vw, 100px);
  border: 1px solid var(--line-soft);
  background: var(--line-soft);
}

.feature-card {
  min-height: 220px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--bg-soft);
}

.feature-card p {
  max-width: 26rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.feature-number {
  display: block;
  margin-bottom: 28px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.access-section {
  position: relative;
}

/*
.access-section::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, var(--line), transparent);
  content: "";
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
*/
.access-heading,
.access-grid,
.access-price {
  position: relative;
  z-index: 1;
}

.access-heading {
  max-width: 36rem;
  margin-bottom: 42px;
}

.access-heading h2 {
  margin-bottom: 0;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.access-step {
  position: relative;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.access-step h3 {
  font-size: 1.55rem;
}

.access-step p {
  color: var(--muted);
  font-size: 0.93rem;
}

.access-step .feature-number {
  margin-bottom: 18px;
}

.access-price {
  margin: 42px 0;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.closing-section {
  padding-bottom: 110px;
}

.closing-section .lede {
  max-width: 42rem;
  margin-bottom: 26px;
}

/* Gallery */

gallery {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  gap: 1%;
}

gallery.ios-gallery img {
  width: 19%;
}

gallery.mac-gallery {
  margin-bottom: 100px;
}

gallery.mac-gallery img {
  width: 32%;
}

/* The army */

.piece-heading {
  max-width: 46rem;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.piece-heading h2 {
  margin-bottom: 10px;
}

.piece-lede {
  margin-bottom: 0;
  color: var(--muted);
}

.piece-table {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
}

.piece-row {
  display: grid;
  grid-template-columns: 3.25rem minmax(7rem, 0.9fr) 5rem 3.25rem minmax(0, 1.9fr);
  gap: clamp(12px, 2vw, 26px);
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

.piece-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}

.piece-icon img {
  width: 2.2rem;
  height: 2.2rem;
}

.piece-name {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.25;
}

.piece-rank {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.piece-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
  text-align: right;
}

.piece-note {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .piece-row {
    grid-template-columns: 3.25rem 1fr auto;
    grid-template-areas:
      "icon name count"
      "icon rank rank"
      "note note note";
    row-gap: 3px;
    padding: 13px 0;
  }

  .piece-icon { grid-area: icon; }
  .piece-name { grid-area: name; }
  .piece-rank { grid-area: rank; }
  .piece-count { grid-area: count; }
  .piece-note {
    grid-area: note;
    padding-left: calc(3.25rem + 12px);
  }
}

/* Intro and support */

.page-intro {
  max-width: 760px;
  padding: clamp(64px, 9vw, 112px) 0 clamp(44px, 7vw, 72px);
}

.page-intro h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.page-intro .lede {
  margin-bottom: 26px;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  padding-bottom: 100px;
}

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

.faq {
  border-bottom: 1px solid var(--line-soft);
}

.faq summary {
  position: relative;
  padding: 20px 36px 20px 0;
  color: var(--paper);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.25rem;
  list-style: none;
}

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

.faq summary::after {
  position: absolute;
  top: 50%;
  right: 2px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 1.15rem;
  line-height: 1;
  content: "+";
  transform: translateY(-50%);
}

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

.faq p {
  max-width: 45rem;
  margin: -4px 0 22px;
  color: var(--muted);
}

.support-aside,
.privacy-aside {
  padding: 24px;
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.support-aside h2 {
  font-size: 2rem;
}

.support-aside p {
  color: var(--muted);
  font-size: 0.92rem;
}

.support-aside .small-note,
.privacy-aside .small-note {
  margin-bottom: 0;
  color: var(--dim);
  font-size: 0.78rem;
}

.text-link {
  display: block;
  width: fit-content;
  margin: 12px 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.small-note {
  color: var(--dim);
  font-size: 0.8rem;
}

/* Privacy */

.privacy-intro {
  max-width: 840px;
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  padding-bottom: 100px;
}

.legal-copy {
  max-width: 48rem;
}

.legal-copy h2 {
  margin: 42px 0 12px;
  font-size: clamp(1.55rem, 2.7vw, 2.1rem);
}

.legal-copy h2:first-of-type {
  margin-top: 0;
}

.legal-copy p,
.legal-copy li {
  color: var(--muted);
}

.legal-copy ul {
  padding-left: 1.2rem;
}

.legal-copy li {
  margin-bottom: 0.45rem;
}

.short-version {
  margin-bottom: 44px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.short-version p:last-child {
  margin-bottom: 0;
}

.privacy-aside {
  position: sticky;
  top: 24px;
}

/* Footer */

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  padding: 44px 0 54px;
  border-top: 1px solid var(--line-soft);
}

.footer-brand p {
/*  max-width: 27rem;*/
  margin: 10px 0 0;
  color: var(--dim);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  align-items: flex-start;
}

.footer-legal {
  grid-column: 1 / -1;
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 0.72rem;
}

.not-found {
  min-height: 60vh;
  padding: clamp(80px, 12vw, 160px) 0;
}

.not-found h1 {
  font-size: clamp(3rem, 7vw, 6rem);
}

/* Responsive */

@media (max-width: 900px) {
  .game-feature,
  .game-hero,
  .split-section,
  .support-layout,
  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .game-feature {
    gap: 24px;
  }

  .game-feature-media {
    order: 2;
  }

  .game-feature-copy {
    order: 1;
  }

  .game-hero-media {
    max-width: 720px;
  }

  .game-hero-copy {
    max-width: 620px;
  }

  .access-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .access-section::before {
    display: none;
  }

  .privacy-aside {
    position: static;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding: 0 18px;
  }

  .site-header {
    min-height: 76px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 16px 0;
  }

  .site-nav {
    gap: 18px;
  }

  .site-nav a {
    font-size: 0.72rem;
  }

  .studio-intro {
    padding-top: 54px;
  }

  .studio-intro h1 {
    font-size: clamp(2.7rem, 13vw, 4.4rem);
  }

  .game-feature {
    padding-bottom: 72px;
  }

  .game-feature-copy h2,
  .game-hero-copy h1 {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .game-hero {
    padding-top: 38px;
    gap: 22px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .studio-note {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 68px;
  }

  .section {
    padding: 48px 0;
  }

  .split-section h2 {
    max-width: 15ch;
  }

  .page-intro {
    padding-top: 52px;
  }

  .faq summary {
    font-size: 1.1rem;
  }

  .actions .button {
    flex: 1 1 auto;
  }

  .actions .button .app-store {
    width: 100%;
  }
  
  .site-footer {
    padding-bottom: 38px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .actions,
  .privacy-aside {
    display: none;
  }

  body {
    background: #fff;
    color: #111;
  }

  .legal-copy p,
  .legal-copy li,
  .short-version p {
    color: #111;
  }

  .legal-copy h2,
  .short-version h2 {
    color: #111;
  }
}
