/* P1-PUBLIC.1C.1 — Polderline Games one-page foundation */
:root {
  --water: #1e2a33;
  --green: #6d8f79;
  --mist: #a9c1ae;
  --sand: #e8e4da;
  --paper: #f8f6f0;
  --ink: #18232a;
  --muted: #59656a;
  --line: rgba(30,42,51,.14);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px max(24px, calc((100vw - var(--max))/2));
  background: rgba(248,246,240,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .01em;
}
.brand img { width: 48px; height: 48px; border-radius: 10px; }
nav { display: flex; gap: 24px; }
nav a { text-decoration: none; font-size: .94rem; color: var(--muted); }
nav a:hover { color: var(--ink); }

.hero, .section, .game-section {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}
.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(340px,.95fr) minmax(360px,1.05fr);
  gap: clamp(50px,7vw,100px);
  align-items: center;
  padding: 90px 0;
}
.hero-mark {
  padding: 42px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(30,42,51,.08);
}
.hero-copy h1 {
  margin: 8px 0 18px;
  max-width: 700px;
  font-size: clamp(2.7rem, 5vw, 5.3rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.lead { font-size: clamp(1.1rem,2vw,1.35rem); color: var(--muted); max-width: 680px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
}
.button.primary { background: var(--water); color: #fff; }
.button.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.45); }

.section {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.studio-section, .contact-section {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 80px;
}
h2 { margin: 8px 0 0; font-size: clamp(2rem,3.5vw,3.4rem); line-height: 1.06; }
.prose { max-width: 700px; font-size: 1.15rem; color: var(--muted); }

.game-section {
  margin-top: 25px;
  margin-bottom: 25px;
  padding: clamp(34px,5vw,70px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(46px,7vw,90px);
  align-items: center;
  border-radius: 34px;
  background: var(--sand);
}
.game-art img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(28,31,33,.10);
}
.game-copy p { color: #4b5047; font-size: 1.08rem; }
.text-link { font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.follow-section h2 { max-width: 720px; }
.social-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(5,1fr);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.social-grid a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  min-width: 0;
  padding: 24px;
  text-decoration: none;
  font-weight: 750;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,.35);
}
.social-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  opacity: .88;
}
.social-grid a:last-child { border-right: 0; }
.social-grid a:hover { background: #fff; }
.social-grid a:hover .social-icon { opacity: 1; }

.contact-links { display: grid; gap: 10px; }
.contact-links a {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 1.05rem;
}
.contact-links span { color: var(--green); font-size: .83rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 50px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: .85rem;
}

@media (max-width: 820px) {
  .site-header { position: static; align-items: flex-start; }
  nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 55px 0 80px; }
  .hero-mark { padding: 22px; }
  .studio-section, .contact-section, .game-section { grid-template-columns: 1fr; gap: 34px; }
  .section { padding: 76px 0; }
  .game-section { padding: 28px; }
  .social-grid { grid-template-columns: 1fr; }
  .social-grid a { border-right: 0; border-bottom: 1px solid var(--line); }
  .social-grid a:last-child { border-bottom: 0; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* P1-PUBLIC.1C.4 — keyboard/accessibility launch hardening */
a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
  border-radius: 4px;
}
