/* Deck 2048 website. Self-hosted fonts only: the site makes no requests to third parties. */

@font-face { font-family: "Oswald"; src: url("fonts/oswald.ttf") format("truetype"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito_regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito_bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito_extra_bold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --felt: #2c6a2d;
  --felt-deep: #0b2f1b;
  --panel: #12402a;
  --cream: #f6f1e3;
  --ink: #17130a;
  --gold: #f4c04e;
  --gold-light: #ffe08a;
  --gold-deep: #d99a25;
  --muted: rgba(246, 241, 227, 0.78);
  --line: rgba(244, 192, 78, 0.35);
  --radius: 22px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--cream);
  background: var(--felt-deep) radial-gradient(ellipse at 50% -10%, var(--felt) 0%, var(--felt-deep) 70%) fixed;
  font: 400 1.0625rem/1.65 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-light); }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

h1, h2, h3 { font-family: "Oswald", "Arial Narrow", sans-serif; line-height: 1.1; margin: 0 0 0.6em; letter-spacing: 0.02em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 700; text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; text-transform: uppercase; color: var(--gold); }
h3 { font-size: 1.35rem; font-weight: 600; text-transform: uppercase; color: var(--cream); }
p { margin: 0 0 1em; }
.gold { color: var(--gold); }
.muted { color: var(--muted); }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); background: rgba(11, 47, 27, 0.82); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--cream); font: 700 1.5rem "Oswald", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand span { color: var(--gold); }
nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
nav a { color: var(--cream); text-decoration: none; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

/* hero */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.hero h1 .gold { display: block; }
.eyebrow { color: var(--gold); font: 800 0.9rem "Nunito", sans-serif; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1rem; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--muted); max-width: 34ch; }
.store-badge { display: inline-block; margin: 0.4rem 0 0.2rem -12px; line-height: 0; }
.store-badge img { width: 220px; height: auto; display: block; }
.fineprint { font-size: 0.9rem; color: var(--muted); max-width: 40ch; }

.phone { justify-self: center; width: min(78vw, 320px); border-radius: 36px; padding: 8px; background: linear-gradient(160deg, var(--gold-light), var(--gold-deep)); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); }
.phone img { display: block; width: 100%; border-radius: 29px; }
.hero .phone { transform: rotate(2.5deg); }

/* sections */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-head { max-width: 60ch; margin-bottom: 2rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.card { background: linear-gradient(180deg, #15452d, var(--felt-deep)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3); }
.card p { margin: 0; color: var(--muted); }
.card .num { font: 700 2.4rem "Oswald", sans-serif; color: var(--gold); line-height: 1; margin-bottom: 0.4rem; }

.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split .phone { width: min(70vw, 280px); }
.ticks { list-style: none; padding: 0; margin: 0 0 1rem; }
.ticks li { position: relative; padding-left: 2rem; margin-bottom: 0.7rem; }
.ticks li::before { content: "\2660"; position: absolute; left: 0; top: 0.05em; color: var(--gold); }

.gallery { display: flex; gap: 1.2rem; overflow-x: auto; padding: 0.5rem 0.2rem 1.5rem; scroll-snap-type: x proximity; }
.gallery figure { margin: 0; flex: 0 0 auto; width: 230px; scroll-snap-align: start; }
.gallery .phone { width: 100%; border-radius: 28px; padding: 6px; }
.gallery .phone img { border-radius: 22px; }
.gallery figcaption { text-align: center; margin-top: 0.8rem; font-weight: 800; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.cta { text-align: center; }
.cta .store-badge { margin: 1rem 0 0; }
.panel { background: linear-gradient(180deg, #15452d, var(--felt-deep)); border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.8rem, 5vw, 3.2rem); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }

/* article pages (privacy, support) */
.page { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem); }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); color: var(--cream); }
.page h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.page ul { padding-left: 1.3rem; }
.page li { margin-bottom: 0.45rem; }
.updated { color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; }

details { background: rgba(0, 0, 0, 0.22); border: 1px solid var(--line); border-radius: 16px; padding: 0 1.2rem; margin-bottom: 0.8rem; }
summary { cursor: pointer; font-weight: 800; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font: 700 1.5rem/1 "Oswald", sans-serif; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); }

.button { display: inline-block; background: linear-gradient(180deg, var(--gold-light), var(--gold), var(--gold-deep)); color: var(--ink); text-decoration: none; font: 600 1.1rem "Oswald", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.85rem 1.6rem; border-radius: 16px; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35); }
.button:hover { color: var(--ink); filter: brightness(1.06); }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); padding: 2rem 0 2.5rem; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.site-footer p { margin: 0 0 0.4rem; color: var(--muted); }
.trademark { flex-basis: 100%; font-size: 0.82rem; opacity: 0.8; }

@media (max-width: 820px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero .phone { transform: none; }
  .split .phone { order: -1; }
  nav ul { gap: 0.9rem; }
  .brand { font-size: 1.25rem; }
  .brand img { width: 32px; height: 32px; }
}
@media (max-width: 480px) {
  nav a { font-size: 0.85rem; }
  .brand b { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
