:root {
  --paper: #f7f2e6;
  --paper-deep: #e8dcc6;
  --ink: #25211b;
  --muted: #6e6257;
  --green: #315f49;
  --green-dark: #183b30;
  --red: #9a2f32;
  --blue: #284e68;
  --gold: #b98d3a;
  --line: rgba(37, 33, 27, 0.18);
  --shadow: 0 18px 50px rgba(26, 20, 14, 0.16);
  --radius: 8px;
  --content: 1120px;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Almendra", Georgia, "Times New Roman", serif;
  color-scheme: light;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(rgba(247, 242, 230, 0.9), rgba(247, 242, 230, 0.92)),
    url("/assets/images/paper-tile.jpg");
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

img,
iframe {
  max-width: 100%;
}

img {
  display: block;
}

a {
  color: var(--green-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red);
}

sup {
  font-size: 0.56em;
  margin-left: 0.12em;
  vertical-align: super;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-180%);
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.75rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 2.25rem);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 242, 230, 0.94);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-name,
.brand-tag {
  display: block;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
  color: var(--red);
  text-transform: uppercase;
}

.brand-tag {
  margin-top: 0.16rem;
  color: var(--green-dark);
  font-size: clamp(0.86rem, 1.8vw, 0.96rem);
  line-height: 1.15;
  white-space: normal;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.45rem, 1.4vw, 1rem);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
}

.site-nav a {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  border-color: var(--gold);
  color: var(--red);
}

.nav-toggle {
  display: none;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  font: 700 0.9rem/1 var(--font-body);
  text-transform: uppercase;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.nav-toggle-lines::before {
  top: -0.36rem;
}

.nav-toggle-lines::after {
  top: 0.36rem;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(720px, 72svh);
  display: grid;
  align-items: center;
  overflow: clip;
  background: #1e211c;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: clip;
  background: #1e211c;
}

.hero-media::before,
.hero-media::after {
  position: absolute;
  content: "";
}

.hero-media::before {
  inset: -2rem;
  background: url("/assets/images/kindred-duo-church.jpg") center center / cover no-repeat;
  filter: blur(18px);
  opacity: 0.55;
  transform: scale(1.04);
}

.hero-media::after {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 23, 19, 0.82) 0%, rgba(20, 23, 19, 0.58) 42%, rgba(20, 23, 19, 0.14) 100%),
    url("/assets/images/kindred-duo-church.jpg") center center / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: auto 0 -1px;
  z-index: -1;
  height: 42%;
  background:
    linear-gradient(rgba(247, 242, 230, 0.9), rgba(247, 242, 230, 0.92)),
    url("/assets/images/paper-tile.jpg");
  -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 18%, transparent 100%);
  mask-image: linear-gradient(0deg, #000 0%, #000 18%, transparent 100%);
  content: "";
}

.hero-copy {
  width: min(720px, calc(100% - 2rem));
  margin-left: max(1rem, calc((100vw - var(--content)) / 2));
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(5rem, 12vw, 8rem);
  color: white;
}

.hero-copy h1 {
  margin: 0;
  color: #fff8eb;
  font-family: var(--font-display);
  font-size: clamp(4rem, 13vw, 8.5rem);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
}

.hero-copy p:not(.eyebrow) {
  max-width: 32rem;
  margin: 1rem 0 0;
  color: rgba(255, 248, 235, 0.92);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  padding: 0.68rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
}

.button.primary {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.hero .button.secondary {
  background: rgba(255, 248, 235, 0.12);
  color: #fff8eb;
}

.button:hover {
  transform: translateY(-1px);
}

.content-band {
  width: min(var(--content), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.35rem, 3.5vw, 3rem) 0 clamp(2.6rem, 5vw, 5rem);
}

.page-hero {
  width: min(var(--content), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.6rem, 6vw, 5.5rem) 0 clamp(0.85rem, 2vw, 1.4rem);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--red);
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 8vw, 5.75rem);
  font-weight: 400;
  line-height: 0.95;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--green);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4d285;
}

.prose {
  max-width: 74ch;
}

.prose h1,
.prose h2,
.section-heading h2,
.album-strip h2,
.contact-panel h2,
.album-card h2,
.contact-card h2,
.lesson-contact h2 {
  margin: 0;
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
}

.prose h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
}

.prose h2,
.section-heading h2,
.album-strip h2,
.contact-panel h2,
.album-card h2,
.contact-card h2,
.lesson-contact h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.prose p {
  margin: 1rem 0 0;
}

.prose p:first-child,
.prose h1 + p,
.prose h2 + p {
  margin-top: 0.75rem;
}

.lead-copy p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.article {
  width: min(100%, 74ch);
}

.article-panel {
  padding: clamp(1.15rem, 3vw, 2rem);
}

.article-panel h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.article-panel h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
}

.article-panel + .gallery-grid,
.article-panel + .video-grid {
  margin-top: clamp(1.4rem, 3vw, 2.4rem);
}

.split-section,
.music-layout,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
  gap: clamp(1.4rem, 4vw, 3.75rem);
  align-items: center;
}

.align-start {
  align-items: start;
}

.feature-photo,
.side-photo,
.lesson-card,
.album-card,
.contact-card {
  margin: 0;
}

.feature-photo,
.side-photo,
.lesson-card,
.album-card,
.contact-card,
.article-panel,
.album-strip,
.contact-panel,
.section-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 252, 244, 0.72);
  box-shadow: var(--shadow);
}

.feature-photo img,
.side-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}

.side-photo img {
  aspect-ratio: 1 / 1;
}

.feature-photo figcaption {
  border-top: 1px solid var(--line);
  padding: 0.85rem 1rem 1rem;
  background: rgba(255, 252, 244, 0.5);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.4;
}

.section-block {
  margin-top: clamp(1.6rem, 4vw, 3rem);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading p:not(.eyebrow) {
  max-width: 58ch;
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.quiet {
  margin: 0;
  color: var(--muted);
}

.event-list {
  display: grid;
  gap: 1rem;
}

.event-item {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.event-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.event-item time {
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
}

.event-item h3 {
  margin: 0;
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.2;
}

.event-item p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--red);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
}

.album-strip,
.contact-panel {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  margin-top: clamp(1.6rem, 4vw, 3rem);
  padding: clamp(1rem, 3vw, 1.6rem);
}

.album-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.album-strip p,
.contact-panel p {
  margin: 0.65rem 0 0;
}

.contact-panel {
  grid-template-columns: minmax(0, 1fr) auto;
}

.contact-lines {
  display: grid;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.music-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.8fr);
  align-items: start;
}

.album-card {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.album-card img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.link-tree {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.link-tree a {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.58);
  color: var(--green-dark);
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
}

.link-tree a::after {
  content: "Open";
  color: var(--red);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
}

.gallery-grid figure {
  grid-column: span 4;
  min-height: 0;
  margin: 0;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 252, 244, 0.72);
}

.gallery-grid figure:nth-child(1),
.gallery-grid figure:nth-child(2) {
  grid-column: span 6;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-grid figure:nth-child(1) img,
.gallery-grid figure:nth-child(2) img {
  aspect-ratio: 3 / 2;
}

.video-grid {
  display: grid;
  gap: 1rem;
}

.video-card {
  padding: clamp(0.8rem, 2vw, 1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 252, 244, 0.72);
  box-shadow: var(--shadow);
}

.video-figure {
  margin: 0;
}

.video-frame {
  position: relative;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.1rem 0.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.media-caption span {
  color: var(--green-dark);
  font-weight: 700;
}

.media-caption a {
  color: var(--red);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.venue-list {
  columns: 2 18rem;
  gap: 2rem;
  margin: 0;
  padding-left: 1.1rem;
}

.venue-list li {
  break-inside: avoid;
  margin-bottom: 0.45rem;
}

.contact-card {
  padding: clamp(1rem, 3vw, 1.4rem);
}

.lesson-layout {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.4rem);
}

.lesson-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.95fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1rem, 3vw, 1.6rem);
}

.lesson-card-copy {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
}

.lesson-intro,
.lesson-policy {
  max-width: 74ch;
}

.lesson-contact h2 {
  margin-bottom: 0.8rem;
}

.lesson-photos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: 0.85rem;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.lesson-photos img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.lesson-photos img:first-child {
  aspect-ratio: 4 / 3;
}

.lesson-photos img:last-child {
  aspect-ratio: 3 / 4;
}

address {
  margin: 1rem 0 1.2rem;
  color: var(--muted);
  font-style: normal;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 4vw, 2.25rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: flex-end;
  font-family: var(--font-body);
  font-weight: 700;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 4.15rem 0 auto;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 242, 230, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    min-height: 3rem;
    border-bottom: 1px solid var(--line);
    white-space: normal;
  }

  .split-section,
  .music-layout,
  .contact-grid,
  .lesson-card {
    grid-template-columns: 1fr;
  }

  .side-photo,
  .album-card,
  .contact-card {
    max-width: 620px;
  }

  .lesson-card {
    max-width: 760px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .site-header {
    gap: 0.7rem;
    padding: 0.62rem 0.85rem;
  }

  .brand-tag {
    max-width: 16rem;
  }

  .hero {
    min-height: 68svh;
  }

  .hero-media::before {
    opacity: 0.42;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(20, 23, 19, 0.2) 0%, rgba(20, 23, 19, 0.72) 63%, rgba(20, 23, 19, 0.84) 100%),
      url("/assets/images/kindred-duo-church.jpg") 58% center / auto 100% no-repeat;
  }

  .hero-copy {
    align-self: end;
    margin: 0 auto;
    padding: 15rem 0 4.4rem;
  }

  .hero-actions,
  .inline-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .page-hero h1,
  .prose h1 {
    overflow-wrap: break-word;
  }

  .album-strip,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .album-strip img {
    width: min(240px, 100%);
  }

  .event-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid figure,
  .gallery-grid figure:nth-child(1),
  .gallery-grid figure:nth-child(2) {
    grid-column: auto;
  }

  .site-footer {
    display: grid;
  }

  .footer-actions {
    justify-content: start;
  }
}

@media (max-width: 420px) {
  .nav-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .site-nav {
    grid-template-columns: 1fr;
  }

  .brand-tag {
    max-width: 13rem;
  }
}
