@layer reset, base, layout, components;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p { margin: 0; }
  img { display: block; max-width: 100%; }
}

@layer base {
  :root { color-scheme: light; --ink: #161616; --muted: #626262; --line: #d8d8d8; --paper: #fff; }
  html { font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--paper); }
  body { min-height: 100svh; font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  ::selection { color: #fff; background: #161616; }
  a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
  a:hover { text-decoration-thickness: 2px; }
  :is(a, button, input, textarea, select):focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 1px; }
  h1, h2, h3 { font-weight: 500; line-height: 1.05; text-wrap: balance; }
  p { text-wrap: pretty; }
}

@layer layout {
  .shell { width: min(100% - 7rem, 82rem); margin-inline: auto; }
  .site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 7.5rem; border-bottom: 1px solid var(--line); }
  .site-nav { display: flex; align-items: center; gap: 2.5rem; }
  .site-nav a { padding-block: .75rem; font-size: .9375rem; text-decoration: none; }
  .site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; }
  .hero { display: grid; grid-template-columns: 1fr 15rem; align-items: center; column-gap: 4rem; padding-block: 5.75rem 6rem; }
  .hero h1 { font-size: clamp(4rem, 8.6vw, 8rem); letter-spacing: -.075em; line-height: .96; margin-top: 2rem; }
  .hero h1 span { display: block; }
  .hero-description { margin-top: 2.25rem; font-size: 1.125rem; color: var(--muted); }
  .hero-emblem { width: 12rem; height: 18rem; justify-self: center; }
  .game { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; border-top: 1px solid var(--ink); padding-block: 2rem 4.75rem; }
  .game-main { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 1.25rem 2rem; }
  .game h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.055em; }
  .game p { grid-column: 1 / -1; color: var(--muted); max-width: 35rem; }
  .site-footer { border-top: 1px solid var(--line); padding-block: 2rem; }
  .footer-top { display: flex; justify-content: space-between; gap: 1.5rem; font-size: .875rem; }
  .company-details { margin-top: 1.5rem; max-width: 53rem; font-size: .875rem; color: var(--muted); }
  .page { padding-block: 5rem 6rem; min-height: 62vh; }
  .page h1 { font-size: clamp(3.25rem, 7vw, 6rem); letter-spacing: -.065em; margin-block: 1.5rem 2rem; }
  .page-intro { font-size: 1.25rem; max-width: 35rem; color: var(--muted); }
  .contact-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 5rem; align-items: start; }
  .contact-detail { border-top: 1px solid var(--ink); padding-top: 1.5rem; margin-top: 4.75rem; }
  .contact-detail p + p { margin-top: 1rem; }
  .prose { max-width: 44rem; }
  .prose h2 { font-size: 1.5rem; letter-spacing: -.025em; margin-block: 2.5rem 1rem; }
  .prose p + p { margin-top: 1rem; }
  .prose ul { padding-left: 1.25rem; }
  @media (min-width: 1600px) { .hero { padding-block: 7rem; } }
  @media (max-width: 760px) {
    .shell { width: calc(100% - 3rem); }
    .site-header { min-height: 6rem; gap: 1rem; }
    .site-nav { gap: 1.25rem; }
    .hero { display: flex; flex-wrap: wrap; gap: 2rem 1rem; padding-block: 4rem; }
    .hero > div { flex: 1 1 13rem; min-width: 0; }
    .hero h1 { font-size: clamp(3.5rem, 12vw, 5.5rem); }
    .hero-emblem { width: 6rem; height: 9rem; flex: none; margin-inline: auto; }
    .hero-description { font-size: 1rem; max-width: 20rem; }
    .game { grid-template-columns: 1fr; gap: 1.75rem; padding-bottom: 3rem; }
    .game-main { grid-template-columns: 1fr; }
    .game p { grid-column: auto; }
    .page { padding-block: 3rem 4rem; }
    .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
    .contact-detail { margin: 0; }
  }
  @media (max-width: 380px) {
    .shell { width: calc(100% - 2rem); }
    .brand { gap: .4rem; }
    .site-nav { gap: .875rem; }
    .hero { gap: 2rem .5rem; }
    .hero-emblem { width: 4rem; height: 6rem; }
    .hero h1 { font-size: 3.25rem; }
  }
}

@layer components {
  .brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 600; letter-spacing: -.04em; text-decoration: none; line-height: 1.15; }
  .brand img { width: 1.75rem; height: 2.625rem; }
  .brand span { max-width: 5rem; }
  .eyebrow { font-size: .8125rem; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; }
  .status { display: inline-block; width: fit-content; border: 1px solid var(--line); border-radius: 2rem; padding: .3rem .875rem; font-size: .8125rem; white-space: nowrap; }
  .button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .75rem 1.5rem; background: var(--ink); color: #fff; text-decoration: none; margin-top: 2rem; border: 0; font: inherit; cursor: pointer; }
  .button:hover { background: #373737; text-decoration: underline; }
  .small { font-size: .875rem; color: var(--muted); }
  .form-note { margin-top: 1rem; max-width: 32rem; }
  .preview-notice { padding: .625rem 1rem; background: #f1f1f1; font-size: .8125rem; text-align: center; border-bottom: 1px solid var(--line); }
  .pending { border-left: 2px solid var(--line); padding-left: 1rem; color: var(--muted); }
  .skip-link { position: absolute; top: -10rem; left: 1rem; padding: .75rem 1rem; background: #fff; z-index: 10; }
  .skip-link:focus { top: 1rem; }
  .contact-form { margin-top: 2.5rem; max-width: 36rem; }
  .field { margin-bottom: 1.5rem; }
  .field label { display: block; margin-bottom: .5rem; }
  .field :is(input, select, textarea) { display: block; width: 100%; max-width: 100%; padding: .75rem; border: 1px solid #767676; border-radius: 0; font: inherit; color: var(--ink); background: #fff; }
  .field textarea { resize: vertical; }
  .field .small { margin-top: .5rem; }
  .button:disabled { background: #626262; cursor: not-allowed; }
  .button:disabled:hover { text-decoration: none; }
  #turnstile-widget { margin-top: 1.5rem; min-width: 0; }
  .form-feedback { border-left: 2px solid var(--ink); padding: 1rem; margin-top: 1.5rem; background: #f5f5f5; }
  .form-feedback:focus { outline: 2px solid var(--ink); outline-offset: 3px; }
  .honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
