/* Jon England - Site styles
   Palette carried from the legacy site: gold (#E5C674) on near-black, serif type. */

:root {
  --bg: #0a0a0a;
  --bg-soft: #131313;
  --bg-elev: #181818;
  --line: rgba(229, 198, 116, 0.22);
  --line-strong: rgba(229, 198, 116, 0.55);
  --gold: #E5C674;
  --gold-bright: #f1d893;
  --gold-deep: #c9a64f;
  --text: #ece4d0;
  --text-muted: #b3a98f;
  --white: #ffffff;
  --accent: #BF0705;
  --shadow-md: 0 12px 32px rgba(0,0,0,0.55);
  --r-sm: 4px;
  --r-md: 8px;
  --maxw: 1140px;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; transition: color 0.18s ease; }
a:hover, a:focus-visible { color: var(--gold-bright); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--white); line-height: 1.18; margin: 0 0 0.6em; font-weight: 600; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.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; }
.skip-link { position: absolute; left: -10000px; top: 0; background: var(--gold); color: var(--bg); padding: 8px 12px; z-index: 999; }
.skip-link:focus { left: 12px; top: 12px; }

/* ------- header ------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10,10,10,0.92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 24px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-serif); font-style: italic; font-size: 1.55rem; color: var(--white); letter-spacing: 0.02em; }
.brand-tag { font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.66rem; color: var(--gold); margin-top: 2px; }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; background: transparent; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; cursor: pointer; }
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: var(--gold); transition: transform 0.18s ease, opacity 0.18s ease; }
.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 12px 0 18px; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.site-nav li a { display: block; padding: 12px 24px; color: var(--text); font-family: var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.78rem; border-top: 1px solid var(--line); }
.site-nav li a[aria-current="page"] { color: var(--gold); }
.site-nav-social { display: flex; justify-content: center; gap: 18px; padding: 16px 24px 4px; color: var(--gold); border-top: 1px solid var(--line); }
.site-nav-social a { color: var(--gold); }

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; background: transparent; border: none; padding: 0; align-items: center; gap: 28px; }
  .site-nav ul { flex-direction: row; gap: 24px; }
  .site-nav li a { padding: 6px 0; border-top: 0; }
  .site-nav li a[aria-current="page"] { border-bottom: 1px solid var(--gold); }
  .site-nav-social { padding: 0; border-top: 0; gap: 12px; }
}

/* ------- hero ------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(60px, 12vw, 130px) 0 clamp(70px, 14vw, 150px); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 30% 20%, rgba(229,198,116,0.15), transparent 55%), radial-gradient(circle at 80% 80%, rgba(191,7,5,0.12), transparent 50%); z-index: -1; }
.hero-inner { display: grid; gap: 36px; align-items: center; }
.hero-eyebrow { font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.3em; color: var(--gold); font-size: 0.78rem; margin-bottom: 18px; }
.hero h1 { font-style: italic; font-weight: 500; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--text); max-width: 50ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.hero-art { position: relative; aspect-ratio: 4 / 5; max-width: 460px; margin: 0 auto; border: 1px solid var(--line-strong); padding: 14px; background: linear-gradient(180deg, rgba(229,198,116,0.06), rgba(229,198,116,0.02)); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art::after { content: ""; position: absolute; inset: 4px; border: 1px solid var(--line); pointer-events: none; }

@media (min-width: 880px) {
  .hero-inner { grid-template-columns: 1.15fr 1fr; gap: 64px; }
}

/* ------- buttons ------- */
.btn { display: inline-block; padding: 12px 26px; font-family: var(--font-sans); font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; border-radius: var(--r-sm); border: 1px solid var(--gold); transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: var(--gold-bright); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--gold); }
.btn-ghost:hover { background: rgba(229,198,116,0.1); color: var(--gold-bright); }

/* ------- section spacing ------- */
section.block { padding: clamp(60px, 8vw, 100px) 0; border-bottom: 1px solid var(--line); }
.section-eyebrow { font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.3em; color: var(--gold); font-size: 0.78rem; margin-bottom: 14px; display: inline-block; }
.section-head { margin-bottom: 40px; max-width: 700px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.muted { color: var(--text-muted); }

/* ------- event cards (used on home + events page) ------- */
.events-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .events-grid { grid-template-columns: 1fr 1fr; } }

.event-card { position: relative; background: linear-gradient(180deg, rgba(229,198,116,0.08) 0%, rgba(229,198,116,0.015) 100%); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 28px 28px 26px; display: flex; flex-direction: column; gap: 6px; }
.event-card .date { font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.24em; color: var(--gold); font-size: 0.74rem; margin-bottom: 4px; }
.event-card .title { font-style: italic; font-size: 1.45rem; color: var(--white); }
.event-card .channel { font-family: var(--font-sans); font-size: 0.92rem; color: var(--text-muted); margin-bottom: 22px; }
.event-card .btn { align-self: flex-start; margin-top: auto; }

/* ------- recording / album grid ------- */
.album-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
@media (min-width: 640px) { .album-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; } }
@media (min-width: 960px) { .album-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.album { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--line); transition: transform 0.2s ease, border-color 0.2s ease; }
.album img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.album:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.album:hover img { transform: scale(1.05); }
.album .album-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.85) 100%); display: flex; align-items: flex-end; padding: 14px; }
.album .album-overlay span { font-style: italic; color: var(--white); font-size: 0.98rem; }

/* ------- photo gallery ------- */
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 960px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
.photo-grid figure { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--line); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ------- video grid ------- */
.video-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
.video-card { border: 1px solid var(--line); background: var(--bg-soft); }
.video-card .frame { aspect-ratio: 16 / 9; background: #000; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.video-card .frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.video-card .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.55)); }
.video-card .play span { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; background: rgba(229,198,116,0.92); color: var(--bg); align-items: center; justify-content: center; font-size: 24px; }
.video-card .meta { padding: 16px 18px 18px; }
.video-card .meta h3 { font-size: 1.1rem; }

/* ------- biography ------- */
.bio { display: grid; gap: 32px; align-items: start; }
@media (min-width: 880px) { .bio { grid-template-columns: 1fr 2fr; gap: 56px; } }
.bio-portrait { border: 1px solid var(--line); padding: 10px; background: rgba(229,198,116,0.04); }
.bio-portrait img { width: 100%; }
.bio-body p { font-size: 1.05rem; }

/* ------- contact form ------- */
.contact-grid { display: grid; gap: 36px; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 56px; } }
.contact-info p { margin-bottom: 0.5em; }
.contact-info a { color: var(--gold); }
form.contact-form { display: grid; gap: 16px; }
form.contact-form label { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-sans); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
form.contact-form input, form.contact-form textarea { font-family: var(--font-serif); font-size: 1rem; padding: 12px 14px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); border-radius: var(--r-sm); }
form.contact-form input:focus, form.contact-form textarea:focus { outline: none; border-color: var(--gold); }

/* ------- featured spotlight ------- */
.spotlight { display: grid; gap: 32px; align-items: center; }
@media (min-width: 880px) { .spotlight { grid-template-columns: 1fr 1fr; gap: 56px; } }
.spotlight-art { width: 100%; aspect-ratio: 1 / 1; max-width: 460px; margin: 0 auto; border: 1px solid var(--line-strong); padding: 12px; background: linear-gradient(180deg, rgba(229,198,116,0.06), rgba(229,198,116,0.02)); }
.spotlight-art img { width: 100%; height: 100%; object-fit: cover; }
.spotlight-body h2 { font-style: italic; }

/* ------- header tools (cart + nav toggle) ------- */
.site-header-tools { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 4px; background: transparent; border: 1px solid var(--line); color: var(--gold); padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; transition: border-color 0.18s ease, color 0.18s ease; }
.cart-btn:hover { color: var(--gold-bright); border-color: var(--line-strong); }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; background: var(--gold); color: var(--bg); border-radius: 999px; font-family: var(--font-sans); font-size: 0.7rem; font-weight: 700; display: none; align-items: center; justify-content: center; }
.cart-count.show { display: inline-flex; }

/* ------- product grid (shop on /recordings/) ------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.product-card { display: flex; flex-direction: column; background: var(--bg-soft); border: 1px solid var(--line); transition: border-color 0.2s ease, transform 0.2s ease; }
.product-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.product-card .product-img { aspect-ratio: 1 / 1; overflow: hidden; background: #000; }
.product-card .product-img picture, .product-card .product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card .product-info { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .product-format { font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.68rem; color: var(--gold); }
.product-card .product-title { font-style: italic; font-size: 1.1rem; color: var(--white); margin: 0; line-height: 1.25; }
.product-card .product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.product-card .product-price { font-family: var(--font-sans); font-size: 1rem; color: var(--text); font-weight: 600; }
.btn-add { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-family: var(--font-sans); font-size: 0.74rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; border: 1px solid var(--gold); background: var(--gold); color: var(--bg); border-radius: var(--r-sm); cursor: pointer; transition: background-color 0.18s ease; }
.btn-add:hover { background: var(--gold-bright); }
.btn-add.added { background: transparent; color: var(--gold); }
.btn-add svg { width: 14px; height: 14px; }

/* ------- cart drawer + overlay ------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 70; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--bg-soft); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform 0.28s ease; z-index: 71; display: flex; flex-direction: column; }
.cart-drawer.open { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.cart-header h3 { margin: 0; font-style: italic; font-size: 1.15rem; color: var(--white); }
.cart-close { background: transparent; border: none; color: var(--gold); cursor: pointer; padding: 6px; border-radius: var(--r-sm); }
.cart-close:hover { background: rgba(229,198,116,0.1); }
.cart-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-empty { padding: 60px 12px; text-align: center; color: var(--text-muted); }
.cart-empty-icon { color: var(--gold); margin-bottom: 14px; display: flex; justify-content: center; }
.cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item-img { flex: 0 0 64px; height: 64px; border: 1px solid var(--line); background: #000; overflow: hidden; }
.cart-item-img picture, .cart-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-style: italic; color: var(--white); font-size: 0.95rem; line-height: 1.3; margin-bottom: 4px; }
.cart-item-price { font-family: var(--font-sans); font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.cart-item-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qty-controls { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); }
.qty-btn { background: transparent; border: none; color: var(--gold); width: 28px; height: 28px; cursor: pointer; font-size: 1rem; line-height: 1; }
.qty-btn:hover { background: rgba(229,198,116,0.1); }
.qty-val { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; font-family: var(--font-sans); font-size: 0.85rem; color: var(--text); }
.cart-item-remove { background: transparent; border: none; color: var(--text-muted); font-family: var(--font-sans); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; cursor: pointer; padding: 4px 0; }
.cart-item-remove:hover { color: var(--accent); }
.cart-footer { border-top: 1px solid var(--line); padding: 18px 24px 22px; background: var(--bg-elev); }
.cart-totals { margin-bottom: 14px; }
.cart-row { display: flex; justify-content: space-between; font-family: var(--font-sans); font-size: 0.85rem; color: var(--text-muted); padding: 4px 0; }
.cart-row.total { font-size: 1rem; color: var(--white); font-weight: 700; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; }
.cart-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-block { width: 100%; text-align: center; }
.cart-note { margin-top: 14px; font-family: var(--font-sans); font-size: 0.7rem; color: var(--text-muted); text-align: center; letter-spacing: 0.08em; }
body.no-scroll { overflow: hidden; }

/* ------- checkout page ------- */
.checkout-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 880px) { .checkout-grid { grid-template-columns: 1.3fr 1fr; gap: 56px; } }
.checkout-form { display: grid; gap: 18px; }
.checkout-form .form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.checkout-form .form-row-3 { display: grid; gap: 16px; grid-template-columns: 2fr 1fr 1fr; }
.checkout-form label { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-sans); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.checkout-form input { font-family: var(--font-serif); font-size: 1rem; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: var(--r-sm); }
.checkout-form input:focus { outline: none; border-color: var(--gold); }
.checkout-section { padding: 22px 0; border-top: 1px solid var(--line); }
.checkout-section:first-of-type { border-top: 0; padding-top: 0; }
.checkout-section h3 { font-style: italic; font-size: 1.15rem; color: var(--white); margin-bottom: 14px; }
.checkout-summary { position: sticky; top: 100px; background: var(--bg-soft); border: 1px solid var(--line); padding: 24px; }
.checkout-summary h2 { font-style: italic; font-size: 1.2rem; }
.summary-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary-item-thumb { position: relative; width: 54px; height: 54px; border: 1px solid var(--line); flex: 0 0 54px; overflow: hidden; }
.summary-item-thumb picture, .summary-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.summary-item-thumb .qty-badge { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; background: var(--gold); color: var(--bg); font-family: var(--font-sans); font-size: 0.7rem; font-weight: 700; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.summary-item-name { font-style: italic; color: var(--white); font-size: 0.92rem; }
.summary-item-price { font-family: var(--font-sans); font-size: 0.85rem; color: var(--text); margin-left: auto; align-self: center; }
.summary-totals { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.summary-totals .cart-row.total { color: var(--white); border-top: 1px solid var(--line); }
.payment-icons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.payment-icons span { font-family: var(--font-sans); font-size: 0.65rem; letter-spacing: 0.18em; font-weight: 700; color: var(--text); border: 1px solid var(--line); padding: 4px 8px; border-radius: 3px; }
.legal-line { font-family: var(--font-sans); font-size: 0.72rem; color: var(--text-muted); margin: 12px 0 0; }

/* ------- order success ------- */
.order-success { text-align: center; padding: 60px 0; }
.order-success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 22px; }

/* ------- footer ------- */
.site-footer { background: #050505; border-top: 1px solid var(--line); padding: 60px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { font-family: var(--font-serif); font-style: italic; font-size: 1.4rem; color: var(--white); margin: 0; }
.footer-tag { font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.7rem; color: var(--gold); margin: 4px 0 12px; }
.footer-promise { color: var(--text-muted); max-width: 36ch; }
.footer-heading { font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.74rem; color: var(--gold); margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: var(--text); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 24px; color: var(--text-muted); font-size: 0.85rem; }
.footer-linkback a { color: var(--text-muted); border-bottom: 1px dotted var(--line); }
.footer-linkback a:hover { color: var(--gold); border-color: var(--gold); }
