/* Nostrum website. Tokens and rules: see DESIGN.md. */

@font-face { font-family: 'Young Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../assets/fonts/young-serif-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Young Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../assets/fonts/young-serif-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../assets/fonts/nunito-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../assets/fonts/nunito-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../assets/fonts/nunito-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../assets/fonts/nunito-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(../assets/fonts/nunito-latin-800-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(../assets/fonts/nunito-latin-ext-800-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  color-scheme: light;
  --paper: #f5eedf;
  --paper-2: #ebe1cc;
  --card: #fbf7ee;
  --ink: #1e2b2a;
  --ink-2: #46524f;
  --teal: #2c6f69;
  --teal-line: #317b75;
  --teal-deep: #1c4643;
  --teal-night: #142f2d;
  --coral: #b5472f;
  --coral-deep: #963a26;
  --brass: #a97b3e;
  --on-dark: #f5eedf;
  --on-dark-2: #cbd8d4;
  --focus: #b5472f;

  --font-display: 'Young Serif', ui-serif, Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --measure: 62ch;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1180px;
  --radius: 14px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--font-body);
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.005em; text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--teal); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--coral-deep); }
strong { font-weight: 800; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: #f2b27a; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--on-dark); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--on-dark); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid rgba(49, 123, 117, .22); position: relative; z-index: 5; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; min-height: 68px; padding-block: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 1.5rem; min-height: 44px; margin-right: auto; }
.brand img { width: 34px; height: 34px; }
.site-nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; color: var(--ink); text-decoration: none; font-weight: 700; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--teal); text-decoration: underline; }
.lang { display: flex; gap: 2px; padding: 3px; border: 1.5px solid rgba(49, 123, 117, .45); border-radius: 10px; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 38px; border-radius: 7px; font-size: .875rem; font-weight: 800; letter-spacing: .04em; color: var(--ink); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--teal); color: var(--card); }
.lang a:not([aria-current="true"]):hover { background: var(--paper-2); color: var(--ink); }

/* Enamel plaque: the game's cream panels with teal frame and brass rivets */
.plaque {
  position: relative;
  background:
    radial-gradient(circle at 14px 14px, var(--brass) 0 3.5px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 14px) 14px, var(--brass) 0 3.5px, transparent 4.5px),
    radial-gradient(circle at 14px calc(100% - 14px), var(--brass) 0 3.5px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), var(--brass) 0 3.5px, transparent 4.5px),
    var(--card);
  border: 3px solid var(--teal-line);
  border-radius: var(--radius);
  box-shadow: 0 0 0 5px var(--card), 0 0 0 7px rgba(28, 70, 67, .55), 0 22px 48px -18px rgba(20, 47, 45, .55);
  padding: clamp(24px, 3.4vw, 40px);
}
.plaque.is-coral { border-color: var(--coral); }

.eyebrow { font-weight: 800; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: .9em; }
.on-dark .eyebrow { color: #f2b27a; }
/* Turkish casing would turn "iPhone" into "İPHONE"; keep natural case there. */
:lang(tr) .eyebrow { text-transform: none; letter-spacing: .06em; font-size: .875rem; }
.lede { font-size: clamp(1.2rem, 1.9vw, 1.4rem); line-height: 1.45; color: var(--ink); }
.muted { color: var(--ink-2); }
.small { font-size: .9375rem; }

/* Store badge */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.store-badge {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 56px; padding: 8px 20px 9px; border-radius: 12px;
  background: var(--ink); color: var(--on-dark); text-decoration: none; line-height: 1.15;
  border: 2px solid var(--ink);
}
.store-badge span { font-size: .8125rem; font-weight: 700; letter-spacing: .02em; }
.store-badge strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
a.store-badge { transition: transform .18s var(--ease-out), background-color .18s; }
a.store-badge:hover { background: var(--teal-deep); color: var(--on-dark); transform: translateY(-1px); }
.store-badge.is-soon { background: transparent; color: var(--ink); border: 2px dashed var(--teal-line); }
.on-dark .store-badge.is-soon { color: var(--on-dark); border-color: #8fbab4; }
.text-link { font-weight: 800; display: inline-flex; align-items: center; min-height: 44px; }

/* Hero */
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(600px, 86vh, 880px); padding-block: 56px; overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; animation: hero-in 1.4s var(--ease-out) both; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 47, 45, .38) 0%, rgba(20, 47, 45, .08) 55%, transparent 80%); }
.hero .plaque { max-width: 560px; }
.hero h1 { font-size: clamp(3.25rem, 7vw, 5.5rem); margin-bottom: .12em; color: var(--ink); }
.hero h1 { display: flex; align-items: center; gap: .14em; }
.hero h1 .mark { flex: none; width: .6em; height: .6em; }
.hero .store-name { font-weight: 800; color: var(--teal); margin-bottom: .6em; }
@keyframes hero-in { from { opacity: .6; transform: scale(1.04); } to { opacity: 1; transform: none; } }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section.tint { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p { color: var(--ink-2); font-size: 1.1875rem; }

.beats { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(28px, 3vw, 44px); grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: beat; }
.beat { counter-increment: beat; }
.beat img { width: 72px; height: 72px; margin-bottom: 14px; filter: drop-shadow(0 6px 8px rgba(30, 43, 42, .18)); }
.beat h3::before { content: counter(beat) ". "; color: var(--coral); }
.beat p { color: var(--ink-2); max-width: 34ch; }

/* Screenshot band: scrolls inside itself, never the page */
.shots { list-style: none; margin: 0; padding: 4px var(--gutter) 22px; display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 720px); gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-color: var(--teal-line) transparent; }
.shots:focus-visible { outline-offset: -3px; }
.shots li { scroll-snap-align: start; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; aspect-ratio: 2868 / 1320; border-radius: 18px; border: 3px solid var(--teal-deep); background: var(--teal-deep); box-shadow: 0 18px 36px -20px rgba(20, 47, 45, .6); }
.shot figcaption { margin-top: 12px; font-size: 1rem; color: var(--ink-2); max-width: 52ch; }
.shots-hint { font-size: .9375rem; color: var(--ink-2); margin-top: 4px; }

/* Free + purchase */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.art-figure { margin: 0; }
.art-figure figcaption { margin-top: 12px; font-size: .9375rem; color: var(--ink-2); }
.framed-art { border-radius: var(--radius); overflow: hidden; border: 3px solid var(--teal-line); box-shadow: 0 0 0 5px var(--card), 0 0 0 7px rgba(28, 70, 67, .4), 0 24px 48px -24px rgba(20, 47, 45, .55); }
.framed-art img { width: 100%; height: auto; }
.offer { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 18px; }
.offer li { padding-left: 22px; border-left: 4px solid var(--teal-line); }
.offer li.paid { border-left-color: var(--coral); }
.offer strong { display: block; font-size: 1.125rem; }
.offer span { color: var(--ink-2); }

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.platforms .plaque h3 { margin-bottom: .35em; }
.platforms .plaque p { margin: 0; color: var(--ink-2); }
.facts-inline { list-style: none; padding: 0; margin: clamp(28px, 3vw, 40px) 0 0; display: flex; flex-wrap: wrap; gap: 10px 14px; }
.facts-inline li { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1.5px solid rgba(49, 123, 117, .4); font-weight: 700; font-size: .9375rem; }

/* Closing band */
.on-dark { background: var(--teal-deep); color: var(--on-dark); }
.on-dark a { color: #ffd2a8; }
.on-dark .muted { color: var(--on-dark-2); }
.closing { text-align: center; }
.closing .cta-row { justify-content: center; }
.closing p:not(.store-badge) { max-width: 58ch; margin-inline: auto; }
.store-badge { margin: 0; }
.disclaimer { margin-top: 28px; font-size: .9375rem; color: var(--on-dark-2); }

/* Page header for inner pages */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(80px, 12vw, 150px) clamp(40px, 6vw, 70px); }
.page-hero .art { position: absolute; inset: 0; z-index: -1; }
.page-hero .art img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(245, 238, 223, 0) 30%, var(--paper) 100%); }
.page-hero .plaque { max-width: 640px; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.page-plain { padding-block: clamp(48px, 7vw, 88px) clamp(64px, 9vw, 120px); }
.section.tight-top { padding-top: 24px; }
.page-plain h1 { font-size: clamp(2.5rem, 6vw, 4rem); }

/* Prose (support, privacy, impressum, press) */
.prose { max-width: var(--measure); }
.prose-wide { max-width: 900px; }
.prose-full { max-width: none; }
.prose-full > p { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); margin-top: 1.6em; scroll-margin-top: 24px; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose code { font-size: .92em; background: var(--paper-2); padding: .1em .35em; border-radius: 5px; }
.prose address { font-style: normal; }
.ui-label { font-weight: 800; color: var(--ink); background: var(--card); border: 1.5px solid rgba(49, 123, 117, .45); border-radius: 6px; padding: 0 .35em; white-space: nowrap; }
.toc { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; background: var(--card); border: 1.5px solid rgba(49, 123, 117, .45); font-weight: 700; text-decoration: none; color: var(--ink); }
.toc a:hover { border-color: var(--coral); color: var(--coral-deep); }
.contact-card { margin-top: 2em; }
.contact-card .email { font-size: 1.25rem; font-weight: 800; overflow-wrap: anywhere; }

/* Press */
.fact-sheet { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 28px; margin: 0; }
.fact-sheet dt { font-weight: 800; color: var(--teal-deep); }
.fact-sheet dd { margin: 0; }
.downloads { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.downloads figure { margin: 0; }
.downloads img { width: 100%; height: auto; border-radius: 12px; border: 2px solid rgba(28, 70, 67, .5); background: var(--card); }
.downloads .icon-tile img { aspect-ratio: 1; object-fit: contain; padding: 18px; }
.downloads figcaption { margin-top: 8px; font-size: .9375rem; }
.downloads a { font-weight: 800; }

/* Footer */
.site-footer { background: var(--teal-night); color: var(--on-dark-2); padding-block: 48px 40px; font-size: 1rem; }
.site-footer .wrap { display: grid; gap: 22px; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #ffd2a8; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; padding: 0; margin: 0; }
.footer-nav a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--on-dark); font-family: var(--font-display); font-size: 1.375rem; }
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; }
.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .beats { grid-template-columns: 1fr; }
  .beat { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 18px; }
  .beat img { width: 64px; height: 64px; grid-row: span 2; }
  .split { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 1.0625rem; }
  .hero { min-height: 0; padding: 0 0 40px; align-items: start; }
  .hero-art { position: relative; aspect-ratio: 4 / 5; max-height: 72vh; width: 100%; }
  .hero-art::after { background: linear-gradient(180deg, transparent 55%, var(--paper) 100%); }
  .hero .plaque { margin-top: -120px; }
  .fact-sheet { grid-template-columns: 1fr; gap: 2px; }
  .fact-sheet dd { margin-bottom: 12px; }
  .site-header .wrap { min-height: 60px; gap: 0 12px; }
  .site-nav { order: 3; width: 100%; gap: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
