/* The Modding Tavern theme, as TavernDocs uses it: every text colour is 5:1 or more on every surface. Dark only. */
:root {
    --background: #15100d;
    --foreground: #ede3d1;
    --card: #1f1814;
    --primary: #f0b24a;
    --primary-foreground: #1d140c;
    --secondary: #33281f;
    --muted-foreground: #b8a78d;
    --border: #3f3127;
    --radius: 0.5rem;
    color-scheme: dark;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font: 1.0625rem/1.6 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; color: var(--primary); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 0 0 1rem; }
h2 { font-size: 1.75rem; margin: 3rem 0 1rem; }
h3 { font-size: 1.3rem; margin: 0 0 0.4rem; }

a { color: var(--primary); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem;
    padding: 0.6rem clamp(1rem, 4vw, 2rem); background: var(--card); border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font: bold 1.15rem Georgia, serif; text-decoration: none; }
.bar nav { display: flex; gap: 1.25rem; }
.bar nav a { color: var(--muted-foreground); text-decoration: none; }
.bar nav a:hover { color: var(--foreground); text-decoration: underline; }

main, footer { max-width: 60rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

.hero { padding: clamp(2.5rem, 8vw, 5rem) 0 1rem; }
.lead { font-size: 1.25rem; max-width: 42rem; margin: 0 0 1.75rem; }
.small { color: var(--muted-foreground); font-size: 0.95rem; max-width: 42rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.button {
    display: inline-block; padding: 0.7rem 1.2rem; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--secondary); color: var(--foreground); font-weight: 600; text-decoration: none;
}
.button:hover { border-color: var(--primary); }
.button.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.button.primary:hover { filter: brightness(1.08); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 40rem) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card {
    display: block; padding: 1.25rem 1.4rem; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--foreground); text-decoration: none;
}
.card:hover { border-color: var(--primary); }
.card p { margin: 0; }

.faq { margin: 0; }
.faq dt { font-weight: 700; margin-top: 1.25rem; }
.faq dd { margin: 0.25rem 0 0; max-width: 44rem; }

footer { margin-top: 4rem; padding-top: 1.5rem; padding-bottom: 3rem; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: 0.95rem; }
footer p { margin: 0 0 0.5rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
