:root {
  --paper: #f4efe3;
  --surface: #fffcf3;
  --ink: #233e35;
  --muted: #52685e;
  --line: #d4cbb7;
  --teal: #246f63;
  --orange: #d96732;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--teal); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid #a8431c; outline-offset: 5px; border-radius: 3px; }
svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.page { width: min(1184px, 100%); padding: 0 32px; margin: 0 auto; }
.skip-link { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 14px 18px; color: var(--ink); background: var(--surface); border: 1px solid var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 29px 0; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 7px; align-items: baseline; color: var(--ink); font: 700 28px/1.1 Georgia, serif; letter-spacing: -.8px; text-decoration: none; }
.brand > span { font-weight: 400; }
.brand-dot { color: var(--orange); font-weight: 700; }
.header-links { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
.header-links > a { display: inline-flex; align-items: center; min-height: 44px; }
.language { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 30px; background: var(--surface); }
.language a, .language span { display: grid; place-items: center; min-width: 44px; min-height: 38px; padding: 6px 10px; border-radius: 30px; font-size: 12px; letter-spacing: .5px; text-decoration: none; }
.language [aria-current="page"] { background: var(--ink); color: var(--surface); }
.language a:hover { background: #e6eddf; }

.intro { max-width: 860px; padding: 35px 0 65px; }
.back-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-bottom: 40px; font-size: 14px; }
.back-link svg { width: 18px; height: 18px; }
.eyebrow { margin: 0 0 20px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 1.7px; }
h1 { margin: 0 0 25px; font: 400 clamp(40px, 5.1vw, 65px)/1.08 Georgia, serif; letter-spacing: -1.7px; text-wrap: balance; }
.intro-copy { max-width: 680px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.catalogue { scroll-margin-top: 24px; }
.product-section { margin-bottom: 53px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; padding-top: 24px; margin-bottom: 23px; border-top: 1px solid var(--line); }
.section-heading h2 { margin: 0; font: 400 34px/1.2 Georgia, serif; letter-spacing: -.7px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.product-grid { display: grid; gap: 20px; }
.tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { display: flex; flex-direction: column; min-width: 0; padding: 29px 28px 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 4px 0 #dcd1ba35; }
.tool-card { border-top: 3px solid var(--teal); }
.game-card { border-top: 3px solid var(--orange); }
.product-kind { margin: 0 0 19px; color: var(--muted); font-size: 12px; line-height: 1.5; font-weight: 650; letter-spacing: .2px; }
.product-card h3 { margin: 0 0 15px; font: 400 29px/1.15 Georgia, serif; letter-spacing: -.65px; overflow-wrap: anywhere; }
.product-description { margin: 0 0 14px; font-size: 16px; line-height: 1.65; }
.product-note { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.product-action { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 58px; margin-top: auto; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 650; line-height: 1.5; }
.product-action:hover { color: var(--ink); }
.product-action svg { width: 20px; height: 20px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 18px 32px; padding: 27px 0 35px; border-top: 1px solid var(--line); }
.footer p { margin: 0; font: 400 20px/1.3 Georgia, serif; }
.footer div { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 13px; font-size: 13px; line-height: 1.7; }
.footer span { color: var(--muted); }
.footer a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }

@media (max-width: 940px) {
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-card:last-child { grid-column: 1 / -1; }
  .product-card { padding-right: 24px; padding-left: 24px; }
}

@media (max-width: 620px) {
  .page { padding: 0 20px; }
  .masthead { gap: 12px; padding: 21px 0; }
  .brand { gap: 5px; font-size: 24px; }
  .header-links { gap: 14px; font-size: 13px; }
  .language a, .language span { min-width: 36px; min-height: 38px; padding: 6px 8px; }
  .intro { padding-top: 22px; padding-bottom: 40px; }
  .back-link { margin-bottom: 29px; font-size: 13px; }
  .eyebrow { margin-bottom: 17px; font-size: 11px; letter-spacing: 1.3px; }
  h1 { margin-bottom: 21px; font-size: clamp(34px, 9.7vw, 52px); line-height: 1.13; letter-spacing: -1.2px; }
  .intro-copy { font-size: 16px; line-height: 1.65; }
  .product-section { margin-bottom: 35px; }
  .section-heading { display: block; padding-top: 20px; margin-bottom: 18px; }
  .section-heading h2 { margin-bottom: 7px; font-size: 30px; }
  .section-heading p { font-size: 13px; }
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .game-card:last-child { grid-column: auto; }
  .product-card { padding: 24px 22px 10px; border-radius: 18px; }
  .product-kind { margin-bottom: 14px; }
  .product-card h3 { font-size: 29px; }
  .product-note { margin-bottom: 19px; }
  .product-action { min-height: 58px; font-size: 14px; }
  .footer { display: block; padding: 24px 0; }
  .footer p { margin-bottom: 13px; }
  .footer div { display: block; }
  .footer span { display: block; }
}

@media (max-width: 359px) {
  .masthead { flex-wrap: wrap; }
  .header-links { justify-content: space-between; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
