@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #15171c;
  --ink-2: #1e222b;
  --paper: #f6f3ee;
  --card: #ffffff;
  --text: #15171c;
  --soft: #5b6170;
  --line: #e2ddd4;
  --accent: #f0522e;
  --accent-deep: #c93c1c;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fold: 1.6rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-deep); }
p { margin: 0 0 1rem; }
address { font-style: normal; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }

.eyebrow {
  font: 600 0.8rem/1 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1.5rem;
}

/* ── header */

header.top { position: absolute; inset: 0 0 auto 0; z-index: 2; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font: 700 1.35rem/1 var(--display);
  letter-spacing: -0.02em;
}

.mark { height: 2rem; width: auto; flex: none; }

header.top nav { display: flex; align-items: center; gap: 0.25rem; font-size: 0.95rem; }
header.top nav a { color: inherit; text-decoration: none; padding: 0.5rem 0.75rem; border-radius: 999px; opacity: 0.85; }
header.top nav a:hover, header.top nav a[aria-current] { opacity: 1; }
header.top nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.35em; text-decoration-thickness: 2px; }
header.top nav a.lang { border: 1.5px solid currentColor; padding: 0.35rem 0.85rem; margin-left: 0.5rem; opacity: 0.7; }

body.home header.top { color: var(--paper); }
body:not(.home) header.top { position: static; color: var(--text); }

/* ── buttons */

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font: 600 1rem/1 var(--body);
  text-decoration: none;
  padding: 0.95rem 1.5rem;
  border: 1.5px solid var(--accent);
  clip-path: polygon(0 0, calc(100% - 0.7rem) 0, 100% 0.7rem, 100% 100%, 0 100%);
  transition: background 0.15s;
}
.button:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.button.ghost { background: transparent; color: inherit; border-color: currentColor; clip-path: none; }
.button.ghost:hover { background: rgb(255 255 255 / 0.08); }

.more { font-weight: 600; text-decoration: none; color: var(--accent-deep); }
.more::after { content: " \2192"; }
.more:hover { text-decoration: underline; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.25rem; margin: 2rem 0 0; }

/* ── hero */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  min-height: min(46rem, 92vh);
  display: flex;
  align-items: center;
}

.hero picture { position: absolute; inset: 0; }
.hero picture img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 30%, rgb(21 23 28 / 0) 62%);
}

.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 7rem; padding-bottom: 5rem; }
.hero h1 { font-size: clamp(2.9rem, 7.2vw, 5.6rem); font-weight: 700; letter-spacing: -0.035em; max-width: 10em; }
.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #c5c8d0; max-width: 31rem; margin-top: 1.5rem; }

/* ── what we do */

.what { padding: 6rem 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.card {
  position: relative;
  background: var(--card);
  padding: 2rem 1.75rem 2.25rem;
  clip-path: polygon(0 0, calc(100% - var(--fold)) 0, 100% var(--fold), 100% 100%, 0 100%);
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: var(--fold);
  height: var(--fold);
  background: var(--accent);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.card .num { font: 500 0.85rem/1 var(--body); color: var(--soft); letter-spacing: 0.08em; }
.card h3 { font-size: 1.9rem; font-weight: 700; margin: 2.75rem 0 0.75rem; }
.card p { color: var(--soft); margin-bottom: 1.25rem; }

/* ── featured */

.featured { background: var(--ink); color: var(--paper); padding: 6rem 0; }
.featured .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3.5rem; align-items: center; }
.featured .shot img { width: 100%; clip-path: polygon(0 0, calc(100% - 2.5rem) 0, 100% 2.5rem, 100% 100%, 0 100%); }
.featured .eyebrow { color: var(--accent); }
.featured h3 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; margin-bottom: 1rem; }
.featured p { color: #c5c8d0; }
.featured .more { color: var(--paper); }

/* ── contact */

.contact { position: relative; background: #e7dfd5; overflow: hidden; }
.contact picture { position: absolute; inset: 0; }
.contact picture img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.contact .wrap { position: relative; padding-top: 6.5rem; padding-bottom: 6.5rem; }
.contact h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; margin-bottom: 1rem; max-width: 9em; }
.contact p { max-width: 26rem; color: #3d4250; }
.contact .mail {
  display: inline-block;
  font: 600 clamp(1.25rem, 2.4vw, 1.7rem)/1.2 var(--display);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3em;
  margin: 0.75rem 0 1.5rem;
}
.contact address { color: #3d4250; font-size: 0.95rem; }

/* ── footer */

footer.bottom { background: var(--ink); color: #a9adb8; padding: 3rem 0; font-size: 0.9rem; }
footer.bottom .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 2.5rem; align-items: center; }
footer.bottom .brand { color: var(--paper); }
footer.bottom .entity { margin: 0; }
footer.bottom nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
footer.bottom a { color: #d7d9df; text-decoration: none; }
footer.bottom nav a:hover { text-decoration: underline; }

/* ── documents (legal, privacy) */

.doc { padding: 3rem 0 6rem; }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 700; margin-bottom: 1.5rem; }
.doc h2 { font-size: 1.5rem; margin: 3rem 0 0.9rem; }
.doc h3 { font-size: 1.1rem; letter-spacing: -0.01em; margin: 2rem 0 0.5rem; }
.doc .lead { color: var(--soft); font-size: 1.1rem; }
.doc ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.doc li { margin-bottom: 0.4rem; }

dl.facts { margin: 0; background: var(--card); padding: 0.5rem 1.5rem; }
dl.facts dt { font-weight: 600; padding-top: 1rem; font-size: 0.9rem; color: var(--soft); }
dl.facts dd { margin: 0; padding: 0.15rem 0 1rem; border-bottom: 1px solid var(--line); }
dl.facts dd:last-child { border-bottom: 0; }

@media (min-width: 40rem) {
  dl.facts { display: grid; grid-template-columns: 15rem 1fr; }
  dl.facts dt { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
  dl.facts dd { padding: 1rem 0; }
  dl.facts dt:nth-last-child(2) { border-bottom: 0; }
}

/* ── the games section: warmer, rounder, closer to Cornerlet */

body.cozy {
  --paper: #fbf1df;
  --card: #fffaf0;
  --text: #613325;
  --soft: #8a5a48;
  --line: #ead8bb;
  --accent: #e2703a;
  --accent-deep: #b4481a;
}

.cozy .intro { padding: 3.5rem 0 3rem; }
.cozy .intro h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 700; max-width: 11em; }
.cozy .intro .lead { font-size: 1.2rem; color: var(--soft); max-width: 34rem; margin-top: 1.25rem; }

.cozy .button { clip-path: none; border-radius: 999px; border: 2px solid var(--text); box-shadow: 0 3px 0 var(--text); }
.cozy .button:hover { border-color: var(--text); }

.game {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  background: var(--card);
  border: 2px solid var(--text);
  border-radius: 1.5rem;
  box-shadow: 0 6px 0 var(--text);
  overflow: hidden;
}
.game img { width: 100%; height: 100%; object-fit: cover; }
.game .body { padding: 2.25rem 2rem 2.5rem; align-self: center; }
.game .tag { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 0.75rem; }
.game h2 { font-size: 2.6rem; font-weight: 700; margin-bottom: 1rem; }
.game p { color: var(--soft); }
.game .button { margin-top: 0.75rem; }

.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 4.5rem 0 6rem; }
.notes h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.notes p { color: var(--soft); max-width: 30rem; }

/* ── small screens */

@media (max-width: 56rem) {
  .cards { grid-template-columns: 1fr; }
  .card h3 { margin-top: 1.5rem; }
  .featured .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .game { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr; padding-top: 3.5rem; }
  footer.bottom .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .wrap { padding: 0 1.25rem; }
  header.top nav a:not(.lang):not([aria-current]) { display: none; }
  .hero { min-height: 0; display: flex; flex-direction: column-reverse; align-items: stretch; }
  .hero::after { display: none; }
  .hero picture { position: relative; display: block; height: 18rem; }
  .hero picture img { object-position: 80% center; }
  .hero picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgb(21 23 28 / 0) 45%); }
  .hero .wrap { padding-top: 6.5rem; padding-bottom: 1rem; }
  .what, .featured { padding: 4rem 0; }
  .contact picture img { opacity: 0.35; }
  .contact .wrap { padding-top: 4.5rem; padding-bottom: 4.5rem; }
}
