:root {
  --ink: #18211c;
  --paper: #f4f0e7;
  --cream: #fbf9f3;
  --red: #9b2f25;
  --red2: #742017;
  --gold: #c9a563;
  --muted: #6e756f;
  --line: rgba(24, 33, 28, 0.14);
  --serif: "Noto Serif TC", serif;
  --display: "Zen Old Mincho", "Noto Serif TC", serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

.brand-logo {
  height: 38px;
  width: 38px;
  object-fit: contain;
  vertical-align: middle;
}

* {
  box-sizing: border-box;
}

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

body {
  font-size: 20px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: auto;
  min-height: 80px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(244, 240, 231, 0.91);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(24, 33, 28, 0.09);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-weight: 900;
  font-size: 20px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0.12em;
}

.brand small {
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.icon-button svg {
  width: 24px;
}

.drawer {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 360px);
  padding: 18px 22px;
  background: var(--cream);
  transform: translateX(101%);
  transition: 0.35s ease;
  display: flex;
  flex-direction: column;
}

.drawer.open {
  transform: none;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.drawer nav {
  display: grid;
  margin-top: 20px;
}

.drawer nav a,
.drawer nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  color: var(--ink);
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.drawer nav svg {
  width: 18px;
}

.drawer-contact {
  margin-top: auto;
  padding: 20px;
  background: var(--ink);
  color: white;
  display: grid;
}

.drawer-contact small {
  color: #c7cec9;
}

.drawer-contact a {
  margin-top: 10px;
  color: #e8ca8b;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(4, 9, 6, 0.52);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.scrim.show {
  opacity: 1;
  visibility: visible;
}

.hero {
  height: min(91svh, 760px);
  min-height: 650px;
  position: relative;
  color: white;
  overflow: hidden;
}

.hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 13, 10, 0.15),
    rgba(8, 13, 10, 0.18) 35%,
    rgba(8, 13, 10, 0.83) 100%
  );
}

.hero-content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 92px;
  max-width: 560px;
}

.eyebrow,
.section-kicker {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.28em;
  font-weight: 900;
  color: var(--red);
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #eed59e;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(44px, 13vw, 74px);
  line-height: 1.18;
  letter-spacing: 0.04em;
  margin: 13px 0 16px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

.hero p {
  font-size: 18px;
  line-height: 1.9;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  min-height: 48px;
  padding: 0 19px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.btn svg {
  width: 18px;
}

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

.btn-primary:hover {
  background: var(--red2);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.hero-note {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 18px;
  letter-spacing: 0.06em;
}

.pulse {
  width: 7px;
  height: 7px;
  background: #88c798;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(136, 199, 152, 0.13);
}

.hero-note b {
  color: #ead09a;
}

.section-pad {
  padding: 68px 20px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  padding-top: 24px;
  padding-bottom: 24px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  gap: 16px;
}

.quick-grid button,
.quick-grid a {
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 2px;
  color: var(--ink);
}

.quick-grid span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-bottom: 7px;
  color: var(--red);
}

.quick-grid svg {
  width: 20px;
}

.quick-grid b {
  font-size: 18px;
  white-space: nowrap;
}

.quick-grid small {
  font-size: 18px;
  color: var(--muted);
  white-space: nowrap;
}

h2 {
  font-family: var(--display);
  font-size: clamp(30px, 8vw, 48px);
  line-height: 1.45;
  letter-spacing: 0.04em;
  margin: 12px 0 18px;
}

h3 {
  line-height: 1.45;
}

.intro > p {
  color: var(--muted);
  font-size: 18px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
  border-block: 1px solid var(--line);
}

.principles div {
  padding: 18px 8px;
  text-align: center;
}

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

.principles strong,
.principles span {
  display: block;
}

.principles strong {
  font-size: 20px;
  color: var(--red);
}

.principles span {
  font-size: 18px;
  color: var(--muted);
}

.events {
  background: #e8e1d4;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.section-head h2 {
  margin-bottom: 0;
}

.text-link {
  border: 0;
  background: none;
  white-space: nowrap;
  font-size: 18px;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 3px;
}

.text-link svg {
  width: 15px;
}

.event-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 28px -20px 0;
  padding: 0 20px 8px;
  scrollbar-width: none;
}

.event-card {
  scroll-snap-align: start;
  background: var(--cream);
  padding: 20px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  border-top: 3px solid var(--ink);
}

.event-card.featured {
  border-top-color: var(--red);
}

.date {
  border-right: 1px solid var(--line);
  height: max-content;
  padding-right: 16px;
  text-align: center;
}

.date strong,
.date span {
  display: block;
  color: var(--muted);
}

.date strong {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
}

.date span {
  font-size: 18px;
  margin-top: 8px;
}

.tag {
  display: inline-block;
  background: #e9d2cc;
  color: var(--red);
  font-size: 18px;
  padding: 4px 12px;
  border-radius: 20px;
  line-height: 1.2;
  white-space: nowrap;
}

.tag.muted {
  background: #e3e5df;
  color: #4d5c52;
}

.event-card h3 {
  font-size: 20px;
  margin: 8px 0;
}

.event-card p {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

.meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0;
  font-size: 18px;
  color: var(--muted);
}

.meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.meta svg {
  width: 13px;
}

.card-action {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.card-action svg {
  width: 16px;
}

.services {
  background: var(--cream);
}

.service-list {
  border-top: 1px solid var(--line);
  margin-top: 22px;
}

.service-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  padding: 22px 0;
  display: grid;
  grid-template-columns: 32px 1fr 20px;
  gap: 12px;
  color: var(--ink);
}

.service-no {
  font-size: 18px;
  color: var(--red);
}

.service-item h3 {
  margin: 0 0 7px;
  font-size: 21px;
}

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

.service-item b {
  font-size: 18px;
  color: var(--red);
}

.service-item > svg {
  width: 18px;
}

.light-section {
  position: relative;
  overflow: hidden;
  background: #17221c;
  color: white;
}

.light-section .section-pad {
  position: relative;
}

.light-orb {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  right: -190px;
  top: 40px;
  background: radial-gradient(
    circle,
    rgba(240, 185, 87, 0.35),
    rgba(240, 185, 87, 0) 68%
  );
}

.section-kicker.gold {
  color: #d9bb7d;
}

.light-section h2 {
  color: #fff4dc;
}

.light-section p {
  font-size: 18px;
  color: #b9c2bc;
}

.lamp-options {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.lamp-options button {
  padding: 17px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: white;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  text-align: left;
  align-items: center;
  gap: 10px;
}

.lamp-options button:hover {
  border-color: var(--gold);
  background: rgba(201, 165, 99, 0.12);
}

.lamp-options svg {
  color: var(--gold);
  width: 22px;
}

.lamp-options span b,
.lamp-options span small {
  display: block;
}

.lamp-options small {
  font-size: 18px;
  color: #acb5af;
}

.lamp-options strong {
  font-size: 18px;
  color: #efd494;
}

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

.map-card {
  margin-top: 24px;
  background: var(--cream);
  border: 1px solid var(--line);
}

.map-art {
  height: 280px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.visit-info {
  padding: 20px;
}

.visit-info > div {
  display: flex;
  gap: 12px;
  padding: 10px 0;
}

.visit-info svg {
  width: 18px;
  color: var(--red);
  margin-top: 4px;
}

.visit-info small,
.visit-info strong {
  display: block;
}

.visit-info small {
  font-size: 18px;
  color: var(--muted);
}

.visit-info strong {
  font-size: 18px;
}

.btn-dark {
  width: 100%;
  margin-top: 10px;
  background: var(--ink);
  color: white;
}

.faq {
  background: var(--cream);
}

.accordion {
  margin-top: 25px;
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  list-style: none;
  padding: 19px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary svg {
  width: 17px;
  transition: 0.25s;
}

details[open] summary svg {
  transform: rotate(45deg);
}

details p {
  margin: 0;
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 18px;
}

.contact-banner {
  background: var(--red);
  color: white;
  text-align: center;
}

.contact-banner > span {
  font-size: 18px;
  letter-spacing: 0.15em;
  color: #efc9c0;
}

.contact-banner h2 {
  margin: 8px 0;
}

.contact-banner p {
  font-size: 18px;
  color: #f0d9d4;
}

.btn-line {
  width: 100%;
  background: #fff;
  color: var(--red);
  margin: 16px 0 8px;
}

.contact-banner > small {
  display: block;
  color: #efc9c0;
}

footer {
  background: #101813;
  color: #dce1dd;
  padding: 48px 22px 120px;
}

.footer-brand .brand-mark {
  color: #d8b979;
  border-color: #d8b979;
}

.footer-brand strong {
  color: white;
}

footer p {
  font-size: 18px;
  color: #98a29b;
}

.fine {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 28px;
  font-size: 18px;
}

.bottom-nav {
  position: fixed;
  z-index: 25;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(96px + var(--safe-bottom));
  padding: 0 8px var(--safe-bottom);
  background: rgba(251, 249, 243, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.bottom-nav a,
.bottom-nav button {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #737b75;
  font-size: 18px;
  white-space: nowrap;
  padding: 4px;
}

.bottom-nav svg {
  width: 20px;
}

.bottom-nav .active {
  color: var(--red);
}

.bottom-nav .nav-main {
  transform: translateY(-14px);
  color: white;
}

.bottom-nav .nav-main svg {
  box-sizing: content-box;
  background: var(--red);
  padding: 14px;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(116, 32, 23, 0.25);
}

.bottom-nav .nav-main span {
  color: var(--red);
  font-weight: 700;
}

dialog {
  width: calc(100% - 24px);
  max-width: 520px;
  border: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  margin: auto;
  max-height: 88svh;
}

dialog::backdrop {
  background: rgba(5, 10, 7, 0.72);
  backdrop-filter: blur(4px);
}

dialog form {
  padding: 20px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-head small {
  font-size: 18px;
  letter-spacing: 0.2em;
  color: var(--red);
}

.modal-head h2 {
  font-size: 26px;
  margin: 4px 0 12px;
}

.progress {
  height: 3px;
  background: #e5dfd4;
}

.progress span {
  display: block;
  height: 100%;
  width: 33.33%;
  background: var(--red);
  transition: 0.3s;
}

.form-step {
  padding: 24px 0;
}

.form-step > p {
  font-size: 18px;
  color: var(--muted);
  margin-top: 0;
}

.choice-list {
  display: grid;
  gap: 8px;
}

.choice {
  min-height: 54px;
  border: 1px solid var(--line);
  background: white;
  text-align: left;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
}

.choice.selected {
  border-color: var(--red);
  box-shadow: inset 3px 0 var(--red);
}

.choice small {
  display: block;
  color: var(--muted);
  font-size: 18px;
}

.field {
  display: grid;
  gap: 5px;
  margin-bottom: 13px;
}

.field label {
  font-size: 18px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  min-height: 48px;
  padding: 11px;
  font: inherit;
  font-size: 18px;
  border-radius: 0;
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.summary-box {
  background: #eee8dd;
  padding: 16px;
  font-size: 18px;
}

.summary-box div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.summary-box div:last-child {
  border: 0;
}

.demo-notice {
  margin-top: 12px;
  padding: 10px;
  border: 1px dashed var(--gold);
  font-size: 18px;
  color: #735c2e;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8px;
}

.btn-soft {
  background: #e7e1d7;
  color: var(--ink);
}

.toast {
  position: fixed;
  z-index: 80;
  left: 18px;
  right: 18px;
  bottom: 90px;
  padding: 13px 15px;
  background: var(--ink);
  color: white;
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateY(30px);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  font-size: 18px;
}

.toast.show {
  transform: none;
  opacity: 1;
  visibility: visible;
}

.toast svg {
  width: 18px;
  color: #a9d7b2;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 760px) {
  .topbar {
    position: fixed;
    z-index: 30;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    min-height: 80px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(244, 240, 231, 0.91);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(24, 33, 28, 0.09);
  }
  .hero-content {
    left: max(6vw, calc((100vw - 1160px) / 2));
    bottom: 110px;
  }
  .section-pad {
    padding: 88px max(6vw, calc((100vw - 1160px) / 2));
  }
  .quick-grid {
    grid-template-columns: repeat(6, minmax(140px, 220px));
    justify-content: center;
  }
  .intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 70px;
  }
  .intro .section-kicker {
    grid-column: 1;
  }
  .intro h2 {
    grid-column: 1;
  }
  .intro > p {
    grid-column: 2;
    grid-row: 2;
  }
  .principles {
    grid-column: 1 / -1;
  }
  .event-scroll {
    grid-auto-flow: initial;
    grid-template-columns: repeat(2, 1fr);
    overflow: visible;
    margin: 32px 0 0;
    padding: 0;
  }
  .service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .service-item {
    grid-template-columns: 32px 1fr;
    padding: 26px 22px;
    border-right: 1px solid var(--line);
  }
  .service-item > svg {
    display: none;
  }
  .lamp-options {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .lamp-options button {
    grid-template-columns: 28px 1fr;
  }
  .lamp-options strong {
    grid-column: 2;
  }
  .map-card {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
  }
  .map-art {
    height: auto;
    min-height: 340px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .contact-banner .btn {
    width: auto;
    min-width: 300px;
  }
  .bottom-nav {
    left: 50%;
    right: auto;
    width: 430px;
    transform: translateX(-50%);
    border-inline: 1px solid var(--line);
  }
  footer {
    padding-left: max(6vw, calc((100vw - 1160px) / 2));
    padding-right: max(6vw, calc((100vw - 1160px) / 2));
  }
}

/* ── Article Category Chips ── */
.article-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 10px 0 16px;
  margin-top: 20px;
}
@media (min-width: 768px) {
  .article-cats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cat-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-size: 18px;
  font-family: var(--display);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.cat-chip i, .cat-chip svg {
  width: 18px;
  height: 18px;
  stroke-width: 2px;
}
.cat-chip:hover {
  background: rgba(201, 165, 99, 0.06);
  border-color: var(--gold);
  color: var(--gold);
}
.cat-chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 4px 12px rgba(180, 140, 60, 0.25);
}
.cat-chip.active i, .cat-chip.active svg {
  color: #fff;
}

/* ── Articles Grid ── */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 8px;
}
@media (min-width: 600px) {
  .articles-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Article Card ── */
.article-card {
  background: var(--cream);
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.article-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0ece4;
}
.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .article-thumb img {
  transform: scale(1.04);
}

.article-body {
  padding: 18px;
}

.article-cat-badge {
  display: inline-block;
  font-size: 18px;
  font-family: var(--display);
  color: var(--gold);
  background: rgba(180, 140, 60, 0.08);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.article-card h4 {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: var(--ink);
  font-family: var(--display);
  line-height: 1.4;
}
.article-card p {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .article-meta {
  margin-top: 12px;
  font-size: 18px;
  color: var(--gold);
}

.loading-placeholder {
  font-size: 18px;
  color: var(--muted);
  padding: 20px;
  text-align: center;
}

.load-more-wrap {
  grid-column: 1 / -1;
  text-align: center;
  padding: 12px 0 8px;
}
.load-more-btn {
  font-size: 18px;
  padding: 14px 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.load-more-btn i,
.load-more-btn svg {
  width: 18px;
  height: 18px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Article Modal & Markdown Rendering Styles ── */
.article-hero-img {
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  background: #f0ece4;
  flex-shrink: 0;
}

.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-modal-body {
  padding: 28px 24px;
  overflow-y: auto;
  flex-grow: 1;
}

.article-modal-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.article-modal-date {
  font-size: 18px;
  color: var(--muted);
}

.article-modal-title {
  font-size: clamp(24px, 6vw, 32px);
  font-family: var(--display);
  line-height: 1.4;
  margin: 0 0 16px 0;
  color: var(--ink);
}

.article-modal-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 20px 0;
}

/* Markdown Content Styling */
.markdown-body {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink);
}

.markdown-body p {
  margin: 0 0 16px 0;
  font-size: 18px;
}

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

.markdown-body h2 {
  font-size: 24px;
  margin: 28px 0 14px 0;
  font-family: var(--display);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.markdown-body h3 {
  font-size: 21px;
  margin: 24px 0 12px 0;
  font-family: var(--display);
  color: var(--ink);
}

.markdown-body ul, 
.markdown-body ol {
  padding-left: 24px;
  margin: 0 0 16px 0;
}

.markdown-body li {
  font-size: 18px;
  margin-bottom: 6px;
}

.markdown-body blockquote {
  border-left: 4px solid var(--gold);
  margin: 20px 0;
  padding: 12px 20px;
  background: rgba(201, 165, 99, 0.08);
  font-size: 18px;
  color: #555e58;
}

.markdown-body blockquote p {
  margin: 0;
}

.markdown-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 18px;
}

.markdown-body th, 
.markdown-body td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.markdown-body th {
  background: rgba(24, 33, 28, 0.04);
  font-weight: 700;
}

.markdown-body strong {
  font-weight: 700;
}

.markdown-body em {
  font-style: italic;
}

/* ── Dao Courses Section ── */
.courses-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 28px -20px 0;
  padding: 0 20px 8px;
  scrollbar-width: none;
}
.courses-grid::-webkit-scrollbar { display: none; }

.course-card {
  scroll-snap-align: start;
  background: var(--cream);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.course-image {
  width: 100%;
  aspect-ratio: 2.25;
  object-fit: cover;
  background: var(--paper);
}
.course-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.course-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.course-header h3 {
  font-size: 20px;
  margin: 0;
  color: var(--ink);
}
.course-tag {
  font-size: 18px;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}
.course-tag.status-active {
  background: rgba(201, 165, 99, 0.12);
  border: 1px solid var(--gold);
  color: var(--gold);
}
.course-tag.status-full {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--muted);
  color: var(--muted);
}
.course-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 18px;
  color: var(--muted);
}
.course-meta div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.course-meta svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.course-action-btn {
  margin-top: auto;
  width: 100%;
  font-size: 18px;
}

@media (min-width: 768px) {
  .courses-grid {
    grid-auto-flow: unset;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
    padding: 0;
    overflow: visible;
  }
}

/* Footer Social Links */
.footer-social {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 20px 0;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}
.footer-social a:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}
.footer-social svg {
  width: 20px;
  height: 20px;
}