/* Athlone Photography event gallery: shared tokens and components.
   Fonts load from Google Fonts in each page's <head>. */
:root {
  --bg: #f3efe8;
  --surface: #fbf9f5;
  --sunk: #ebe5db;
  --ink: #1d1b19;
  --ink-soft: #5f5a53;
  --line: #ddd6cb;
  --bar: #161514;
  --bar-ink: #f3efe8;
  --bar-soft: #9b948a;
  --gold: #c9a27a;
  --gold-ink: #1d1b19;
  --gold-deep: #a07a52;
  --good: #3f7d58;
  --warn: #b7791f;
  --bad: #b5452f;
  --heart: #c4553f;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --script: "Great Vibes", "Brush Script MT", cursive;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #121110; --surface: #1c1a18; --sunk: #0d0c0b; --ink: #f1ece4; --ink-soft: #aaa298; --line: #2e2b27;
  --bar: #0b0a0a; --bar-ink: #f1ece4; --bar-soft: #8a8379; --gold: #c9a27a; --gold-ink: #161514; --gold-deep: #d9b893;
  --good: #6fbf8e; --warn: #e0a84a; --bad: #e0725c; --heart: #e0725c; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #121110; --surface: #1c1a18; --sunk: #0d0c0b; --ink: #f1ece4; --ink-soft: #aaa298; --line: #2e2b27;
  --bar: #0b0a0a; --bar-ink: #f1ece4; --bar-soft: #8a8379; --gold: #c9a27a; --gold-ink: #161514; --gold-deep: #d9b893;
  --good: #6fbf8e; --warn: #e0a84a; --bad: #e0725c; --heart: #e0725c; color-scheme: dark }

* { box-sizing: border-box }
[hidden] { display: none !important }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.55; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
a { color: var(--gold-deep); }
.num, td.n, .kpi b { font-variant-numeric: tabular-nums; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; text-wrap: balance; margin: 0; }
.muted { color: var(--ink-soft); }

/* Logos (placeholders for uploaded image files) */
.logo-ap { font-family: var(--script); font-size: 30px; line-height: 1; white-space: nowrap; }
.logo-mark { height: 36px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.logo-ev { font-family: var(--display); font-weight: 600; letter-spacing: .22em; font-size: 13px; text-transform: uppercase; border: 1px solid currentColor; padding: 5px 10px; white-space: nowrap; opacity: .9; }

/* Buttons */
.btn { border: 1px solid var(--ink); background: transparent; padding: 12px 20px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: var(--ink); }
.btn:hover { border-color: var(--gold-deep); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn.gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn.small { padding: 8px 14px; font-size: 11px; }
.btn.quiet { border-color: var(--line); }
.btn:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--gold-deep); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* Forms */
.field { display: grid; gap: 6px; }
.field label, .label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; font-size: 15px; border-radius: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.field .hint { font-size: 12.5px; color: var(--ink-soft); }
.field.err input { border-color: var(--bad); }
.field .msg { font-size: 13px; color: var(--bad); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); }
.check input { accent-color: var(--gold-deep); margin-top: 4px; width: 16px; height: 16px; flex: none; }

/* Cards, pills, tables */
.card { background: var(--surface); border: 1px solid var(--line); padding: 24px; min-width: 0; }
.pill { display: inline-block; font-size: 11.5px; letter-spacing: .06em; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.pill.live { color: var(--good); } .pill.draft { color: var(--ink-soft); } .pill.expired { color: var(--bad); } .pill.sched { color: var(--warn); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td.n, th.n { text-align: right; }
tr.click { cursor: pointer; }
tr.click:hover td { background: color-mix(in srgb, var(--gold) 7%, transparent); }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; }
.kpi b { display: block; font-family: var(--display); font-size: 40px; font-weight: 500; line-height: 1; margin: 6px 0 4px; }
.kpi span { font-size: 13px; color: var(--ink-soft); }

/* Modal */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(10,10,10,.55); display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); color: var(--ink); width: min(440px, 100%); padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.modal h2 { font-size: 28px; margin: 6px 0 10px; }

.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--bg); padding: 10px 18px; font-size: 14px; max-width: calc(100% - 32px); }
.sample-tag { font-size: 12px; color: var(--ink-soft); }

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