:root {
  color-scheme: light;
  --paper: #f8f6f2;
  --berry: #7a1f3d;
  --deep: #3d0e20;
  --ink: #2a2320;
  --muted: #645953;
  --line: #dfd6ce;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 "DM Sans", system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid var(--berry); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.masthead { min-height: 86px; border-bottom: 1px solid var(--line); }
nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
nav a { text-decoration: none; font-size: .91rem; font-weight: 700; }
nav a:hover { text-decoration: underline; }
.nav-cta { color: var(--berry); }
.nav-cta span { margin-left: .3em; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 92px); padding-block: clamp(38px, 6vw, 82px); }
.eyebrow { margin: 0 0 22px; color: var(--berry); font-size: .74rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { color: var(--deep); margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.06; }
h1 { font-size: clamp(3.15rem, 6.3vw, 6.25rem); letter-spacing: -.055em; }
h1 em { display: block; color: var(--berry); font-style: normal; }
.hero-description { max-width: 390px; margin: 24px 0 28px; font-size: clamp(1rem, 1.7vw, 1.2rem); color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 52px; padding: 11px 21px; border-radius: 9px; background: var(--berry); color: white; text-decoration: none; font-weight: 700; }
.button:hover { background: var(--deep); }
.hero-stores { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 4px; row-gap: 10px; }
.apple-store { display: flex; min-height: 63px; flex-direction: column; align-items: center; gap: 5px; padding-top: 9px; }
.apple-store span { color: var(--muted); font-size: .75rem; }
.play-store { display: block; border-radius: 10px; }
.platforms { margin: 16px 0 0; color: var(--muted); font-size: .85rem; }
.hero-art { margin: 0; min-width: 0; }
.art-frame { display: grid; place-items: center; overflow: hidden; min-height: clamp(400px, 51vw, 575px); padding: 24px; border-radius: 24px; background: radial-gradient(ellipse at 69% 23%, #a2445b, #71223d 53%, #3d0e20 100%); }
.art-frame img { width: min(100%, 243px); border-radius: 17% / 8%; box-shadow: 0 24px 44px #28081460; }
figcaption { color: var(--muted); font-size: .75rem; margin-top: 8px; text-align: center; }
.feature-band { background: #f3e7cf; padding-block: clamp(48px, 7vw, 90px); }
h2 { font-size: clamp(2.25rem, 4.9vw, 4rem); letter-spacing: -.045em; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 36px; }
.features article { border-top: 1px solid #bba587; padding-top: 22px; }
h3 { font-size: 1.55rem; letter-spacing: -.02em; }
.features p, .download p { margin: 12px 0 0; color: var(--muted); }
.download { padding-block: clamp(48px, 7vw, 86px); }
.stores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 28px 0 0; padding: 0; list-style: none; }
.stores li { border-top: 1px solid var(--line); padding-top: 18px; }
.stores p { font-size: .9rem; }
.stores .button { margin-top: 14px; gap: 12px; padding-inline: 15px; font-size: .9rem; }
.footer { padding-block: 22px; border-top: 1px solid var(--line); }

@media (max-width: 960px) {
  .stores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .masthead { min-height: 70px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 4px; }
  .art-frame { min-height: auto; padding: 24px; }
  .art-frame img { width: min(73%, 225px); }
  .features { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 410px) {
  .nav-feature { display: none; }
  h1 { font-size: clamp(2.55rem, 13vw, 3.2rem); }
  .stores { grid-template-columns: 1fr; }
}

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

.document { padding-block: clamp(38px, 6vw, 80px); }
.document-header { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.document-header h1 { font-size: clamp(2.75rem, 6vw, 5.5rem); }
.document-layout { margin-top: 30px; }
.document-with-toc { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr); gap: clamp(24px, 5vw, 64px); }
.document-toc { display: block; align-self: start; padding: 22px; background: #f3e7cf; border-radius: 14px; }
.document-toc h2 { font-size: 1.45rem; letter-spacing: 0; }
.document-toc ul { list-style: none; margin: 16px 0 0; padding: 0; }
.document-toc li + li { margin-top: 8px; }
.document-toc a { color: var(--berry); font-weight: 600; }
.document-copy { max-width: 74ch; overflow-wrap: anywhere; }
.document-copy h2 { margin: 2rem 0 .6rem; font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.027em; scroll-margin-top: 20px; }
.document-copy h2:first-child, .document-copy p:first-child { margin-top: 0; }
.document-copy p { margin: 0 0 1rem; }
.document-copy a, [aria-current="page"] { color: var(--berry); }
.contact-card { padding: 18px 22px; border-radius: 12px; background: #f3e7cf; }
.contact-card a { font-weight: 700; }

@media (max-width: 760px) {
  .document-with-toc { grid-template-columns: 1fr; }
}

.apple-store .store-pending {
  display: flex;
  width: 132px;
  min-height: 44px;
  flex-direction: column;
  justify-content: center;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--deep);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
}
.store-pending small { color: var(--muted); font-weight: 500; }
