/* The Dragonveil look: colours, Georgia headings, top bar, cards and footer. Only this file styles the site (no inline
   styles, no outside fonts). Every visitor downloads this file: no PC paths or notes about hidden features in comments. */

:root {
    --text: #eeeae0;
    --page: #101412;
    --panel: #141a16;
    --muted: #8e998e;
    --soft: #9ea79e;
    --gold: #c5ac75;
    --gold-light: #d6be88;
    --gold-text: #bba477;
    --line: #ffffff12;
    --card-line: #6171533d;
    --input-line: #66715b45;
    --input-back: #101611;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: var(--text);
    background: var(--page);
    font-synthesis: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--page);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button,
a,
input {
    outline-offset: 5px;
}

button {
    cursor: pointer;
}

/* Top bar with the crest and the brand */
.topbar {
    height: 96px;
    padding: 0 4.5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    font-family: Georgia, serif;
    letter-spacing: 2px;
    font-size: 20px;
}

.brand small {
    display: block;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 8px;
    letter-spacing: 3px;
    color: #929b90;
    margin-top: 5px;
}

.crest {
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font: 31px Georgia, serif;
    width: 38px;
    height: 43px;
    display: grid;
    place-items: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
}

/* The page */
main {
    flex: 1;
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding: 45px 4.5% 28px;
}

.intro {
    margin-bottom: 30px;
}

.eyebrow {
    font-size: 9px;
    letter-spacing: 2.7px;
    color: var(--gold-text);
    margin: 0 0 13px;
}

h1 {
    font-family: Georgia, serif;
    font-weight: normal;
    font-size: clamp(30px, 3vw, 44px);
    letter-spacing: -1px;
    margin: 0 0 13px;
}

.lead {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
}

.card {
    border-top: 1px solid var(--card-line);
    padding-top: 17px;
}

.card-number {
    font-size: 8px;
    color: #869479;
    letter-spacing: 1.8px;
}

.card h3 {
    font: 19px Georgia, serif;
    margin: 14px 0 10px;
}

.card p {
    font-size: 11px;
    line-height: 1.8;
    color: #87947f;
    margin: 0;
}

/* Forms */
label {
    display: block;
    font-size: 11px;
    margin: 17px 0 8px;
    color: #c4cdbd;
}

input {
    border: 1px solid var(--input-line);
    border-radius: 3px;
    background: var(--input-back);
    box-shadow: inset 0 1px 3px #0002;
    color: #e5eadf;
    width: 100%;
    height: 41px;
    padding: 0 12px;
    font-size: 12px;
}

input:focus {
    border-color: #b8a273;
}

.primary {
    background: linear-gradient(110deg, #d8c18b, #b89a5b);
    color: #292616;
    border: 1px solid #e0cba16e;
    border-radius: 3px;
    height: 43px;
    width: 100%;
    margin-top: 16px;
    font-weight: 600;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 3px 15px #0003;
}

.primary:hover {
    filter: brightness(1.12);
}

.card .echo {
    margin-top: 13px;
    color: #acb79f;
    overflow-wrap: anywhere;
}

/* Account pages (W-3): one narrow form column, messages, the hint, the 18+ box, the session list */
.narrow {
    max-width: 440px;
}

.message {
    border-left: 2px solid var(--gold);
    background: var(--panel);
    padding: 10px 14px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text);
    margin: 0 0 8px;
}

.card .hint,
.hint {
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
    margin: 8px 0 0;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Item lists: one row per item, its price and its button on the right */
.store-items {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.store-items li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line, #2a332c);
}

.store-items .store-name {
    flex: 1 1 auto;
}

.store-items .store-price {
    color: var(--gold);
    white-space: nowrap;
}

.store-items .primary {
    width: auto;
    margin-top: 0;
    gap: 8px;
    flex: 0 0 auto;
}

.store-items .hint {
    margin: 0;
    white-space: nowrap;
}

.store-balance strong {
    font-size: 22px;
    color: var(--gold);
}

.check input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.card .after {
    margin-top: 16px;
}

.after a,
.link-button {
    color: var(--gold-light);
}

/* A link drawn as the gold button keeps the button's dark text wherever it stands (owner 2026-11-09: unreadable on the home
   page when a link colour above won). */
a.primary {
    color: #292616;
    text-decoration: none;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
}

.topbar-account {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 12px;
    color: var(--soft);
}

.topbar-account form {
    margin: 0;
}

.sessions {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sessions li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 11px;
    line-height: 1.8;
    color: #87947f;
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
}

/* The authenticator key's QR code (W-6): on white so phone cameras read it */
.qr {
    display: block;
    margin: 14px 0;
    background: #fff;
    padding: 8px;
    image-rendering: pixelated;
}

/* Footer */
footer {
    border-top: 1px solid var(--line);
    padding: 22px 4.5%;
    display: flex;
    justify-content: space-between;
    color: #5f7056;
    font-size: 9px;
    letter-spacing: 1px;
}

footer span:first-child {
    font-family: Georgia, serif;
    font-size: 13px;
    letter-spacing: 0;
}

/* Phones: a 16 px side gutter, smaller brand */
@media (max-width: 690px) {
    .topbar {
        height: 73px;
        padding: 0 16px;
    }

    .brand {
        font-size: 13px;
    }

    .brand small {
        font-size: 6px;
    }

    .crest {
        width: 30px;
        height: 35px;
        font-size: 24px;
    }

    main {
        padding: 30px 16px 22px;
    }

    footer {
        padding: 22px 16px;
    }
}
