/*
  dgfmusic.com styles. Colors are set once in :root (light) and again for
  dark mode below; change them there, not throughout the file.
*/

:root {
  --paper: #f6f1e7;
  --paper-2: #ede5d5;
  --card: #fffdf8;
  --ink: #1f1b16;
  --ink-soft: #5a5147;
  --line: #d9cfbd;
  --accent: #8a2432;        /* burgundy */
  --accent-ink: #ffffff;
  --gold: #a8833a;
  --shadow: 0 1px 2px rgb(31 27 22 / 6%), 0 8px 24px rgb(31 27 22 / 8%);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 72rem;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16130f;
    --paper-2: #1e1a15;
    --card: #241f19;
    --ink: #f1ebe0;
    --ink-soft: #b8ad9d;
    --line: #3a332a;
    --accent: #e0707e;
    --accent-ink: #1a0e10;
    --gold: #d4b26a;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 35%);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
cite { font-style: italic; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
@media (max-width: 30rem) { .wrap { padding: 0 1rem; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font: 600 0.78rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; font: 600 1.15rem/1 var(--serif); }
.brand em { font-style: italic; font-weight: 400; color: var(--accent); }
.brand-mark { font-size: 1.7rem; line-height: 1; color: var(--accent); }
nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
nav a:hover { color: var(--ink); }
@media (max-width: 40rem) {
  .header-inner { justify-content: center; padding: 0.6rem 0; }
  nav { gap: 1.1rem; justify-content: center; }
}

/* Hero */
.hero { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.hero-inner { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 60rem) { .hero-inner { grid-template-columns: 1.15fr 1fr; gap: 4rem; } }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); max-width: 16ch; font-weight: 500; }
.hero-feature { margin: 0 1.1rem 0 0; }
.frame { position: relative; }
.frame::before {
  /* offset frame behind the featured video */
  content: ""; position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 1.5px solid var(--gold); border-radius: var(--radius);
}
.frame .video, .frame iframe { position: relative; }
.frame .video span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }
.hero-feature figcaption { margin-top: 1.6rem; font-size: 0.9rem; color: var(--ink-soft); }
.hero-feature figcaption strong { color: var(--ink); }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 40rem; }
.lede strong { color: var(--ink); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* Sections */
main > section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.band { background: var(--paper-2); border-block: 1px solid var(--line); }
.split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 52rem) { .split { grid-template-columns: 1.35fr 1fr; gap: 4rem; } }
.prose { max-width: 40rem; }
.prose p { color: var(--ink-soft); }
.sub { margin-top: 3.5rem; font-size: 1.5rem; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link::after { content: " →"; }
.text-link:hover { text-decoration: underline; }
.more { margin-top: 1.5rem; }
.note { color: var(--ink-soft); font-size: 0.95rem; margin-top: 1.25rem; max-width: 44rem; }
.thin { font-weight: 400; font-style: italic; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}

/* Upcoming concerts */
.upcoming h3 { font-size: 0.8rem; font-family: var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.events { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.events li + li { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.event-name { font: 600 1.5rem/1.2 var(--serif); margin-bottom: 0.3rem; }
.event-when { font-weight: 600; margin-bottom: 0.3rem; }
.event-where { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }
.events-none { color: var(--ink-soft); }
.join { margin: 0; padding-top: 1.1rem; border-top: 1px dashed var(--line); font-size: 0.95rem; color: var(--ink-soft); }
.join strong { color: var(--ink); }

/* Videos (thumbnail buttons that turn into players when clicked) */
.videos { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.videos-3 { margin-top: 2.5rem; }
.video, .videos iframe, .story iframe {
  width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block;
}
.video {
  position: relative; padding: 0; overflow: hidden; cursor: pointer;
  background: #000; color: #fff; font: inherit; text-align: left;
  box-shadow: var(--shadow);
}
.video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 0.4s, opacity 0.2s; }
.video::before {
  /* play button */
  content: ""; position: absolute; left: 50%; top: 45%; width: 3.6rem; height: 3.6rem; translate: -50% -50%;
  border-radius: 50%; background: rgb(255 255 255 / 92%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%238a2432' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 60% no-repeat;
  z-index: 1; transition: transform 0.2s;
}
.video span {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem 1rem 0.8rem;
  background: linear-gradient(transparent, rgb(0 0 0 / 80%));
  font-weight: 600; font-size: 0.95rem; line-height: 1.3;
}
.video:hover img { transform: scale(1.04); opacity: 1; }
.video:hover::before { transform: scale(1.08); }

/* Sheet Music Plus and DavidJamesFritch.com cards */
.shop, .djf { position: relative; display: flex; flex-direction: column; gap: 0.35rem; text-decoration: none; color: var(--ink); transition: transform 0.15s, border-color 0.15s; }
.shop:hover, .djf:hover { transform: translateY(-2px); border-color: var(--accent); }
.shop { background: var(--accent); color: var(--accent-ink); border-color: transparent; padding: 2rem; }
.shop .shop-label { color: inherit; opacity: 0.8; }
.shop .shop-note { color: inherit; opacity: 0.85; }
.shop-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.shop-title { font: 600 1.7rem/1.15 var(--serif); }
.shop-note { color: var(--ink-soft); font-size: 0.95rem; }
.shop-arrow { position: absolute; right: 1.5rem; top: 1.4rem; font-size: 1.5rem; transition: translate 0.15s; }
.shop:hover .shop-arrow, .djf:hover .shop-arrow { translate: 4px 0; }

.djf { flex-direction: row; align-items: center; gap: 1.2rem; padding-right: 3rem; }
.djf img { width: 6rem; height: 6rem; border-radius: 10px; object-fit: cover; flex: none; }
.djf > span:not(.shop-arrow) { display: flex; flex-direction: column; gap: 0.3rem; }
.djf .shop-title { font-size: 1.4rem; }
.djf .shop-arrow { top: 50%; translate: 0 -50%; }
.djf:hover .shop-arrow { translate: 4px -50%; }
@media (max-width: 30rem) { .djf { flex-direction: column; align-items: flex-start; } .djf .shop-arrow { top: 1.4rem; translate: none; } }

/* Arrangements for sale */
.catalog { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: 1fr; column-gap: 3rem; }
@media (min-width: 52rem) { .catalog { grid-template-columns: 1fr 1fr; } }
.catalog li {
  display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: baseline; align-content: start;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.catalog-title { font: 600 1.2rem/1.3 var(--serif); color: var(--ink); text-decoration: none; }
.catalog-title:hover { color: var(--accent); text-decoration: underline; }
.catalog-title::after { content: " ↗"; font: 500 0.85em var(--sans); color: var(--accent); }
.catalog-meta { grid-column: 1; font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.15rem; }
.catalog-listen {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  font-size: 0.85rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 999px;
}
.catalog-listen::before { content: "▶ "; font-size: 0.75em; }
.catalog-listen:hover { border-color: var(--accent); }
.catalog audio { grid-column: 1 / -1; width: 100%; margin-top: 0.75rem; }

/* Albums */
.albums { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .albums { grid-template-columns: 1fr 1fr; } }
.album { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.3rem; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.album img { border-radius: 8px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.album h3 { margin-bottom: 0.2rem; }
.album-meta { font-size: 0.88rem; color: var(--gold); font-weight: 600; margin-bottom: 0.6rem; }
.album p { font-size: 0.97rem; color: var(--ink-soft); }
.links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0; }
.links a { font-weight: 600; text-decoration: none; }
.links a::after { content: " ↗"; }
@media (max-width: 30rem) { .album { grid-template-columns: 1fr; } .album img { width: 8rem; } }

.story { display: grid; gap: 2rem; margin-top: 3.5rem; align-items: center; }
@media (min-width: 52rem) { .story { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; } }

/* About */
.about-head { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 1.2rem; }
.about-head h2 { margin: 0; }
.portrait {
  /* the source photo is only 137px, so keep it small to stay sharp */
  width: 6.5rem; height: 6.5rem; flex: none; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--card); outline: 1.5px solid var(--gold); outline-offset: 3px;
  box-shadow: var(--shadow);
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.footer-inner p { margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.footer-inner a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.footer-inner a:hover { color: var(--accent); }
.footer-inner .copyright { display: block; color: var(--ink-soft); }

/* 404 page */
.not-found { min-height: 70vh; display: grid; place-content: center; text-align: center; padding: 4rem 1rem; }
.not-found h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.not-found p { color: var(--ink-soft); }
