:root {
  --paper: #f7f3ea;
  --paper-deep: #ece5d8;
  --surface: #fffdf8;
  --ink: #1c2b24;
  --muted: #667169;
  --forest: #286047;
  --forest-dark: #153f30;
  --sage: #dce8dc;
  --dark: #17201c;
  --dark-deep: #111814;
  --dark-text: #f8f4eb;
  --dark-muted: #c5cbc5;
  --line: rgba(31, 61, 47, .16);
  --line-strong: rgba(31, 61, 47, .3);
  --dark-line: rgba(255, 255, 255, .14);
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  max-width: 100vw;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  max-width: 100%;
  margin: 0 auto;
}

.landing-page,
.landing-page section {
  width: 100%;
  min-width: 0;
}

.anchor-target {
  display: block;
  scroll-margin-top: 80px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  color: var(--dark-text);
  background: rgba(18, 25, 21, .97);
  border-bottom: 1px solid var(--dark-line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin-right: auto;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  border-radius: 6px;
  color: #fff;
  background: var(--forest);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

.brand-mark svg {
  width: 26px;
  height: 26px;
}

.brand-copy {
  min-width: 0;
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  overflow: hidden;
  color: var(--dark-text);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  margin-top: 5px;
  color: #aeb9b1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #d8ddd8;
  font-size: 14px;
  font-weight: 600;
}

.nav a,
.footer-nav a {
  transition: color .18s ease;
}

.nav a:hover,
.footer-nav a:hover {
  color: #a9d1b7;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-dropdown-toggle svg {
  width: 11px;
  height: 7px;
  transition: transform .18s ease;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 9px);
  left: 50%;
  width: 210px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  border: 1px solid var(--dark-line);
  border-radius: 7px;
  background: #17201c;
  box-shadow: 0 20px 46px rgba(0, 0, 0, .28);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.nav-dropdown-menu-wide {
  width: 250px;
}

.nav-dropdown-menu a {
  display: block;
  border-radius: 5px;
  padding: 11px 13px;
  color: #d8ddd8;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  color: #fff;
  background: rgba(169, 209, 183, .1);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown:focus-within .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.header-visit,
.btn,
.play-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 0 20px;
  color: var(--forest-dark);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.header-visit:hover,
.btn:hover,
.play-link:hover {
  border-color: var(--forest);
  color: #fff;
  background: var(--forest);
}

.site-header .header-visit {
  color: var(--dark-text);
  border-color: rgba(255, 255, 255, .24);
}

.site-header .header-visit:hover {
  border-color: #a9d1b7;
  background: rgba(169, 209, 183, .1);
}

.language-switch {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(169, 209, 183, .42);
  border-radius: 6px;
  padding: 0 13px;
  color: #cfe5d5;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.language-switch:hover {
  border-color: #a9d1b7;
  color: #fff;
  background: rgba(169, 209, 183, .1);
}

.language-zh-hant {
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", ui-sans-serif, system-ui, sans-serif;
}

.language-zh-hant .landing-page h1,
.language-zh-hant .landing-page h2,
.language-zh-hant .passage-card blockquote {
  font-family: "Noto Serif TC", "PMingLiU", "Microsoft JhengHei", Georgia, serif;
}

.hero {
  padding: 88px 0 66px;
  color: var(--dark-text);
  background:
    linear-gradient(rgba(12, 20, 16, .42), rgba(12, 20, 16, .48)),
    url("../images/church-sunset.png") center / cover no-repeat;
  border-bottom: 1px solid var(--dark-line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(400px, 1.05fr);
  align-items: center;
  gap: clamp(64px, 9vw, 130px);
}

.hero-copy,
.passage-card,
.section-heading,
.belief-card,
.sermon-card,
.visit-banner > div {
  min-width: 0;
}

.hero-copy,
.passage-card,
.section-heading,
.belief-card,
.sermon-card {
  overflow-wrap: anywhere;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow.location {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow.location svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  margin: 0;
  max-width: 600px;
  color: var(--dark-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -.025em;
  font-weight: 500;
}

.hero-lead {
  max-width: 570px;
  margin: 26px 0 0;
  color: var(--dark-muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 510px;
  margin-top: 42px;
}

.hero-actions .btn {
  min-height: 64px;
  color: var(--dark-text);
  border-color: rgba(255, 255, 255, .28);
  text-align: center;
}

.hero-actions .btn:first-child {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
}

.hero-actions .btn:hover {
  border-color: #a9d1b7;
  background: rgba(169, 209, 183, .1);
}

.hero-actions .btn:first-child:hover {
  border-color: #39765a;
  background: #39765a;
}

.hero-actions svg,
.play-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.passage-card {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 10px;
  padding: 58px 54px;
  color: var(--forest-dark);
  background: #f0eadc;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .2);
}

.passage-card .eyebrow {
  margin-bottom: 20px;
  color: var(--forest);
}

.passage-card blockquote {
  margin: 0;
  color: var(--forest-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.42;
}

.passage-card cite {
  margin-top: 26px;
  color: var(--forest);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
}

.service-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.service-item {
  min-width: 0;
  min-height: 120px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 34px;
}

.service-item + .service-item {
  border-left: 1px solid var(--line);
}

.icon-tile {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  border-radius: 7px;
  color: var(--forest-dark);
  background: var(--sage);
}

.icon-tile svg {
  width: 27px;
  height: 27px;
}

.service-item h2 {
  margin: 0 0 2px;
  font-size: 16px;
  line-height: 1.25;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.welcome-section {
  padding: 88px 0;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: center;
  gap: clamp(48px, 8vw, 96px);
}

.welcome-image {
  position: relative;
  min-width: 0;
  margin: 0;
}

.welcome-image::after {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 42%;
  height: 48%;
  z-index: 0;
  border: 1px solid rgba(40, 96, 71, .35);
  content: "";
}

.welcome-image img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  z-index: 1;
  display: block;
  object-fit: cover;
  border-radius: 3px;
  filter: saturate(.72) sepia(.08);
}

.welcome-copy {
  min-width: 0;
}

.welcome-copy h2,
.section-heading h2 {
  color: var(--forest-dark);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.02em;
}

.welcome-copy h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 500;
  line-height: 1.12;
}

.welcome-copy > p:not(.eyebrow) {
  max-width: 580px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-bottom: 4px;
  color: var(--forest-dark);
  border-bottom: 1px solid rgba(21, 63, 48, .42);
  font-size: 14px;
  font-weight: 800;
}

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

.content-section.divided .container {
  padding-top: 0;
  border-top: 0;
}

.content-section.divided {
  border-top: 1px solid var(--line);
}

.content-section:nth-of-type(even) {
  background: var(--surface);
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 3.5vw, 44px);
  line-height: 1.2;
  font-weight: 500;
}

.section-heading > p:last-child {
  max-width: 920px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.belief-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.belief-card,
.sermon-card {
  background: transparent;
}

.belief-card {
  min-height: 215px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 38px 40px 34px;
}

.belief-card .eyebrow {
  margin-bottom: 10px;
}

.belief-card h3,
.sermon-card h3 {
  margin: 0;
  color: var(--forest-dark);
  font-size: 19px;
  line-height: 1.3;
}

.belief-card > p:last-child,
.sermon-card > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

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

.sermon-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 32px;
}

.sermon-card.featured {
  border-color: var(--forest);
  background: var(--sage);
  box-shadow: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin-bottom: 17px;
  border-radius: 5px;
  padding: 0 10px;
  color: var(--forest-dark);
  background: #e9eee7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sermon-card.featured .tag {
  background: var(--surface);
}

.sermon-card > p {
  font-size: 14px;
  line-height: 1.42;
}

.play-link {
  min-height: 47px;
  margin-top: auto;
}

.events-section {
  padding-bottom: 82px;
}

.event-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.event-row {
  min-height: 88px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 12px 22px;
  transition: border-color .18s ease, background .18s ease;
}

.event-row:hover {
  border-color: var(--forest);
  background: rgba(40, 96, 71, .04);
}

.event-date {
  width: 52px;
  height: 58px;
  display: grid;
  place-content: center;
  border-radius: 7px;
  color: var(--forest-dark);
  background: var(--sage);
  text-align: center;
  line-height: 1;
}

.event-date small {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.event-date strong {
  margin-top: 4px;
  font-size: 19px;
}

.event-details {
  min-width: 0;
  display: grid;
}

.event-details strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-details small {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-arrow {
  color: var(--forest);
  font-size: 30px;
  line-height: 1;
}

.visit-banner {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 24px;
  border-radius: 3px;
  padding: 34px 44px;
  color: #f4fffb;
  background: var(--forest-dark);
}

.visit-banner h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.visit-banner p {
  max-width: 680px;
  margin: 7px 0 0;
  color: #c1d9ca;
  font-size: 15px;
}

.visit-button {
  flex: 0 0 auto;
  min-width: 150px;
  color: #fff;
  border-color: rgba(255, 255, 255, .65);
}

.visit-button:hover {
  border-color: #fff;
  color: var(--forest-dark);
  background: #fff;
}

.visit-meta {
  display: grid;
  gap: 4px;
  margin: 18px 0 0;
  color: #d8e6dc;
  font-size: 14px;
}

.site-footer {
  margin-top: 0;
  color: var(--dark-text);
  border-top: 1px solid var(--dark-line);
  background: var(--dark-deep);
}

.footer-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  margin: 0;
  color: var(--dark-muted);
  font-size: 12px;
}

.footer-nav {
  display: flex;
  gap: 34px;
  color: var(--dark-muted);
  font-size: 12px;
}

@media (max-width: 920px) {
  .nav {
    display: none;
  }

  .hero {
    padding-top: 62px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .welcome-copy {
    max-width: 700px;
  }

  .hero-copy {
    max-width: 650px;
  }

  .passage-card {
    min-height: 300px;
  }

  .service-grid,
  .sermon-grid {
    grid-template-columns: 1fr;
  }

  .service-item + .service-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .sermon-card {
    min-height: 225px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 30px), var(--container));
  }

  .header-inner {
    min-height: 70px;
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand-mark svg {
    width: 22px;
    height: 22px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy small {
    font-size: 9px;
  }

  .header-visit {
    display: none;
  }

  .language-switch {
    min-height: 36px;
    margin-left: auto;
    padding: 0 10px;
    font-size: 11px;
  }

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

  .hero-copy,
  .passage-card,
  .welcome-copy,
  .welcome-image,
  .section-heading,
  .belief-card,
  .sermon-card {
    width: 100%;
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 52px);
  }

  .hero-lead {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-actions .btn {
    min-height: 52px;
  }

  .passage-card {
    width: 100%;
    min-height: 0;
    padding: 38px 28px;
    overflow: hidden;
  }

  .welcome-section {
    padding: 58px 0 66px;
  }

  .welcome-image::after {
    right: -8px;
    bottom: -10px;
  }

  .welcome-copy h2 {
    font-size: 36px;
  }

  .passage-card blockquote {
    max-width: 100%;
    font-size: 24px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .section-heading h2,
  .section-heading > p:last-child,
  .belief-card p,
  .sermon-card p {
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .service-item {
    min-height: 100px;
    padding: 20px 8px;
  }

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

  .belief-card,
  .sermon-card {
    min-height: 0;
    padding: 26px 24px;
  }

  .content-section {
    padding: 58px 0;
  }

  .belief-grid {
    border-left: 0;
  }

  .belief-card {
    border-left: 1px solid var(--line);
  }

  .event-row {
    grid-template-columns: 48px minmax(0, 1fr) 14px;
    gap: 13px;
    padding: 11px 13px;
  }

  .event-date {
    width: 46px;
    height: 54px;
  }

  .event-details strong,
  .event-details small {
    white-space: normal;
  }

  .visit-banner {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 24px;
  }

  .events-section {
    padding-bottom: 58px;
  }

  .visit-button {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 0;
  }

  .footer-nav {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }
}
