/* LynchPin Games — studio site
   Palette and type follow branding/README.md in the PuzzleGames workspace. */

:root {
  /* Brand tokens (branding/README.md): the variable names predate the
     teal/sky/tangerine palette — navy = Lakeside Teal, coral = Tangerine,
     gold = Sky, paper = Mist. */
  --navy: #0E4A5C;
  --coral: #FF8F5E;
  --gold: #4DA6C6;
  --paper: #F6F9FA;
  --slate: #4A6B77;
  --white: #ffffff;

  /* Derived surface tokens */
  --navy-soft: #16617A;
  --navy-deep: #0A3542;
  --ink: #0E4A5C;
  --ink-muted: #4A6B77;
  --rule: #DCE6EA;
  --card: #ffffff;
  --card-alt: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(14, 74, 92, .06), 0 2px 8px rgba(14, 74, 92, .05);
  --shadow-md: 0 2px 6px rgba(14, 74, 92, .07), 0 12px 32px rgba(14, 74, 92, .09);
  --shadow-lg: 0 4px 12px rgba(14, 74, 92, .1), 0 24px 60px rgba(14, 74, 92, .14);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --wrap: 1120px;
  --wrap-narrow: 760px;

  /* Brand type: Avenir Next where installed, Nunito Sans when self-hosted,
     then a rounded humanist fallback. See README for self-hosting notes. */
  --font: "Avenir Next", "Nunito Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -.015em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: #1F7A99; text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

img { max-width: 100%; height: auto; display: block; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow { max-width: var(--wrap-narrow); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 249, 250, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.brand { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand img { height: 56px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-weight: 600;
  font-size: .96rem;
}

.site-nav a:hover {
  background: rgba(14, 74, 92, .06);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: #1F7A99;
  background: rgba(255, 143, 94, .1);
}

/* ------------------------------------------------------------------ hero */

.hero {
  background:
    radial-gradient(1100px 520px at 78% -12%, rgba(255, 143, 94, .28), transparent 62%),
    radial-gradient(760px 420px at 8% 108%, rgba(77, 166, 198, .2), transparent 60%),
    linear-gradient(168deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: clamp(56px, 9vw, 104px) 0 clamp(52px, 8vw, 92px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.hero h1 { color: var(--white); max-width: 15ch; }

.hero .eyebrow { color: var(--gold); }

.hero-lede {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: rgba(255, 255, 255, .82);
  max-width: 56ch;
}

.hero-collage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}

.hero-collage .device {
  position: absolute;
  max-width: 178px;
  border-width: 6px;
  border-radius: 20px;
}

.hero-collage .device:nth-child(1) {
  transform: translateX(-58%) rotate(-7deg);
  z-index: 1;
  opacity: .95;
}

.hero-collage .device:nth-child(2) {
  z-index: 3;
  max-width: 200px;
}

.hero-collage .device:nth-child(3) {
  transform: translateX(58%) rotate(7deg);
  z-index: 2;
  opacity: .95;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--slate);
  margin: 0 0 .9rem;
}

/* Page banner used on interior pages */
.page-head {
  background: linear-gradient(168deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: clamp(40px, 6vw, 68px) 0;
}
.page-head h1 { color: var(--white); margin-bottom: .35em; }
.page-head p {
  color: rgba(255, 255, 255, .8);
  max-width: 62ch;
  font-size: 1.08rem;
}
.page-head .eyebrow { color: var(--gold); }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--coral); color: var(--navy); }
.btn-primary:hover { background: #F27E4B; }

.btn-ghost {
  border-color: rgba(255, 255, 255, .45);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .1); }

.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2rem;
}

/* ------------------------------------------------------------------ pills */

.pill {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill-soon {
  background: rgba(77, 166, 198, .2);
  color: #9A3F1C;
  border: 1px solid rgba(77, 166, 198, .55);
}

.pill-dev {
  background: rgba(82, 97, 116, .12);
  color: var(--slate);
  border: 1px solid rgba(82, 97, 116, .3);
}

.pill-on-dark {
  background: rgba(77, 166, 198, .18);
  color: var(--gold);
  border: 1px solid rgba(77, 166, 198, .45);
}

.promise-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.promise-strip li {
  display: flex;
  align-items: center;
  gap: .55em;
  font-weight: 600;
  font-size: .97rem;
  color: rgba(255, 255, 255, .88);
}

.promise-strip li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* --------------------------------------------------------------- sections */

.section { padding: clamp(52px, 7vw, 84px) 0; }
.section-tight { padding: clamp(36px, 5vw, 56px) 0; }
.section-alt { background: var(--card-alt); border-block: 1px solid var(--rule); }
.section-navy { background: var(--navy); color: rgba(255, 255, 255, .85); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-muted); font-size: 1.06rem; }
.section-navy .section-head p { color: rgba(255, 255, 255, .75); }

/* ----------------------------------------------------------- values grid */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.value-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}

.value-card h3 { margin-bottom: .4em; }
.value-card p { color: var(--ink-muted); font-size: .98rem; margin: 0; }

.value-card .dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 143, 94, .14);
  border: 2px solid var(--coral);
  margin-bottom: 16px;
  position: relative;
}
.value-card .dot::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  right: -5px;
  bottom: -5px;
  border: 2px solid var(--paper);
}

/* ----------------------------------------------------------- game cards */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.game-card-shot {
  background: linear-gradient(160deg, #E3F0F5, #D3E5EC);
  padding: 24px 22px 0;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.game-card-shot img {
  width: 100%;
  max-width: 196px;
  border-radius: 14px 14px 0 0;
  border: 1px solid rgba(14, 74, 92, .14);
  border-bottom: 0;
  box-shadow: 0 -2px 24px rgba(14, 74, 92, .16);
}

.game-card-shot.is-landscape {
  align-items: center;
  padding: 24px 22px;
}

.game-card-shot.is-landscape img {
  max-width: 100%;
  border-radius: 10px;
  border-bottom: 1px solid rgba(14, 74, 92, .14);
  box-shadow: var(--shadow-md);
}

.game-card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }

.game-card-body h3 { margin-bottom: .3em; }
.game-card-body h3 a { color: var(--navy); }

.game-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.game-card-kind {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--slate);
}

.game-card-body p { color: var(--ink-muted); font-size: .98rem; }

.game-card-link {
  margin-top: auto;
  padding-top: 14px;
  font-weight: 700;
}

/* --------------------------------------------------- in-development list */

.soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.soon-card {
  border: 1px dashed rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, .04);
}
.soon-card h3 { margin-bottom: .35em; }
.soon-card p { color: rgba(255, 255, 255, .72); font-size: .97rem; margin: 0 0 14px; }

/* ------------------------------------------------------------ game pages */

.game-hero {
  color: var(--white);
  padding: clamp(44px, 6vw, 76px) 0;
  background: linear-gradient(168deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.game-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.game-hero h1 { color: var(--white); }
.game-hero .tagline {
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  color: rgba(255, 255, 255, .82);
  max-width: 46ch;
}

.game-by { margin: 1.2rem 0 0; }
.game-by img { height: 96px; width: auto; }

.game-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.4rem;
}

.game-hero-shot { display: flex; justify-content: center; }

.device {
  border-radius: 26px;
  border: 8px solid #0A3542;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .12);
  overflow: hidden;
  background: #0A3542;
  max-width: 268px;
  width: 100%;
}
.device img { display: block; width: 100%; }

.device-wide { max-width: 560px; border-radius: 16px; border-width: 7px; }

.shot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 26px;
  align-items: start;
}

.shot {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.shot img { width: 100%; }
.shot figcaption {
  padding: 12px 16px 14px;
  font-size: .9rem;
  color: var(--ink-muted);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px 30px;
}

.feature-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(77, 166, 198, .25);
}

.feature-list strong { color: var(--ink); font-weight: 700; }

.callout {
  border-left: 4px solid var(--coral);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  margin: 0 0 1.6rem;
}
.callout h3 { margin-bottom: .35em; }
.callout p { color: var(--ink-muted); margin: 0; }
.callout-gold { border-left-color: var(--gold); }

.next-prev {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-weight: 600;
}

/* -------------------------------------------------------------- prose */

.prose-col { max-width: 68ch; }

/* When the reading column is applied directly to a .wrap, keep the wrap at full
   width and constrain its children instead, so the text stays flush with the
   left gutter of every other section rather than floating in the middle. */
.wrap.prose-col { max-width: var(--wrap); }
.wrap.prose-col > * { max-width: 68ch; }

.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 1.9rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.35em; }
.prose li { margin-bottom: .5em; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: .97rem;
}
.prose th, .prose td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.prose th { font-weight: 700; background: rgba(14, 74, 92, .04); }
.prose .table-scroll { overflow-x: auto; }

.doc-meta {
  font-size: .92rem;
  color: var(--ink-muted);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 14px 18px;
  background: var(--card-alt);
  margin-bottom: 2.2rem;
}
.doc-meta p { margin: 0; }

.toc {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 2.4rem;
}
.toc h2 { font-size: 1rem; margin: 0 0 .6em; text-transform: uppercase; letter-spacing: .08em; }
.toc ol { margin: 0; padding-left: 1.2em; column-gap: 30px; }
.toc li { margin-bottom: .3em; font-size: .96rem; }

/* --------------------------------------------------------------- faq */

.faq { border-top: 1px solid var(--rule); }
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  padding: 18px 40px 18px 2px;
  font-weight: 700;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--coral);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div {
  padding: 0 40px 20px 2px;
  color: var(--ink-muted);
}

/* ------------------------------------------------------------ contact */

.contact-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin-bottom: .3em; }
.contact-card p { color: var(--ink-muted); font-size: .97rem; }
.contact-card .email {
  font-weight: 700;
  font-size: 1.05rem;
  word-break: break-word;
}

/* --------------------------------------------------------- press assets */

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.asset {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.asset .preview {
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
}
.asset .preview.on-navy { background: var(--navy); }
.asset .preview.on-paper { background: var(--paper); }
.asset .preview img { max-height: 84px; width: auto; }
.asset .asset-body { padding: 14px 18px 18px; border-top: 1px solid var(--rule); }
.asset .asset-body p { font-size: .88rem; color: var(--ink-muted); margin: 0 0 6px; }

/* -------------------------------------------------------------- footer */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .7);
  padding: 56px 0 32px;
  font-size: .95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.footer-brand img { height: 64px; margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; color: rgba(255, 255, 255, .62); font-size: .93rem; }

.site-footer h4 {
  color: var(--white);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1em;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55em; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding-top: 24px;
  font-size: .87rem;
  color: rgba(255, 255, 255, .55);
}

/* --------------------------------------------------------------- 404 */

.center-page {
  text-align: center;
  padding: clamp(70px, 12vw, 140px) 0;
}
.center-page .btn-row { justify-content: center; }
