/* Mas Raz Ltd — shared stylesheet */

:root {
  --ground:    #F3F4F6;
  --surface:   #FFFFFF;
  --sunk:      #E8EAEE;
  --ink:       #15181E;
  --ink-soft:  #4C5462;
  --ink-faint: #7A8494;
  --rule:      #D8DBE1;
  --rule-firm: #BFC4CD;
  --accent:    #B26A0F;
  --accent-tint: #F6EADA;

  --f-display: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --f-body:    "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:    #0F1216;
    --surface:   #171B22;
    --sunk:      #13171D;
    --ink:       #E6E9ED;
    --ink-soft:  #A2ABB8;
    --ink-faint: #78828F;
    --rule:      #272D36;
    --rule-firm: #38404B;
    --accent:    #E2A257;
    --accent-tint: #2A2015;
  }
}

:root[data-theme="dark"] {
  --ground:    #0F1216;
  --surface:   #171B22;
  --sunk:      #13171D;
  --ink:       #E6E9ED;
  --ink-soft:  #A2ABB8;
  --ink-faint: #78828F;
  --rule:      #272D36;
  --rule-firm: #38404B;
  --accent:    #E2A257;
  --accent-tint: #2A2015;
}

* { box-sizing: border-box; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.1rem, 5vw, 2rem) 4rem;
}

.wrap--wide { max-width: 54rem; }

/* masthead */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.2rem;
  margin-bottom: 2.8rem;
  border-bottom: 1px solid var(--rule);
}

.logo {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-mark {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  display: block;
}

.site-nav {
  display: flex;
  gap: 1.3rem;
  font-size: 0.95rem;
}

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

/* type */

h1 {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 5.5vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0 0 0.85rem;
}

h2 {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 2.6rem 0 0.9rem;
}

h3 {
  font-family: var(--f-display);
  font-size: 1.02rem;
  font-weight: 600;
  margin: 1.8rem 0 0.5rem;
}

.lede {
  font-size: 1.16rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

p { margin: 0 0 1rem; }

a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

ul { padding-left: 1.15rem; margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }

strong { font-weight: 600; }

.eyebrow {
  font-family: var(--f-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.8rem;
}

.meta {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin: 0 0 2.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}

/* app cards */

.apps {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 2rem 0 0;
}

.app {
  background: var(--surface);
  padding: 1.5rem 1.6rem;
  display: block;
  text-decoration: none;
  color: inherit;
}

.app:hover { background: var(--sunk); }

.app-name {
  font-family: var(--f-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0 0 0.3rem;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.badge {
  font-family: var(--f-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 0.18rem 0.45rem;
  border-radius: 2px;
}

.app-desc { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

/* callout */

.note {
  border-left: 3px solid var(--accent);
  background: var(--sunk);
  padding: 0.9rem 1.15rem;
  margin: 1.4rem 0;
  font-size: 0.98rem;
}
.note > :last-child { margin-bottom: 0; }

/* contact */

.contact {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 1.4rem 1.6rem;
  margin: 1.6rem 0;
}
.contact > :last-child { margin-bottom: 0; }

.contact-addr {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* footer */

.site-foot {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding-top: 1.5rem;
  font-size: 0.87rem;
  color: var(--ink-faint);
  line-height: 1.6;
}

.site-foot a { color: var(--ink-soft); }

.foot-legal { margin: 0 0 0.8rem; }

.foot-links {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin: 0;
}

/* ---------- store buttons ---------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--rule-firm);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--f-display);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
  transition: border-color .15s, background .15s;
}

.store-btn:hover { border-color: var(--accent); background: var(--sunk); }

.store-btn svg { width: 1.05rem; height: 1.05rem; flex: none; }

.store-btn small {
  display: block;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* a live store: the store's own badge artwork, never redrawn or recoloured.
   The PNG carries its own margin (the guidelines' clear space), so the image
   is taller than the visible badge and sits centred beside the buttons. */
.stores { align-items: center; }
.store-badge { display: inline-block; line-height: 0; border-radius: 6px; }
.store-badge img { display: block; height: 3.6rem; width: auto; }
.store-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.foot-tm { font-size: 0.72rem; color: var(--ink-faint); margin: 0.4rem 0 0; }

/* not yet released: present but inert */
.store-btn--pending {
  opacity: 0.55;
  cursor: not-allowed;
  border-style: dashed;
}
.store-btn--pending:hover { border-color: var(--rule-firm); background: var(--surface); }

/* how it plays: the text beside a short silent loop of real play */
.how { display: grid; gap: 1.4rem; align-items: start; }
@media (min-width: 40rem) { .how { grid-template-columns: 1fr 13rem; } }
.play-video { margin: 0; justify-self: center; width: 13rem; max-width: 100%; }
.play-video video { display: block; width: 100%; height: auto; border-radius: 12px;
                    border: 1px solid var(--rule); background: #0a120d; }
.play-video figcaption { margin-top: 0.45rem; font-size: 0.8rem; line-height: 1.35;
                         color: var(--ink-soft); text-align: center; }

/* screenshots: a strip that scrolls sideways on narrow screens */
.shots {
  display: flex;
  gap: 0.9rem;
  margin: 1.4rem 0 1.6rem;
  padding: 0 0 0.6rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shots li { flex: 0 0 auto; width: 9.5rem; scroll-snap-align: start; }
.shots a { display: block; line-height: 0; border-radius: 10px; overflow: hidden;
           border: 1px solid var(--rule); background: var(--sunk); }
.shots img { display: block; width: 100%; height: auto; }
.shots a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shots span { display: block; margin-top: 0.45rem; font-size: 0.8rem; line-height: 1.35;
              color: var(--ink-soft); }

/* app card additions */

.app-card {
  background: var(--surface);
  padding: 1.5rem 1.6rem;
}

.app-card .app-name { margin-bottom: 0.35rem; }
