/* Mom's Typewriter (Christoph Mueller), self-hosted. Special Elite is the fallback. */
@font-face { font-family: "Moms Typewriter"; src: url("/fonts/moms-typewriter.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Special Elite"; src: url("/fonts/special-elite.woff2") format("woff2"); font-display: swap; }

/* Dark first. Light mode follows the device until the toggle picks one (data-theme on <html>). */
:root {
  color-scheme: dark;
  --bg: #0b0912;
  --bg-alt: #14101d;
  --ink: #f3ece2;
  --muted: #b3a99c;
  --gold: #c28e3c;            /* button fill */
  --gold-hi: #e0ad5a;         /* button hover */
  --accent-text: #c28e3c;     /* headings, dates */
  --accent-text-hi: #e0ad5a;  /* links, notes */
  --on-gold: #120d06;
  --line: rgba(243, 236, 226, .14);
  --nav-solid: rgba(11, 9, 18, .92);
  --ghost-bg: rgba(0, 0, 0, .25);
  /* hero video treatment, matched to the mattkeddie sites */
  --photo-filter: saturate(1) brightness(.95);
  --veil-top: rgba(11, 9, 18, .15);
  --veil-mid: rgba(11, 9, 18, .35);
  --hero-shadow: 0 2px 12px rgba(0, 0, 0, .8);
  --logo-shadow: drop-shadow(0 4px 24px rgba(0, 0, 0, .6));
  --type: "Moms Typewriter", "Special Elite", "Courier New", monospace;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(16px, 4vw, 48px);
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  color-scheme: light;
  --bg: #f4f2f7; --bg-alt: #e9e5f0; --ink: #1b1524; --muted: #5e566a;
  --accent-text: #8a5d1a; --accent-text-hi: #7a5014;
  --line: rgba(27, 21, 36, .14); --nav-solid: rgba(244, 242, 247, .94); --ghost-bg: rgba(255, 255, 255, .55);
  --photo-filter: saturate(.8) brightness(1.05);
  --veil-top: rgba(244, 242, 247, .5); --veil-mid: rgba(244, 242, 247, .62);
  --hero-shadow: 0 1px 12px rgba(244, 242, 247, .9); --logo-shadow: drop-shadow(0 2px 14px rgba(244, 242, 247, .7));
} }
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f2f7; --bg-alt: #e9e5f0; --ink: #1b1524; --muted: #5e566a;
  --accent-text: #8a5d1a; --accent-text-hi: #7a5014;
  --line: rgba(27, 21, 36, .14); --nav-solid: rgba(244, 242, 247, .94); --ghost-bg: rgba(255, 255, 255, .55);
  --photo-filter: saturate(.8) brightness(1.05);
  --veil-top: rgba(244, 242, 247, .5); --veil-mid: rgba(244, 242, 247, .62);
  --hero-shadow: 0 1px 12px rgba(244, 242, 247, .9); --logo-shadow: drop-shadow(0 2px 14px rgba(244, 242, 247, .7));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text-hi); }
h1, h2 { margin: 0; font-weight: 400; }
h2 { font-family: var(--type); color: var(--accent-text); font-size: clamp(2.2rem, 6vw, 3.6rem); text-align: center; letter-spacing: .02em; margin-bottom: 1.2em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--on-gold); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-text-hi); outline-offset: 3px; }

/* Nav — logo centred, links either side (edsheeran.com style) */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s; padding-top: env(safe-area-inset-top); }
.nav.solid { background: var(--nav-solid); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); }
.nav-side { display: flex; gap: clamp(14px, 3vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: clamp(14px, 3vw, 36px); }
.nav-side a { font-family: var(--type); color: var(--ink); text-decoration: none; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; }
.nav-side a:hover { color: var(--accent-text-hi); }
.nav-logo img { width: clamp(120px, 18vw, 200px); opacity: 0; transition: opacity .3s; }
.nav.solid .nav-logo img { opacity: 1; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: var(--photo-filter); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--veil-top), var(--veil-mid) 62%, var(--bg)); }
.hero-inner { position: relative; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); max-width: 1000px; margin-top: 30vh; }
.hero-inner h1 img { width: min(760px, 92vw); margin: 0 auto; filter: var(--logo-shadow); }
.tag { font-family: var(--type); font-size: clamp(1.05rem, 2.6vw, 1.4rem); margin: 1em auto 1.6em; text-shadow: var(--hero-shadow); max-width: 34em; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.scroll-cue { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--ink); text-decoration: none; font-size: 1.6rem; animation: bob 2s infinite; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

.btn { display: inline-block; font-family: var(--type); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--on-gold); background: var(--gold); border: 2px solid var(--gold); padding: .65em 1.4em; transition: background .2s, color .2s; }
.btn:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn-ghost { background: var(--ghost-bg); color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-sm { font-size: .95rem; padding: .45em 1em; }

/* Sections */
.section { padding-block: clamp(64px, 10vw, 120px); padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); }
.section-alt { background: var(--bg-alt); }
.lead { font-size: 1.15rem; max-width: 640px; margin: 0 auto 1.6em; color: var(--ink); }
.center { text-align: center; }
.fine { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 2em; }

/* Gigs */
.gigs { list-style: none; margin: 0 auto; padding: 0; max-width: 960px; border-top: 1px solid var(--line); }
.gig { display: grid; grid-template-columns: 92px 1fr auto; gap: 24px; align-items: center; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.gig-date { font-family: var(--type); text-align: center; line-height: 1.05; }
.gig-date .d { display: block; font-size: 2.4rem; color: var(--accent-text); }
.gig-date .m { display: block; text-transform: uppercase; letter-spacing: .1em; }
.gig-date .y { display: block; font-size: .8rem; color: var(--muted); }
.gig-venue { font-family: var(--type); font-size: 1.35rem; }
.gig-meta { color: var(--muted); }
.gig-note { color: var(--accent-text-hi); font-size: .9rem; margin-top: 2px; }
.gig-info { min-width: 0; }
.gigs-msg { list-style: none; text-align: center; color: var(--muted); padding: 32px 0; border-bottom: 1px solid var(--line); }

/* Requests */
.requests { text-align: center; max-width: 820px; margin: 0 auto; }
.steps { list-style: none; padding: 0; margin: 0 0 2.2em; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { border: 1px solid var(--line); padding: 20px 14px; font-family: var(--type); }
.steps span { display: block; font-size: 2rem; color: var(--accent-text); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; max-width: 1060px; margin: 0 auto; }
.about h2 { text-align: left; margin-bottom: .6em; }
.about p { color: var(--ink); }

/* Video */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 360px)); justify-content: center; gap: 28px 18px; max-width: 1140px; margin: 0 auto 32px; }
.vid { position: relative; aspect-ratio: 16/9; background: #000 center/cover; border: 0; padding: 0; cursor: pointer; width: 100%; }
.vid::after { content: "\25B6"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; color: #fff; background: rgba(0,0,0,.35); transition: background .2s; }
.vid:hover::after { background: rgba(0,0,0,.1); color: var(--accent-text-hi); }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); text-align: center; color: var(--muted); font-size: .85rem; }
.foot a { color: var(--muted); }
.socials { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.socials a { font-family: var(--type); color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; }
.socials a:hover { color: var(--accent-text-hi); }

.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--ghost-bg); cursor: pointer; padding: 0; place-content: center; gap: 4px; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-menu { background: var(--nav-solid); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.nav-menu ul { list-style: none; margin: 0; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px)); }
.nav-menu a { display: block; padding: 14px 0; border-top: 1px solid var(--line); font-family: var(--type); font-size: 1.4rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); text-decoration: none; }
.nav-menu li:first-child a { border-top: 0; }
.btn-email { text-transform: none; letter-spacing: .02em; }

@media (max-width: 760px) {
  .nav nav { grid-template-columns: 1fr auto; height: 60px; }
  .nav-side { display: none; }
  .nav-logo { justify-self: start; }
  .nav-logo img { width: 140px; opacity: 1; }
  .nav { background: var(--nav-solid); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
  .nav-right { gap: 10px; }
  .menu-btn { display: grid; }
  .theme-btn { width: 42px; height: 42px; }
  h2 { font-size: clamp(2rem, 9vw, 2.6rem); margin-bottom: .9em; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: min(100%, 300px); text-align: center; }
  .tag { font-size: 1.05rem; }
  .btn-email { font-size: 1rem; padding: .8em 1em; max-width: 100%; }
  .socials { display: grid; grid-template-columns: repeat(2, minmax(0, 10em)); justify-content: center; justify-items: center; gap: 14px 16px; }
  .gig { grid-template-columns: 70px 1fr; gap: 14px; }
  .gig .btn { grid-column: 2; justify-self: start; }
  .gig-date .d { font-size: 2rem; }
  .steps { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about h2 { text-align: center; }
  .hero-inner { margin-top: 38vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue { animation: none; }
}

.book-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; }
button.btn { cursor: pointer; }

.legal { max-width: 720px; margin: 0 auto; }
.legal h1 { font-family: var(--type); color: var(--accent-text); font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 400; margin: .4em 0 .2em; }
.legal h2 { font-size: 1.5rem; text-align: left; margin: 1.6em 0 .4em; }
.legal .lead { margin: 0 0 1em; color: var(--muted); }
.legal-logo { width: 180px; }
.legal .fine { text-align: left; }

/* Light/dark toggle */
.nav-side li { display: flex; align-items: center; }
.theme-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--ghost-bg); color: var(--ink); cursor: pointer; padding: 0; }
.theme-btn:hover { color: var(--accent-text-hi); border-color: var(--accent-text-hi); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-btn .i-moon { fill: currentColor; stroke: none; }
.theme-btn .i-sun { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .theme-btn .i-sun { display: block; } :root:not([data-theme="dark"]) .theme-btn .i-moon { display: none; } }
:root[data-theme="light"] .theme-btn .i-sun { display: block; }
:root[data-theme="light"] .theme-btn .i-moon { display: none; }
.legal-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.vid-item { margin: 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.vid-cap { font-family: var(--type); font-size: 1.05rem; color: var(--ink); overflow-wrap: anywhere; }
.vid { display: block; background-size: cover; background-position: center; }
.videos + .lead { margin-top: 0; }
