/* vibehome.app — shared styles for the landing page and the legal pages.
   Tokens are lifted from app/styles.css on purpose: the site and the product
   should read as one surface, so the page background is literally the same
   cream gradient the game paints behind the island. */

:root {
    --cream: #f4ede0;
    --cream-2: #ede4d2;
    --paper: #fbf6ec;
    --ink: #2b2a26;
    --ink-soft: #51504a;
    --muted: #8a8678;
    --line: #d9d0bd;
    --cobalt: #1b5ba8;
    --cobalt-2: #2e6fbc;
    --cobalt-light: #d6e6f6;
    --terracotta: #c4622e;
    --leaf: #3d7355;

    --shadow: 0 8px 24px rgba(60, 50, 30, 0.10), 0 2px 6px rgba(60, 50, 30, 0.06);
    --shadow-lg: 0 18px 48px rgba(60, 50, 30, 0.16), 0 4px 12px rgba(60, 50, 30, 0.08);

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

    --measure: 1120px;
    --gutter: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: 'Inter', 'SF Pro Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #f6efe1 0%, #ebe1cc 100%);
    background-attachment: fixed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-2); }

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

/* ── Header ───────────────────────────────────────────────────── */

.site-head {
    padding: clamp(20px, 4vw, 34px) 0;
}
.site-head .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.01em;
}
.brand img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.site-nav {
    display: flex;
    gap: clamp(14px, 3vw, 28px);
    font-size: 15px;
}
.site-nav a {
    color: var(--ink-soft);
    text-decoration: none;
}
.site-nav a:hover { color: var(--cobalt); }

/* ── Hero ─────────────────────────────────────────────────────── */

.hero {
    padding: clamp(16px, 4vw, 48px) 0 clamp(32px, 6vw, 72px);
    text-align: center;
}
.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
}
.hero .lede {
    margin: 0 auto 30px;
    max-width: 30ch;
    font-size: clamp(17px, 2.2vw, 21px);
    color: var(--ink-soft);
    text-wrap: balance;
}
.hero-art {
    margin-top: clamp(28px, 5vw, 52px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    /* The screenshot carries the game's own cream backdrop, which is a shade
       off the page's. Without a border the difference reads as a rendering
       seam; with one it reads as a deliberately framed plate. */
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}

/* ── Buttons ──────────────────────────────────────────────────── */

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--cobalt);
    color: #fff;
    box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--cobalt-2); color: #fff; }
.btn-ghost {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--line);
}
.btn-ghost:hover { background: #fff; color: var(--ink); }

.note {
    margin-top: 14px;
    font-size: 14px;
    color: var(--muted);
}

/* ── Sections ─────────────────────────────────────────────────── */

section { padding: clamp(40px, 7vw, 88px) 0; }

.section-head { max-width: 62ch; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: -0.02em;
    line-height: 1.15;
    font-weight: 750;
    text-wrap: balance;   /* stops headings dropping a single orphan word */
}
.section-head p {
    margin: 0;
    color: var(--ink-soft);
    font-size: clamp(16px, 1.8vw, 18px);
}

.grid {
    display: grid;
    gap: clamp(14px, 2.4vw, 22px);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(20px, 2.6vw, 28px);
    box-shadow: var(--shadow);
}
.card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 15.5px;
}
.card .glyph {
    font-size: 24px;
    line-height: 1;
    margin-bottom: 14px;
    display: block;
}

/* ── Screens ──────────────────────────────────────────────────── */

.screens {
    display: grid;
    gap: clamp(18px, 3vw, 32px);
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 820px) {
    .screens { grid-template-columns: 1.55fr 1fr; }
}
.screens figure {
    margin: 0;
}
.screens img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
}
/* The phone capture is 640x1391 — over twice the tablet's aspect height. Left
   to fill its column it towers over the tablet and tears a hole in the row, so
   it is bounded by height and centred instead of by width. */
.screens .shot-phone img {
    width: auto;
    max-height: min(70vh, 460px);
    margin-inline: auto;
}
.screens figcaption {
    margin-top: 12px;
    font-size: 14px;
    color: var(--muted);
    text-align: center;
}

/* ── World roadmap ────────────────────────────────────────────── */

.worlds {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    list-style: none;
    padding: 0;
    margin: 0;
}
.world {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}
.world .emoji { font-size: 26px; line-height: 1; }
.world .name { display: block; margin-top: 10px; font-weight: 700; }
.world .state {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
}
.state--live    { background: var(--cobalt-light); color: var(--cobalt); }
.state--planned { background: var(--cream-2);      color: var(--muted); }

/* ── Privacy callout ──────────────────────────────────────────── */

.callout {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--leaf);
    border-radius: var(--radius);
    padding: clamp(22px, 3vw, 32px);
    box-shadow: var(--shadow);
}
.callout h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.02em; }
.callout p  { margin: 0; color: var(--ink-soft); max-width: 62ch; }

/* ── Footer ───────────────────────────────────────────────────── */

.site-foot {
    border-top: 1px solid var(--line);
    padding: 36px 0 56px;
    margin-top: clamp(30px, 6vw, 70px);
    font-size: 14.5px;
    color: var(--muted);
}
.site-foot .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    align-items: center;
    justify-content: space-between;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { color: var(--ink-soft); text-decoration: none; }
.foot-links a:hover { color: var(--cobalt); }

/* ── Legal / prose pages ──────────────────────────────────────── */

.prose {
    max-width: 72ch;
    margin-inline: auto;
    padding-block: clamp(24px, 5vw, 56px);
}
.prose h1 {
    font-size: clamp(30px, 5vw, 42px);
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    line-height: 1.15;
}
.prose .updated {
    color: var(--muted);
    font-size: 14.5px;
    margin: 0 0 34px;
}
.prose h2 {
    font-size: clamp(19px, 2.4vw, 23px);
    letter-spacing: -0.01em;
    margin: 38px 0 10px;
}
.prose p, .prose li { color: var(--ink-soft); }
.prose li { margin-bottom: 7px; }
.prose ul { padding-left: 22px; }
.prose strong { color: var(--ink); }
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 15px;
}
.prose th, .prose td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.prose th { color: var(--ink); font-weight: 700; }
/* Long tables must scroll inside their own box, never the page body. */
.table-scroll { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}
