/* Temple site.
   Redesigned 2 Nov 2026 after Karl said the first version "feels like it was
   made by AI". What changed, from a look at eleven real temple websites:
   rice-paper background instead of pale mist, the temple's lacquer red and a
   flat gold instead of fades and glows, the name on a red signboard like the
   one over a temple gate, and plain lists, dated rows and a lunar calendar
   instead of zigzag timelines and rows of equal cards. Every colour is flat;
   there is no gradient anywhere on purpose. */

@font-face { font-family: 'Lora'; src: url(../fonts/Lora-Regular.woff) format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lora'; src: url(../fonts/Lora-Italic.woff) format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lora'; src: url(../fonts/Lora-Bold.woff) format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url(../fonts/WorkSans-Regular.woff) format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url(../fonts/WorkSans-Bold.woff) format('woff'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --paper: #f6efe2;
  --paper-2: #ece1cd;
  --card: #fbf7ef;
  --ink: #241a12;
  --ink-soft: #594a3c;
  --lacquer: #962a1c;
  --lacquer-deep: #761f13;
  --gold: #b8892a;
  --gold-text: #82601b;
  --plaque-text: #f4d88f;
  --wood: #2a1c13;
  --wood-text: #eee3cf;
  --wood-soft: #c9baa3;
  --line: #d8c9ae;
  --display: 'Lora', Georgia, 'Times New Roman', serif;
  --body: 'Work Sans', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 1.125rem; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lacquer); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--lacquer-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lacquer); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1rem; text-wrap: pretty; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--ink); margin: 0 0 0.75rem; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); line-height: 1.08; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.35rem; line-height: 1.25; font-weight: 700; }
/* Vietnamese stacks tone marks above the letters, so its headings need more room between lines. */
:lang(vi) h1 { line-height: 1.2; }
:lang(vi) h2 { line-height: 1.25; }
:lang(vi) h3 { line-height: 1.3; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lede { font-size: 1.2rem; line-height: 1.55; max-width: 36rem; }
/* A Vietnamese name beside its English one, e.g. "The main hall · chánh điện". */
.vn { font-family: var(--display); font-style: italic; font-weight: 400; color: var(--gold-text); white-space: nowrap; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- The name on a red signboard, like the board over a temple gate ---------- */
.brand-plaque {
  display: inline-block; background: var(--lacquer); color: var(--plaque-text);
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.2;
  letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap;
  padding: 0.5rem 0.95rem 0.42rem; border-radius: 2px;
  box-shadow: inset 0 0 0 3px var(--lacquer), inset 0 0 0 4px var(--plaque-text);
}

/* ---------- Header ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; gap: 0.9rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-place { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--ink-soft); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.1rem; }
.site-nav a { display: block; padding: 0.55rem 0.75rem; color: var(--ink); text-decoration: none; font-size: 1.0625rem; }
.site-nav a:hover { color: var(--lacquer); }
.site-nav a[aria-current="page"] { color: var(--lacquer); box-shadow: inset 0 -2px 0 var(--lacquer); }
/* On computers the red button stands on its own, with the language button just left of it
   (Karl, 2 Nov 2026). On phones it moves into the menu. */
.site-nav .nav-cta { display: none; }
.lang-switch {
  font-size: 1rem; color: var(--ink); text-decoration: none; white-space: nowrap;
  border: 1.5px solid var(--ink); border-radius: 3px; padding: 0 0.9rem;
  min-height: 2.75rem; display: inline-flex; align-items: center;
}
.lang-switch:hover { border-color: var(--lacquer); color: var(--lacquer); }
.head-cta {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem; border-radius: 3px;
  background: var(--lacquer); color: #fff8ec; font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
}
.head-cta:hover, .head-cta[aria-current="page"] { background: var(--lacquer-deep); color: #fff8ec; }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .site-head .wrap { flex-wrap: wrap; gap: 0.6rem; }
  .head-cta { display: none; }
  .nav-toggle {
    display: block; font: inherit; font-size: 1rem; background: var(--ink); color: var(--paper);
    border: 0; border-radius: 3px; padding: 0.6rem 1rem; min-height: 2.75rem; cursor: pointer;
  }
  .site-nav { display: none; width: 100%; order: 4; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); padding-top: 0.4rem; }
  .site-nav a { padding: 0.8rem 0.2rem; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--lacquer); padding-left: 0.8rem; }
  .site-nav .nav-cta { display: block; }
  .site-nav .nav-cta a { margin: 0.8rem 0 0.4rem; text-align: center; border-bottom: 0; padding: 0.8rem; background: var(--lacquer); color: #fff8ec; font-weight: 700; border-radius: 3px; box-shadow: none; }
}
/* Small phones: the signboard, the language button and Menu stay on one line.
   The place line under the name goes; the page says Belleisle just below it. */
@media (max-width: 520px) {
  .brand-place { display: none; }
  .site-head .wrap { gap: 0.45rem; }
  .site-head .brand-plaque { font-size: 0.95rem; letter-spacing: 0.06em; padding: 0.45rem 0.7rem 0.38rem; }
  .lang-switch { padding: 0 0.65rem; font-size: 0.95rem; }
  .nav-toggle { padding: 0.6rem 0.75rem; }
}
@media (max-width: 360px) {
  .site-head .brand-plaque { font-size: 0.85rem; letter-spacing: 0.04em; padding: 0.42rem 0.55rem 0.36rem; }
  .lang-switch { padding: 0 0.5rem; }
  .nav-toggle { padding: 0.6rem 0.6rem; }
}

/* ---------- The language box on a first visit ---------- */
.lang-pick {
  border: 0; border-top: 6px solid var(--lacquer); border-radius: 4px; padding: 2rem 1.75rem 1.75rem;
  width: min(26rem, calc(100% - 2rem)); background: var(--paper); color: var(--ink); text-align: center;
  box-shadow: 0 18px 50px rgb(20 12 6 / 0.35);
}
.lang-pick::backdrop { background: rgb(36 26 18 / 0.6); }
.lang-pick-name { margin: 0 0 1.1rem; }
.lang-pick h2 { font-size: 1.35rem; line-height: 1.35; margin-bottom: 1.25rem; }
.lang-pick h2 span { display: block; }
.lang-pick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.lang-pick-btn {
  display: block; padding: 0.95rem 0.5rem; border: 1.5px solid var(--ink); border-radius: 3px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem;
}
.lang-pick-btn:hover, .lang-pick-btn:focus-visible { background: var(--lacquer); border-color: var(--lacquer); color: #fff8ec; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn {
  display: inline-block; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 0.85rem 1.35rem; border-radius: 3px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
}
.btn-primary { background: var(--lacquer); color: #fff8ec; }
.btn-primary:hover { background: var(--lacquer-deep); color: #fff8ec; }
.btn-quiet { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-quiet:hover { background: var(--ink); color: var(--paper); }

/* ---------- Pictures and captions ---------- */
/* No label on each picture (Karl, 2 Nov 2026: it looked like a demo). The footer
   says the temple pictures are artist's impressions. */
main img { width: 100%; border-radius: 2px; }
figure { margin: 0; }
figcaption { font-size: 1rem; line-height: 1.45; color: var(--ink-soft); margin-top: 0.6rem; }
figcaption strong { color: var(--ink); }

/* ---------- Home: the name, then the mountain today beside the plan ---------- */
.hero { padding: clamp(2rem, 5vw, 3.75rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 1rem clamp(2rem, 5vw, 4.5rem); align-items: end; }
.hero-head h1 { margin-bottom: 0.2rem; }
.hero-meaning { font-family: var(--display); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.3; color: var(--gold-text); margin: 0; }
.hero-head .lede { margin-bottom: 0; }
.hero-head .btn-row { margin-top: 1.25rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 2rem); margin-top: clamp(2rem, 4vw, 3rem); }
.pair img { aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 800px) {
  .hero-head { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.band { background: var(--paper-2); border-top: 0; }
.band + .section { border-top: 0; }
.section-head { max-width: 42rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.section-head p:last-child { margin-bottom: 0; }
/* Heading on the left, the list on the right, so a list doesn't leave half the page empty. */
.side { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.side .section-head { margin-bottom: 0; }
@media (max-width: 900px) { .side { grid-template-columns: 1fr; } .side .section-head { margin-bottom: 1rem; } }
.more { font-weight: 700; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.flip > :first-child { order: 2; }
.split p:last-child { margin-bottom: 0; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
}

/* Reading width for each block, while the column itself stays on the page's left edge. */
.prose > * { max-width: 42rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem clamp(2rem, 5vw, 4.5rem); }
.cols > div { border-top: 2px solid var(--lacquer); padding-top: 1.25rem; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }

/* ---------- The temple grounds: one picture, the parts listed beside it ---------- */
.grounds { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 4.5vw, 4rem); align-items: start; }
.grounds > :first-child > img { aspect-ratio: 4 / 3; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.75rem, 2vw, 1.25rem); margin-top: clamp(0.75rem, 2vw, 1.25rem); }
.thumbs img { aspect-ratio: 3 / 2; object-fit: cover; }
.thumbs figcaption { margin-top: 0.4rem; }
.parts { list-style: none; margin: 0; padding: 0; counter-reset: part; }
.parts li { counter-increment: part; position: relative; padding: 0 0 1.1rem 2.75rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.parts li:last-child { border-bottom: 0; margin-bottom: 0; }
.parts li::before {
  content: counter(part); position: absolute; left: 0; top: 0.05rem; width: 1.85rem; height: 1.85rem;
  border: 1.5px solid var(--lacquer); border-radius: 50%; color: var(--lacquer);
  font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.7rem; text-align: center;
}
.parts h3 { margin-bottom: 0.3rem; }
.parts h3 .vn { font-size: 0.9em; }
.parts p { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .grounds { grid-template-columns: 1fr; } }

/* ---------- Where things stand: dated steps, done and not yet ---------- */
.steps { list-style: none; margin: 0; padding: 0; max-width: 52rem; }
.steps li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; gap: 0.25rem 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .when { font-family: var(--display); font-weight: 700; color: var(--ink); }
.steps h3 { font-size: 1.2rem; margin: 0 0 0.25rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 1.0625rem; }
.state { font-size: 0.875rem; font-weight: 700; white-space: nowrap; padding: 0.15rem 0.55rem; border-radius: 2px; border: 1.5px solid currentColor; }
.state-done { color: #3d6a3a; }
.state-now { color: var(--lacquer); }
.state-later { color: var(--ink-soft); }
@media (max-width: 640px) {
  .steps li { grid-template-columns: minmax(0, 1fr) auto; }
  .steps .when { grid-column: 1 / -1; font-size: 1rem; }
}

/* ---------- The temple year: festivals by their lunar dates ---------- */
.cal { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.cal li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.25rem; padding: 1.1rem 0; border-top: 1px solid var(--line); align-items: start; }
.cal li:last-child { border-bottom: 1px solid var(--line); }
.lunar {
  font-family: var(--display); text-align: center; border: 1.5px solid var(--lacquer); border-radius: 3px;
  color: var(--lacquer); padding: 0.35rem 0.25rem 0.4rem; background: var(--card);
}
.lunar b { display: block; font-size: 1.55rem; line-height: 1.1; }
.lunar span { display: block; font-size: 0.8rem; line-height: 1.25; color: var(--ink-soft); font-family: var(--body); }
.cal h3 { margin: 0 0 0.15rem; font-size: 1.3rem; }
.cal .sub { color: var(--gold-text); font-family: var(--display); font-style: italic; margin: 0 0 0.35rem; }
.cal p { margin: 0 0 0.35rem; }
.cal .month { font-size: 1rem; color: var(--ink-soft); }
.cal-home { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 4rem); }
.cal-home li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
@media (max-width: 800px) {
  .cal-home { grid-template-columns: 1fr; }
  .cal-home li:nth-last-child(2) { border-bottom: 0; }
}
/* The festivals page: each festival has more to say, so the words get more room. */
.cal-full li { grid-template-columns: 7rem minmax(0, 1fr); gap: 1.75rem; padding: 1.75rem 0; }
.cal-full h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.1rem; }
.cal-full p { max-width: 40rem; }
.cal-full .lunar b { font-size: 1.9rem; }
@media (max-width: 560px) {
  .cal li, .cal-full li { grid-template-columns: 4.75rem minmax(0, 1fr); gap: 1rem; }
  .lunar b, .cal-full .lunar b { font-size: 1.35rem; }
}

/* ---------- Get involved: three choices as a plain list ---------- */
.join { list-style: none; margin: 0; padding: 0; max-width: 52rem; }
.join li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 2rem; align-items: center; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.join li:last-child { border-bottom: 1px solid var(--line); }
.join h3 { margin: 0 0 0.25rem; }
.join p { margin: 0; color: var(--ink-soft); }
.join .go { font-weight: 700; white-space: nowrap; padding: 0.6rem 0; }
@media (max-width: 640px) { .join li { grid-template-columns: 1fr; } }

/* ---------- Inner pages: title, then the picture with a clean edge ---------- */
.page-head { padding-top: clamp(1.75rem, 4vw, 3rem); }
.page-head h1 { max-width: 20ch; }
.page-head .lede { margin-bottom: 0; }
.head-img { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.head-img .bleed { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 2px; }
/* Quan Âm: her head is near the top of the picture, so this one is taller and held to its top edge. */
.head-img-statue .bleed { aspect-ratio: 16 / 9; object-position: 50% 0%; }
@media (max-width: 640px) { .head-img .bleed { aspect-ratio: 3 / 2; } }

/* ---------- Named parts of the temple ---------- */
.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; list-style: none; margin: 0; padding: 0; }
.terms li { border-top: 2px solid var(--lacquer); padding-top: 1rem; }
.terms h3 { margin-bottom: 0.4rem; }
.terms p { color: var(--ink-soft); margin: 0; }
@media (max-width: 640px) { .terms { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Notices ---------- */
.notice { border-left: 3px solid var(--gold); background: var(--card); padding: 1.25rem 1.5rem; max-width: 46rem; }
.notice h2, .notice h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.notice p:last-child { margin-bottom: 0; }
.warn { border-left-color: var(--lacquer); }
.notice-gap { margin-top: 2.5rem; }

/* ---------- Form ---------- */
.form { max-width: 40rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }
.field label, legend { font-weight: 700; font-size: 1.0625rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
input[type="text"], input[type="email"], textarea {
  font: inherit; font-size: 1.0625rem; color: var(--ink); background: #fff; border: 1.5px solid #b3a48b; border-radius: 3px;
  padding: 0.7rem 0.8rem; width: 100%;
}
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--lacquer); outline-offset: 1px; border-color: var(--lacquer); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; margin-bottom: 0.5rem; }
.check { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.5rem 0; min-height: 2.75rem; font-size: 1.0625rem; cursor: pointer; }
.check input { width: 1.5rem; height: 1.5rem; margin: 0.05rem 0 0; flex: none; accent-color: var(--lacquer); }
.consent { font-size: 1rem; color: var(--ink-soft); margin-top: 0.4rem; }
.form .btn { margin-top: 1.25rem; }
.form-status { margin-top: 1rem; font-weight: 700; color: var(--lacquer-deep); min-height: 1.6em; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Privacy and other plain pages ---------- */
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.updated { font-size: 1rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-foot { background: var(--wood); color: var(--wood-soft); padding: 3.25rem 0 2rem; font-size: 1.0625rem; }
.site-foot a { color: var(--plaque-text); }
.site-foot a:hover { color: #fff; }
.site-foot :focus-visible { outline-color: var(--plaque-text); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem 3rem; }
.foot-name { margin-bottom: 1.1rem; }
.foot-where { color: var(--wood-text); }
.site-foot h2 { font-family: var(--body); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em; color: var(--wood-text); margin-bottom: 0.5rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li a { display: inline-block; padding: 0.5rem 0; }
.foot-legal { border-top: 1px solid rgba(238, 227, 207, 0.22); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 1rem; }
.foot-legal p { margin-bottom: 0.5rem; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
