/* Tab Tavern
   Evening-green base, sand text, lamp-amber accents.
   Lora for headings, Nunito Sans for body. */

:root {
    --bg: #16302b;
    --bg-2: #1c3a34;
    --panel: #22453e;
    --panel-2: #2a524a;
    --line: #2f5a51;
    --line-2: #3d6c62;
    --text: #efe6d2;
    --text-2: #c9bda3;
    --dim: #93a598;
    --amber: #e8a33c;
    --amber-2: #f4be63;
    --leaf: #8fcf9c;
    --brick: #e07a55;
    --display: 'Lora', Georgia, 'Times New Roman', serif;
    --body: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body { background: var(--bg); color: var(--text-2); font-family: var(--body); font-size: 17px; line-height: 1.62; }
img { display: block; max-width: 100%; }
main { min-height: 60vh; }
a { color: var(--amber); }
a:hover { color: var(--amber-2); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber-2); outline-offset: 2px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--display); color: var(--text); line-height: 1.12; font-weight: 700; }
h1 { font-size: 3.1rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h1 em, h2 em { font-style: italic; font-weight: 600; color: var(--amber-2); }
p { margin-bottom: 1.1em; }
.meta { font-size: 0.88rem; color: var(--dim); }
.meta a { color: var(--text-2); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--bg); padding: 8px 14px; border-radius: 4px; z-index: 2000; }
.skip-link:focus { left: 8px; }

.btn { display: inline-block; background: var(--amber); color: var(--bg); font-weight: 700; font-size: 0.95rem; padding: 12px 20px; border-radius: 6px; border: 2px solid var(--amber); text-decoration: none; cursor: pointer; font-family: var(--body); transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn:hover { background: var(--amber-2); border-color: var(--amber-2); color: var(--bg); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-line { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-line:hover { background: var(--panel); border-color: var(--text-2); color: var(--text); }

/* header */
.site-header { background: rgba(22, 48, 43, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 1.35rem; }
.brand:hover { color: var(--text); }
.brand em { font-style: italic; font-weight: 600; color: var(--amber-2); }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 0.95rem; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.nav a:hover, .nav a.active { color: var(--text); border-bottom-color: var(--amber); }
.nav a.btn { color: var(--bg); border-bottom: 2px solid var(--amber); }
.burger { display: none; width: 40px; height: 40px; background: transparent; border: 1px solid var(--line-2); border-radius: 6px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); }

.drawer { position: fixed; top: 0; right: 0; width: 260px; height: 100%; background: var(--bg-2); border-left: 1px solid var(--line); padding: 64px 24px 24px; transform: translateX(100%); transition: transform 0.25s ease; z-index: 1000; display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer a { color: var(--text); text-decoration: none; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.drawer-close { position: absolute; top: 12px; right: 18px; background: transparent; border: none; color: var(--text); font-size: 30px; cursor: pointer; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(10, 24, 20, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 900; }
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }

/* hero */
.hero { padding: 76px 0 54px; background: var(--bg) url('/assets/img/hero-bg.webp') center / cover no-repeat; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; font-size: 3.4rem; }
.hero-lead { font-size: 1.15rem; max-width: 540px; color: var(--text); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero .meta { margin: 0; max-width: 520px; }
.stack { position: relative; height: 400px; }
.stack img { position: absolute; width: 60%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; border: 5px solid #f5eedc; box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45); }
.stack img:nth-child(1) { left: 0; top: 24px; transform: rotate(-4deg); z-index: 1; }
.stack img:nth-child(2) { left: 34%; top: 0; transform: rotate(3deg); z-index: 2; }
.stack img:nth-child(3) { left: 16%; top: 190px; transform: rotate(-1.5deg); z-index: 3; }

/* games */
.games { padding: 56px 0 30px; }
.games-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.games-head p { margin: 0; max-width: 520px; }
.game { display: grid; grid-template-columns: 400px 1fr; gap: 36px; padding: 44px 0; border-top: 1px solid var(--line); align-items: start; scroll-margin-top: 90px; }
.game:first-of-type { border-top: none; }
.game-art { position: sticky; top: 90px; }
.game-art img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4); }
.game-art .score { position: absolute; left: 0; bottom: 30px; background: var(--amber); color: var(--bg); font-family: var(--display); font-weight: 700; font-size: 1.55rem; line-height: 1; padding: 9px 14px 8px 16px; border-radius: 0 6px 6px 0; display: flex; align-items: baseline; gap: 4px; }
.game-art .score small { font-size: 0.72rem; font-weight: 700; font-family: var(--body); color: rgba(22, 48, 43, 0.75); }
.game-art figcaption { font-size: 0.8rem; color: var(--dim); margin-top: 10px; }
.game-body .kicker { font-size: 0.9rem; color: var(--dim); margin-bottom: 6px; }
.game-body h3 { font-size: 2rem; margin-bottom: 4px; }
.game-body .meta { margin-bottom: 16px; }
.game-body p { max-width: 620px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; margin: 6px 0 22px; list-style: none; max-width: 620px; }
.two-col li { font-size: 0.94rem; padding-left: 20px; position: relative; color: var(--text); }
.two-col li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.two-col .up::before { content: "+"; color: var(--leaf); }
.two-col .down::before { content: "–"; color: var(--brick); }
.game-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.game-actions .meta { margin: 0; }

/* notes */
.notes { padding: 40px 0 60px; }
.notes-box { background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; padding: 30px 32px; }
.notes-box h2 { margin-bottom: 4px; }
.notes-box .meta { margin-bottom: 18px; }
.notes-list { list-style: none; }
.notes-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.notes-list li:last-child { border-bottom: none; }
.notes-list time { color: var(--amber-2); font-size: 0.85rem; padding-top: 2px; font-weight: 700; }

/* faq */
.faq { padding: 20px 0 70px; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 50px; align-items: start; }
.faq-grid h2 { margin-bottom: 10px; }
.acc { border-top: 1px solid var(--line-2); }
.acc-item { border-bottom: 1px solid var(--line-2); }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: transparent; border: none; color: var(--text); font-family: var(--display); font-size: 1.15rem; font-weight: 600; text-align: left; padding: 16px 2px; cursor: pointer; }
.acc-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.acc-btn .chev { width: 20px; height: 20px; flex: none; color: var(--amber); transition: transform 0.2s; }
.acc-item.open .acc-btn .chev { transform: rotate(180deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.acc-panel p { padding: 0 2px 16px; margin: 0; }

/* inner pages */
.page-band { background: var(--bg) url('/assets/img/band-gladiatus.webp') right center / cover no-repeat; border-bottom: 1px solid var(--line); padding: 56px 0 36px; }
.page-band h1 { margin-bottom: 8px; }
.page-band .meta { margin: 0; }
.page { padding: 44px 0 80px; }
.page h1 { margin-bottom: 10px; }
.page .meta { margin-bottom: 28px; }
.page h2 { font-size: 1.55rem; margin: 38px 0 12px; }
.page ul, .page ol { padding-left: 22px; margin-bottom: 1.1em; }
.page li { margin-bottom: 6px; }
.page strong { color: var(--text); }
.callout { background: var(--panel); border-left: 4px solid var(--amber); padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 26px 0; }
.callout p:last-child { margin: 0; }
.contact-line { margin-top: 36px; padding: 18px 22px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.contact-line p { margin: 0; color: var(--text); font-weight: 600; }
.mail { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--amber-2); text-decoration: none; }
.mail:hover { text-decoration: underline; }

.weights { width: 100%; border-collapse: collapse; margin: 16px 0 26px; font-size: 0.95rem; }
.weights th, .weights td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.weights th { font-size: 0.85rem; color: var(--dim); font-weight: 700; }
.weights td:first-child { color: var(--text); font-weight: 700; white-space: nowrap; }
.weights td:nth-child(2) { font-family: var(--display); font-weight: 700; color: var(--amber-2); }

.faq-page .acc { border-top: 0; }
.faq-page .acc-item { background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; margin-bottom: 10px; }
.faq-page .acc-btn { padding: 16px 18px; }
.faq-page .acc-panel p { padding: 0 18px 18px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; padding-top: 20px; }
.form { background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; padding: 26px; }
.form-row { margin-bottom: 14px; }
.form label { display: block; font-size: 0.88rem; color: var(--text); font-weight: 700; margin-bottom: 5px; }
.form input, .form textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; color: var(--text); font-family: var(--body); font-size: 0.95rem; padding: 10px 12px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--amber); }
.form textarea { min-height: 130px; resize: vertical; }
.form-msg { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 6px; font-size: 0.92rem; color: var(--text); }
.form-msg.ok { display: block; border: 1px solid var(--leaf); background: rgba(143, 207, 156, 0.1); }
.form-msg.err { display: block; border: 1px solid var(--brick); background: rgba(224, 122, 85, 0.12); }

.help-list { list-style: none; padding: 0 !important; }
.help-list li { background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; padding: 16px 18px; margin-bottom: 10px; }
.help-list b { color: var(--text); display: block; margin-bottom: 4px; }

/* footer */
.site-footer { background: #0f231f; color: var(--text-2); padding: 48px 0 28px; margin-top: 30px; border-top: 1px solid var(--line); }
.site-footer .brand { font-size: 1.15rem; margin-bottom: 12px; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; margin-bottom: 30px; }
.footer-cols a:not(.brand) { display: block; color: var(--text-2); text-decoration: none; font-size: 0.92rem; margin-bottom: 8px; }
.footer-cols a:not(.brand):hover { color: var(--amber-2); }
.footer-blurb { font-size: 0.9rem; max-width: 340px; color: var(--dim); }
.footer-h { color: var(--text); font-family: var(--display); font-weight: 700; font-size: 1rem; margin-bottom: 10px; }
.footer-small { font-size: 0.8rem; color: var(--dim); margin-bottom: 8px; line-height: 1.55; }

@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; }
    .stack { height: 340px; max-width: 520px; }
    .game { grid-template-columns: 300px 1fr; gap: 26px; }
    .faq-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
    .nav { display: none; }
    .burger { display: flex; }
    body { font-size: 16px; }
    h1, .hero h1 { font-size: 2.3rem; }
    h2 { font-size: 1.7rem; }
    .hero { padding: 44px 0 30px; }
    .stack { height: 300px; }
    .stack img:nth-child(3) { top: 140px; }
    .game { grid-template-columns: 1fr; padding: 34px 0; }
    .game-art { max-width: 460px; }
    .game-body h3 { font-size: 1.6rem; }
    .two-col { grid-template-columns: 1fr; }
    .notes-list li { grid-template-columns: 1fr; gap: 2px; }
    .notes-box { padding: 22px 20px; }
    .footer-cols { grid-template-columns: 1fr; }
    .page-band { padding: 40px 0 28px; }
}
