:root {
  /* palette */
  --bg: #fff8f5;
  --surface-low: #fff1e8;
  --surface: #fcebde;
  --surface-high: #f7e5d9;
  --surface-highest: #f1dfd3;

  --primary: #775a00;
  --primary-deep: #5c4500;
  --primary-container: #d9b356;
  --primary-bright: #e9c263;

  --secondary: #486172;
  --secondary-deep: #314a5a;
  --secondary-light: #cce6fa;

  --tertiary: #924c00;
  --tertiary-light: #ffdcc4;

  --on-surface: #221a13;
  --on-surface-variant: #4d4637;
  --outline: #7f7665;
  --outline-variant: #d0c5b2;

  /* fonts */
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* layout */
  --width: 720px;
  --width-wide: 1200px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-surface);
  background: var(--bg);
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--on-surface);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--tertiary); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.75rem;
}

/* ---------- nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 245, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline-variant);
}

.site-nav .inner {
  max-width: var(--width-wide);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-nav .wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: none;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  color: var(--on-surface-variant);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a[aria-current="page"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.cta-button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 0.55rem 1.1rem;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s;
}
.cta-button:hover { color: #fff; background: var(--primary-deep); transform: translateY(-1px); }
.cta-button:active { transform: scale(0.97); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 248, 245, 0.55) 0%,
    rgba(255, 248, 245, 0.15) 45%,
    var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.hero h1 { margin: 0 0 1rem; }

.hero .subtitle {
  font-size: 1.125rem;
  color: var(--on-surface-variant);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.store-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
@media (min-width: 600px) {
  .store-cards { flex-direction: row; }
}

.store-card {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 4px;
  text-decoration: none;
  color: var(--on-surface);
  box-shadow: 4px 4px 0 0 rgba(72, 97, 114, 0.18);
  transition: transform 0.15s, box-shadow 0.15s;
  min-width: 240px;
}
.store-card:hover {
  color: var(--on-surface);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 0 rgba(72, 97, 114, 0.25);
}
.store-card[aria-disabled="true"] {
  cursor: default;
  pointer-events: none;
  opacity: 0.9;
}
.store-card svg {
  width: 32px;
  height: 32px;
  color: var(--secondary);
  flex: none;
}
.store-card .meta {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.store-card .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--secondary);
  text-transform: uppercase;
}
.store-card .name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
}

/* ---------- generic section ---------- */

section {
  padding: 4.5rem 1.5rem;
}

.section-inner {
  max-width: var(--width-wide);
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.section-header h2 { margin: 0; }
.section-header .rule {
  flex: 1;
  height: 1px;
  background: var(--outline-variant);
}

/* ---------- philosophy ---------- */

.philosophy {
  background-color: var(--surface-low);
  background-image: radial-gradient(var(--surface-highest) 0.5px, transparent 0.5px);
  background-size: 24px 24px;
  border-top: 1px solid var(--outline-variant);
  border-bottom: 1px solid var(--outline-variant);
}

.philosophy-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .philosophy-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.philosophy-text { text-align: center; }
.philosophy-text h2 { margin-top: 0; }
.philosophy-text p {
  max-width: 32rem;
  margin: 0 auto;
  color: var(--on-surface-variant);
}
@media (min-width: 768px) {
  .philosophy-text { text-align: left; }
  .philosophy-text p { margin: 0; }
}

.tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 480px) {
  .tile-grid { grid-template-columns: 1fr 1fr; }
}

.tile {
  background: #fff;
  border: 1px solid var(--outline-variant);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 4px 4px 0 0 rgba(72, 97, 114, 0.18);
}
.tile svg { width: 28px; height: 28px; color: var(--primary); }
.tile h3 { margin: 0; font-size: 1.4rem; }
.tile p { margin: 0; color: var(--on-surface-variant); font-size: 0.95rem; line-height: 1.5; }

/* ---------- game detail ---------- */

.game-detail .lede {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--on-surface-variant);
  margin: 0 0 1.5rem;
  max-width: 48rem;
}

.features {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) { .features { grid-template-columns: 1fr 1fr; } }

.features li {
  background: var(--surface);
  border-left: 3px solid var(--primary-container);
  padding: 1.1rem 1.35rem;
  border-radius: 4px;
}
.features strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--secondary);
  margin-bottom: 0.25em;
  letter-spacing: -0.01em;
}

.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2.5rem 0 0;
}
@media (min-width: 600px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shots img {
  width: 100%;
  height: auto;
  border: 1px solid var(--outline-variant);
  background: var(--surface-high);
  border-radius: 4px;
}

/* ---------- upcoming projects ---------- */

.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .projects { grid-template-columns: repeat(3, 1fr); }
  .project-flagship { grid-column: span 2; grid-row: span 1; }
}

.project-flagship {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--outline-variant);
  background: var(--secondary);
}
.project-flagship img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.7s ease;
}
.project-flagship:hover img { transform: scale(1.04); }
.project-flagship .info {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: inherit;
  padding: 2rem;
  background: linear-gradient(0deg, rgba(72, 97, 114, 0.85) 0%, rgba(72, 97, 114, 0.15) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.project-flagship .badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  width: fit-content;
  margin-bottom: 0.75rem;
}
.project-flagship h3 {
  color: #fff;
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}
.project-flagship p {
  color: var(--secondary-light);
  margin: 0;
}

.project-slot {
  background: var(--surface-highest);
  border: 1px solid var(--outline-variant);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 200px;
}
.project-slot .icon-circle {
  width: 56px;
  height: 56px;
  border: 1px dashed var(--outline);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.project-slot svg { width: 22px; height: 22px; color: var(--outline); }
.project-slot .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--outline);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}
.project-slot h4 {
  color: var(--on-surface-variant);
  opacity: 0.7;
  margin: 0 0 0.5rem;
}
.project-slot p {
  color: var(--on-surface-variant);
  opacity: 0.55;
  font-size: 0.9rem;
  margin: 0;
  max-width: 18rem;
}

/* ---------- studio ---------- */

.studio {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.studio svg.studio-icon {
  width: 48px;
  height: 48px;
  color: var(--tertiary);
  margin: 0 auto 1rem;
  display: block;
}
.studio h2 { margin: 0.5rem 0; }
.studio p {
  font-size: 1.125rem;
  color: var(--on-surface-variant);
  margin: 0 auto 1.5rem;
}
.studio .divider {
  width: 96px;
  height: 1px;
  background: var(--tertiary);
  margin: 0 auto;
}

/* ---------- text pages (privacy / support) ---------- */

.text-page {
  max-width: var(--width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.text-page h1 { margin: 0.5rem 0 0.75rem; }
.text-page h2 { margin-top: 2.5rem; }

.lede {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--on-surface-variant);
  margin: 0 0 1.5rem;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  background: var(--surface-highest);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

hr {
  border: 0;
  border-top: 1px solid var(--outline-variant);
  margin: 3em 0;
}

blockquote.note {
  border-left: 3px solid var(--primary-container);
  margin: 2em 0;
  padding: 0.5em 1.25em;
  background: var(--surface);
  font-family: var(--serif);
  font-style: italic;
  color: var(--on-surface-variant);
}

.faq dt {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary);
  margin-top: 1.5em;
}
.faq dd {
  margin: 0.25em 0 0;
  padding-left: 0;
}

.email-cta {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.3rem;
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  text-decoration: none;
  margin: 0.5em 0 1.5em;
}
.email-cta:hover {
  background: var(--primary-deep);
  color: #fff;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--outline-variant);
  padding: 3rem 1.5rem;
  text-align: center;
}
.site-footer .brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tertiary);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
.site-footer .links a {
  color: var(--on-surface-variant);
  text-decoration: underline;
  font-size: 0.95rem;
}
.site-footer .links a:hover { color: var(--tertiary); }
.site-footer .copyright {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--on-surface);
  text-transform: uppercase;
}

/* ---------- small screens ---------- */

@media (max-width: 600px) {
  section { padding: 3rem 1.25rem; }
  .hero { min-height: 600px; padding: 4rem 1rem; }
  .site-nav .wordmark { font-size: 1.25rem; }
  .site-nav .inner { padding: 0.75rem 1rem; }
}
