/*
Theme Name: Bless Fu
Theme URI: https://www.blessfu.com/
Author: Bless Fu
Description: 福增佛堂经典、开示、福语、念经与结缘主题。
Version: 1.0.0
Text Domain: blessfu
*/

:root {
  --ink: #302a24;
  --muted: #71685e;
  --paper: #fffdf8;
  --cream: #f5efe3;
  --gold: #a67527;
  --gold-dark: #76501b;
  --red: #7d2d26;
  --line: #dfd3bf;
  --shadow: 0 18px 48px rgba(69, 47, 24, .12);
  --radius: 18px;
  --wrap: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;
  font-size: 17px;
  line-height: 1.8;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: var(--wrap); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, .94);
  border-bottom: 1px solid rgba(166, 117, 39, .18);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--cream); }
.brand-title { display: grid; line-height: 1.18; }
.brand-title strong { font-size: 1.12rem; letter-spacing: .08em; }
.brand-title span { color: var(--muted); font: 600 .72rem/1.2 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 5px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 10px 13px; border-radius: 999px; text-decoration: none; font-weight: 650; font-size: .95rem; }
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--red); background: var(--cream); }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 8px 12px; font-size: 1.1rem; }

.hero {
  min-height: 660px;
  display: grid;
  align-items: end;
  color: white;
  background:
    linear-gradient(180deg, rgba(26, 20, 12, .08), rgba(30, 19, 8, .76)),
    url("https://blessfuweb.s3.ca-central-1.amazonaws.com/images/heading/background.jpg") center/cover;
}
.hero-content { padding: 130px 0 86px; max-width: 760px; }
.eyebrow { color: #efd59b; font: 700 .78rem/1.3 Arial, sans-serif; letter-spacing: .22em; text-transform: uppercase; }
.hero h1 { margin: 12px 0 18px; font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.05; font-weight: 650; letter-spacing: .08em; }
.hero p { max-width: 650px; margin: 0 0 30px; font-size: clamp(1rem, 2vw, 1.22rem); color: rgba(255,255,255,.9); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--gold); border-radius: 999px; background: var(--gold); color: white; text-decoration: none; font-weight: 700; }
.button:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.button.ghost { background: transparent; border-color: rgba(255,255,255,.58); margin-left: 8px; }

.section { padding: 88px 0; }
.section.alt { background: var(--cream); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-heading h2, .page-hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.2; font-weight: 600; letter-spacing: .05em; }
.section-heading p { max-width: 590px; margin: 0; color: var(--muted); }
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 58px; align-items: center; }
.intro-copy h2 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.25; margin: 0 0 20px; }
.intro-copy p { color: var(--muted); }
.intro-image { border-radius: 140px 140px 18px 18px; overflow: hidden; box-shadow: var(--shadow); }
.intro-image img { width: 100%; min-height: 520px; object-fit: cover; }
.daily-card { display: grid; grid-template-columns: .85fr 1.15fr; background: #2e261f; color: white; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.daily-card img { width: 100%; height: 100%; min-height: 470px; object-fit: cover; }
.daily-copy { padding: clamp(34px, 6vw, 72px); align-self: center; }
.daily-copy h2 { margin: 8px 0 18px; font-size: clamp(2rem, 4vw, 3.2rem); }
.daily-copy p { color: rgba(255,255,255,.78); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 26px rgba(80,56,26,.07); }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 1.35rem; }
.card p { margin: 0; color: var(--muted); }

.page-hero { padding: 92px 0 58px; background: linear-gradient(135deg, var(--cream), #fff); border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); max-width: 700px; }
.content-shell { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 65px 0 90px; }
.content-shell h2 { margin-top: 2.2em; color: var(--red); font-size: 1.8rem; }
.content-shell h3 { margin-top: 1.8em; font-size: 1.4rem; }
.notice { padding: 26px 28px; margin: 28px 0; border-left: 4px solid var(--gold); background: var(--cream); border-radius: 0 14px 14px 0; }
.schedule { display: grid; gap: 20px; }
.schedule article { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 6px 22px rgba(80,56,26,.06); }
.schedule time { color: var(--gold-dark); font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0 40px; }
.product-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.contact-box { margin-top: 45px; padding: 38px; color: white; background: var(--red); border-radius: 24px; }
.contact-box a { color: #ffe0a6; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.post-card a { text-decoration: none; }
.post-card time { color: var(--muted); font-size: .9rem; }

.site-footer { padding: 58px 0 28px; background: #211c17; color: rgba(255,255,255,.78); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 38px; }
.site-footer h2, .site-footer h3 { color: white; }
.site-footer a { color: #efd59b; }
.copyright { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); font-size: .87rem; }
.wisdom-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.wisdom-crop { position: relative; aspect-ratio: 1.875/1; overflow: hidden; margin: 0; background: #f2eee6; border-radius: 14px; box-shadow: var(--shadow); }
.wisdom-crop img { position: absolute; width: 100%; height: auto; max-width: none; left: 0; top: -257%; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 20px; right: 20px; top: 70px; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { display: grid; }
  .intro-grid, .daily-card, .footer-grid { grid-template-columns: 1fr; }
  .cards, .post-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { min-height: 580px; }
}
@media (max-width: 560px) {
  :root { --wrap: min(100% - 28px, 1160px); }
  body { font-size: 16px; }
  .brand-title span { display: none; }
  .section { padding: 62px 0; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 12px; }
  .cards, .post-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .button.ghost { margin: 10px 0 0; }
  .wisdom-grid { grid-template-columns: 1fr; }
}
