:root {
  color-scheme: light;
  --ink: #10251e;
  --ink-soft: #4f6159;
  --forest: #123f31;
  --forest-deep: #092a20;
  --leaf: #2f7559;
  --moss: #dce8d4;
  --cream: #f7f1e6;
  --paper: #fffdf8;
  --gold: #d69b42;
  --gold-soft: #f2d9ad;
  --line: rgba(16, 37, 30, 0.14);
  --shadow: 0 24px 70px rgba(15, 45, 34, 0.14);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --content: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(214, 155, 66, 0.16), transparent 24rem),
    linear-gradient(180deg, #fbf7ee 0, var(--cream) 48rem, #f3ede0 100%);
  background-color: var(--cream);
  font: 17px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--forest);
  text-underline-offset: 0.18em;
}

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

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--forest-deep);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 24px 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50% 44% 50% 42%;
  color: #fff;
  background: var(--forest);
  font-family: Georgia, serif;
  font-size: 21px;
  transform: rotate(-5deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav .nav-cta {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.7);
}

.shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(48px, 8vw, 94px);
  font-weight: 600;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
}

h3 {
  margin: 0;
  font-size: 25px;
}

.lede {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(16, 37, 30, 0.07);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(16, 37, 30, 0.12);
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--forest);
  color: #fff;
  background: var(--forest);
}

.button-primary:hover {
  color: #fff;
  background: var(--forest-deep);
}

.studio-hero {
  display: grid;
  min-height: 70vh;
  align-items: center;
  padding: 72px 0 100px;
}

.studio-hero-copy {
  position: relative;
  padding: clamp(36px, 7vw, 84px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  color: #f8f2e7;
  background:
    radial-gradient(circle at 82% 12%, rgba(236, 194, 116, 0.25), transparent 19rem),
    radial-gradient(circle at 12% 100%, rgba(79, 137, 100, 0.54), transparent 30rem),
    var(--forest-deep);
  box-shadow: var(--shadow);
}

.studio-hero-copy::after {
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 48% 52% 44% 56%;
  content: "";
  transform: rotate(24deg);
}

.studio-hero-copy .eyebrow {
  color: #ecd093;
}

.studio-hero-copy h1 {
  max-width: 800px;
}

.studio-hero-copy .lede {
  color: rgba(248, 242, 231, 0.76);
}

.studio-hero-copy .button-primary {
  border-color: #f1d59f;
  color: var(--forest-deep);
  background: #f1d59f;
}

.section {
  padding: 96px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  overflow: hidden;
  border: 1px solid rgba(16, 37, 30, 0.1);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.project-image {
  min-height: 500px;
  background: #bed8c4;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 70px);
}

.project-copy h3 {
  font-size: clamp(34px, 5vw, 52px);
}

.project-copy p {
  margin: 20px 0 0;
  color: var(--ink-soft);
}

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

.mini-facts li {
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--forest);
  background: var(--moss);
  font-size: 13px;
  font-weight: 800;
}

.game-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  min-height: 700px;
  padding: 70px 0 92px;
}

.game-title-row {
  display: block;
}

.game-title-row h1 {
  margin-top: 16px;
}

.app-icon {
  width: 92px;
  height: 92px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(16, 37, 30, 0.2);
  object-fit: cover;
}

.game-hero h1 {
  font-size: clamp(52px, 6vw, 80px);
}

.fact-answer {
  margin: 28px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--forest-deep);
  background: rgba(255, 253, 248, 0.76);
  box-shadow: 0 10px 28px rgba(16, 37, 30, 0.07);
  font-size: 18px;
}

.hero-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.2fr 0.8fr;
  gap: 12px;
  min-height: 570px;
}

.hero-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 44px rgba(16, 37, 30, 0.16);
}

.hero-gallery figure:first-child {
  grid-column: 1 / -1;
}

.hero-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 18px 50px rgba(16, 37, 30, 0.08);
}

.fact-strip > div {
  padding: 24px;
}

.fact-strip > div + div {
  border-left: 1px solid var(--line);
}

.fact-strip dt {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fact-strip dd {
  margin: 7px 0 0;
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.feature-card {
  min-height: 210px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.76);
}

.feature-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--leaf);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card p {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  padding: clamp(32px, 6vw, 68px);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(214, 155, 66, 0.28), transparent 28rem),
    var(--forest-deep);
  box-shadow: var(--shadow);
}

.download-panel h2 {
  color: #fff;
}

.download-panel p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.download-panel .button-row {
  margin: 0;
  flex-direction: column;
}

.download-panel .button {
  min-width: 205px;
}

.safe-note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.07);
  font-size: 14px;
}

.faq-list {
  max-width: 900px;
  margin: 34px auto 0;
  border-top: 1px solid var(--line);
}

.faq-list details {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 23px;
  font-weight: 600;
}

.faq-list p {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.page-hero {
  max-width: 860px;
  padding: 78px 0 64px;
}

.page-hero h1 {
  font-size: clamp(44px, 7vw, 72px);
}

.prose {
  max-width: 800px;
  padding-bottom: 96px;
}

.prose h2 {
  margin: 52px 0 16px;
  font-size: 34px;
}

.prose h3 {
  margin: 34px 0 12px;
  font-size: 24px;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose li + li {
  margin-top: 8px;
}

.draft-banner {
  margin: 6px 0 30px;
  padding: 18px 20px;
  border: 1px solid #cc7b31;
  border-radius: var(--radius-sm);
  color: #66360c;
  background: #fff0d7;
}

.site-footer {
  margin-top: 70px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--forest-deep);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 48px 0;
}

.footer-inner p {
  margin: 8px 0 0;
}

.footer-inner a {
  color: #f0d7a5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 14px;
}

@media (max-width: 880px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .section-heading,
  .project-card,
  .game-hero,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .project-image {
    min-height: 360px;
  }

  .game-hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-gallery {
    min-height: 480px;
  }

  .fact-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact-strip > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .fact-strip > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .download-panel .button-row {
    flex-direction: row;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .site-header,
  .shell,
  .footer-inner {
    width: min(calc(100% - 28px), var(--content));
  }

  .site-header {
    padding: 16px 0;
  }

  .site-nav {
    gap: 8px;
  }

  .site-nav .nav-cta {
    padding: 7px 11px;
  }

  .studio-hero {
    min-height: auto;
    padding: 36px 0 64px;
  }

  .studio-hero-copy {
    padding: 34px 24px 42px;
    border-radius: 24px;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading {
    gap: 18px;
  }

  .project-card {
    border-radius: 24px;
  }

  .project-image {
    min-height: 250px;
  }

  .project-copy {
    padding: 28px 22px 34px;
  }

  .app-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
  }

  .hero-gallery {
    grid-template-columns: 1fr 1fr;
    min-height: 370px;
  }

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

  .fact-strip > div + div,
  .fact-strip > div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .download-panel {
    padding: 32px 22px;
    border-radius: 24px;
  }

  .download-panel .button-row,
  .download-panel .button {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

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

  .button {
    transition: none;
  }
}
