:root {
  color-scheme: light;
  --background: #f8f3e9;
  --panel: #fffaf1;
  --foreground: #221c18;
  --muted: #65574c;
  --line: #d3c3b1;
  --accent: #96371e;
  --orange: #ed7444;
  --ink: #221c18;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 100%;
  line-height: 1.55;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background) radial-gradient(#ab80642b .65px, transparent .65px) 0 0 / 18px 18px;
  color: var(--foreground);
}

h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.1; }
h1, h2, h3 { text-wrap: balance; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .23em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p { overflow-wrap: break-word; }
[id] { scroll-margin-top: 1.25rem; }

.shell {
  width: min(100% - 3rem, 73rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 3;
  inset: .75rem auto auto .75rem;
  padding: .6rem .9rem;
  border-radius: .4rem;
  background: var(--orange);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--background);
}
.site-footer {
  border-top: 1px solid var(--line);
  background: #efe6d9;
}

.header-row, .footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  min-height: 4.5rem;
  padding-block: .7rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.17rem;
  font-weight: 800;
  letter-spacing: -.045em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  position: relative;
  place-items: end center;
  flex: none;
  width: 1.35rem;
  height: 1.25rem;
  background: var(--accent);
  clip-path: polygon(0 43%, 50% 0, 100% 43%, 100% 100%, 0 100%);
}

.brand-mark::after {
  content: "";
  width: .4rem;
  height: .54rem;
  background: var(--background);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1.2rem;
}

.site-header .language-switch {
  align-items: center;
  gap: .15rem;
  padding: .15rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
}

.site-header .language-switch a, .language-switch .current-language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 1.75rem;
  border-radius: .35rem;
  font-size: .8rem;
  font-weight: 700;
}

.language-switch .current-language {
  background: var(--ink);
  color: var(--panel);
}

.site-header nav a, .footer-row > a:not(.wordmark) {
  padding-block: .25rem;
  color: var(--muted);
  font-size: .92rem;
  text-decoration: none;
}

.site-header nav a:hover, .footer-row > a:hover, .site-header nav a[aria-current] {
  color: var(--foreground);
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(1.75rem, 5vw, 4.8rem);
  padding-block: clamp(2.75rem, 7vw, 5.15rem) clamp(2.65rem, 6.5vw, 4.75rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.eyebrow span {
  background: currentColor;
  width: .45rem;
  aspect-ratio: 1;
}

.hero h1, .game-intro h1 {
  margin-block: .56rem 1rem;
  font-size: clamp(4.4rem, 9vw, 8.6rem);
  font-weight: 900;
  letter-spacing: -.092em;
  line-height: .84;
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

.hero-copy > p:not(.eyebrow), .intro {
  max-width: 36ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.52;
}

.button {
  display: inline-block;
  padding: .72rem 1.05rem;
  border: 1px solid var(--ink);
  border-radius: .28rem;
  background: var(--orange);
  box-shadow: .2rem .22rem 0 var(--ink);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: background-color .16s ease;
}

.button:hover {
  background: #ff9566;
}
.hero-copy > .button { margin-top: 1.45rem; }

.hero-art {
  display: block;
  min-width: 0;
  border: 1px solid var(--ink);
  border-radius: .4rem;
  background: var(--panel);
  box-shadow: .48rem .48rem 0 #d0ae90;
  color: var(--ink);
  text-decoration: none;
}

.hero-background, .hero-device, .cow-logo { position: absolute; }

.hero-background {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: blur(2.5px) brightness(.78) saturate(.88);
  transform: scale(1.045);
}

.hero-device {
  z-index: 2;
  width: auto;
  height: 84%;
  right: 12%;
  top: 8%;
  border: 2px solid #f9ebcf;
  border-radius: 8%;
  box-shadow: 0 .75rem 2rem #10230b99;
  transform: rotate(10deg);
}

.cow-logo {
  z-index: 2;
  inset: 13% auto auto 7%;
  width: 38%;
  height: auto;
  filter: drop-shadow(0 .45rem .45rem #251a0d99);
}

.hero-art-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .2rem .8rem;
  padding: .75rem 1rem;
  border-top: 1px solid var(--ink);
  color: var(--ink);
  font-size: 1.14rem;
  font-weight: 800;
}

.hero-art-caption span {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
}

.catalog-section {
  padding-block: clamp(1.6rem, 4vw, 2.55rem) clamp(3rem, 7vw, 5.75rem);
  border-top: 1px solid var(--line);
}

.catalog-section h2, .gameplay h2 {
  font-size: clamp(1.85rem, 3.9vw, 2.8rem);
  font-weight: 850;
  letter-spacing: -.065em;
}

.catalog {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.3rem;
}

.game-card {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  max-width: 53rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--panel);
}

.game-thumb {
  display: block;
  border-right: 1px solid var(--line);
}
.game-thumb:focus-visible { outline-offset: -5px; }
.game-thumb img {
  width: 100%;
  height: 100%;
  min-height: 9.75rem;
  aspect-ratio: 1.8;
  object-fit: cover;
  object-position: center 45%;
}
.game-card-copy {
  align-self: center;
  padding: 1.05rem clamp(1.05rem, 3vw, 1.75rem);
}
.game-card h3 { font-size: 1.35rem; }
.game-card h3 a { text-decoration: none; }
.game-card h3 a:hover { text-decoration: underline; }
.game-card p { margin-block: .5rem .7rem; color: var(--muted); }
.text-link { color: var(--accent); }

.detail-main, .policy-main { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem); }
.back-link { color: var(--accent); font-size: .95rem; }

.game-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .45fr);
  gap: 1.5rem;
  align-items: center;
  margin-block: 1.5rem 2.5rem;
  padding: clamp(1.25rem, 5vw, 3.25rem);
  border: 1px solid var(--ink);
  border-radius: .4rem;
  background: #efe3ca radial-gradient(ellipse at 100% 20%, #d6d6a5, transparent 65%);
  box-shadow: .36rem .36rem 0 #d0ae90;
}

.game-intro h1 {
  font-size: clamp(2.9rem, 7vw, 5.85rem);
  line-height: .98;
}
.detail-logo { max-width: min(100%, 13rem); height: auto; justify-self: center; }
.game-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.15rem; margin-top: 1.2rem; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .55rem 1.15rem; margin-bottom: 1rem; }
.section-heading p { color: var(--muted); }
.gameplay figure { max-width: 57rem; overflow: hidden; border: 1px solid var(--line); border-radius: .85rem; }
.gameplay img { width: 100%; height: auto; }

.policy-main { max-width: 49rem; }
.policy-header h1 { font-size: clamp(2.1rem, 5.5vw, 3.95rem); letter-spacing: -.06em; }
.policy-header p { margin-top: .75rem; color: var(--muted); }
.draft-note {
  margin-block: 1.5rem;
  padding: .9rem 1.1rem;
  border: 1px solid #ba9563;
  border-radius: .35rem;
  background: #f4e5cb;
  color: #5c3a1c;
}
.draft-note p { margin-top: .25rem; }
.policy-index { margin-block: 1.5rem; color: var(--accent); }
.policy-index a { display: inline-block; }
.policy-app { padding-top: 1.35rem; border-top: 1px solid var(--line); }
.policy-app h2 { font-size: 1.65rem; letter-spacing: -.03em; }
.policy-app dl { margin-block: .65rem 1.4rem; }
.policy-app dl div { padding-block: .75rem; border-bottom: 1px solid var(--line); }
.policy-app dt { font-weight: 700; }
.policy-app dd { margin-top: .3rem; color: var(--muted); }

.hero-image {
  position: relative;
  display: block;
  isolation: isolate;
  aspect-ratio: 1.58;
  overflow: hidden;
  border-radius: .32rem .32rem 0 0;
  background: #465533;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #16250d3b, transparent 70%);
  pointer-events: none;
}

.hero-art:hover .hero-art-caption { color: var(--accent); }

@media (max-width: 49rem) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3.75rem, 13vw, 6.9rem); }
  .hero h1 span { display: inline; }
  .hero-art { max-width: 40rem; }
  .game-intro { grid-template-columns: 1fr; }
  .detail-logo { max-width: 8rem; justify-self: start; }
}

@media (max-width: 32rem) {
  .shell { width: calc(100% - 2rem); }
  .site-header nav { gap: .35rem .85rem; }
  .header-actions { justify-content: space-between; width: 100%; }
  .header-row { padding-block: .7rem; }
  .hero h1 { line-height: .9; }
  .game-card { grid-template-columns: 1fr; }
  .game-thumb { border-right: 0; border-bottom: 1px solid var(--line); }
  .game-thumb img { max-height: 12rem; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
