/* OurChurch.ai — L0 preview styles (warm, editorial, welcoming) */
:root {
  --paper: #FFFAF3;
  --cream: #FDF0DF;
  --peach: #F9DDBD;
  --card: #FFFFFF;
  --ink: #2A2420;
  --ink-2: #5A4E46;
  --muted: #86786D;
  --sea: #2D5B74;
  --sea-deep: #1E3F52;
  --amber: #E39A4A;
  --terracotta: #C8664A;
  --sage: #E4ECE1;
  --leaf: #6E9A78;
  --line: #EEDFCB;
  --radius: 20px;
  --shadow: 0 10px 30px -18px rgba(120, 72, 30, .35);
  --max: 1120px;
  --read: 38rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 17px; line-height: 1.85; }
:lang(zh-Hant) { font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
:lang(ja) { font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif; }
:lang(zh-Hant) :is(h1, h2, h3, .serif) { font-family: "Noto Serif TC", "Songti TC", serif; }
:lang(ja) :is(h1, h2, h3, .serif) { font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; }

h1, h2, h3 { line-height: 1.4; font-weight: 700; margin: 0 0 .6em; letter-spacing: .02em; }
h1 { font-size: clamp(2rem, 4.8vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1.1em; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
img { max-width: 100%; height: auto; display: block; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.read { max-width: var(--read); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Preview banner */
.preview { background: var(--sea-deep); color: #F9DDBD; font-size: .85rem; line-height: 1.6; padding: 9px 16px; text-align: center; }
.preview strong { color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 250, 243, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-weight: 700; letter-spacing: .01em; }
.brand small { display: block; font-size: .72rem; color: var(--muted); font-weight: 400; letter-spacing: .08em; line-height: 1.2; }
.nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--amber); }
.lang { font-size: .85rem; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; text-decoration: none; color: var(--ink-2); background: var(--card); }
.lang:hover { border-color: var(--amber); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%); padding: 64px 0 0; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(249, 201, 142, .55), rgba(249, 201, 142, 0) 70%); }
.hero .wrap { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; letter-spacing: .1em; color: var(--terracotta); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 16px; margin-bottom: 20px; box-shadow: var(--shadow); }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 38rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 1rem; border: 1px solid transparent; }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 10px 22px -12px rgba(200, 102, 74, .9); }
.btn-primary:hover { background: #B4553B; color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--amber); color: var(--ink); }
.hero-art { margin-top: 44px; border-radius: 28px 28px 0 0; overflow: hidden; box-shadow: var(--shadow); }
.hero-art img { width: 100%; }

/* Wave divider */
.wave { display: block; width: 100%; height: 48px; }

/* Sections */
section.block { padding: 72px 0; }
section.cream { background: var(--cream); }
section.sage { background: var(--sage); }
.section-head { max-width: 42rem; margin-bottom: 36px; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
.kicker { font-size: .85rem; letter-spacing: .14em; color: var(--terracotta); font-weight: 700; margin-bottom: 8px; display: block; }

.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { margin: 0; }
.card p { color: var(--ink-2); margin: 0; font-size: .97rem; }
.card .more { margin-top: auto; padding-top: 6px; font-size: .93rem; font-weight: 700; }
.card .art img { width: 100%; }

/* Story placeholder */
.topic { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--terracotta); font-weight: 700; letter-spacing: .06em; }
.placeholder-title { border: 1.5px dashed #E2C49E; border-radius: 12px; padding: 12px 14px; color: var(--muted); font-size: .94rem; line-height: 1.65; background: #FFFCF7; }
.tag { display: inline-block; font-size: .78rem; border-radius: 999px; padding: 2px 10px; background: var(--sage); color: var(--sea-deep); margin: 0 6px 6px 0; }
.tag.sample { background: #FCE6CB; color: #8A4E17; }

/* Scripture band */
.verse { background: var(--sea-deep); color: #FDEBD3; padding: 64px 0; text-align: center; position: relative; overflow: hidden; }
.verse::after { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; background: radial-gradient(ellipse at center, rgba(246, 194, 122, .28), rgba(246, 194, 122, 0) 60%); }
.verse blockquote { margin: 0 auto; max-width: 40rem; font-size: clamp(1.3rem, 3vw, 1.8rem); line-height: 1.7; position: relative; z-index: 1; }
.verse cite { display: block; margin-top: 14px; font-size: .9rem; font-style: normal; color: #F2C998; position: relative; z-index: 1; }

/* Ways to join */
.ways { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.way { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.way .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--peach); color: var(--terracotta); font-weight: 800; margin-bottom: 12px; }
.way p { color: var(--ink-2); margin: 0; font-size: .97rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 16px; font-size: .92rem; color: var(--ink-2); }
.note { font-size: .92rem; color: var(--muted); border-left: 3px solid var(--amber); padding-left: 12px; margin-top: 26px; }

/* Welcome / tea split */
.split { display: grid; gap: 40px; grid-template-columns: 1.05fr 1fr; align-items: center; }
.split .art img { border-radius: 28px; box-shadow: var(--shadow); }

/* Promises */
.promises { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); list-style: none; padding: 0; margin: 0; }
.promises li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.promises .dot { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--sage); color: var(--leaf); }
.promises .dot svg { width: 20px; height: 20px; }
.promises strong { display: block; margin-bottom: 2px; }
.promises span { color: var(--ink-2); font-size: .93rem; line-height: 1.7; }

/* People */
.people { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.person .avatar { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%; background: linear-gradient(135deg, var(--peach), var(--sage)); display: grid; place-items: center; }
.person .avatar svg { width: 44px; height: 44px; color: #fff; }
.pending { display: inline-block; color: #8A4E17; background: #FCE6CB; border-radius: 999px; font-size: .8rem; padding: 1px 10px; }

/* Article (story layout) */
.article-hero { background: linear-gradient(180deg, var(--cream), var(--paper)); padding: 40px 0 8px; }
.article { padding: 8px 0 72px; }
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "／"; margin-right: 6px; color: #D7C3A8; }
.breadcrumb a { color: var(--muted); }
.article-meta { display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: 20px; }
.article-cover { border-radius: 24px; overflow: hidden; margin: 12px 0 32px; box-shadow: var(--shadow); }
.article-cover img { width: 100%; }
.skeleton { display: grid; gap: 14px; margin: 28px 0; }
.skeleton i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, #F2E4D1, #FAF1E5); }
.skeleton i:nth-child(3n) { width: 86%; }
.skeleton i:nth-child(4n) { width: 62%; }
.pull { font-size: 1.3rem; line-height: 1.75; border-left: 4px solid var(--amber); padding: 6px 0 6px 20px; color: var(--ink-2); margin: 36px 0; }
details.about-story { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-top: 40px; }
details.about-story summary { cursor: pointer; font-weight: 700; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 16px 0 0; font-size: .95rem; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
.talk { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; background: var(--sage); border-radius: var(--radius); padding: 22px; margin-top: 28px; }
.talk img { border-radius: 16px; }

/* Prose pages */
.page-hero { background: linear-gradient(180deg, var(--cream), var(--paper)); padding: 56px 0 24px; }
.prose { padding-bottom: 72px; }
.prose h2 { margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
table.info { border-collapse: collapse; width: 100%; font-size: .95rem; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
table.info th, table.info td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.info th { width: 34%; color: var(--ink-2); background: var(--cream); }
.help { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--terracotta); border-radius: 14px; padding: 18px 22px; }

/* Language chooser */
.chooser { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; background: linear-gradient(180deg, var(--cream), var(--paper)); }
.chooser .art { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); margin: 28px 0; }
.chooser .options { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.chooser .opt { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); }
.chooser .opt:hover { border-color: var(--amber); }
.chooser .opt strong { font-size: 1.35rem; display: block; }
.chooser .opt span { color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--sea-deep); color: #D5E0E6; padding: 56px 0 32px; font-size: .92rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: .6em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 36px; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #A9BCC7; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .split { grid-template-columns: 1fr; }
  .talk { grid-template-columns: 1fr; }
  .talk img { max-width: 200px; }
}
@media (max-width: 640px) {
  .site-header .wrap { gap: 6px 16px; padding-top: 10px; padding-bottom: 10px; }
  .nav { margin-left: 0; width: 100%; gap: 18px; overflow-x: auto; white-space: nowrap; }
  .hero { padding-top: 40px; }
  section.block { padding: 52px 0; }
  table.info th { width: 40%; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .card, .opt, .lang { transition: background .15s, border-color .15s, transform .15s; }
  .card:hover { transform: translateY(-2px); }
}

/* balanced line breaks for headings and the verse (avoids orphaned characters in CJK) */
h1, h2, .verse blockquote { text-wrap: balance; }
:lang(ja) .verse blockquote { word-break: keep-all; }
