:root {
  --bg: #f6f1e7;
  --bg-2: #efe7d8;
  --card: #fffdf8;
  --ink: #2c2620;
  --ink-soft: #7a7062;
  --line: #e3d9c6;
  --accent: #c98a2b;      /* warm candle gold */
  --accent-deep: #a66e1c;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --maxw: 1040px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.05; }

.kicker {
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.74rem;
  font-weight: 600; color: var(--accent-deep); margin-bottom: 14px;
}
.center { text-align: center; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(24px, env(safe-area-inset-right)) 14px max(24px, env(safe-area-inset-left));
  background: rgba(246,241,231,0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 600; font-size: 1.35rem; }
.brand img { border-radius: 50%; border: 2px solid var(--accent); object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 0.95rem; color: var(--ink-soft); }
.nav-links a:not(.btn):hover { color: var(--ink); }

.btn {
  font-weight: 600; border-radius: 999px; padding: 12px 26px; font-size: 0.98rem;
  display: inline-block; transition: transform .12s, background .15s, color .15s;
}
.nav .btn, .btn-primary { background: var(--accent); color: #fff; border: 2px solid var(--accent); }
.nav .btn { padding: 8px 18px; font-size: 0.9rem; }
.btn-primary:hover, .nav .btn:hover { transform: translateY(-2px); background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

.lang-btn {
  font-family: var(--sans); font-weight: 600; font-size: 0.9rem; cursor: pointer;
  min-width: 52px; padding: 8px 14px; border-radius: 999px; line-height: 1;
  color: var(--ink); background: transparent; border: 2px solid var(--accent);
  transition: background .15s, color .15s;
}
.lang-btn:hover { background: var(--accent); color: #fff; }

/* hero */
.hero { max-width: 1200px; margin: 0 auto; padding: 28px 24px 64px; }
.hero-banner { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 28px 70px rgba(44,38,32,0.18); }
.hero-banner img { width: 100%; height: clamp(360px, 56vw, 600px); object-fit: cover; object-position: 50% 42%; display: block; }
.hero-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  align-items: center; text-align: center; padding: clamp(26px, 5vw, 60px);
  background: linear-gradient(0deg, rgba(24,18,12,0.82) 0%, rgba(24,18,12,0.28) 42%, rgba(24,18,12,0.05) 72%);
  color: #fff;
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; color: var(--accent-deep); font-weight: 600; margin-bottom: 12px; }
.hero-overlay .eyebrow { color: #f3d6a4; }
.hero-overlay h1 { font-size: clamp(3.6rem, 12vw, 7rem); color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,0.35); }
.hero-overlay .lede { color: rgba(255,255,255,0.94); margin-top: 12px; }
.lede { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 3vw, 1.7rem); }
.hero-actions { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 34px; }
.sub { color: var(--ink-soft); margin-top: 0; max-width: 52ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }

.ca {
  display: inline-flex; align-items: stretch; cursor: pointer; margin-top: 24px;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card);
  font-family: ui-monospace, "SF Mono", Menlo, monospace; max-width: 100%;
}
.ca-label { background: var(--accent); color: #fff; padding: 10px 14px; font-family: var(--sans); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; display: flex; align-items: center; }
.ca-val { padding: 10px 14px; font-size: 0.78rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca:hover .ca-val { color: var(--ink); }

/* story */
.story { max-width: 720px; margin: 0 auto; padding: 80px 24px; border-top: 1px solid var(--line); }
.story h2 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 32px; }
.story-body h3 { font-size: 1.5rem; margin: 36px 0 12px; }
.story-body h3:first-child { margin-top: 0; }
.story-body p { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 8px; }
.story-body strong { color: var(--ink); font-weight: 600; }
blockquote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3.4vw, 1.8rem);
  line-height: 1.4; color: var(--ink); margin: 30px 0; padding: 22px 28px;
  border-left: 4px solid var(--accent); background: var(--bg-2); border-radius: 0 12px 12px 0;
}
blockquote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 0.9rem; color: var(--ink-soft); margin-top: 14px; }

/* mission */
.mission { max-width: var(--maxw); margin: 0 auto; padding: 80px 24px; border-top: 1px solid var(--line); }
.mission h2 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 44px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px; text-align: center; transition: transform .12s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(44,38,32,0.1); }
.card-ico { font-size: 2.2rem; display: block; margin-bottom: 14px; }
.card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }

/* buy */
.buy { max-width: 700px; margin: 0 auto; padding: 80px 24px; border-top: 1px solid var(--line); }
.buy h2 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 40px; }
.steps { list-style: none; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.steps li { display: flex; gap: 22px; align-items: baseline; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps span { font-family: var(--serif); font-size: 1.5rem; color: var(--accent); min-width: 42px; }
.steps p { color: var(--ink); }

/* photo area (top) */
.photostrip { max-width: 1100px; margin: -28px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.photostrip figure { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: 0 16px 44px rgba(44,38,32,0.12); }
.photostrip img { width: 100%; height: clamp(240px, 26vw, 320px); object-fit: cover; object-position: 50% 30%; display: block; transition: transform .3s ease; }
.photostrip figure:hover img { transform: scale(1.04); }
.photostrip figcaption { padding: 13px 15px; font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 0.9rem; text-align: center; }
@media (max-width: 860px) { .photostrip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .photostrip { grid-template-columns: 1fr; } }

/* gallery */
.gallery { max-width: var(--maxw); margin: 0 auto; padding: 80px 24px; border-top: 1px solid var(--line); }
.gallery h2 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 40px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.gallery figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery figcaption { padding: 16px; font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 0.96rem; text-align: center; }

/* tributes — live x embeds */
.tributes { max-width: 900px; margin: 0 auto; padding: 80px 24px; border-top: 1px solid var(--line); }
.tributes h2 { font-size: clamp(2.2rem, 5vw, 3rem); }
.tributes-sub { color: var(--ink-soft); margin: 14px auto 40px; max-width: 50ch; }
.tweet-grid { columns: 2 360px; column-gap: 20px; }
.tweet-grid .twitter-tweet { break-inside: avoid; margin: 0 auto 20px !important; }
.tributes-note { text-align: center; color: var(--ink-soft); font-size: 0.84rem; margin-top: 16px; }

/* community */
.community { max-width: var(--maxw); margin: 0 auto; padding: 80px 24px; border-top: 1px solid var(--line); }
.community h2 { font-size: clamp(2.2rem, 5vw, 3rem); }
.community-sub { color: var(--ink-soft); text-align: center; margin: 14px auto 38px; max-width: 50ch; }
.community-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 720px; margin: 0 auto; }
.community-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); transition: transform .12s, border-color .15s; }
.community-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.cc-ico { font-size: 1.6rem; width: 46px; height: 46px; display: grid; place-items: center; background: var(--bg-2); border-radius: 10px; flex: none; }
.cc-text { display: flex; flex-direction: column; flex: 1; }
.cc-text strong { font-family: var(--serif); font-size: 1.15rem; }
.cc-text span { color: var(--ink-soft); font-size: 0.86rem; }
.cc-arrow { color: var(--ink-soft); font-size: 1.2rem; }
.community-card:hover .cc-arrow { color: var(--accent-deep); }

/* watch — video grid */
.watch { max-width: 1100px; margin: 0 auto; padding: 80px 24px; border-top: 1px solid var(--line); }
.watch h2 { font-size: clamp(2.2rem, 5vw, 3rem); }
.watch-sub { color: var(--ink-soft); text-align: center; margin: 14px auto 40px; max-width: 50ch; }
.video-grid { columns: 3 280px; column-gap: 18px; }
.vid { margin: 0 0 18px; break-inside: avoid; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.vid video { display: block; width: 100%; height: auto; background: #000; }
.vid figcaption { padding: 12px 15px; font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 0.92rem; text-align: center; background: var(--card); }

/* footer */
.footer { text-align: center; padding: 70px 24px max(80px, calc(60px + env(safe-area-inset-bottom))); border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 30px; }
.footer-brand { font-family: var(--serif); font-size: 2rem; }
.footer-tag { font-family: var(--serif); font-style: italic; color: var(--ink-soft); margin-top: 8px; }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-top: 24px; font-weight: 600; font-size: 0.95rem; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--accent-deep); }
.disclaimer { max-width: 540px; margin: 28px auto 0; font-size: 0.76rem; color: var(--ink-soft); line-height: 1.6; }

@media (max-width: 760px) {
  .hero { padding-top: 18px; }
  .sub { margin-left: auto; margin-right: auto; }
  .cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .community-cards { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .nav-links a:not(.btn) { display: none; }
  .ca-val { font-size: 0.66rem; }
}
