/* Gunsight Peak: one stylesheet for every page. No external fonts or files. */

/* Zilla Slab, self hosted (SIL Open Font License, see /fonts/OFL.txt). */
@font-face {
  font-family: "Zilla Slab";
  src: url("/fonts/ZillaSlab-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zilla Slab";
  src: url("/fonts/ZillaSlab-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1d1a16;
  --ink-2: #2a251f;
  --paper: #f7f2e8;
  --paper-2: #efe6d4;
  --card: #fffdf8;
  --line: #ddd0b8;
  --text: #2b2620;
  --muted: #64584a;
  --green: #28772c;
  --green-dark: #1d5c21;
  --rust: #9c4a22;
  --gold: #d9a441;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 26, 22, .06), 0 8px 24px rgba(29, 26, 22, .08);
  --heading: "Zilla Slab", Rockwell, Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--rust); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--heading); font-weight: 700; font-synthesis: none; line-height: 1.15; color: var(--ink); margin: 0 0 .6em; letter-spacing: .005em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 32px); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(29, 26, 22, .96);
  border-bottom: 3px solid var(--green);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-block: 6px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--heading); font-size: 1.3rem; font-weight: 700; }
.brand:hover { color: var(--gold); }
.brand-logo { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; border: 2px solid var(--gold); background: #fff; }
.site-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.site-nav a {
  color: #efe6d4; text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: 8px 12px; border-radius: 999px;
}
.site-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--green); color: #fff; }

.nav-toggle {
  font: inherit; font-weight: 700; font-size: .95rem; color: #fff; cursor: pointer;
  background: transparent; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: 7px 16px;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .1); }
@media (min-width: 761px) { .nav-toggle { display: none; } }
@media (max-width: 760px) {
  .site-nav a { padding: 6px 10px; font-size: .95rem; }
  .has-toggle .site-nav { display: none; }
  .has-toggle.nav-open .site-nav { display: flex; flex-direction: column; width: 100%; gap: 2px; padding: 4px 0 10px; }
  .has-toggle.nav-open .site-nav a { padding: 11px 14px; border-radius: 10px; font-size: 1.05rem; }
}

/* Shared bits */
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--rust); margin-bottom: .6em; }
.lead { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--muted); max-width: 46em; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); background: #e2efd9; padding: 3px 10px; border-radius: 999px; margin-bottom: .7em; }
.badge { font-family: var(--body); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--gold); color: var(--ink); padding: 2px 9px; border-radius: 999px; margin-left: 10px; white-space: nowrap; }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow); }
.plain { list-style: none; padding: 0; margin: 0; }
.center { text-align: center; }
.note { color: var(--muted); font-size: .95rem; margin-top: 1.4em; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.actions.center { justify-content: center; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  background: var(--green); color: #fff; padding: 12px 22px; border-radius: 999px;
  border: 2px solid var(--green); transition: background .15s, transform .15s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .8); }
.btn-ghost:hover { background: rgba(255, 255, 255, .15); border-color: #fff; }
.btn-outline { background: transparent; color: var(--green-dark); }
.btn-outline:hover { color: #fff; }

/* Sections */
.section { padding-block: clamp(48px, 8vw, 88px); }
.section.alt { background: var(--paper-2); }
.section-head { max-width: 46em; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }

.split { display: grid; gap: clamp(24px, 5vw, 56px); align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse .split-media { order: 2; }
}

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; background: var(--ink); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 17, 13, .15) 0%, rgba(20, 17, 13, .45) 45%, rgba(20, 17, 13, .9) 100%); }
.hero-content { padding-block: 120px 64px; }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 9vw, 5.4rem); margin-bottom: .25em; text-shadow: 0 2px 18px rgba(0, 0, 0, .4); }
.hero .eyebrow { color: var(--gold); }
.hero .lead { color: #f1e9da; }

.page-hero { background: var(--ink); color: #efe6d4; padding-block: clamp(56px, 9vw, 96px) clamp(40px, 6vw, 64px); border-bottom: 1px solid #000; }
.page-hero h1 { color: #fff; }
.page-hero .lead, .page-hero p { color: #d9cdb7; }
.page-hero .eyebrow { color: var(--gold); }

/* Cards */
.cards { display: grid; gap: 22px; }
@media (min-width: 720px) { .cards.two { grid-template-columns: repeat(2, 1fr); } .cards.videos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .cards.videos { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; margin: 0; }
.link-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: transform .18s, box-shadow .18s, border-color .18s; }
.link-card:hover { transform: translateY(-3px); border-color: var(--green); color: var(--text); box-shadow: 0 2px 4px rgba(29, 26, 22, .06), 0 14px 32px rgba(29, 26, 22, .14); }
.link-card p { color: var(--muted); flex: 1; }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-size: 1.5rem; margin-bottom: 16px; }
.more { font-weight: 700; color: var(--green-dark); }
.more::after { content: " \2192"; }

.person, .event { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.person-photo { width: 100%; aspect-ratio: 4 / 4; object-fit: cover; object-position: 50% 25%; }
.event-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.person-body, .event-body { padding: 24px; }
.person-body p, .event-body p:last-child { margin-bottom: 0; }
@media (min-width: 720px) and (max-width: 1023px) { .person-photo { aspect-ratio: 1 / 1; } }

.contact-card .big { font-family: var(--heading); font-size: clamp(1.1rem, 3.4vw, 1.45rem); color: var(--ink); overflow-wrap: anywhere; }

/* Feature (latest song) */
.feature { display: grid; gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(16px, 3vw, 32px); }
@media (min-width: 880px) { .feature { grid-template-columns: 1.25fr 1fr; } }
.player { background: var(--paper-2); border-radius: 10px; padding: 12px 14px; margin: 1.2em 0 1.4em; }
.player-label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .4em; }
audio { width: 100%; display: block; }

/* Band */
.band { position: relative; isolation: isolate; color: #fff; text-align: center; padding-block: clamp(72px, 12vw, 140px); overflow: hidden; background: var(--ink); }
.band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20, 17, 13, .66); }
.band h2 { color: #fff; max-width: 22em; margin-inline: auto; }
.band p { color: #efe6d4; }

/* Home preview cards */
.preview { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: transform .18s, box-shadow .18s, border-color .18s; }
.preview:hover { transform: translateY(-3px); border-color: var(--green); color: var(--text); box-shadow: 0 2px 4px rgba(29, 26, 22, .06), 0 14px 32px rgba(29, 26, 22, .14); }
.preview-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.preview-media > img { width: 100%; height: 100%; object-fit: cover; }
.preview-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.preview-body p { color: var(--muted); flex: 1; }
.preview-body .tag { flex: 0; align-self: flex-start; }
.quote-media { display: flex; align-items: center; padding: 22px 26px; background: linear-gradient(135deg, #2a251f, #1d1a16); }
.quote-media blockquote { margin: 0; color: #f3ead8; font-family: var(--heading); font-weight: 400; font-size: clamp(1.05rem, 2.2vw, 1.2rem); line-height: 1.55; border-left: 3px solid var(--gold); padding-left: 16px; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.tag-gold { background: #f6e4b8; color: #6b4a0e; }

/* Video: still picture with a play button until pressed */
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.yt-poster { display: block; width: 100%; height: 100%; }
.yt-poster img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.yt-poster:hover img { filter: brightness(.85); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(40, 119, 44, .92); box-shadow: 0 4px 18px rgba(0, 0, 0, .35); transition: transform .2s, background .2s; }
.yt-play::before { content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.yt-poster:hover .yt-play, .preview:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); background: var(--green-dark); }
.video-thumb .yt-play { width: 60px; height: 60px; }
.video-thumb .yt-play::before { left: 24px; top: 18px; border-width: 12px 0 12px 18px; }

.media-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.media-card .yt { border-radius: 0; }
.media-body { padding: 20px 22px 24px; }
.media-body p { color: var(--muted); }
.audio-art { aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(135deg, var(--green), #173f19); color: rgba(255, 255, 255, .9); font-size: 4rem; }

/* Gallery */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a { display: block; border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }

/* Poetry */
.poem-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: transform .18s, box-shadow .18s, border-color .18s; }
.poem-card:hover { transform: translateY(-3px); border-color: var(--green); color: var(--text); }
.poem-card h2 { font-size: 1.45rem; margin-bottom: .5em; }
.poem-card .tag { align-self: flex-start; }
.poem-start { font-family: var(--heading); font-weight: 400; font-size: 1.1rem; color: var(--muted); line-height: 1.55; flex: 1; border-left: 3px solid var(--line); padding-left: 14px; }
.poem-hero .eyebrow a { color: var(--gold); text-decoration: none; }
.poem-hero .eyebrow a:hover { text-decoration: underline; }
.poem-hero .by { color: #d9cdb7; font-style: italic; margin: 0; }
.poem-note { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 10px; padding: 14px 18px; margin-bottom: 2em; }
.poem-text { font-family: var(--heading); font-weight: 400; font-size: clamp(1.15rem, 2.4vw, 1.3rem); line-height: 1.7; color: var(--ink); }
.poem-text p { margin-bottom: 1.4em; }
.byline { font-size: .98rem; font-style: italic; color: var(--muted); margin-top: 1.5em; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 2.5em 0 2em; padding-top: 1.5em; border-top: 1px solid var(--line); }
.pager a { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-family: var(--heading); font-weight: 700; color: var(--ink); line-height: 1.3; }
.pager a:hover { border-color: var(--green); color: var(--green-dark); }
.pager span { display: block; font-family: var(--body); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pager-next { text-align: right; grid-column: 2; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.lightbox::backdrop { background: rgba(10, 8, 6, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lb-img { max-width: min(92vw, 1400px); max-height: 82vh; width: auto; height: auto; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #d9cdb7; margin: 0; font-size: .95rem; }

/* Privacy */
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.glance { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: var(--radius); padding: 18px 24px; }
.glance h2 { margin-top: 0; }
.glance ul { margin: 0; padding-left: 1.2em; }

/* Footer */
.site-footer { background: var(--ink); color: #cfc3ad; padding-top: 56px; margin-top: 0; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 36px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 1.2rem; }
.site-footer a { color: #f0d79a; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: .5em; overflow-wrap: anywhere; }
.signoff { font-style: italic; color: #efe6d4; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 20px 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: .92rem; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
