/* books.yatam.fun — club site styles */

:root {
    --bg: #14100d;
    --bg-soft: #1b1512;
    --surface: #211a16;
    --surface-2: #2a211c;
    --line: #3a2f28;
    --text: #ece4d8;
    --muted: #a99a8b;
    --gold: #c9a227;
    --gold-soft: #e0bf5c;
    --radius: 14px;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(1000px 600px at 15% -10%, rgba(201, 162, 39, 0.13), transparent 60%),
        radial-gradient(900px 500px at 90% 0%, rgba(120, 80, 40, 0.18), transparent 65%),
        var(--bg);
    color: var(--text);
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
}

h1 {
    font-size: clamp(2.1rem, 5.2vw, 3.6rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

h3 {
    font-size: 1.15rem;
    letter-spacing: 0;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--gold-soft);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: #f2d888;
}

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

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 1rem;
    top: 1rem;
    z-index: 20;
    background: var(--gold);
    color: #1a1410;
    padding: 0.6rem 1rem;
    border-radius: 8px;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(20, 16, 13, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.85rem 0;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    text-decoration: none;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.brand svg {
    width: 26px;
    height: 26px;
    flex: none;
}

.brand-domain {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.site-header nav {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.site-header nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.site-header nav a:hover {
    color: var(--text);
    border-bottom-color: var(--gold);
}

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

.hero {
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem);
    border-bottom: 1px solid var(--line);
}

.kicker {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

.hero h1 {
    max-width: 22ch;
}

.lede {
    max-width: 62ch;
    font-size: 1.12rem;
    color: #d8cdbe;
}

.now {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.2rem 0 1.6rem;
    padding: 0.45rem 0.95rem;
    border: 1px solid rgba(201, 162, 39, 0.45);
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.08);
    font-size: 0.9rem;
    color: #e8dcab;
}

.now::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.18);
    flex: none;
}

.cta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 1.8rem 0 2.6rem;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.35rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn.primary {
    background: var(--gold);
    color: #1a1410;
}

.btn.primary:hover {
    background: var(--gold-soft);
    color: #1a1410;
}

.btn.ghost {
    border-color: var(--line);
    color: var(--text);
}

.btn.ghost:hover {
    border-color: var(--gold);
    color: var(--gold-soft);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.stats li {
    background: var(--bg-soft);
    padding: 1rem 1.1rem;
}

.stats strong {
    display: block;
    font-size: 1.5rem;
    color: var(--gold-soft);
    line-height: 1.2;
}

.stats span {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

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

section {
    padding: clamp(2.4rem, 6vw, 4.2rem) 0;
}

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

.section-head {
    max-width: 66ch;
    margin-bottom: 2rem;
}

.section-head p {
    color: var(--muted);
    margin: 0;
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid.three {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: linear-gradient(180deg, var(--surface), var(--bg-soft));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
}

.card h3 {
    color: var(--gold-soft);
    margin-bottom: 0.4rem;
}

.card p:last-child {
    margin-bottom: 0;
}

/* books */

.books {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.book {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.book:hover {
    border-color: rgba(201, 162, 39, 0.55);
    transform: translateY(-2px);
}

.tag {
    align-self: flex-start;
    margin: 0 0 0.7rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.3);
    color: #e3cb7c;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.book h3 {
    margin-bottom: 0.15rem;
}

.author {
    margin: 0 0 0.75rem;
    font-size: 0.86rem;
    color: var(--muted);
    letter-spacing: 0.03em;
}

.annotation {
    margin: 0;
    font-size: 0.98rem;
    color: #d9cfc1;
}

/* quotes */

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

blockquote {
    margin: 0;
    padding: 1.6rem 1.5rem 1.3rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    position: relative;
}

blockquote p {
    font-size: 1.1rem;
    font-style: italic;
    color: #f0e8dc;
    margin-bottom: 0.8rem;
}

blockquote footer {
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.03em;
}

blockquote footer::before {
    content: "— ";
}

/* schedule */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
    font-size: 0.98rem;
}

caption {
    caption-side: top;
    text-align: left;
    padding: 1.1rem 1.3rem 0.2rem;
    color: var(--muted);
    font-size: 0.85rem;
}

th,
td {
    text-align: left;
    padding: 0.95rem 1.3rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

thead th {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 400;
    background: rgba(201, 162, 39, 0.06);
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: rgba(201, 162, 39, 0.05);
}

td:first-child {
    white-space: nowrap;
    color: var(--gold-soft);
}

td small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* join */

.join {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.steps {
    counter-reset: step;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding-left: 3rem;
    min-height: 2.2rem;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(201, 162, 39, 0.5);
    background: rgba(201, 162, 39, 0.1);
    color: var(--gold-soft);
    font-size: 0.95rem;
}

.steps strong {
    display: block;
    color: var(--text);
}

.steps span {
    color: var(--muted);
    font-size: 0.95rem;
}

.rules {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.rules h3 {
    color: var(--gold-soft);
    margin-bottom: 0.9rem;
}

.rules ul {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.6rem;
    font-size: 0.96rem;
    color: #d6ccbe;
}

/* footer */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2.2rem 0 3rem;
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-inner {
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.site-footer strong {
    color: var(--text);
    font-weight: 600;
}

.site-footer a {
    color: var(--gold-soft);
}

@media (max-width: 760px) {
    body {
        font-size: 17px;
    }

    .join {
        grid-template-columns: 1fr;
    }

    .site-header nav {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .header-inner {
        padding: 0.7rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn:hover,
    .book:hover {
        transform: none;
    }
}
