/* arc3play.com — the Arc3 Play root page
   =================================================================
   This sheet styles / only. The Jack of Cribs pages keep jack.css
   and their own Cormorant Garamond / Instrument Sans identity; the
   studio root uses the Arc3 Ventures system — deep-navy drafting
   ground, Poppins, hairline frames, copper as the one warm signal —
   so arc3play.com reads as part of Arc3 Ventures while the game
   keeps its own voice. Nothing here is shared with jack.css, and
   changing this file cannot affect any other page.

   Poppins is self-hosted. The Content-Security-Policy in _headers
   is font-src 'self', so a Google Fonts link would be blocked, and
   the privacy policy says the site loads nothing third-party.
   Only the weights the page uses are included: 300, 400, 500, 600.
   ================================================================= */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/Poppins-300.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/Poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/Poppins-500.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/Poppins-600.woff2") format("woff2");
}

/* ---------- tokens ---------- */

:root {
  color-scheme: dark;

  --navy:   #0d1b2a;
  --raised: #15263a;
  --sunk:   #0b1825;
  --well:   #05090e;   /* inside a device bezel */
  --ink:    #f5f3f0;   /* 15.71:1 on navy */
  --muted:  #a7a29a;   /* 6.86:1 on navy */
  --copper: #bb7333;   /* 4.65:1 on navy */
  --copper-hover: #d08a4c;

  --line:        rgba(167, 162, 154, .35);
  --line-soft:   rgba(167, 162, 154, .30);
  --line-dashed: rgba(167, 162, 154, .6);
  --line-strong: #a7a29a;

  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(56px, 7vw, 96px);
}

/* ---------- base ---------- */

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

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

body {
  margin: 0;
  min-height: 100%;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}

h1, h2, h3 { font-weight: 600; }

a { color: var(--copper); }
a:hover { color: var(--copper-hover); }

img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section[id] { scroll-margin-top: 88px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  background: var(--copper);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* The annotation voice from the drawing sheets. */
.label {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(13, 27, 42, .58);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(245, 243, 240, .06);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-head { background: var(--navy); }
}

.head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 20px;
}

.brand { display: block; line-height: 0; }
.brand img { width: 176px; height: auto; display: block; }

.head-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.head-nav a {
  color: var(--ink);
  text-decoration: none;
  padding-block: 12px;
}
.head-nav a:hover { color: var(--copper); }

/* Under 600px only the game link survives; the in-page links would
   wrap to a second row and shove the lockup around. */
@media (max-width: 600px) {
  .head-nav .navlink { display: none; }
}

/* ---------- buttons and text links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 22px;
  background: var(--copper);
  color: var(--navy);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.btn:hover { background: var(--copper-hover); color: var(--navy); }

.textlink {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding-block: 12px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--sunk);
}

/* The photograph sits behind the copy and fades out before it. */
.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 68%;
  object-fit: cover;
  object-position: 30% 0%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 40%);
  mask-image: linear-gradient(to right, transparent 0%, #000 40%);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-block: clamp(48px, 7vw, 104px);
}

.hero-copy {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.015em;
}

.hero-tagline {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.3;
  font-weight: 300;
  color: var(--copper);
}

.hero-lede {
  margin: 0;
  max-width: 500px;
  font-size: 17px;
  line-height: 28px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 8px;
}

/* The iPad and iPhone, overlapped. Both bezels are drawn in CSS so
   the screenshots stay plain rectangles. */
.devices {
  flex: 1 1 480px;
  min-width: 0;
  padding-top: clamp(140px, 16vw, 240px);
}
.devices-stage {
  position: relative;
  height: clamp(320px, 32vw, 440px);
}

.device-pad,
.device-phone {
  position: absolute;
  box-sizing: content-box;
  background: var(--well);
  border: 1px solid rgba(167, 162, 154, .45);
}
.device-pad {
  left: 0;
  top: 4%;
  width: 76%;
  aspect-ratio: 2388 / 1668;
  padding: 10px;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}
.device-phone {
  right: 0;
  bottom: 0;
  height: 92%;
  aspect-ratio: 1170 / 2532;
  padding: 7px;
  border-radius: 34px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
}
.device-pad img,
.device-phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.device-pad img { border-radius: 14px; }
.device-phone img { border-radius: 28px; }

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

.section { border-top: 1px solid var(--line); }

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: var(--section-y);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.22;
}

/* A head with an introduction sitting out to its right. */
.section-head-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
}
.section-head-split .section-head { max-width: 640px; }
.section-intro {
  margin: 0;
  max-width: 420px;
  font-size: 15px;
  line-height: 24px;
  color: var(--muted);
}

/* ---------- how it plays ---------- */

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

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--raised);
  border: 1px solid var(--line);
}
.card h3 { margin: 0; font-size: 18px; line-height: 26px; }
.card p { margin: 0; font-size: 14px; line-height: 22px; color: var(--muted); }
.card-icon { width: 32px; height: 32px; }
.card-icon g { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 48px;
  padding: 28px clamp(20px, 3vw, 36px);
  border: 1px solid var(--line-strong);
}
.price-col { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.price-main {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.35;
  font-weight: 500;
}
.price-note {
  margin: 0;
  flex: 1 1 320px;
  min-width: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}

/* ---------- the games shelf ---------- */

.shelf { background: rgba(21, 38, 58, .55); }

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

.game {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  background: var(--raised);
  border: 1px solid var(--line-strong);
}
.game:hover { color: var(--ink); border-color: var(--copper); }
.game-shot {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: 30% 50%;
  border-bottom: 1px solid var(--line);
}
.game-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.game-name { font-size: 18px; line-height: 26px; font-weight: 600; }
.game-desc { font-size: 14px; line-height: 22px; color: var(--muted); }

/* A slot on the drafting board: dashed frame, the mark held back. */
.game-soon {
  display: flex;
  flex-direction: column;
  border: 1px dashed var(--line-dashed);
}
.game-soon-art {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px dashed var(--line-dashed);
}
.game-soon-art img { height: 96px; width: auto; opacity: .35; }
.game-soon .game-name { color: var(--muted); }

/* ---------- support ---------- */

.support-grid { display: flex; flex-wrap: wrap; gap: 24px; }

.support-card {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
}
.support-card-filled { background: var(--raised); }
.support-card h2 { margin: 0; font-size: 24px; line-height: 32px; }
.support-card p { margin: 0; font-size: 15px; line-height: 24px; color: var(--muted); }
.support-card a {
  align-self: flex-start;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  padding-block: 8px;
}

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

.site-foot { border-top: 1px solid var(--line-strong); }

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding-top: 28px;
  padding-bottom: 40px;
}

.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-tile { width: 44px; height: 44px; border-radius: 22.37%; display: block; }
.foot-entity {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; line-height: 22px; }
.foot-nav a { color: var(--ink); text-decoration: none; padding-block: 10px; }
.foot-nav a:hover { color: var(--copper); }
