/*
  Honin website styles.
  Colours and type follow Docs/Brand.md: navy panels, deep-teal buttons, cream type,
  gold highlights, SF Pro Rounded. Cards carry the game's stitched inner border.
*/

:root {
    --navy: #171F29;
    --panel: #1F2936;
    --panel-line: rgba(242, 235, 217, 0.10);
    --teal: #296354;
    --teal-light: #61AD94;
    --teal-deep: #123830;
    --text: #F2EBD9;
    --text-dim: rgba(242, 235, 217, 0.68);
    --gold: #FFCC57;
    --gold-deep: #E38F29;
    --cream: #FFF7E6;

    --rounded: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius: 22px;
    --page: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 90% 55% at 50% -8%, rgba(227, 143, 41, 0.22), transparent 70%),
        radial-gradient(ellipse 70% 40% at 50% 0%, rgba(97, 173, 148, 0.12), transparent 70%),
        var(--navy);
    color: var(--text);
    font-family: var(--rounded);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--cream); }

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 8px;
}

.wrap {
    width: min(var(--page), 100% - 40px);
    margin-inline: auto;
}

.skip {
    position: absolute;
    left: -9999px;
}
.skip:focus {
    left: 16px;
    top: 16px;
    z-index: 10;
    background: var(--panel);
    padding: 8px 14px;
    border-radius: 12px;
}

/* ---------- Header and footer ---------- */

.site-header {
    padding: 18px 0;
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 0.04em;
}
.brand img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--cream);
}

.nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 6px 12px;
    border-radius: 12px;
}
.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--text);
    background: rgba(242, 235, 217, 0.06);
}

.site-footer {
    margin-top: 72px;
    padding: 28px 0 36px;
    border-top: 1px dashed var(--panel-line);
    color: var(--text-dim);
    font-size: 15px;
}
.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--text-dim); text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--text); }
.tagline-inline { font-style: italic; }

/* ---------- Wordmark ---------- */

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.02em;
    margin: 0;
    font-size: clamp(64px, 14vw, 132px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
}
.wordmark .letters,
.subtitle .letters {
    /* Cream letters lit from above, on a short teal-navy depth like a game button. */
    background: linear-gradient(180deg, var(--cream) 0%, var(--text) 55%, #D9CDB0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter:
        drop-shadow(0 0.045em 0 var(--teal-deep))
        drop-shadow(0 0.09em 0.08em rgba(0, 0, 0, 0.45));
}
.wordmark .o {
    width: 0.78em;
    height: 0.78em;
    margin-inline: 0.03em;
    border-radius: 50%;
    border: 0.04em solid var(--cream);
    box-shadow: 0 0.045em 0 var(--teal-deep), 0 0.09em 0.1em rgba(0, 0, 0, 0.45);
}

/* "Little Worlds": the wordmark's own letters, about a third of its size, so the two lines
   read as one title (as in the game). */
.subtitle {
    margin: 0.1em 0 0;
    font-size: clamp(22px, 4.8vw, 45px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.tagline {
    margin: 18px 0 0;
    font-weight: 600;
    font-size: clamp(13px, 2.2vw, 17px);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text);
}

/* ---------- Hero ----------
   The game behind the content, as game sites do: a silent loop of a living island fills the
   hero, with the logo, pitch and buttons over it. Navy fades at the top and bottom (the bottom
   one melting into the page) and a soft darkening behind the text keep it readable. */

.home .site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 3;
}
.home .nav a { color: rgba(255, 247, 230, 0.85); }
@media (max-width: 480px) {
    .home .nav a[href="#about"] { display: none; }
    .nav a { padding: 6px 8px; }
}

.hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(92vh, 900px);
    padding: 96px 0 80px;
    overflow: hidden;
    text-align: center;
    background: var(--navy) url("/assets/img/hero-poster.webp") center / cover no-repeat;
}
.hero-media {
    position: absolute;
    inset: 0;
}
.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 46% at 50% 50%, rgba(23, 31, 41, 0.7), rgba(23, 31, 41, 0) 100%),
        linear-gradient(180deg, rgba(23, 31, 41, 0.8) 0%, rgba(23, 31, 41, 0.32) 24%,
                        rgba(23, 31, 41, 0.32) 66%, var(--navy) 100%);
}
.hero-content { position: relative; z-index: 1; }

.hero .tagline { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.hero .lede {
    max-width: 32em;
    margin: 22px auto 0;
    text-wrap: balance;
    color: var(--text);
    font-size: 20px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75), 0 0 2px rgba(0, 0, 0, 0.5);
}
.actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* ---------- Buttons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 26px;
    border: 2px solid var(--teal-light);
    border-radius: 18px;
    background: linear-gradient(180deg, #33735F 0%, var(--teal) 100%);
    box-shadow: 0 4px 0 var(--teal-deep), 0 8px 18px rgba(0, 0, 0, 0.35);
    color: var(--text);
    font: inherit;
    font-weight: 800;
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.button:hover { color: var(--cream); filter: brightness(1.06); }
.button:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--teal-deep), 0 4px 10px rgba(0, 0, 0, 0.35);
}
.button[disabled] { opacity: 0.6; cursor: default; }

/* "Coming soon" stand-in for the App Store badge: a quiet, unclickable plaque. */
.soon {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 4px 22px;
    border: 2px solid rgba(255, 204, 87, 0.7);
    border-radius: 18px;
    background: linear-gradient(180deg, #2A3444 0%, var(--navy) 100%);
    box-shadow: 0 4px 0 #0E141B, 0 8px 18px rgba(0, 0, 0, 0.35);
    color: var(--gold);
    font-weight: 800;
    font-size: 17px;
    line-height: 1.2;
}
.soon small {
    color: var(--text-dim);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ---------- Sections and cards ---------- */

.section { padding-top: 72px; }

.heading {
    margin: 0 0 8px;
    font-size: clamp(30px, 5vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}
/* The gold stitch under titles, as in the game's captions. */
.heading::after {
    content: "";
    display: block;
    width: 120px;
    height: 8px;
    margin: 12px auto 0;
    background: radial-gradient(circle at 4px 4px, var(--gold) 2.2px, transparent 2.6px) 0 0 / 12px 8px repeat-x;
    opacity: 0.9;
}
.section-lede {
    max-width: 36em;
    margin: 16px auto 0;
    text-align: center;
    color: var(--text-dim);
}

.card {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--panel-line);
    border-radius: var(--radius);
    padding: 26px 26px 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}
/* Stitched inner border. */
.card::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1.5px dashed rgba(242, 235, 217, 0.13);
    border-radius: calc(var(--radius) - 7px);
    pointer-events: none;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.feature h3 {
    margin: 14px 0 6px;
    font-size: 21px;
    font-weight: 800;
}
.feature p {
    margin: 0;
    color: var(--text-dim);
    font-size: 17px;
}
.glyph {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: radial-gradient(circle at 50% 35%, rgba(255, 204, 87, 0.22), rgba(255, 204, 87, 0.05));
    border: 1px solid rgba(255, 204, 87, 0.35);
}
.glyph svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Newsletter ---------- */

.signup {
    max-width: 640px;
    margin: 36px auto 0;
    text-align: center;
    padding: 34px 30px 30px;
    background:
        radial-gradient(ellipse 80% 70% at 50% 0%, rgba(255, 204, 87, 0.10), transparent 70%),
        var(--panel);
}
.signup h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
}
.signup p { margin: 8px 0 0; color: var(--text-dim); }

.signup form {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}
.signup input[type="email"] {
    flex: 1 1 240px;
    min-height: 52px;
    padding: 0 18px;
    border: 2px solid rgba(242, 235, 217, 0.18);
    border-radius: 16px;
    background: var(--navy);
    color: var(--text);
    font: inherit;
    font-size: 18px;
}
.signup input[type="email"]::placeholder { color: rgba(242, 235, 217, 0.4); }
.signup input[type="email"]:focus {
    outline: none;
    border-color: var(--teal-light);
}
.signup .button { flex: 0 0 auto; }
.signup .fineprint {
    margin-top: 14px;
    font-size: 14px;
}
.signup .status {
    min-height: 1.6em;
    margin: 14px 0 0;
    font-weight: 700;
    color: var(--gold);
}
.signup.done form { display: none; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Text pages (privacy, terms, support) ---------- */

.page {
    max-width: 760px;
    margin: 32px auto 0;
    padding: 40px clamp(22px, 5vw, 48px) 36px;
}
.page h1 {
    margin: 0;
    font-size: clamp(32px, 6vw, 44px);
    font-weight: 800;
    line-height: 1.15;
}
.page .meta {
    margin: 8px 0 0;
    color: var(--text-dim);
    font-size: 15px;
}
.page h2 {
    margin: 34px 0 6px;
    font-size: 23px;
    font-weight: 800;
    color: var(--gold);
}
.page p, .page li { color: rgba(242, 235, 217, 0.88); }
.page ul { padding-left: 1.2em; }
.page li { margin: 4px 0; }
.page li::marker { color: var(--gold); }
.page strong { color: var(--text); }

.summary {
    margin-top: 24px;
    padding: 18px 22px;
    border-radius: 16px;
    background: rgba(97, 173, 148, 0.10);
    border: 1px solid rgba(97, 173, 148, 0.35);
}
.summary h2 { margin-top: 0; color: var(--teal-light); }
.summary ul { margin-bottom: 0; }

.faq details {
    border-top: 1px dashed var(--panel-line);
    padding: 14px 0;
}
.faq details:last-child { border-bottom: 1px dashed var(--panel-line); }
.faq summary {
    cursor: pointer;
    font-weight: 800;
    font-size: 19px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    color: var(--gold);
    font-weight: 900;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; }

.contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.contact p { margin: 0; }

/* ---------- Not found ---------- */

.lost {
    text-align: center;
    padding: 90px 0 20px;
}
.lost h1 { margin: 22px 0 6px; font-size: 40px; font-weight: 800; }
.lost p { color: var(--text-dim); margin: 0; }
.lost .icon { width: 110px; height: 110px; border-radius: 26px; opacity: 0.95; }
