/* Inkfang — site styles.
   Tokens copied from app/lib/theme/ink_colors.dart so the page and the game
   are the same black, the same paper and the same red. */

@font-face {
    font-family: 'Manrope';
    src: url('assets/fonts/Manrope-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('assets/fonts/Manrope-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

:root {
    --ink-black: #0e0e12;
    --ink-charcoal: #1c1c22;
    --ink-grey: #3a3a42;
    --paper-white: #f4f1ea;
    --paper-muted: #98968f;
    --fang-red: #e63946;
    /* Two shifted reds, both measured against the surfaces they land on: the
       eyebrow needs 4.5:1 on a band (the brand red gives 4.11), the big step
       numerals are large text and need 3:1. */
    --fang-red-text: #f0505c;
    --fang-red-dim: #c2404b;
    --measure: 42rem;
    --wide: 64rem;
}

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

body {
    margin: 0;
    /* Two washes and a grain, all painted in CSS: the page carries the app's
       look without loading a single texture the CSP would have to allow. */
    background-color: var(--ink-black);
    background-image:
        radial-gradient(60rem 32rem at 50% -8rem, rgba(230, 57, 70, 0.16), transparent 70%),
        radial-gradient(48rem 30rem at 12% 8rem, rgba(244, 241, 234, 0.05), transparent 65%);
    background-repeat: no-repeat;
    color: var(--paper-white);
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: var(--paper-white);
    text-decoration-color: var(--fang-red);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--fang-red);
}

/* --- masthead --- */

header.masthead {
    padding: 5.5rem 0 4rem;
    text-align: center;
}

header.masthead img.logo {
    display: block;
    width: 100%;
    max-width: 34rem;
    height: auto;
    margin: 0 auto 0.5rem;
}

p.tagline {
    margin: 0 auto;
    max-width: 30rem;
    color: var(--paper-white);
    font-size: 1.25rem;
    line-height: 1.45;
}

p.tagline em {
    font-style: normal;
    color: var(--fang-red);
}

p.lede {
    margin: 1.25rem auto 0;
    max-width: 36rem;
    color: var(--paper-muted);
    font-size: 1.0625rem;
}

.status {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.65rem 1.25rem;
    border: 1px solid var(--ink-grey);
    border-radius: 8px;
    color: var(--paper-muted);
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    background: rgba(28, 28, 34, 0.6);
}

/* --- sections --- */

section {
    padding: 3.25rem 0;
    border-top: 1px solid var(--ink-charcoal);
}

/* A band is a section that steps forward out of the black, so the page has a
   rhythm instead of one uninterrupted column. */
section.band {
    background: linear-gradient(180deg, rgba(28, 28, 34, 0.75), rgba(28, 28, 34, 0.35));
}

.eyebrow {
    margin: 0 0 0.5rem;
    color: var(--fang-red-text);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Grids get their own measure: prose stays narrow, cards are allowed to spread.
   The width has to come from the wrapper — a max-width on the grid alone cannot
   push past the column it sits in. */
.wrap.wide,
section.band .wrap {
    max-width: var(--wide);
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    margin: 0 0 0.75rem;
    font-size: 1.375rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

h2::after {
    content: '';
    display: block;
    width: 2.5rem;
    height: 3px;
    margin-top: 0.6rem;
    background: var(--fang-red);
}

h3 {
    margin: 2rem 0 0.4rem;
    font-size: 1.0625rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--paper-white);
}

p {
    margin: 0 0 1rem;
    color: var(--paper-white);
}

/* --- the three steps --- */

ol.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

ol.steps li {
    margin: 0;
    padding-top: 1.25rem;
    border-top: 2px solid var(--fang-red);
}

.step-no {
    display: block;
    color: var(--fang-red-dim);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
}

ol.steps h3 {
    margin: 0.5rem 0 0.4rem;
}

ol.steps p {
    margin: 0;
    color: var(--paper-muted);
    font-size: 0.9375rem;
}

/* --- the feature cards --- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.card {
    padding: 1.5rem 1.5rem 1.25rem;
    border: 1px solid var(--ink-grey);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(28, 28, 34, 0.9), rgba(14, 14, 18, 0.9));
}

.card:hover {
    border-color: var(--fang-red);
}

.card h3 {
    margin: 0 0 0.6rem;
    color: var(--paper-white);
}

.card h3::before {
    content: '';
    display: block;
    width: 1.75rem;
    height: 2px;
    margin-bottom: 0.7rem;
    background: var(--fang-red);
}

.card p {
    margin: 0;
    color: var(--paper-muted);
    font-size: 0.9375rem;
}

/* --- the earned list --- */

ul.earned {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 2.5rem;
}

ul.earned li {
    margin: 0 0 0.9rem;
    padding-left: 1.6rem;
    position: relative;
    break-inside: avoid;
    font-size: 0.9375rem;
}

/* A brush tick, drawn with two borders rather than an image. */
ul.earned li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0.45rem;
    height: 0.85rem;
    border-right: 2px solid var(--fang-red);
    border-bottom: 2px solid var(--fang-red);
    transform: rotate(40deg);
}

p.muted,
li.muted {
    color: var(--paper-muted);
}

ul {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
}

li {
    margin-bottom: 0.4rem;
}

li::marker {
    color: var(--fang-red);
}

.icon-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.75rem;
    padding: 1.25rem;
    border: 1px solid var(--ink-charcoal);
    border-radius: 12px;
    background: rgba(28, 28, 34, 0.5);
}

.icon-row img {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    flex: 0 0 auto;
}

.icon-row p {
    margin: 0;
    color: var(--paper-muted);
    font-size: 0.9375rem;
}

/* --- tables, used by the privacy page --- */

.scroll {
    overflow-x: auto;
    margin: 0 0 1.5rem;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 26rem;
    font-size: 0.9375rem;
}

th,
td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--ink-charcoal);
    vertical-align: top;
}

th {
    color: var(--paper-muted);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.8125rem;
}

/* --- footer --- */

footer {
    padding: 3rem 0 4rem;
    border-top: 1px solid var(--ink-charcoal);
    color: var(--paper-muted);
    font-size: 0.9375rem;
}

footer nav {
    margin-bottom: 0.75rem;
}

footer nav a {
    margin-right: 1.25rem;
}

/* --- page header on the privacy page --- */

.page-head {
    padding: 3rem 0 1rem;
}

.page-head h1 {
    margin: 0 0 0.35rem;
    font-size: 2rem;
    letter-spacing: 0.02em;
}

.page-head p {
    margin: 0;
    color: var(--paper-muted);
    font-size: 0.9375rem;
}

.lang-switch {
    margin: 1.5rem 0 0;
    font-size: 0.9375rem;
    color: var(--paper-muted);
}

@media (max-width: 48rem) {
    ul.earned {
        columns: 1;
    }
}

@media (max-width: 34rem) {
    header.masthead {
        padding: 3rem 0 2rem;
    }

    p.tagline {
        font-size: 1.125rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .icon-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
