/* Binogure Studio, 2026 redesign. Plain CSS, no build step. */

:root {
  --ink: #13233f;
  --ink-soft: #4a5b78;
  --sky: #0a8fe3;
  --sky-deep: #0067b1;
  --mist: #e6f4ff;
  --paper: #ffffff;
  --honey: #ffc233;
  --honey-deep: #f0a800;
  --airmail-red: #d9434c;
  --line: #cfe2f3;

  --font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;

  --shell: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-space: clamp(64px, 9vw, 128px);
  --radius: 10px;

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--sky-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h3 { font-size: 1.6rem; font-weight: 700; }
p { margin: 0 0 1em; }

.shell { width: min(var(--shell), 100% - 2 * var(--gutter)); margin-inline: auto; }
.shell-narrow { width: min(760px, 100% - 2 * var(--gutter)); }
.section { padding-block: var(--section-space); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0.7em 1.4em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 40px; padding: 0.45em 1.1em; font-size: 0.98rem; }
.btn-block { width: 100%; }

.btn-honey { background: var(--honey); color: var(--ink); box-shadow: 0 3px 0 var(--honey-deep); }
.btn-honey:hover { background: #ffd05c; color: var(--ink); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--sky-deep); color: #fff; }

.btn-ghost { border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.btn-ghost-ink { border-color: var(--ink); color: var(--ink); }

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  letter-spacing: -0.01em; color: var(--ink); text-decoration: none; margin: 0;
}
.brand img { width: 44px; height: 44px; }

.site-nav { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 28px); }
.site-nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 700;
  padding-block: 6px; border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--sky); }
.site-nav .lang-switch {
  font-size: 0.9rem; padding: 4px 10px !important;
  border: 1.5px solid var(--line) !important; border-radius: 6px;
}

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label { display: none; }

@media (max-width: 860px) {
  .nav-toggle-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; cursor: pointer; padding: 8px 12px;
    border: 1.5px solid var(--line); border-radius: 8px;
  }
  .nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--sky); outline-offset: 2px; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px var(--gutter) 20px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(19, 35, 63, 0.12);
  }
  .site-nav a:not(.btn) { padding: 12px 4px; }
  .site-nav .lang-switch { align-self: flex-start; margin-block: 6px; }
  .site-nav .btn { margin-top: 8px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(560px, 86vh, 860px);
  display: flex; align-items: center;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}

.hero-slides { position: absolute; inset: 0; z-index: -1; --slide-time: 6s; }

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  animation: hero-cycle calc(var(--slide-count) * var(--slide-time)) infinite;
  animation-delay: calc(var(--i) * var(--slide-time) - 0.9s);
  animation-fill-mode: backwards;
}
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  animation: hero-drift calc(var(--slide-count) * var(--slide-time)) infinite linear;
  animation-delay: inherit;
}
/* Legibility: darken the left side (text) and the bottom (caption), per slide so the caption sits above it. */
.hero-slide::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(19, 35, 63, 0.94) 0%, rgba(19, 35, 63, 0.84) 40%, rgba(19, 35, 63, 0.15) 74%),
    linear-gradient(0deg, rgba(19, 35, 63, 0.75) 0%, rgba(19, 35, 63, 0) 36%);
}

/* One slot = 100% / 6 = 16.667%. Fade in, hold, cross-fade out over the next slide. */
@keyframes hero-cycle {
  0%      { opacity: 0; visibility: hidden; }
  2.5%    { opacity: 1; visibility: visible; }
  16.667% { opacity: 1; visibility: visible; }
  19.5%   { opacity: 0; visibility: visible; }
  19.6%, 100% { opacity: 0; visibility: hidden; }
}
@keyframes hero-drift {
  0%   { transform: scale(1.06); }
  20%  { transform: scale(1); }
  100% { transform: scale(1); }
}

.hero-caption {
  position: absolute; z-index: 2;
  right: var(--gutter); bottom: clamp(20px, 4vw, 40px);
  margin: 0;
  max-width: 340px;
  display: grid; gap: 2px;
  text-align: right;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.hero-caption-game { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; }
.hero-caption-line { font-size: 0.98rem; opacity: 0.92; }
.hero-caption a { color: var(--honey); font-weight: 700; justify-self: end; margin-top: 4px; }
.hero-caption a.hero-caption-game { color: #fff; text-decoration: none; justify-self: end; margin: 0; }
.hero-caption a.hero-caption-game:hover { text-decoration: underline; }

.hero-content { position: relative; z-index: 4; padding-block: 72px 120px; }
.hero-content { pointer-events: none; }
.hero-content > * { pointer-events: auto; }
.hero h1 {
  font-size: clamp(2.8rem, 7.4vw, 6.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.022em;
  max-width: 11ch;
  margin-bottom: 0.32em;
  text-wrap: balance;
}
.hero-lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); max-width: 34em; opacity: 0.95; margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 700px) {
  .hero { align-items: flex-end; }
  .hero-slide::after {
    background:
      linear-gradient(180deg, rgba(19, 35, 63, 0.75) 0, rgba(19, 35, 63, 0) 90px),
      linear-gradient(0deg, rgba(19, 35, 63, 0.97) 0%, rgba(19, 35, 63, 0.86) 58%, rgba(19, 35, 63, 0.3) 100%);
  }
  .hero-content { padding-block: 140px 96px; }
  .hero-caption {
    top: 18px; bottom: auto; left: var(--gutter); max-width: none;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; text-align: left;
  }
  .hero-caption-game { font-size: 1.05rem; }
  .hero-caption-line { display: none; }
  .hero-caption a { margin: 0; font-size: 0.95rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide, .hero-slide img { animation: none; }
  .hero-slide:first-child { opacity: 1; visibility: visible; }
}

/* Section heads ---------------------------------------------------------- */

.section-head { max-width: 40em; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-bottom: 0.3em; }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; margin: 0; }

/* Games ------------------------------------------------------------------ */

.game-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px); }

.game { display: grid; gap: 22px; align-content: start; }
.game-cover { display: block; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.game-cover img { width: 100%; aspect-ratio: 920 / 430; object-fit: cover; transition: transform 0.4s ease; }
.game-cover:hover img { transform: scale(1.03); }

.game h3 { margin-bottom: 0.35em; }
.game h3 a { color: inherit; text-decoration: none; }
.game h3 a:hover { color: var(--sky-deep); text-decoration: underline; text-decoration-thickness: 2px; }

.game-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.game-website { font-weight: 700; }
.game-pitch { color: var(--ink-soft); max-width: 36em; }

.game-facts { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 6px; }
.game-facts li { position: relative; padding-left: 26px; font-weight: 700; }
.game-facts li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--sky); box-shadow: 0 0 0 3px var(--mist);
}

.game-featured { grid-column: 1 / -1; grid-template-columns: 1.35fr 1fr; align-items: center; gap: clamp(24px, 4vw, 56px); }
.game-featured h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); }

.badge {
  display: inline-block; margin: 0 0 12px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--honey); color: var(--ink);
  font-weight: 700; font-size: 0.92rem;
}

@media (max-width: 860px) {
  .game-list { grid-template-columns: 1fr; }
  .game-featured { grid-template-columns: 1fr; }
}

/* Newsletter: the postcard ------------------------------------------------ */

.newsletter {
  background-color: var(--mist);
  background-image: radial-gradient(rgba(10, 143, 227, 0.16) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
}

.postcard {
  padding: 12px;
  border-radius: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--airmail-red) 0 16px, #fff 16px 26px,
    var(--sky-deep) 26px 42px, #fff 42px 52px
  );
  box-shadow: 0 24px 60px -24px rgba(19, 35, 63, 0.45);
  transform: rotate(-0.6deg);
}

.postcard-paper {
  display: grid;
  grid-template-columns: 1.1fr 1px 0.9fr;
  gap: clamp(24px, 4vw, 56px);
  background: var(--paper);
  border-radius: 2px;
  padding: clamp(24px, 5vw, 64px);
}
/* The vertical rule of a real postcard. */
.postcard-paper::before {
  content: ""; grid-column: 2; grid-row: 1; background: var(--line);
}
.postcard-message { grid-column: 1; grid-row: 1; transform: rotate(0.6deg); }
.postcard-address { grid-column: 3; grid-row: 1; transform: rotate(0.6deg); display: grid; align-content: start; gap: 20px; }

.postcard h2 { margin-bottom: 0.4em; }
.postcard-lead { font-size: 1.2rem; max-width: 30em; }

.perks { list-style: none; padding: 0; margin: 1.6em 0; display: grid; gap: 14px; }
.perks li {
  position: relative; padding-left: 40px; max-width: 32em;
}
.perks li::before {
  content: ""; position: absolute; left: 0; top: 0.05em;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--honey) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2313233f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.signature { margin: 0; color: var(--ink-soft); }
.signature span {
  display: block;
  font-family: var(--font-hand); font-weight: 600; font-size: 2.6rem; line-height: 1;
  color: var(--sky-deep); transform: rotate(-3deg); transform-origin: left; margin-bottom: 2px;
}

/* Stamp with perforated edges: a grid of holes centred on the edges, covered in the middle. */
.stamp-area { position: relative; height: 150px; }
.stamp {
  position: absolute; right: 8px; top: 0;
  width: 120px; height: 144px; padding: 10px;
  background: radial-gradient(circle, transparent 4.5px, #fff 5px) -6px -6px / 12px 12px;
  filter: drop-shadow(0 2px 3px rgba(19, 35, 63, 0.3));
  transform: rotate(4deg);
}
.stamp-face {
  height: 100%; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--honey) 0%, #ffd873 100%);
}
.stamp-face img { width: 82px; height: 82px; }
.postmark {
  position: absolute; right: 70px; top: 26px;
  width: 200px; height: 120px;
  color: rgba(19, 35, 63, 0.55);
  font-family: var(--font-body);
  transform: rotate(-12deg);
  pointer-events: none;
}

.subscribe { display: grid; gap: 14px; }
.subscribe label { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.subscribe input[type="email"] {
  width: 100%; min-height: 56px;
  padding: 12px 16px;
  font: inherit; font-size: 1.1rem; color: var(--ink);
  background: var(--mist);
  border: 2px solid var(--line); border-bottom: 3px solid var(--ink);
  border-radius: 8px 8px 2px 2px;
}
.subscribe input[type="email"]::placeholder { color: #7d8ca3; }
.subscribe input[type="email"]:focus { outline: none; border-color: var(--sky); background: #fff; }
.subscribe .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.h-captcha { min-height: 78px; }
.fine-print { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

.teaser {
  margin: clamp(40px, 6vw, 72px) 0 0;
  display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(20px, 4vw, 48px);
  align-items: center;
}
.teaser-image { border-radius: var(--radius); overflow: hidden; background: var(--ink); position: relative; }
/* The blur is baked into the file itself: the sharp screenshot is never published. */
.teaser-image img { filter: saturate(1.2); opacity: 0.9; }
.teaser-image::after {
  content: "?"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 5rem; color: #fff;
  text-shadow: 0 4px 24px rgba(19, 35, 63, 0.6);
}
.teaser figcaption { font-size: 1.15rem; max-width: 28em; }
.teaser figcaption strong { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; margin-bottom: 0.3em; }

@media (max-width: 900px) {
  .postcard { transform: none; }
  .postcard-message, .postcard-address { transform: none; }
  .postcard-paper { grid-template-columns: 1fr; }
  .postcard-paper::before { display: none; }
  .postcard-message, .postcard-address { grid-column: 1; grid-row: auto; }
  .postcard-address { border-top: 1px solid var(--line); padding-top: 28px; }
  .stamp-area { height: 120px; order: -1; }
  .stamp { width: 96px; height: 120px; padding: 9px; }
  .stamp-face img { width: 62px; height: 62px; }
  .postmark { right: 52px; top: 18px; width: 170px; height: 102px; }
  .teaser { grid-template-columns: 1fr; }
}

/* Studio ----------------------------------------------------------------- */

.studio-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.studio-intro h2 { margin-bottom: 0.4em; }
.studio-intro > p { font-size: 1.15rem; max-width: 30em; }

.tools-label { font-family: var(--font-display); font-weight: 700; margin: 2em 0 0.8em; }
.tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tools a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--mist); color: var(--ink); text-decoration: none; font-weight: 700;
}
.tools a:hover { background: var(--line); }
.tools img { width: 32px; height: 32px; }

.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; }
.values li { border-top: 3px solid var(--sky); padding-top: 18px; }
.values h3 { font-size: 1.35rem; margin-bottom: 0.45em; }
.values p { color: var(--ink-soft); margin-bottom: 0.6em; }
.values a { font-weight: 700; }

@media (max-width: 900px) {
  .studio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
}

/* Footer ----------------------------------------------------------------- */

.site-footer { background: var(--ink); color: #d6e2f0; padding-block: 56px 32px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--honey); }
.site-footer h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; color: #fff; margin-bottom: 0.8em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.footer-nudge {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); color: #fff;
  padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-nudge .btn { font-size: 1rem; }
.site-footer .footer-nudge a.btn { color: var(--ink); }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.brand-footer { color: #fff; margin-bottom: 14px; }
.brand-footer img { width: 40px; height: 40px; }

.copyright { margin: 48px 0 0; font-size: 0.9rem; color: #9fb1c9; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Simple pages (privacy, unsubscribe, 404) ----------------------------- */

.page h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; margin-bottom: 0.6em; }
.page-body { font-size: 1.05rem; }
.page-body p { max-width: 40em; }
.page-body .btn { margin-top: 0.5em; }
.lead-404 { font-size: 1.25rem; margin-top: 1.4em; }
.lead-404 strong { display: block; font-family: var(--font-display); font-size: 1.6rem; }

/* Legacy markup of the privacy policy */
#ppBody { max-width: 46em; }
#ppBody .grayText { font-family: var(--font-display); font-size: 1.2rem; margin-top: 1em; }
#ppBody .innerText { color: var(--ink-soft); }
