/* Aritan Games studio site. One stylesheet for every studio page. */
@font-face {
  font-family: "Fredoka";
  src: url("fredoka-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fredoka";
  src: url("fredoka-hebrew-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Fredoka";
  src: url("nunito-cyrillic-800.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg: #fff7ec;
  --surface: #ffffff;
  --surface-2: #fdeedb;
  --ink: #1f1b2e;
  --ink-2: #5b5468;
  --line: #ecdcc6;
  --accent: #d0281b; /* brand red #F5372A darkened for 4.5:1 text contrast */
  --accent-ink: #ffffff;
  --bakery: #fde3d9;
  --arrow: #fff1b8;
  --hex: #dcf0f3;
  --shadow: 0 1px 2px rgba(31, 27, 46, 0.06), 0 8px 24px rgba(31, 27, 46, 0.08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17141f;
    --surface: #221e2c;
    --surface-2: #2a2536;
    --ink: #f6f1ea;
    --ink-2: #b9b0c4;
    --line: #3a3447;
    --accent: #ff6a4d;
    --accent-ink: #1b1220;
    --bakery: #3a2420;
    --arrow: #3a3420;
    --hex: #1f3236;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17141f;
  --surface: #221e2c;
  --surface-2: #2a2536;
  --ink: #f6f1ea;
  --ink-2: #b9b0c4;
  --line: #3a3447;
  --accent: #ff6a4d;
  --accent-ink: #1b1220;
  --bakery: #3a2420;
  --arrow: #3a3420;
  --hex: #1f3236;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.display { font-family: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; font-weight: 600; letter-spacing: -0.01em; }

/* Header */
.site-header { padding-block: 20px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand picture { display: block; line-height: 0; }
.brand-logo { display: block; height: 46px; width: auto; }
@media (max-width: 480px) { .brand-logo { height: 40px; } }
.nav { display: flex; gap: 24px; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: 40px 56px; }
.hero .wrap { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.hero-text { flex: 1 1 420px; min-width: 0; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; margin: 0 0 20px; text-wrap: balance; }
.hero p { font-size: 19px; color: var(--ink-2); margin: 0 0 28px; max-width: 34em; }
.hero-art { flex: 1 1 300px; min-width: 0; display: flex; justify-content: center; }
.icon-stack { position: relative; width: 300px; height: 260px; max-width: 100%; }
.icon-stack img { position: absolute; width: 150px; height: 150px; border-radius: 34px; box-shadow: var(--shadow); }
.icon-stack img:nth-child(1) { left: 0; top: 70px; transform: rotate(-9deg); }
.icon-stack img:nth-child(2) { left: 75px; top: 0; transform: rotate(4deg); z-index: 2; }
.icon-stack img:nth-child(3) { left: 150px; top: 90px; transform: rotate(10deg); }

.button {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 16px; text-decoration: none;
}
.button:hover { filter: brightness(1.05); }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.button.soon { background: var(--surface-2); color: var(--ink-2); cursor: default; }

/* Sections */
.section { padding-block: 56px; }
.section h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 8px; }
.section .lead { color: var(--ink-2); margin: 0 0 32px; }

/* Game cards */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--surface); border-radius: 28px; box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; min-width: 0;
}
.card-top { padding: 28px 28px 20px; display: flex; gap: 18px; align-items: center; }
.card.bakery .card-top { background: var(--bakery); }
.card.arrow .card-top { background: var(--arrow); }
.card.hex .card-top { background: var(--hex); }
.card-top img { width: 84px; height: 84px; border-radius: 20px; flex: none; box-shadow: var(--shadow); }
.card h3 { font-size: 24px; margin: 0; line-height: 1.15; }
.card .tag { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.card-body { padding: 20px 28px 28px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.card-body p { margin: 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.card-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 15px; }
.status { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }

/* About and contact */
.about { background: var(--surface-2); }
.about .wrap { display: flex; gap: 40px; flex-wrap: wrap; }
.about .col { flex: 1 1 300px; min-width: 0; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facts li { display: flex; gap: 12px; align-items: baseline; }
.facts li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); flex: none; transform: translateY(-1px); }
.email { font-size: 20px; font-weight: 700; word-break: break-word; }

/* Game page */
.game-hero { padding-block: 32px 24px; }
.game-hero .wrap { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.game-hero img { width: 140px; height: 140px; border-radius: 32px; box-shadow: var(--shadow); flex: none; }
.game-hero .text { flex: 1 1 320px; min-width: 0; }
.game-hero h1 { font-size: clamp(34px, 5vw, 48px); margin: 0; line-height: 1.1; }
.game-hero .tag { font-size: 19px; color: var(--ink-2); margin: 6px 0 20px; }
.features { padding-left: 1.1em; margin: 0; display: grid; gap: 8px; max-width: 42em; }
.prose { max-width: 42em; }

/* Footer */
.site-footer { padding-block: 32px 48px; color: var(--ink-2); font-size: 15px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); }

/* Language switcher */
.header-right { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.langs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.langs a { padding: 4px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.langs a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* Right-to-left pages */
[dir="rtl"] .icon-stack img:nth-child(1) { transform: rotate(9deg); }
[dir="rtl"] .icon-stack img:nth-child(3) { transform: rotate(-10deg); }
[dir="rtl"] .features { padding-left: 0; padding-right: 1.1em; }

/* Work with us */
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.package { background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.package h3 { font-size: 24px; margin: 0; }
.package .for { color: var(--ink-2); margin: 0; }
.package ul { margin: 0; padding-inline-start: 1.1em; display: grid; gap: 6px; }
.price { margin-top: auto; font-weight: 800; font-size: 20px; }
.price small { font-weight: 600; font-size: 15px; color: var(--ink-2); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps li { counter-increment: step; background: var(--surface); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #ffc83a; color: #1f1b2e; font-weight: 800; margin-bottom: 10px; }
.portfolio { display: flex; gap: 20px; flex-wrap: wrap; }
.portfolio a { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; }
.portfolio img { width: 56px; height: 56px; border-radius: 14px; box-shadow: var(--shadow); }

.form { background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); padding: 28px; display: grid; gap: 16px; max-width: 720px; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input, .form select, .form textarea {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; width: 100%; min-width: 0;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid #ffc83a; outline-offset: 1px; border-color: transparent; }
.form button { justify-self: start; border: 0; cursor: pointer; }
.form .note { font-size: 14px; color: var(--ink-2); margin: 0; }
.hidden-field { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.terms { background: var(--surface-2); border-radius: 22px; padding: 22px 26px; max-width: 46em; }
.terms p { margin: 0; }

/* Business page: how we work */
.how { background: var(--surface-2); }
.how .wrap { display: grid; gap: 28px; }
.how h2 { margin: 0; }
.terms h3 { margin: 0 0 8px; font-size: 22px; }
.how .terms { background: var(--surface); box-shadow: var(--shadow); }
