/*
 * Reverie PvP.
 *
 * The other site is a fan site from 2004 with a gold hairline on every seam.
 * This one is a working document: one column, one accent, and nothing on the
 * page that is not either something to read or something to press.
 *
 * It shares two things with l2v.css and no more -- the wordmark's face and the
 * gold -- because the two sites are the same project and a visitor arriving
 * from one should recognise the other without being served the same furniture.
 *
 * No inline style anywhere, so the policy stays style-src 'self'.
 */

@font-face {
    font-family: "Cinzel";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/cinzel-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- tokens -- */

:root {
    --bg: #0d0b11;
    --surface: #15121c;
    --surface-lift: #1b1725;
    --line: #272033;
    --line-soft: #1f1a29;

    --text: #e6e1ee;
    --text-body: #c3bcd2;
    --text-mute: #9a92ac;
    --text-faint: #7d7590;

    --gold: #e0bd7d;
    --gold-deep: #b9924f;
    --blood: #c8503f;
    --blood-lit: #e3705d;
    --green: #6fae74;
    --lilac: #a691c0;

    --radius: 6px;
    --column: 46rem;

    --step: clamp(2.5rem, 6vw, 4rem);
}

/* ------------------------------------------------------------------ base -- */

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text-body);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: #3a2350;
    color: #fff;
}

a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(224, 189, 125, 0.28);
}

a:hover,
a:focus {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

h1,
h2,
h3 {
    color: var(--text);
    line-height: 1.25;
    margin: 0;
    font-weight: 600;
}

p {
    margin: 0;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 0.6rem 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    z-index: 2;
}

.skip:focus {
    left: 1rem;
    top: 1rem;
}

/* ------------------------------------------------------------------ page -- */

.page {
    max-width: var(--column);
    margin: 0 auto;
    padding: clamp(2.5rem, 8vw, 5rem) 1.25rem 4rem;
}

.page--error {
    min-height: 60vh;
}

/* ------------------------------------------------------------------ head -- */

.head {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}

.head__mark {
    font-family: "Cinzel", Georgia, "Times New Roman", serif;
    font-size: 0.94rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 1.5rem;
}

.head__pvp {
    color: var(--blood);
}

.head__title {
    font-size: clamp(1.9rem, 5.5vw, 2.7rem);
    letter-spacing: -0.015em;
    color: #fff;
}

.head__lead {
    margin-top: 1.1rem;
    font-size: 1.06rem;
    color: var(--text-mute);
    max-width: 38rem;
}

/* ---------------------------------------------------------------- notice -- */

.notice {
    margin-top: 1.75rem;
    padding: 0.85rem 1.1rem;
    background: var(--surface-lift);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.95rem;
}

/* ---------------------------------------------------------------- blocks -- */

.block {
    margin-top: var(--step);
    scroll-margin-top: 1.5rem;
}

.block__heading {
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

.block__heading::after {
    content: "";
    display: block;
    width: 2.25rem;
    height: 2px;
    margin-top: 0.85rem;
    background: var(--blood);
}

.block__lead {
    margin-top: 1.1rem;
    color: var(--text-mute);
}

/* ----------------------------------------------------------------- index -- */

/*
 * The page is long and most people want one topic out of it. Two columns of
 * plain links, numbered, so the shape of the whole thing is visible before the
 * first paragraph of it.
 */
.index {
    list-style: none;
    counter-reset: topic;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.15rem 1.5rem;
}

.index__row {
    counter-increment: topic;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--line-soft);
}

.index__row::before {
    content: counter(topic, decimal-leading-zero);
    color: var(--text-faint);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.index__link {
    color: var(--text-body);
    border-bottom: 0;
    font-size: 0.93rem;
}

.index__link:hover {
    color: var(--gold);
}

/* ----------------------------------------------------------------- steps -- */

/*
 * One evening, in order. The systems below only make sense together, and a
 * list of definitions never shows that.
 */
.steps {
    list-style: none;
    margin: 1.6rem 0 0;
    padding: 0;
    display: grid;
    gap: 0;
}

.step {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 1rem;
    padding: 0.85rem 0 0.85rem 0;
    border-bottom: 1px solid var(--line-soft);
}

.step:last-child {
    border-bottom: 0;
}

.step__time {
    color: var(--gold);
    font-size: 0.88rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.step__what {
    color: var(--text-mute);
    font-size: 0.97rem;
}

/* ---------------------------------------------------------------- glance -- */

.glance {
    margin: 1.5rem 0 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.glance__row {
    display: grid;
    grid-template-columns: 11rem 1fr;
    gap: 1rem;
    padding: 0.7rem 1.1rem;
    border-bottom: 1px solid var(--line-soft);
}

.glance__row:last-child {
    border-bottom: 0;
}

.glance__label {
    color: var(--text-faint);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    align-self: center;
}

.glance__value {
    margin: 0;
    color: var(--text);
    font-size: 0.97rem;
}

/* -------------------------------------------------------------- promises -- */

.promises {
    list-style: none;
    margin: 1.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 1.35rem;
}

.promise {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0 0.9rem;
}

.promise__number {
    grid-row: span 2;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--gold-deep);
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

.promise__title {
    font-size: 1rem;
    color: #fff;
    align-self: center;
}

/* Which of the two things this promise protects. Gold for the ones about time,
   lilac for the ones about permanence: the reader meets the same pair again as
   the criterion above the suggestion box. */
.promise__kind {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.05rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    vertical-align: middle;
    white-space: nowrap;
    color: var(--text-faint);
}

.promise__kind--tempo {
    color: var(--gold);
    border-color: rgba(224, 189, 125, 0.35);
}

.promise__kind--permanencia {
    color: var(--lilac);
    border-color: rgba(166, 145, 192, 0.35);
}

.promise__kind--ambas {
    color: var(--blood-lit);
    border-color: rgba(200, 80, 63, 0.4);
}

.promise__body {
    margin-top: 0.35rem;
    color: var(--text-mute);
    font-size: 0.97rem;
}

/* ----------------------------------------------------------------- items -- */

.items {
    margin-top: 1.6rem;
    display: grid;
    gap: 1.5rem;
}

.item {
    padding-left: 1rem;
    border-left: 2px solid var(--line);
}

.item__title {
    font-size: 1rem;
    color: #fff;
}

.item__body {
    margin-top: 0.4rem;
    color: var(--text-mute);
    font-size: 0.97rem;
}

/* A system with rules gets its rules as a list. Anything that needed six
   sentences in a row was a topic hiding two topics. */
.bullets {
    list-style: none;
    margin: 0.6rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.bullet {
    position: relative;
    padding-left: 1rem;
    color: var(--text-mute);
    font-size: 0.95rem;
}

.bullet::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold-deep);
}

/* ------------------------------------------------------------------ open -- */

.block--open .block__heading::after {
    background: var(--gold);
}

.open {
    list-style: none;
    margin: 1.6rem 0 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

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

.open__title {
    font-size: 0.98rem;
    color: var(--gold);
}

.open__body {
    margin-top: 0.35rem;
    color: var(--text-mute);
    font-size: 0.95rem;
}

/* ------------------------------------------------------------------ form -- */

.board {
    padding-top: 0.5rem;
}

/* The criterion a suggestion is weighed against, said out loud above the box. */
.filter {
    margin-top: 1.5rem;
    padding: 1rem 1.15rem;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

.filter__title {
    font-size: 0.95rem;
    color: var(--gold);
}

.filter__body {
    margin-top: 0.4rem;
    color: var(--text-mute);
    font-size: 0.94rem;
}

.form {
    margin-top: 1.75rem;
    padding: 1.35rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.form__row--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field {
    display: block;
    margin: 0 0 1rem;
}

.field__label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.field__input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.97rem;
}

.field__input::placeholder {
    color: #6a6280;
}

.field__input:focus {
    border-color: var(--gold-deep);
    outline: none;
}

.field__input--area {
    resize: vertical;
    min-height: 7.5rem;
    line-height: 1.55;
}

.field__input--select {
    appearance: none;
}

.form__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
}

.form__rules {
    font-size: 0.85rem;
    color: var(--text-faint);
}

.button {
    padding: 0.62rem 1.25rem;
    background: var(--blood);
    color: #fff;
    border: 1px solid var(--blood);
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.button:hover {
    background: var(--blood-lit);
    border-color: var(--blood-lit);
}

.button--quiet {
    background: transparent;
    color: var(--text-mute);
    border-color: var(--line);
    font-weight: 400;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.button--quiet:hover {
    background: var(--surface-lift);
    border-color: var(--gold-deep);
    color: var(--text);
}

.closed {
    margin-top: 1.75rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--blood);
    border-radius: var(--radius);
}

.closed__title {
    font-size: 1rem;
}

.closed__body {
    margin-top: 0.35rem;
    color: var(--text-mute);
}

/* ----------------------------------------------------------------- tools -- */

.tools {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 2.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.tally {
    font-size: 0.88rem;
    color: var(--text-faint);
}

.tally__figure {
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.tally__sep {
    padding: 0 0.35rem;
}

.sorts {
    display: flex;
    gap: 0.4rem;
}

.sort {
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-mute);
}

.sort:hover {
    color: var(--text);
    border-color: var(--gold-deep);
}

.sort--on {
    color: #1a1420;
    background: var(--gold);
    border-color: var(--gold);
}

.sort--on:hover {
    color: #1a1420;
}

/* ----------------------------------------------------------------- cards -- */

.empty {
    margin-top: 2rem;
    color: var(--text-faint);
}

.cards {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.card {
    display: grid;
    grid-template-columns: 3.4rem 1fr;
    gap: 0.9rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    scroll-margin-top: 1.5rem;
}

.card:target {
    border-color: var(--gold-deep);
}

.vote {
    margin: 0;
}

.vote__button {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.5rem 0.25rem;
    background: var(--bg);
    color: var(--text-mute);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font: inherit;
    cursor: pointer;
}

.vote__button:hover {
    border-color: var(--blood);
    color: var(--blood-lit);
}

.vote__button--on {
    border-color: var(--blood);
    background: rgba(200, 80, 63, 0.12);
    color: var(--blood-lit);
}

.vote__arrow {
    font-size: 0.7rem;
    line-height: 1;
}

.vote__count {
    font-size: 0.95rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-faint);
}

.card__author {
    color: var(--text-mute);
}

.card__when {
    font-variant-numeric: tabular-nums;
}

.card__text {
    margin-top: 0.55rem;
    color: var(--text-body);
    font-size: 0.99rem;
    overflow-wrap: break-word;
}

.chip {
    padding: 0.12rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    color: var(--text-mute);
    background: var(--surface-lift);
}

.chip--farm,
.chip--progressao {
    border-color: rgba(224, 189, 125, 0.35);
    color: var(--gold);
}

.chip--clas,
.chip--solo,
.chip--eventos {
    border-color: rgba(200, 80, 63, 0.4);
    color: var(--blood-lit);
}

.chip--status {
    border-style: dashed;
}

.chip--accepted {
    color: var(--green);
    border-color: rgba(111, 174, 116, 0.45);
    border-style: solid;
}

.chip--declined {
    color: var(--text-faint);
    text-decoration: line-through;
}

/* ----------------------------------------------------------------- staff -- */

.staff {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--line);
}

.staff__form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
}

.staff__label {
    font-size: 0.78rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.staff__select {
    padding: 0.3rem 0.5rem;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.85rem;
}

/* ----------------------------------------------------------------- pages -- */

.pages {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.pages__link {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 0.88rem;
    color: var(--text-mute);
}

.pages__link:hover {
    color: var(--text);
    border-color: var(--gold-deep);
}

/* ------------------------------------------------------------------ foot -- */

.foot {
    max-width: var(--column);
    margin: 0 auto;
    padding: 2rem 1.25rem 3.5rem;
    border-top: 1px solid var(--line);
}

.foot__line {
    color: var(--text-mute);
    font-size: 0.9rem;
}

.foot__line--fine {
    margin-top: 0.6rem;
    color: var(--text-faint);
    font-size: 0.8rem;
    line-height: 1.6;
}

.foot__link {
    color: var(--text-mute);
    border-bottom-color: var(--line);
}

.foot__link:hover {
    color: var(--gold);
}

.foot__sep {
    padding: 0 0.4rem;
    color: var(--line);
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 34rem) {
    body {
        font-size: 15px;
    }

    .glance__row {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

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

    .step {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .form__row--split {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .card {
        grid-template-columns: 2.9rem 1fr;
        gap: 0.7rem;
    }

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

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
