/* Rumelia on www.ecomcio.com/rumelia. The game's own look: parchment pages, a navy frontier banner
   framed in gold, ink-brown text. Cormorant Garamond for titles and EB Garamond (the game's text face)
   for reading, both OFL and served from this site: no request leaves the page. Light only, like the
   game's parchment screens. */
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/CormorantGaramond-SemiBold-latin.woff2") format("woff2"); font-weight: 600; font-display: swap;
  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: "Cormorant Garamond"; src: url("../fonts/CormorantGaramond-SemiBold-latin-ext.woff2") format("woff2"); font-weight: 600; font-display: swap;
  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: "EB Garamond"; src: url("../fonts/EBGaramond-Regular-latin.woff2") format("woff2"); font-weight: 400; font-display: swap;
  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: "EB Garamond"; src: url("../fonts/EBGaramond-Regular-latin-ext.woff2") format("woff2"); font-weight: 400; font-display: swap;
  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: "EB Garamond"; src: url("../fonts/EBGaramond-SemiBold-latin.woff2") format("woff2"); font-weight: 600; font-display: swap;
  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: "EB Garamond"; src: url("../fonts/EBGaramond-SemiBold-latin-ext.woff2") format("woff2"); font-weight: 600; font-display: swap;
  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 {
  --parchment: #EFE3C8; --parchment-hi: #F5ECD7; --vellum: #FBF6EA; --edge: #DCCBA4; --edge-dark: #C4AE80;
  --navy: #1A4E7C; --navy-deep: #123A5E; --navy-night: #0D2B47;
  --gold: #C9A24B; --gold-soft: #E2C887; --gold-text: #7D5E1C;
  --ink: #2C2417; --ink-2: #3D3324; --ink-3: #574A36; --ink-4: #6E5F48;
  --on-navy: #F3EAD6; --on-navy-dim: #D6CAB0;
  --link: #1A4E7C; --link-hover: #0D2B47;
  --display: "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif;
  --body: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink); font: 400 19px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  background-color: var(--parchment);
  background-image: radial-gradient(ellipse 120% 70% at 50% 0%, #F6EDD9 0%, rgba(246, 237, 217, 0) 70%),
    radial-gradient(ellipse 140% 90% at 50% 100%, #E6D5B0 0%, rgba(230, 213, 176, 0) 60%);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
strong { font-weight: 600; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.skip { position: absolute; left: 8px; top: -60px; background: var(--gold); color: var(--ink); font: 600 16px var(--body); padding: 10px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.page { min-height: 100vh; display: flex; flex-direction: column; }

/* Header: the navy banner with a double gold rule beneath it */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--navy-deep); border-bottom: 2px solid var(--gold); box-shadow: 0 3px 0 var(--navy-deep), 0 4px 0 var(--gold-soft); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--on-navy); text-decoration: none; font: 600 27px/1 var(--display); letter-spacing: 0.02em; }
.brand img { width: 38px; height: 38px; border-radius: 9px; box-shadow: 0 0 0 1px var(--gold); }
.brand:hover { color: #FFFFFF; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font: 600 17px var(--body); }
.nav a { color: var(--on-navy); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-soft); border-bottom-color: var(--gold); }
.lang-select { min-height: 44px; padding: 8px 36px 8px 14px; border: 1px solid var(--gold); border-radius: 999px; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23E2C887' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--on-navy); font: 600 16px var(--body); appearance: none; -webkit-appearance: none; cursor: pointer; }
.lang-select:hover { border-color: var(--gold-soft); }
.lang-select option { color: var(--ink); background: #FFFFFF; }
@media (max-width: 640px) { .site-header .wrap { gap: 6px 14px; } .nav { order: 3; width: 100%; gap: 2px 16px; } .brand { font-size: 24px; } }

/* A gold rule with a lozenge, used between title and text */
.rule { display: flex; align-items: center; gap: 12px; color: var(--gold); margin: 0; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: 0.8; }
.rule span { width: 9px; height: 9px; background: currentColor; transform: rotate(45deg); flex-shrink: 0; }

/* Hero (landing page) */
.hero { padding: clamp(28px, 5vw, 56px) 0 0; }
.banner { position: relative; background: var(--navy-deep); color: var(--on-navy); border-radius: 6px; padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 64px);
  box-shadow: inset 0 0 0 6px var(--navy-deep), inset 0 0 0 7px var(--gold), inset 0 0 0 11px var(--navy-deep), inset 0 0 0 12px rgba(201, 162, 75, 0.55), 0 18px 40px -24px rgba(13, 43, 71, 0.8);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.banner .icon { width: clamp(72px, 10vw, 104px); height: auto; border-radius: 22%; box-shadow: 0 0 0 2px var(--gold), 0 8px 24px -10px rgba(0, 0, 0, 0.6); }
.banner .eyebrow { margin: 0; font: 600 15px var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); }
.banner h1 { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 clamp(52px, 10vw, 104px)/0.9 var(--display); letter-spacing: 0.01em; color: var(--on-navy); }
.banner h1 .sub-title { font-size: clamp(18px, 2.4vw, 26px); line-height: 1.2; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.banner .rule { width: min(100%, 360px); }
.banner .lead { margin: 0; max-width: 30ch; font: 600 clamp(24px, 3.2vw, 34px)/1.2 var(--display); color: var(--on-navy); }
.banner .sub { margin: 0; max-width: 62ch; font-size: clamp(17px, 1.8vw, 20px); color: var(--on-navy-dim); }
.banner .free { margin: 4px 0 0; font: 600 17px var(--body); color: var(--gold-soft); }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.feature { background: var(--parchment-hi); border: 1px solid var(--edge); border-top: 3px double var(--gold); border-radius: 4px; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 10px 24px -20px rgba(44, 36, 23, 0.55); }
.feature h3 { margin: 0; font: 600 25px/1.15 var(--display); color: var(--navy-deep); }
.feature p { margin: 0; font-size: 17px; color: var(--ink-2); }

/* Hero art: the store's watercolour in a gold frame; the navy banner overlaps its lower edge */
.hero-art { margin: 0; width: 100%; border-radius: 6px; overflow: hidden; background: var(--edge); aspect-ratio: 1920 / 823;
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 5px var(--parchment-hi), 0 0 0 6px rgba(201, 162, 75, 0.55), 0 22px 44px -28px rgba(44, 36, 23, 0.7); }
.hero-art img { display: block; width: 100%; height: auto; }
.hero-art + .banner { width: min(100% - 2 * clamp(0px, 4vw, 48px), 980px); margin: clamp(-120px, -9vw, -24px) auto 0; z-index: 1; }

/* Store badges and QR codes (the Döner Masters structure) */
.store-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; margin-top: 6px; }
.store-links[hidden] { display: none; }
.store-links .badge { display: inline-flex; border-radius: 10px; transition: transform 0.15s ease; }
.store-links .badge:hover { transform: translateY(-2px); }
.store-links .badge img { display: block; height: 52px; width: auto; }
.store-qr { display: flex; gap: 14px; }
.store-qr figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--vellum); border-radius: 6px; padding: 8px; box-shadow: 0 0 0 1px var(--gold), 0 6px 16px -10px rgba(0, 0, 0, 0.6); }
.store-qr img { width: 116px; height: 116px; image-rendering: pixelated; }
.store-qr img[hidden] { display: none; }
.store-qr figcaption { font: 600 13px var(--body); letter-spacing: 0.04em; color: var(--ink); }
@media (max-width: 760px), (hover: none) { .store-qr { display: none; } }

/* Section headings on the landing page */
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-top: clamp(18px, 4vw, 40px); }
.section-head .eyebrow { margin: 0; font: 600 14px var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-text); }
.section-head h2 { margin: 0; font: 600 clamp(32px, 4.6vw, 48px)/1.08 var(--display); color: var(--navy-deep); }
.section-head .rule { width: min(100%, 300px); }

/* Screenshot gallery: a row that scrolls sideways, snapping to each frame */
.gallery { display: flex; flex-direction: column; gap: 18px; }
.shots { list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 18px; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(210px, 24vw, 280px); gap: clamp(14px, 2vw, 22px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.shots:focus-visible { outline-offset: -3px; }
.shots li { scroll-snap-align: start; }
.shots img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--edge); box-shadow: 0 0 0 1px var(--edge-dark), 0 16px 30px -18px rgba(44, 36, 23, 0.65); }
.shots-hint { margin: -8px 0 0; text-align: center; font-size: 15px; color: var(--ink-4); }

/* Story intro above the feature cards */
.story { display: flex; flex-direction: column; gap: 18px; }
.story .sub { margin: 0 auto; max-width: 66ch; text-align: center; font-size: clamp(18px, 1.9vw, 21px); color: var(--ink-2); }

/* Document pages */
.doc { flex: 1; width: 100%; max-width: 900px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) max(var(--gutter), env(safe-area-inset-right)) 72px max(var(--gutter), env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 22px; }
.doc--wide { max-width: 1120px; }
.doc--wide .paper { width: 100%; max-width: 900px; margin: 0 auto; }
.doc-head { background: var(--navy-deep); border-radius: 6px; padding: clamp(22px, 3.5vw, 34px) clamp(22px, 4vw, 40px);
  box-shadow: inset 0 0 0 5px var(--navy-deep), inset 0 0 0 6px var(--gold), 0 14px 32px -24px rgba(13, 43, 71, 0.8);
  display: flex; flex-direction: column; gap: 8px; }
.doc-head .eyebrow { margin: 0; font: 600 14px var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); }
.doc-head h1 { margin: 0; font: 600 clamp(34px, 5vw, 54px)/1.05 var(--display); color: var(--on-navy); -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }
.doc-head .updated { margin: 0; font: 400 17px var(--body); color: var(--on-navy-dim); }
.paper { background: var(--parchment-hi); border: 1px solid var(--edge); border-radius: 4px; padding: clamp(22px, 4vw, 44px);
  box-shadow: inset 0 0 0 4px var(--parchment-hi), inset 0 0 0 5px rgba(201, 162, 75, 0.45), 0 16px 34px -26px rgba(44, 36, 23, 0.6);
  display: flex; flex-direction: column; gap: 14px; }
.paper h2 { margin: 22px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--edge-dark); font: 600 30px/1.15 var(--display); color: var(--navy-deep); }
.paper h2:first-child { margin-top: 0; }
.paper h3 { margin: 10px 0 0; font: 600 20px/1.3 var(--body); color: var(--ink); }
.paper p, .paper li { max-width: 70ch; color: var(--ink-2); }
.paper p { margin: 0; }
.paper ul, .paper ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.paper ul li::marker { color: var(--gold-text); }
.paper .box { background: var(--vellum); border: 1px solid var(--edge); border-left: 4px solid var(--gold); border-radius: 4px; padding: 16px 20px; color: var(--ink); max-width: none; }
.paper .box strong { font-family: var(--display); font-size: 1.15em; color: var(--navy-deep); }
.rows { display: flex; flex-direction: column; gap: 10px; }
.row { background: var(--vellum); border: 1px solid var(--edge); border-left: 3px solid var(--navy); border-radius: 4px; padding: 14px 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 6px 20px; font-size: 17px; }
.row p { margin: 0; max-width: none; }
.row .what { color: var(--ink); font-weight: 600; }
.row .k { display: block; font: 600 13px var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); }
ol.steps { list-style: none; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
ol.steps li { counter-increment: step; background: var(--vellum); border: 1px solid var(--edge); border-top: 3px double var(--gold); border-radius: 4px; padding: 16px 18px; color: var(--ink); max-width: none; }
ol.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 10px; border-radius: 50%; background: var(--navy-deep); color: var(--gold-soft); box-shadow: 0 0 0 2px var(--gold); font: 600 22px/1 var(--display); }
.links { list-style: none; padding: 0 !important; display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 10px 14px !important; }
.links a { display: inline-block; padding: 8px 16px; border: 1px solid var(--navy); border-radius: 999px; text-decoration: none; font-weight: 600; background: var(--vellum); }
.links a:hover { background: var(--navy-deep); color: var(--on-navy); border-color: var(--navy-deep); }

/* Footer */
.site-footer { background: var(--navy-night); color: var(--on-navy-dim); padding: 34px 0 40px; border-top: 2px solid var(--gold); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 16px; }
.site-footer .top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.site-footer .top img { height: 22px; width: auto; opacity: 0.9; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font: 600 17px var(--body); }
.site-footer a { color: var(--on-navy); }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer p { margin: 0; font-size: 15px; color: #BFB49B; }
