@font-face {
  font-family: "Foman Home Serif";
  src: url("assets/fonts/foman-home-serif-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+4F5B, U+5802, U+7E3D, U+9580;
}

@font-face {
  font-family: "Foman Welcome Serif";
  src: url("assets/fonts/foman-welcome-serif-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+4F5B, U+5802, U+6B61, U+7E3D, U+81E8, U+849E, U+8FCE, U+9580;
}

:root {
  --paper: #fffefb;
  --warm-white: #f6f1e7;
  --warm-white-deep: #eee5d7;
  --ink: #28231f;
  --ink-soft: #5e574f;
  --temple-red: #7b2d2d;
  --temple-red-dark: #5f2020;
  --gold: #c39a52;
  --gold-pale: #f3e7cd;
  --pine: #365a50;
  --line: #ded4c5;
  --shadow: 0 18px 50px rgba(58, 43, 28, 0.09);
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--warm-white);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

::selection {
  color: white;
  background: var(--temple-red);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
iframe:focus-visible {
  outline: 4px solid #1667b1;
  outline-offset: 4px;
}

p,
h1,
h2,
h3,
figure,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.02em;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 4.7rem);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}

h3 {
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: white;
  background: var(--temple-red-dark);
  border-radius: 8px;
  transform: translateY(-160%);
}

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

.utility-bar {
  color: white;
  background: var(--temple-red-dark);
  font-size: 0.89rem;
}

.utility-bar__inner {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.utility-bar p {
  display: flex;
  margin: 0;
  gap: 10px;
}

.utility-bar a {
  font-weight: 700;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 254, 251, 0.96);
  border-bottom: 1px solid rgba(123, 45, 45, 0.13);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  min-height: 86px;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  gap: 12px;
}

.brand__seal {
  position: relative;
  display: block;
  width: 40px;
  height: 74px;
  flex: 0 0 40px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(158, 124, 56, 0.46);
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(58, 43, 28, 0.12);
}

.brand__seal img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 36px;
  height: auto;
  max-width: none;
  transform: translateX(-50%);
}

.brand__text {
  display: grid;
  line-height: 1.25;
}

.brand__text strong {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  letter-spacing: 0.08em;
}

.brand__text small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
}

.primary-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.primary-nav a {
  position: relative;
  padding-block: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a::after {
  position: absolute;
  right: 50%;
  bottom: 4px;
  left: 50%;
  height: 2px;
  content: "";
  background: var(--gold);
  transition: right 160ms ease, left 160ms ease;
}

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

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  right: 0;
  left: 0;
}

.header-call {
  display: grid;
  min-width: 144px;
  padding: 9px 15px;
  color: white;
  background: var(--temple-red);
  border-radius: 10px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.header-call span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.header-call strong {
  margin-top: 3px;
  font-size: 0.9rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 72px;
  background:
    radial-gradient(circle at 88% 16%, rgba(195, 154, 82, 0.22), transparent 28%),
    linear-gradient(180deg, var(--paper), var(--warm-white));
}

.hero h1 {
  font-family: "Foman Home Serif", var(--font-serif);
}

.hero::before {
  position: absolute;
  top: 0;
  left: max(20px, calc((100% - var(--container)) / 2));
  width: 86px;
  height: 4px;
  content: "";
  background: var(--gold);
}

.hero__grid {
  display: grid;
  align-items: center;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(42px, 7vw, 88px);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--temple-red);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 29em;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 1.18rem;
  line-height: 1.8;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

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

.button--primary:hover {
  background: var(--temple-red-dark);
  border-color: var(--temple-red-dark);
}

.button--secondary {
  color: var(--temple-red);
  background: var(--paper);
  border-color: var(--temple-red);
}

.button--secondary:hover {
  background: #f9eeee;
}

.button--text {
  min-height: 48px;
  padding-inline: 10px;
  color: var(--temple-red);
  text-decoration: underline;
}

.hero-shortcuts {
  display: none;
}

.hero__facts {
  display: grid;
  padding: 26px 0 0;
  margin: 30px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  gap: 12px;
}

.hero__facts li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
}

.hero__facts strong {
  color: var(--temple-red);
}

.hero__facts span {
  color: var(--ink-soft);
}

.hero__media {
  position: relative;
  margin: 0;
}

.hero__media::before {
  position: absolute;
  z-index: 0;
  right: -22px;
  bottom: -22px;
  width: 70%;
  height: 76%;
  content: "";
  background: var(--gold-pale);
  border-radius: 30px 4px 30px 4px;
}

.hero__media img {
  position: relative;
  z-index: 1;
  min-height: 480px;
  object-fit: cover;
  object-position: 50% 54%;
  border-radius: 4px 38px 4px 38px;
  box-shadow: var(--shadow);
}

.hero__media figcaption {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  max-width: calc(100% - 40px);
  padding: 8px 13px;
  color: white;
  background: rgba(40, 35, 31, 0.86);
  border-radius: 8px;
  font-size: 0.78rem;
}

.quick-links {
  padding: 74px 0 84px;
  background: var(--paper);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.announcement-detail .section-heading .eyebrow {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 4vw, 2rem);
  letter-spacing: 0.18em;
}

.section-heading--split {
  display: grid;
  max-width: none;
  align-items: end;
  grid-template-columns: 1fr minmax(300px, 0.75fr);
  gap: 48px;
}

.section-heading--split h2 {
  margin-bottom: 0;
}

.quick-links__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quick-card {
  display: flex;
  min-height: 132px;
  align-items: center;
  padding: 24px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(58, 43, 28, 0.05);
  gap: 17px;
  text-decoration: none;
}

.quick-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.quick-card__mark {
  position: relative;
  display: block;
  width: 40px;
  height: 68px;
  flex: 0 0 40px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(168, 134, 62, 0.4);
  border-radius: 9px;
  box-shadow: 0 5px 14px rgba(58, 43, 28, 0.1);
}

.quick-card__mark img {
  position: absolute;
  top: 1px;
  left: 50%;
  width: 33px;
  height: auto;
  max-width: none;
  transform: translateX(-50%);
}

.quick-card > span:last-child {
  display: grid;
  gap: 3px;
}

.quick-card strong {
  color: var(--ink);
  font-size: 1.12rem;
}

.quick-card small {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.5;
}

.announcement {
  padding: 34px 0;
  background: var(--temple-red);
}

.announcement__box {
  display: grid;
  align-items: center;
  color: white;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
}

.announcement__label {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.announcement__label span {
  font-family: var(--font-serif);
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.announcement .eyebrow {
  margin-bottom: 5px;
  color: #f3dcae;
}

.announcement h2 {
  margin-bottom: 4px;
  color: white;
  font-family: var(--font-sans);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.announcement p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
}

.announcement .text-link {
  color: white;
}

.section {
  padding: 88px 0;
}

.featured {
  background:
    linear-gradient(90deg, rgba(195, 154, 82, 0.08) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--warm-white);
}

.featured__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.schedule-card,
.activity-feature {
  min-width: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.schedule-card {
  padding: clamp(28px, 4vw, 46px);
}

.schedule-card__intro {
  color: var(--ink-soft);
}

.schedule-card__embed {
  overflow: hidden;
  margin: 26px 0 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.schedule-card__embed iframe {
  display: block;
  width: 100%;
  height: 430px;
  border: 0;
}

.practice-times {
  margin-top: 26px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid rgba(132, 35, 35, 0.2);
  border-left: 7px solid var(--temple-red);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(58, 43, 28, 0.08);
}

.practice-times__heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.practice-times__heading .eyebrow {
  margin-bottom: 2px;
}

.practice-times__heading h2,
.practice-times__heading h3 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2rem);
}

.practice-times__mark {
  display: block;
  width: 38px;
  height: 64px;
  flex: 0 0 38px;
  overflow: hidden;
  color: transparent;
  background-color: white;
  background-image: url("/assets/images/temple-emblem.jpg");
  background-repeat: no-repeat;
  background-position: center 1px;
  background-size: 31px auto;
  border: 1px solid rgba(168, 134, 62, 0.4);
  border-radius: 9px;
  box-shadow: 0 5px 14px rgba(58, 43, 28, 0.1);
  font-size: 0;
}

.practice-times__dates {
  display: grid;
  padding: 0;
  margin: 20px 0 10px;
  color: var(--ink);
  font-size: clamp(1.22rem, 4vw, 1.65rem);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: 8px;
  line-height: 1.5;
  list-style: none;
  letter-spacing: 0.02em;
}

.practice-times__dates li {
  min-width: 0;
  white-space: nowrap;
}

.practice-times__note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.practice-times--home {
  margin: 34px 0 26px;
  padding: 28px;
  background: linear-gradient(135deg, #fffaf0, #f5e4c7);
  border: 2px solid rgba(132, 35, 35, 0.24);
  border-top: 8px solid var(--temple-red);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(58, 43, 28, 0.12);
}

.practice-times--home .practice-times__dates {
  margin-bottom: 0;
  font-size: clamp(1.15rem, 3vw, 1.42rem);
}

.activity-feature {
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
}

.activity-feature img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.activity-feature__content {
  padding: 28px 32px 32px;
}

.activity-feature__content h2 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.activity-feature__content > p:not(.eyebrow) {
  color: var(--ink-soft);
}

.lighting-feature {
  border-color: rgba(195, 154, 82, 0.48);
}

.lighting-feature .activity-feature__content {
  background: linear-gradient(145deg, var(--paper), #fff8e9);
}

.lighting-feature .button {
  margin-top: 8px;
}

.text-link {
  color: var(--temple-red);
  font-weight: 800;
}

.about {
  background: var(--paper);
}

.hall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.hall-card {
  overflow: hidden;
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.hall-card img {
  height: 330px;
  object-fit: cover;
}

.hall-card:nth-child(1) img {
  object-position: 50% 54%;
}

.hall-card:nth-child(2) img {
  object-position: 50% 44%;
}

.hall-card:nth-child(3) img {
  object-position: 50% 28%;
}

.hall-card__content {
  position: relative;
  padding: 28px;
}

.hall-card__number {
  position: absolute;
  top: -29px;
  right: 22px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: white;
  background: var(--temple-red);
  border: 4px solid var(--warm-white);
  border-radius: 50%;
  font-weight: 800;
}

.hall-card__content p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.photos {
  background: var(--warm-white-deep);
}

.activity-carousel {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.activity-carousel__viewport {
  background: #2f231b;
}

.activity-carousel__slide:not([hidden]) {
  animation: activity-carousel-reveal 600ms ease both;
}

@keyframes activity-carousel-reveal {
  from {
    opacity: 0.25;
  }

  to {
    opacity: 1;
  }
}

.activity-carousel__slide > a {
  position: relative;
  display: block;
  height: 520px;
  overflow: hidden;
  color: white;
  text-decoration: none;
}

.activity-carousel__slide > a::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 35%, rgba(30, 20, 14, 0.9) 100%),
    linear-gradient(90deg, rgba(30, 20, 14, 0.22), transparent 55%);
  pointer-events: none;
}

.activity-carousel__slide img {
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.activity-carousel__slide > a:hover img {
  transform: scale(1.025);
}

.activity-carousel__caption {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(26px, 5vw, 48px);
}

.activity-carousel__caption p {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 5px 13px;
  margin-bottom: 12px;
  color: var(--ink);
  background: var(--gold-pale);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.activity-carousel__caption h3 {
  max-width: 18em;
  margin-bottom: 9px;
  color: white;
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.activity-carousel__caption span {
  font-weight: 800;
}

.activity-carousel__controls {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  gap: 10px;
}

.activity-carousel__controls button {
  min-height: 48px;
  padding: 8px 16px;
  color: var(--temple-red);
  background: var(--paper);
  border: 1px solid var(--temple-red);
  border-radius: 10px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.activity-carousel__controls button:hover {
  background: #f9eeee;
}

.activity-carousel__controls button:disabled {
  color: var(--ink-soft);
  background: var(--warm-white);
  border-color: var(--line);
  cursor: not-allowed;
  opacity: 0.7;
}

.activity-carousel__status {
  display: inline-flex;
  min-width: 72px;
  justify-content: center;
  margin: 0;
  color: var(--ink-soft);
  gap: 6px;
}

.activity-carousel__status strong {
  color: var(--temple-red);
}

.activity-carousel__controls .activity-carousel__toggle {
  margin-left: auto;
  color: white;
  background: var(--temple-red);
}

.activity-carousel__controls .activity-carousel__toggle:hover {
  background: var(--temple-red-dark);
}

.year-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 24px;
  margin-top: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  gap: 12px;
}

.year-links span {
  margin-right: 4px;
  color: var(--ink-soft);
  font-weight: 700;
}

.year-links a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 8px 17px;
  color: var(--temple-red);
  background: #fbf3e6;
  border: 1px solid #d9bd8b;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.year-links a:hover {
  color: white;
  background: var(--temple-red);
  border-color: var(--temple-red);
}

.contact {
  color: white;
  background: var(--pine);
}

.contact__grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
}

.contact h2,
.contact .eyebrow {
  color: white;
}

.contact .eyebrow {
  color: #f2dbaa;
}

.contact__lead {
  max-width: 33em;
  color: rgba(255, 255, 255, 0.84);
}

.contact-list {
  display: grid;
  margin: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.contact-list > div {
  display: grid;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  grid-template-columns: 108px 1fr;
  gap: 18px;
}

.contact-list dt {
  color: #f2dbaa;
  font-weight: 800;
}

.contact-list dd {
  margin: 0;
}

.contact-list dd strong,
.contact-list dd a {
  color: white;
  font-size: 1.22rem;
  font-weight: 800;
}

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

.contact .button--primary:hover {
  background: var(--gold-pale);
  border-color: var(--gold-pale);
}

.contact .button--secondary {
  color: white;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.8);
}

.contact .button--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.map-frame {
  min-height: 540px;
  overflow: hidden;
  background: #e8e2d8;
  border: 8px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 524px;
  border: 0;
}

.site-footer {
  padding: 58px 0 22px;
  color: rgba(255, 255, 255, 0.82);
  background: #231f1b;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr;
  gap: 44px;
}

.brand--footer {
  color: white;
}

.brand--footer .brand__text small {
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.05em;
}

.site-footer nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
}

.site-footer nav a {
  color: white;
}

.site-footer__contact a {
  color: white;
  font-size: 1.22rem;
  font-weight: 800;
}

.site-footer__contact p {
  margin: 8px 0 0;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  margin-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.84rem;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__bottom a {
  color: white;
}

/* Shared inner-page patterns */

.mobile-page-nav {
  display: none;
}

.mobile-action-dock {
  display: none;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0;
  background:
    radial-gradient(circle at 82% 15%, rgba(195, 154, 82, 0.2), transparent 25%),
    linear-gradient(180deg, var(--paper), var(--warm-white));
}

.page-hero::before {
  position: absolute;
  top: 0;
  left: max(20px, calc((100% - var(--container)) / 2));
  width: 86px;
  height: 4px;
  content: "";
  background: var(--gold);
}

.page-hero__grid {
  display: grid;
  align-items: center;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(40px, 7vw, 82px);
}

.page-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 6vw, 4.4rem);
}

.page-hero__lead {
  max-width: 32em;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.page-hero__media {
  position: relative;
  margin: 0;
}

.page-hero__media::before {
  position: absolute;
  z-index: 0;
  right: -18px;
  bottom: -18px;
  width: 72%;
  height: 74%;
  content: "";
  background: var(--gold-pale);
  border-radius: 26px 4px 26px 4px;
}

.page-hero__media img {
  position: relative;
  z-index: 1;
  height: 410px;
  object-fit: cover;
  border-radius: 4px 32px 4px 32px;
  box-shadow: var(--shadow);
}

.support-hero .page-hero__grid {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
}

.support-hero .page-hero__lead {
  margin-bottom: 22px;
}

.support-hero__status {
  padding: 2px 0 2px 16px;
  margin: 0 0 26px;
  color: var(--ink-soft);
  border-left: 3px solid var(--gold);
  font-size: 0.96rem;
}

.page-hero__media--board {
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(168, 134, 62, 0.34);
  border-radius: 4px 28px 4px 28px;
  box-shadow: var(--shadow);
}

.page-hero__media--board::before {
  display: none;
}

.page-hero__media--board img {
  height: auto;
  object-fit: contain;
  border-radius: 2px 20px 2px 20px;
  box-shadow: none;
}

.page-hero__media--board figcaption {
  padding: 10px 8px 2px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  gap: 8px;
}

.breadcrumb a {
  color: var(--temple-red);
  font-weight: 800;
}

.page-section {
  padding: 82px 0;
  background: var(--paper);
}

.page-section--warm {
  background: var(--warm-white);
}

.page-section--deep {
  background: var(--warm-white-deep);
}

.page-intro-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(240px, 0.72fr) 1.28fr;
  gap: clamp(38px, 7vw, 88px);
}

.page-intro-grid h2 {
  position: sticky;
  top: 120px;
}

.prose {
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.prose p {
  margin-bottom: 1.4em;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--ink);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 9px 28px rgba(58, 43, 28, 0.06);
}

.info-card__mark {
  display: block;
  width: 38px;
  height: 64px;
  margin-bottom: 18px;
  overflow: hidden;
  color: transparent;
  background-color: white;
  background-image: url("/assets/images/temple-emblem.jpg");
  background-repeat: no-repeat;
  background-position: center 1px;
  background-size: 31px auto;
  border: 1px solid rgba(168, 134, 62, 0.4);
  border-radius: 9px;
  box-shadow: 0 5px 14px rgba(58, 43, 28, 0.1);
  font-size: 0;
}

.info-card h3 {
  margin-bottom: 10px;
}

.info-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.outreach-grid {
  display: grid;
  max-width: 980px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  gap: 24px;
}

.outreach-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 36px;
  background:
    radial-gradient(circle at 92% 8%, rgba(195, 154, 82, 0.14), transparent 32%),
    var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--temple-red);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(58, 43, 28, 0.07);
}

.outreach-card--gold {
  background:
    radial-gradient(circle at 92% 8%, rgba(123, 45, 45, 0.1), transparent 32%),
    var(--gold-pale);
  border-top-color: var(--gold);
}

.outreach-card__heading {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
  gap: 20px;
}

.outreach-card__heading .info-card__mark {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.outreach-card__heading .eyebrow {
  margin-bottom: 4px;
}

.outreach-card h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.outreach-card > p {
  color: var(--ink-soft);
}

.outreach-card .text-link {
  align-self: flex-start;
  margin-top: auto;
}

.calendar-page {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.calendar-page iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.event-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 32px rgba(58, 43, 28, 0.06);
}

.event-card img {
  height: 250px;
  object-fit: cover;
}

.event-card__date {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 6px 12px;
  margin-bottom: 12px;
  color: var(--temple-red);
  background: var(--gold-pale);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.event-card__content {
  padding: 25px;
}

.event-card__content p {
  color: var(--ink-soft);
}

.event-card--featured {
  color: white;
  background: var(--temple-red);
  border-color: var(--temple-red);
}

.event-card--featured .event-card__content {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
}

.event-card--featured h3,
.event-card--featured p,
.event-card--featured .text-link {
  color: white;
}

.event-card--featured .event-card__date {
  align-self: flex-start;
  color: var(--temple-red);
  background: white;
}

.lighting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.lighting-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.lighting-card img {
  height: 360px;
  object-fit: cover;
}

.lighting-card__content {
  padding: 30px;
}

.lighting-card__content p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.steps {
  display: grid;
  counter-reset: steps;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  position: relative;
  padding: 30px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  counter-increment: steps;
}

.step::before {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  color: white;
  content: counter(steps);
  background: var(--temple-red);
  border-radius: 50%;
  font-weight: 800;
}

.step p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.year-jump {
  display: flex;
  flex-wrap: wrap;
  padding: 18px;
  margin-bottom: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  gap: 10px;
}

.year-jump a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  color: var(--temple-red);
  background: var(--gold-pale);
  border: 1px solid #d9bd8b;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.album-year {
  padding: 34px;
  margin-top: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.album-year__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  gap: 18px;
}

.album-year__heading h2 {
  margin: 0;
}

.album-year__heading span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.album-list {
  display: grid;
  padding: 0;
  margin: 0;
  grid-template-columns: 1fr 1fr;
  list-style: none;
  gap: 10px 18px;
}

.album-list a {
  display: flex;
  min-height: 54px;
  align-items: center;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--warm-white);
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.album-list a::after {
  margin-left: auto;
  color: var(--temple-red);
  content: "↗";
}

.album-list a:hover {
  border-color: var(--gold);
}

.cta-band {
  padding: 54px 0;
  color: white;
  background: var(--temple-red);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.cta-band h2 {
  margin-bottom: 8px;
  color: white;
  font-family: var(--font-sans);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.cta-band .button--secondary {
  flex: 0 0 auto;
  color: var(--temple-red);
  background: white;
  border-color: white;
}

.simple-contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
}

.contact-panel {
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.contact-panel dl {
  margin: 24px 0;
}

.contact-panel dl > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-panel dt {
  color: var(--temple-red);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.contact-panel dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .primary-nav {
    gap: 15px;
  }

  .primary-nav a {
    font-size: 0.82rem;
  }

  .header-call {
    min-width: 124px;
  }
}

@media (max-width: 920px) {
  html {
    scroll-padding-top: 90px;
  }

  .primary-nav {
    display: none;
  }

  .site-header__inner {
    min-height: 76px;
    justify-content: space-between;
  }

  .mobile-page-nav {
    display: block;
    padding: 12px 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .mobile-page-nav__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .mobile-page-nav a {
    display: grid;
    min-height: 48px;
    place-items: center;
    padding: 7px 5px;
    color: var(--ink);
    background: var(--warm-white);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
  }

  .mobile-page-nav a[aria-current="page"] {
    color: white;
    background: var(--temple-red);
    border-color: var(--temple-red);
    box-shadow: 0 6px 16px rgba(95, 32, 32, 0.18);
  }

  .hero {
    padding-top: 52px;
  }

  .hero__grid,
  .featured__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero__media {
    margin-top: 6px;
  }

  .hero__media img {
    min-height: 380px;
  }

  .quick-links__grid {
    grid-template-columns: 1fr 1fr;
  }

  .announcement__box {
    grid-template-columns: auto 1fr;
  }

  .announcement .text-link {
    grid-column: 2;
  }

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

  .hall-card:last-child {
    grid-column: 1 / 3;
  }

  .hall-card:last-child img {
    height: 400px;
  }

  .section-heading--split {
    align-items: start;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact__grid {
    gap: 36px;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 430px;
  }

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

  .site-footer__contact {
    grid-column: 1 / 3;
  }

  .page-hero__grid,
  .page-intro-grid,
  .simple-contact-grid {
    grid-template-columns: 1fr;
  }

  .support-hero .page-hero__grid {
    grid-template-columns: 1fr;
  }

  .page-intro-grid h2 {
    position: static;
  }

  .info-grid,
  .event-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .info-grid > :last-child,
  .steps > :last-child {
    grid-column: 1 / 3;
  }

  .calendar-page iframe {
    height: 620px;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
    font-size: 18px;
  }

  .mobile-action-dock {
    position: fixed;
    z-index: 150;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
    background: rgba(255, 254, 251, 0.96);
    border-top: 1px solid rgba(123, 45, 45, 0.18);
    box-shadow: 0 -12px 34px rgba(58, 43, 28, 0.13);
    backdrop-filter: blur(14px);
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .mobile-action-dock a {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 2px solid var(--temple-red);
    border-radius: 13px;
    font-size: 0.94rem;
    gap: 9px;
    text-decoration: none;
  }

  .mobile-action-dock a > span {
    display: none;
  }

  .mobile-action-dock__call {
    color: white;
    background: var(--temple-red);
  }

  .mobile-action-dock__map {
    color: var(--temple-red);
    background: var(--paper);
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .utility-bar__inner {
    min-height: 46px;
  }

  .utility-bar p {
    display: grid;
    gap: 0;
    line-height: 1.25;
  }

  .utility-bar p span {
    font-size: 0.78rem;
  }

  .utility-bar a {
    font-size: 0.84rem;
  }

  .brand__seal {
    width: 35px;
    height: 64px;
    flex-basis: 35px;
    border-radius: 8px;
  }

  .brand__seal img {
    width: 31px;
  }

  .brand__text strong {
    font-size: 1.24rem;
  }

  .brand__text small {
    font-size: 0.68rem;
  }

  .header-call {
    display: flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
  }

  .header-call span {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .header-call strong {
    display: none;
  }

  .page-hero {
    padding: 48px 0 58px;
  }

  .page-hero::before {
    left: 14px;
    width: 60px;
  }

  .page-hero__grid {
    gap: 34px;
  }

  .page-hero__media img {
    height: 300px;
  }

  .page-hero__media--board {
    padding: 8px;
  }

  .page-hero__media--board img {
    height: auto;
  }

  .support-hero .button-row {
    flex-direction: column;
  }

  .support-hero .button {
    width: 100%;
  }

  .outreach-card {
    min-height: 0;
    padding: 28px 24px;
  }

  .page-section {
    padding: 62px 0;
  }

  .info-grid,
  .event-grid,
  .outreach-grid,
  .lighting-grid,
  .steps,
  .album-list {
    grid-template-columns: 1fr;
  }

  .info-grid > :last-child,
  .steps > :last-child {
    grid-column: auto;
  }

  .lighting-card img {
    height: min(124vw, 480px);
  }

  .lighting-card img.lighting-card__image--portrait {
    object-fit: contain;
    background:
      linear-gradient(135deg, rgba(123, 45, 45, 0.12), rgba(195, 154, 82, 0.18)),
      var(--warm-white-deep);
  }

  .calendar-page iframe {
    height: 520px;
  }

  .cta-band__inner,
  .album-year__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .album-year {
    padding: 24px 18px;
  }

  .year-jump a {
    flex: 1 1 calc(50% - 10px);
  }

  .cta-band {
    padding: 46px 0;
  }

  .cta-band .button {
    width: 100%;
  }

  .hero {
    padding: 44px 0 54px;
  }

  .hero::before {
    left: 14px;
    width: 60px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .hero__lead {
    font-size: 1.05rem;
  }

  .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    min-height: 56px;
  }

  .hero-shortcuts {
    display: block;
    padding: 20px;
    margin-top: 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(58, 43, 28, 0.08);
  }

  .hero-shortcuts > p {
    margin-bottom: 14px;
    color: var(--temple-red);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-align: center;
  }

  .hero-shortcuts > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-shortcuts a {
    display: grid;
    min-height: 58px;
    align-items: center;
    padding: 9px 10px;
    color: var(--ink);
    background: var(--warm-white);
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 800;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 8px;
    line-height: 1.35;
    text-decoration: none;
  }

  .hero-shortcuts a:active {
    background: var(--gold-pale);
    border-color: var(--gold);
  }

  .hero-shortcuts__emblem {
    position: relative;
    display: block;
    width: 30px;
    height: 50px;
    flex: 0 0 30px;
    overflow: hidden;
    background: white;
    border: 1px solid rgba(168, 134, 62, 0.4);
    border-radius: 7px;
    box-shadow: 0 4px 10px rgba(58, 43, 28, 0.09);
  }

  .hero-shortcuts__emblem img {
    position: absolute;
    top: 1px;
    left: 50%;
    width: 24.5px;
    height: auto;
    max-width: none;
    transform: translateX(-50%);
  }

  .hero-shortcuts__label {
    display: block;
    min-width: 0;
    letter-spacing: -0.02em;
    text-align: left;
    white-space: nowrap;
  }

  .hero__media::before {
    right: -10px;
    bottom: -12px;
  }

  .hero__media img {
    min-height: 310px;
    border-radius: 4px 26px 4px 26px;
  }

  .hero__media figcaption {
    right: 10px;
    bottom: 10px;
    font-size: 0.75rem;
  }

  .quick-links {
    display: none;
  }

  .quick-links__grid {
    gap: 12px;
  }

  .quick-card {
    min-height: 162px;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 17px;
    gap: 13px;
  }

  .quick-card__mark {
    width: 36px;
    height: 62px;
    flex-basis: 36px;
  }

  .quick-card__mark img {
    width: 30px;
  }

  .quick-card strong {
    font-size: 1rem;
    line-height: 1.45;
  }

  .quick-card small {
    font-size: 0.78rem;
  }

  .announcement__box {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .announcement__label {
    width: 62px;
    height: 62px;
  }

  .announcement .text-link {
    grid-column: 1;
  }

  .section {
    padding: 64px 0;
  }

  .schedule-card {
    padding: 26px 20px;
  }

  .schedule-card__embed iframe {
    height: 390px;
  }

  .practice-times--home {
    padding: 22px 18px;
  }

  .activity-feature__content {
    padding: 24px 20px 28px;
  }

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

  .hall-card:last-child {
    grid-column: auto;
  }

  .hall-card img,
  .hall-card:last-child img {
    height: 310px;
  }

  .activity-carousel__slide > a {
    height: 380px;
  }

  .activity-carousel__caption {
    padding: 24px 20px;
  }

  .activity-carousel__caption h3 {
    font-size: 1.7rem;
  }

  .activity-carousel__controls {
    display: grid;
    padding: 14px;
    grid-template-columns: 1fr auto 1fr;
  }

  .activity-carousel__controls button {
    padding-inline: 10px;
  }

  .activity-carousel__controls .activity-carousel__toggle {
    width: 100%;
    margin-left: 0;
    grid-column: 1 / -1;
  }

  .year-links {
    align-items: stretch;
    padding: 18px;
  }

  .year-links span {
    width: 100%;
  }

  .year-links a {
    flex: 1 1 calc(50% - 12px);
    justify-content: center;
  }

  .contact-list > div {
    grid-template-columns: 92px 1fr;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 360px;
  }

  .site-footer {
    padding-top: 48px;
  }

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

  .site-footer__contact {
    grid-column: auto;
  }

  .site-footer nav a,
  .site-footer__contact a,
  .site-footer__bottom a {
    display: flex;
    min-height: 44px;
    align-items: center;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 390px) {
  .quick-links__grid {
    grid-template-columns: 1fr;
  }

  .quick-card {
    min-height: 0;
    flex-direction: row;
  }

  .hero-shortcuts .hero-shortcuts__about,
  .hero-shortcuts a:last-child {
    grid-column: 1 / -1;
  }

  .practice-times__dates,
  .practice-times--home .practice-times__dates {
    font-size: clamp(0.95rem, 4.5vw, 1.08rem);
    column-gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Activity photo archive */

.album-hero {
  padding: 64px 0 52px;
  color: white;
  background:
    linear-gradient(120deg, rgba(91, 23, 23, 0.98), rgba(126, 49, 39, 0.94)),
    var(--temple-red);
}

.album-hero .breadcrumb,
.album-hero .breadcrumb a,
.album-hero .eyebrow,
.album-hero p {
  color: rgba(255, 255, 255, 0.86);
}

.album-hero h1 {
  max-width: 900px;
  margin: 8px 0 12px;
  color: white;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.album-hero__meta {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 7px 14px;
  color: var(--ink) !important;
  background: var(--gold-pale);
  border-radius: 999px;
  font-weight: 800;
}

.album-hero .button {
  margin-top: 12px;
}

.album-card-grid {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
}

.album-card {
  display: flex;
  height: 100%;
  overflow: hidden;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(58, 43, 28, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.album-card:hover,
.album-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(58, 43, 28, 0.12);
}

.album-card__cover {
  display: grid;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--temple-red), #a76a43);
}

.album-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.album-card:hover .album-card__cover img {
  transform: scale(1.025);
}

.album-card__placeholder {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 800;
}

.album-card__content {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  gap: 14px;
}

.album-card__content strong {
  font-size: 1.08rem;
  line-height: 1.55;
}

.album-card__content small {
  color: var(--temple-red);
  font-weight: 800;
}

.album-year {
  scroll-margin-top: 120px;
}

.album-year + .album-year {
  margin-top: 74px;
  padding-top: 66px;
  border-top: 1px solid var(--line);
}

.album-year__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 20px;
}

.album-year__heading h2,
.album-year__heading .eyebrow {
  margin-bottom: 0;
}

.album-year__heading > span {
  color: var(--ink-soft);
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  aspect-ratio: 4 / 3;
  background: #e9e0d2;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(58, 43, 28, 0.08);
  cursor: zoom-in;
  font: inherit;
  text-align: left;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
}

.gallery-item > span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  place-items: center;
  color: white;
  background: rgba(47, 35, 25, 0.78);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.image-lightbox {
  width: min(1100px, calc(100% - 32px));
  max-width: none;
  max-height: 96dvh;
  padding: 0;
  overflow: visible;
  color: white;
  background: transparent;
  border: 0;
}

.image-lightbox::backdrop {
  background: rgba(18, 13, 10, 0.88);
  backdrop-filter: blur(4px);
}

.image-lightbox__panel {
  max-height: 96dvh;
  padding: 18px;
  overflow: auto;
  background: #211b17;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.image-lightbox__header,
.image-lightbox__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.image-lightbox__header {
  padding-bottom: 14px;
}

.image-lightbox__header h2 {
  margin: 0;
  color: white;
  font-family: var(--font-sans);
  font-size: 1.35rem;
}

.image-lightbox button {
  min-height: 48px;
  padding: 8px 16px;
  color: white;
  background: var(--temple-red);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.image-lightbox [data-lightbox-image] {
  width: auto;
  max-width: 100%;
  max-height: calc(96dvh - 160px);
  margin: 0 auto;
  object-fit: contain;
  background: #100d0b;
  border-radius: 8px;
  user-select: none;
}

.image-lightbox__footer {
  padding-top: 14px;
}

.image-lightbox__footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.empty-album {
  max-width: 720px;
  margin: 0 auto;
  padding: 54px 24px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.empty-album > span {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  place-items: center;
  color: white;
  background: var(--temple-red);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 800;
}

.empty-album p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .album-card-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .album-hero {
    padding: 44px 0 40px;
  }

  .album-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .album-card {
    display: grid;
    grid-template-columns: 132px 1fr;
  }

  .album-card__cover {
    aspect-ratio: auto;
    min-height: 132px;
  }

  .album-card__content {
    min-height: 132px;
    padding: 18px 16px;
  }

  .album-year__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .gallery-grid {
    gap: 8px;
  }

  .gallery-item {
    border-radius: 9px;
  }

  .gallery-item > span {
    right: 6px;
    bottom: 6px;
    min-width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .image-lightbox {
    width: calc(100% - 16px);
  }

  .image-lightbox__panel {
    padding: 12px;
    border-radius: 12px;
  }

  .image-lightbox__header h2 {
    font-size: 1.08rem;
  }

  .image-lightbox__footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .image-lightbox__footer p {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

/* About page: history, practice and vision */

.about-intro-hero {
  padding: 72px 0 78px;
}

.about-intro-hero .breadcrumb {
  margin-bottom: 34px;
}

.about-intro-hero__layout {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(48px, 8vw, 112px);
}

.about-intro-hero__content {
  max-width: 760px;
}

.about-intro-hero__content h1 {
  margin-bottom: 22px;
}

.about-intro-hero__content .page-hero__lead {
  max-width: 42em;
}

.about-intro-hero__summary {
  display: inline-block;
  padding: 10px 0 10px 17px;
  margin: 28px 0 0;
  color: var(--temple-red);
  border-left: 3px solid var(--gold);
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.about-intro-hero__mark {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-content: center;
  color: var(--temple-red-dark);
  background:
    radial-gradient(circle at center, rgba(195, 154, 82, 0.2), transparent 58%),
    rgba(255, 254, 251, 0.8);
  border: 1px solid rgba(123, 45, 45, 0.24);
  border-radius: 4px 38px 4px 38px;
  box-shadow: var(--shadow);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.16em;
  text-align: center;
}

.about-intro-hero__mark::before {
  position: absolute;
  inset: 13px;
  content: "";
  border: 1px solid rgba(195, 154, 82, 0.48);
  border-radius: 2px 28px 2px 28px;
}

.about-intro-hero__mark span {
  position: relative;
  z-index: 1;
  display: block;
}

.about-chapter-nav {
  position: relative;
  z-index: 2;
  padding: 18px 0;
  background: var(--temple-red-dark);
  box-shadow: 0 10px 28px rgba(58, 43, 28, 0.12);
}

.about-chapter-nav__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.about-chapter-nav a {
  display: grid;
  min-height: 82px;
  align-items: center;
  padding: 12px 18px;
  color: white;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 14px;
  grid-template-columns: 46px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  text-decoration: none;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.about-chapter-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.about-chapter-nav a > span {
  display: grid;
  width: 44px;
  height: 44px;
  grid-row: 1 / 3;
  place-items: center;
  color: var(--temple-red-dark);
  background: var(--gold-pale);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 700;
}

.about-chapter-nav strong {
  align-self: end;
  font-family: var(--font-serif);
  font-size: 1.12rem;
}

.about-chapter-nav small {
  align-self: start;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.about-chapter {
  scroll-margin-top: 108px;
}

.about-chapter__heading {
  padding-top: 4px;
}

.about-chapter__heading h2 {
  line-height: 1.35;
}

.about-prose {
  max-width: 780px;
  font-size: 1.04rem;
  line-height: 2;
}

.about-prose h3 {
  position: relative;
  padding-left: 18px;
  margin: 2.2em 0 0.72em;
  color: var(--temple-red);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
}

.about-prose h3::before {
  position: absolute;
  top: 0.12em;
  bottom: 0.12em;
  left: 0;
  width: 4px;
  content: "";
  background: var(--gold);
  border-radius: 99px;
}

.about-prose h3:first-child {
  margin-top: 0;
}

.about-prose p {
  margin-bottom: 1.5em;
}

.about-prose blockquote {
  position: relative;
  padding: 28px 30px 28px 34px;
  margin: 34px 0 0;
  color: var(--ink);
  background: var(--gold-pale);
  border: 1px solid rgba(195, 154, 82, 0.35);
  border-left: 6px solid var(--temple-red);
  border-radius: 4px 18px 4px 18px;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
}

.about-vision-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 24px;
  margin: 28px 0 42px;
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: 18px;
  gap: 10px;
}

.about-vision-path span {
  padding: 8px 14px;
  color: var(--temple-red-dark);
  background: white;
  border: 1px solid rgba(123, 45, 45, 0.2);
  border-radius: 999px;
  font-weight: 800;
}

.about-vision-path i {
  color: var(--gold);
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 1000px) {
  .about-intro-hero__layout {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 48px;
  }
}

@media (max-width: 760px) {
  .about-intro-hero {
    padding: 50px 0 60px;
  }

  .about-intro-hero__layout {
    grid-template-columns: 1fr;
  }

  .about-intro-hero__mark {
    width: min(190px, 54vw);
  }
}

@media (max-width: 680px) {
  .about-chapter-nav__grid {
    grid-template-columns: 1fr;
  }

  .about-chapter-nav a {
    min-height: 70px;
  }

  .about-chapter__heading h2 br {
    display: none;
  }

  .about-prose {
    font-size: 1rem;
    line-height: 1.9;
  }

  .about-prose blockquote {
    padding: 24px 22px;
  }

  .about-vision-path {
    display: grid;
    justify-items: stretch;
    padding: 20px;
    text-align: center;
  }

  .about-vision-path i {
    justify-self: center;
    transform: rotate(90deg);
  }
}

@media print {
  .utility-bar,
  .site-header,
  .mobile-page-nav,
  .mobile-action-dock,
  .about-chapter-nav,
  .button-row,
  .map-frame,
  .site-footer {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section,
  .hero,
  .quick-links {
    padding: 24px 0;
  }
}
