/* ============================================================
   domissound.co — site.css
   Single source of truth. No !important overrides needed.
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── TOKENS ── */
:root {
  /* Backgrounds */
  --bg:        #fff;
  --bg-home:   #fff;
  --bg-card:   #ffffff;   /* card surfaces */
  --bg-lift:   #f2efe9;   /* subtle hover lift */

  /* Ink */
  --ink:       #1a1208;   /* warm near-black */
  --muted:     #6b6055;   /* secondary text */
  --dim:       rgba(26,18,8,0.18);
  --faint:     rgba(26,18,8,0.08);

  /* Borders */
  --border:        rgba(26,18,8,0.08);
  --border-strong: rgba(26,18,8,0.20);

  /* Frame */
  --frame: #0e0e0e;

  /* Typography */
  --ft-serif: 'Lato', system-ui, sans-serif;
  --ft-body:  'Lato', system-ui, sans-serif;
  --sans:     'Lato', system-ui, sans-serif;
}

/* ── BASE ── */
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ft-body);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── ACCESSIBILITY ── */
.skip-link {
  position: fixed; top: 0; left: 50%;
  transform: translateX(-50%) translateY(-100%);
  padding: 8px 16px; background: var(--ink); color: #fff;
  font-size: 12px; text-decoration: none; z-index: 10000;
  white-space: nowrap; opacity: 0; pointer-events: none;
}
.skip-link:focus {
  transform: translateX(-50%) translateY(0);
  opacity: 1; pointer-events: auto;
  outline: 2px solid #fff; outline-offset: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── SPLASH ── */
#splash {
  position: fixed; inset: 0; background: var(--bg);
  z-index: 1000; display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  cursor: pointer;
  transition: transform 0.8s cubic-bezier(0.16,1,0.3,1), opacity 0.8s ease;
}
#splash.dismissed { transform: translateY(-100%); opacity: 0; pointer-events: none; }
#splash .centre { text-align: center; }
#splash .headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300; font-style: italic;
  font-size: clamp(1.8rem,4vw,3.6rem);
  letter-spacing: 0.01em; color: var(--ink);
  line-height: 1.15; max-width: 680px; padding: 0 24px;
  opacity: 0; animation: rise 2.6s cubic-bezier(0.16,1,0.3,1) 0.5s forwards;
}
#splash .scroll-hint {
  position: absolute; bottom: 2.4rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); opacity: 0;
  animation: rise 2s cubic-bezier(0.16,1,0.3,1) 2.6s forwards;
}

/* ── HOMEPAGE FRAME ── */
.page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: clamp(24px,4vw,52px) clamp(18px,4vw,52px);
}
.frame-outer { width: 100%; max-width: 980px; animation: rise 1.1s cubic-bezier(.16,1,.3,1) both; }
.frame-border {
  background: var(--frame);
  padding: clamp(14px,2.5vw,28px);
  box-shadow: 0 0 0 1px #3a3a3a, 0 28px 80px rgba(0,0,0,.45),
              0 8px 24px rgba(0,0,0,.3), inset 0 0 0 2px #1a1a1a,
              inset 0 0 0 4px #2a2a2a, inset 0 0 0 5px #111;
  position: relative;
}
.frame-border::before, .frame-border::after {
  content: ''; position: absolute; width: 18px; height: 18px;
  border-color: #444; border-style: solid;
}
.frame-border::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.frame-border::after  { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }
.frame-inner { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; }

/* LCP target */
.lcp-target {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
/* ── NAMEPLATE ── */
.nameplate {
  width: 100%; max-width: 980px; margin-top: 16px;
  display: flex; align-items: baseline;
  justify-content: space-between; flex-wrap: wrap; gap: 4px 16px;
}
.nameplate .name {
  font-family: var(--ft-serif);
  font-size: clamp(12px,1.5vw,15px); font-weight: 500;
  letter-spacing: .02em; color: var(--ink);
  text-decoration: none; cursor: pointer; flex-shrink: 0;
}
.nameplate .role {
  font-family: var(--ft-serif);
  font-size: clamp(12px,1.5vw,13px); font-weight: 300;
  letter-spacing: .05em; color: var(--ink);
  text-align: right;
}
.role-link {
  color: var(--ink) !important;
  text-decoration: none;
  font-family: var(--ft-serif);
  font-weight: 300;
}
.role-break { display: inline; }
.role-sub   { display: inline; }
.np-sep     { display: inline; }
.np-line1, .np-line2 { display: inline; }

@media(max-width:580px){
  .nameplate { flex-direction: column; align-items: flex-start; gap: 2px; }
  .nameplate .name  { font-size: 11px; letter-spacing: .03em; }
  .nameplate .role  { text-align: left; font-size: 9px; letter-spacing: .02em; white-space: nowrap; color: var(--ink); font-weight: 300; }
  .np-line1, .np-line2 { display: inline; }
  .np-sep { display: inline; }
  .role-break { display: none; }
}

/* ── EVENT CARD ── */
.event-card {
  width: 100%; max-width: 980px; margin-top: 0;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: opacity .35s ease, max-height .45s cubic-bezier(.16,1,.3,1), margin-top .45s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.event-card.visible { opacity: 1; max-height: 140px; margin-top: 10px; pointer-events: auto; }
.card-row {
  border-top: 1px solid var(--border); padding-top: 11px;
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
}
.card-meta  { display: flex; gap: 8px; align-items: center; margin-bottom: 3px; }
.card-type  { font-size: 8px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #444; border: 1px solid var(--border-strong); padding: 2px 7px; }
.card-date  { font-size: 10px; font-weight: 400; color: var(--muted); }
.card-title { font-size: clamp(14px,2vw,21px); font-weight: 300; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.card-venue { font-size: 10px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.card-right { flex-shrink: 0; display: flex; flex-direction: row; align-items: center; gap: 14px; }
.card-link  {
  font-family: var(--ft-serif);
  font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid rgba(26,18,8,0.25); padding-bottom: 1px;
  transition: color .18s, border-color .18s; white-space: nowrap;
}
.card-link:hover  { border-color: var(--ink); }
.card-link:focus  { outline: 2px solid var(--ink); outline-offset: 3px; }
.nav-counter { display: none; align-items: center; gap: 6px; opacity: 0; transition: opacity .4s ease .2s; }
.nav-counter.revealed { display: flex; opacity: 1; }
.nav-count  { font-family: var(--ft-serif); font-size: 9px; font-weight: 400; letter-spacing: .1em; font-variant-numeric: tabular-nums; color: var(--dim); white-space: nowrap; }
.nav-arrow  { font-family: var(--ft-serif); color: var(--dim); font-size: 13px; cursor: pointer; padding: 0 1px; line-height: 1; transition: color .15s; user-select: none; }
.nav-arrow:hover { color: var(--ink); }

/* ── EVENT PAGE ── */
.ev-wrap    { max-width: 860px; margin: 0 auto; padding: clamp(32px,5vw,64px) clamp(20px,5vw,48px) 80px; }
.ev-nav     { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 28px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.ev-nav .site-name { font-family: var(--ft-serif); font-size: 17px; font-weight: 400; letter-spacing: -.01em; text-decoration: none; color: var(--ink); }
.ev-nav .site-name em { font-style: italic; color: var(--muted); }
.ev-nav .back { font-size: 9px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .2s; }
.ev-nav .back:hover { color: var(--ink); }
.ev-type-badge { display: inline-block; font-size: 8px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #444; border: 1px solid var(--border-strong); padding: 2px 7px; margin-bottom: 10px; }
.ev-title    { font-family: var(--ft-serif); font-size: clamp(28px,4.5vw,52px); font-weight: 600; line-height: 1.06; letter-spacing: -.02em; margin-bottom: 12px; color: var(--ink); }
.ev-subtitle { font-size: 14px; font-weight: 300; color: var(--muted); margin-bottom: 18px; }
.ev-meta     { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 32px; }

/* ── STATS ── */
.stats-row { display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 1px; background: var(--border); margin-bottom: 40px; }
.stat-cell  { background: var(--bg-card); padding: 18px 16px; display: flex; flex-direction: column; justify-content: space-between; min-height: 72px; }
.stat-n     { display: block; font-family: var(--ft-serif); font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; }
.stat-n.stat-text { font-size: 15px; font-weight: 300; letter-spacing: -.01em; line-height: 1.3; }
.stat-l     { display: block; font-size: 8px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ── SHARED COMPONENTS ── */
.section-label { font-size: 8px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.tags          { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.tag           { font-size: 9px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #444; padding: 4px 10px; border: 1px solid var(--border-strong); }
.ev-body       { font-size: 14px; font-weight: 300; line-height: 1.8; color: var(--ink); margin-bottom: 28px; }
.ev-body h2    { font-family: var(--ft-serif); font-size: clamp(18px,2.5vw,26px); font-weight: 400; margin: 28px 0 10px; color: var(--ink); }
.ev-body p     { margin-bottom: 14px; }
.gear-table    { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 28px; }
.gear-table th { text-align: left; font-size: 8px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--border); }
.gear-table td { padding: 8px 0; border-bottom: 1px solid var(--faint); font-weight: 300; color: var(--ink); }
.gear-cat      { font-size: 8px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #444; padding: 2px 6px; border: 1px solid var(--border-strong); }
.faq-section   { border-top: 1px solid var(--border); padding-top: 24px; margin-bottom: 36px; }
.faq-title     { font-family: var(--ft-serif); font-size: clamp(18px,2vw,24px); font-weight: 400; margin-bottom: 16px; color: var(--ink); }
details        { border-bottom: 1px solid var(--border); padding: 10px 0; }
summary        { font-size: 13px; font-weight: 400; cursor: pointer; list-style: none; display: flex; justify-content: space-between; color: var(--ink); }
summary::after { content: '+'; font-size: 16px; font-weight: 200; color: var(--muted); }
details[open] summary::after { content: '−'; }
details p      { font-size: 13px; font-weight: 300; color: var(--muted); margin-top: 8px; line-height: 1.65; }
.back-link     { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--border-strong); padding-bottom: 2px; transition: color .2s; }
.back-link:hover { color: var(--ink); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 10px 18px; min-height: 44px; border: 1px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; cursor: pointer; transition: all .18s; font-family: inherit; }
.btn:hover    { background: #333; }
.btn:focus    { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn-outline  { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--faint); }
.btn-danger   { border-color: #b42828; background: #b42828; color: #fff; }
.btn-danger:hover { background: #922020; }
.btn-sm       { font-size: 9px; padding: 6px 12px; min-height: 36px; }

/* ── ADMIN ── */
.admin-wrap  { max-width: 900px; margin: 0 auto; padding: 32px 24px 80px; }
.admin-nav   { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.admin-nav .site-name { font-size: 12px; font-weight: 500; letter-spacing: .04em; text-decoration: none; color: var(--ink); }
.admin-nav-links { display: flex; gap: 20px; }
.admin-nav-links a { font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; transition: all .18s; }
.admin-nav-links a:hover, .admin-nav-links a.active { color: var(--ink); border-color: var(--ink); }
.admin-nav-links a.logout { color: rgba(160,30,30,.8); }
.admin-nav-links a.logout:hover { color: #b42828; border-color: #b42828; }
.page-header  { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.page-title   { font-size: clamp(20px,3vw,28px); font-weight: 300; letter-spacing: -.01em; color: var(--ink); }
.flash-ok     { background: rgba(20,120,60,.08); border: 1px solid rgba(20,120,60,.25); color: #0a4d25; padding: 10px 14px; margin-bottom: 20px; font-size: 13px; }
.flash-err    { background: rgba(180,40,40,.08); border: 1px solid rgba(180,40,40,.25); color: #7a1515; padding: 10px 14px; margin-bottom: 20px; font-size: 13px; }

/* ── FORMS ── */
.form-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.form-grid .full { grid-column: 1/-1; }
.form-group   { margin-bottom: 18px; }
.form-group label, .form-group .form-group-label { display: block; font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.form-group input:not([type="checkbox"]), .form-group select, .form-group textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--border); background: var(--bg-card); font-family: inherit; font-size: 13px; font-weight: 300; color: var(--ink); appearance: none; outline: none; transition: border-color .18s; }
.form-group input:not([type="checkbox"]):focus, .form-group select:focus, .form-group textarea:focus { border-color: rgba(26,18,8,.4); outline: 2px solid rgba(26,18,8,.12); outline-offset: 0; }
.form-group textarea   { min-height: 100px; resize: vertical; }
.form-group .hint      { font-size: 10px; color: var(--muted); margin-top: 4px; }
.form-group .slug-preview { font-size: 10px; color: var(--muted); margin-top: 4px; font-family: monospace; }
.form-section          { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 20px; }
.form-section-title    { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.checkbox-grid         { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-item         { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 300; color: var(--ink); cursor: pointer; }
.checkbox-item input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--ink); cursor: pointer; flex-shrink: 0; }
.checkbox-item input[type="checkbox"]:checked ~ span { font-weight: 500; color: var(--ink); }
.form-actions          { display: flex; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }

/* ── TABLES ── */
.data-table    { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; font-size: 8px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--border); }
.data-table td { padding: 11px 0; border-bottom: 1px solid var(--faint); font-size: 13px; font-weight: 300; vertical-align: middle; color: var(--ink); }
.data-table td:last-child { text-align: right; }
.data-table tr:hover td { background: var(--faint); }
.type-badge    { font-size: 8px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #444; border: 1px solid var(--border-strong); padding: 2px 7px; }
.table-actions { display: flex; gap: 8px; justify-content: flex-end; }
.login-wrap    { max-width: 360px; margin: 80px auto; padding: 0 24px; }
.login-title   { font-size: 22px; font-weight: 300; margin-bottom: 28px; color: var(--ink); }

/* ── ANIMATIONS ── */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ── MOBILE ── */
@media(max-width:580px) {
  .card-row     { flex-direction: column; gap: 10px; }
  .card-title   { white-space: normal !important; overflow: visible !important; text-overflow: unset !important; }
  .card-right   { width: 100% !important; justify-content: flex-end !important; }
  .nav-counter.revealed { width: 100% !important; justify-content: flex-end !important; }
  .form-grid    { grid-template-columns: 1fr; }
  .admin-nav-links { gap: 12px; }
  .frame-border { padding: 10px; }
}

/* ── TABLET ── */
@media (min-width: 581px) and (max-width: 1180px) {
  .page {
    justify-content: flex-start;
    padding-top: clamp(32px, 6vh, 80px);
  }
  .frame-outer {
    max-width: 700px;
  }
}