@font-face {
  font-family: 'Cormorant SC';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/_studio/cormorant-sc-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/_studio/alegreya-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Alegreya';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/_studio/alegreya-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/_studio/alegreya-700.woff2') format('woff2');
}

:root {
  --ink: #08130f;
  --panel: #10211a;
  --line: rgb(224 194 122 / 0.22);
  --cream: #fbf6e8;
  --cream-muted: rgb(238 232 214 / 0.78);
  --gold: #e0c27a;
  --gold-light: #f0d48c;
  --gold-dark: #c49d50;
  --on-gold: #1e1a0e;
  --heading: 'Cormorant SC', Georgia, 'Times New Roman', serif;
  --text: 'Alegreya', Georgia, 'Times New Roman', serif;
  --width: 62rem;
  --gutter: 1.25rem;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 400 1.1875rem/1.65 var(--text);
}

a {
  color: var(--gold-light);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--cream);
}

a:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--gold);
  color: var(--on-gold);
}

.skip:focus {
  top: 0.75rem;
}

.top {
  background:
    radial-gradient(120% 90% at 78% -10%, #1f6a4e 0%, #12392c 40%, rgb(8 19 15 / 0) 80%),
    var(--ink);
  border-bottom: 1px solid var(--line);
}

.bar,
.hero,
main,
.foot {
  width: 100%;
  max-width: var(--width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1rem;
}

.wordmark {
  font-family: var(--heading);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--cream);
}

.bar .wordmark {
  font-size: 1.75rem;
  line-height: 1.2;
}

.or {
  color: var(--gold-light);
}

.bar nav {
  display: flex;
  gap: 1.25rem;
}

.bar nav a {
  padding-block: 0.5rem;
  color: var(--cream-muted);
  text-decoration: none;
}

.bar nav a.lang {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.bar nav a:hover {
  color: var(--gold-light);
}

.hero {
  padding-block: clamp(3rem, 12vw, 7rem) clamp(3rem, 10vw, 6rem);
}

h1 {
  margin: 0;
  font-weight: 600;
  line-height: 1.02;
}

h1 .wordmark {
  display: block;
  font-size: clamp(3.4rem, 17vw, 8.5rem);
}

h1 .studio {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--heading);
  font-size: clamp(1.4rem, 5vw, 2.25rem);
  letter-spacing: 0.3em;
  color: var(--cream-muted);
}

.motto {
  margin: 2rem 0 0;
  max-width: 24ch;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-style: italic;
  line-height: 1.25;
  color: var(--gold-light);
}

.lead {
  margin: 1rem 0 0;
  max-width: 34rem;
  text-wrap: balance;
  color: var(--cream-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  min-height: 2.875rem;
  padding: 0.5rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.button-gold {
  background: linear-gradient(var(--gold-light), var(--gold));
  color: var(--on-gold);
}

.button-gold:hover {
  background: var(--cream);
  color: var(--on-gold);
}

.button-ghost {
  border-color: var(--gold-dark);
  color: var(--gold-light);
}

.button-ghost:hover {
  background: rgb(224 194 122 / 0.14);
  color: var(--cream);
}

.note {
  font-weight: 400;
}

/*
 * Google's official badge, unchanged (docs/strona-studia.md): the visible badge is 3.5rem (56 px) high, never under 28 px. The file
 * carries a quarter of the badge height of clear space on every side, so the image is 250/168 of the badge and pulled in to the
 * badge's edge; the gap of .actions keeps the neighbours a quarter of its height away.
 */
.play-badge {
  display: inline-block;
  flex: none;
  line-height: 0;
  border-radius: 0.55rem;
}

.play-badge img {
  display: block;
  height: calc(3.5rem * 1.4881);
  width: auto;
  max-width: none;
  margin: calc(3.5rem * -0.244);
}

.appstore-badge {
  display: inline-block;
  flex: none;
  line-height: 0;
  border-radius: 0.55rem;
}

.appstore-badge img {
  display: block;
  height: 3.5rem;
  width: auto;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.appstore-badge:focus-visible,
.play-badge:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

main {
  padding-block: 1rem 0;
}

main > section {
  padding-block: clamp(2rem, 6vw, 3.5rem);
}

main > section + section {
  border-top: 1px solid var(--line);
}

main > section:last-child {
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0 0 1.25rem;
  font-family: var(--heading);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--gold-light);
}

h3 {
  margin: 0 0 0.5rem;
  font-family: var(--heading);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

h3 a {
  color: var(--cream);
  text-decoration: none;
}

h3 a:hover {
  color: var(--gold-light);
}

main p {
  max-width: 40rem;
  margin: 0 0 1rem;
  text-wrap: pretty;
}

.games {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 48rem) {
  .games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
}

.card-picture {
  display: block;
  line-height: 0;
}

.card-picture img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
}

.card-status {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--gold-light);
}

.card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.card-body p {
  max-width: none;
}

.card-text {
  display: flow-root;
}

.card-shot {
  float: right;
  width: 6.5rem;
  margin: 0.15rem 0 0.5rem 1rem;
  line-height: 0;
}

.card-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid #222;
  border-radius: 0.9rem;
  box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.7);
}

.card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.card-facts li {
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--cream-muted);
}

.hero-actions {
  align-items: center;
  gap: 1rem 1.5rem;
}

.hero-play {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0;
}

.hero-play-note {
  font-size: 0.8rem;
  color: var(--cream-muted);
}

.card .actions {
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.card .more {
  margin: 1.25rem 0 0;
}

.card-soon {
  border-style: dashed;
  background: transparent;
  color: var(--cream-muted);
}

.foot {
  padding-block: 2rem 3rem;
  color: var(--cream-muted);
  font-size: 1rem;
}

.foot p {
  margin: 0 0 0.5rem;
}
