/* Family Photo Album demo. Warm, archival, multi-generation. */
:root {
  --cream: #faf6ef;
  --paper: #f3ecdf;
  --ink: #2b2a24;
  --ink-soft: #6f6a5c;
  --green: #3d4f3d;
  --green-deep: #2c3a2c;
  --brass: #b08d4f;
  --brass-light: #cdb083;
  --card: #ffffff;
  --border: #e3dac7;
  --tribute: #eef0ea;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  line-height: 1.65;
}
h1, h2, h3, .serif { font-family: 'Cormorant Garamond', serif; }
a { color: var(--green); }

/* Header */
.site-header { background: var(--green-deep); color: var(--cream); text-align: center; }
.masthead { padding: 2.2rem 1rem 1.4rem; }
.site-name { text-decoration: none; color: var(--cream); display: inline-block; }
.site-name-top { display: block; font-size: 0.8rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--brass-light); }
.site-name-main { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2.6rem; font-weight: 600; line-height: 1.15; margin: 0.2rem 0; }
.site-name-domain { display: block; font-size: 0.78rem; letter-spacing: 0.12em; color: #9aa694; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem; padding: 0 1rem 1rem; }
.site-nav a { color: var(--cream); text-decoration: none; font-size: 0.86rem; letter-spacing: 0.06em; padding: 0.35rem 0.8rem; border-radius: 999px; opacity: 0.85; }
.site-nav a:hover { opacity: 1; background: rgba(255,255,255,0.08); }
.site-nav a.active { background: var(--brass); color: var(--green-deep); opacity: 1; font-weight: 500; }

/* Layout */
.page { max-width: 1060px; margin: 0 auto; padding: 2.5rem 1.2rem 4rem; }
.page-title { font-size: 2.3rem; font-weight: 600; color: var(--green-deep); }
.page-sub { color: var(--ink-soft); max-width: 640px; margin: 0.4rem 0 2rem; }
.section-label { font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); margin-bottom: 0.6rem; }

/* Cards and grids */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1.4rem; }
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Photo placeholders (hand-coded, no imagery) */
.ph { border-radius: 8px; display: flex; align-items: flex-end; min-height: 130px; padding: 0.6rem 0.8rem; color: rgba(255,255,255,0.92); font-size: 0.78rem; letter-spacing: 0.04em; position: relative; overflow: hidden; }
.ph::before { content: '📷'; position: absolute; top: 0.55rem; right: 0.7rem; opacity: 0.55; font-size: 0.9rem; }
.ph-a { background: linear-gradient(135deg, #7d8f77, #4c5f4a); }
.ph-b { background: linear-gradient(135deg, #c2a878, #8f7443); }
.ph-c { background: linear-gradient(135deg, #9b8f9e, #5f5666); }
.ph-d { background: linear-gradient(135deg, #88a3ad, #4f6b76); }
.ph-e { background: linear-gradient(135deg, #c99a7c, #90604a); }
.ph-f { background: linear-gradient(135deg, #a8b7a0, #6d7f66); }
.ph-tall { min-height: 190px; }
.ph-note { font-style: italic; }

/* Home */
.hero-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.7rem; margin-bottom: 2.2rem; }
.home-intro { max-width: 700px; margin: 0 auto 2.6rem; text-align: center; }
.home-intro h1 { font-size: 2.5rem; color: var(--green-deep); font-weight: 600; }
.home-intro p { color: var(--ink-soft); margin-top: 0.7rem; }
.home-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 2rem; }
@media (max-width: 760px) { .home-cols { grid-template-columns: 1fr; } }
.activity-item { display: flex; gap: 0.7rem; padding: 0.65rem 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.activity-item:last-child { border-bottom: none; }
.activity-when { color: var(--brass); white-space: nowrap; font-size: 0.8rem; padding-top: 0.15rem; min-width: 5.4rem; }
.thisweek-year { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--brass); min-width: 3.4rem; }

/* Prompt banner */
.prompt-banner { background: var(--paper); border: 1px solid var(--border); border-radius: 10px; padding: 1.3rem 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin: 2rem 0; }
.prompt-q { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-style: italic; color: var(--green-deep); }
.prompt-meta { font-size: 0.83rem; color: var(--ink-soft); }
.btn { display: inline-block; background: var(--green); color: var(--cream); border: none; border-radius: 999px; padding: 0.55rem 1.3rem; font-family: 'Jost', sans-serif; font-size: 0.88rem; letter-spacing: 0.05em; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--green-deep); }
.btn-ghost { background: transparent; color: var(--green); border: 1px solid var(--green); }

/* Tree */
.tree { overflow-x: auto; padding-bottom: 1rem; }
.tree-gen { display: flex; justify-content: center; gap: 1.1rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.tree-gen-label { text-align: center; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); margin: 1.4rem 0 0.7rem; }
.tree-connector { text-align: center; color: var(--border); font-size: 1.1rem; line-height: 1; }
.person-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1rem; text-align: center; text-decoration: none; color: var(--ink); width: 168px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.person-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(44,58,44,0.12); }
.person-card .avatar { width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 0.5rem; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--cream); }
.person-card .p-name { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 600; color: var(--green-deep); }
.person-card .p-side { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); }
.person-card .p-tag { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.3rem; line-height: 1.4; }
.person-card.passed { background: var(--tribute); }
.person-card.passed .p-years { font-size: 0.78rem; color: var(--ink-soft); }
.av-0 { background: linear-gradient(135deg, #8d7b64, #5e5040); }
.av-1 { background: linear-gradient(135deg, #7d8f77, #4c5f4a); }
.av-2 { background: linear-gradient(135deg, #b08d4f, #8a6a34); }
.av-3 { background: linear-gradient(135deg, #88a3ad, #4f6b76); }

/* Person page */
.person-hero { display: flex; gap: 1.6rem; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; }
.person-hero .avatar-lg { width: 110px; height: 110px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 2.6rem; color: var(--cream); flex-shrink: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.9rem; margin: 1.4rem 0 2rem; }
.fact { background: var(--paper); border-radius: 8px; padding: 0.8rem 1rem; }
.fact .f-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.rel-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.rel-chip { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 0.9rem; font-size: 0.82rem; text-decoration: none; color: var(--ink); }
.rel-chip:hover { border-color: var(--brass); }
.rel-chip .rel-kind { color: var(--ink-soft); }

/* Stories */
.story { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem 1.7rem; margin-bottom: 1.2rem; }
.story-meta { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0.5rem; }
.story h3 { font-size: 1.45rem; color: var(--green-deep); }
.story-body { margin-top: 0.6rem; }
.badge { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; background: var(--paper); border-radius: 999px; padding: 0.15rem 0.6rem; color: var(--brass); }
.voice-player { display: flex; align-items: center; gap: 0.7rem; background: var(--paper); border-radius: 999px; padding: 0.45rem 1rem; margin-top: 0.9rem; max-width: 340px; }
.voice-play { width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--cream); border: none; cursor: pointer; font-size: 0.8rem; flex-shrink: 0; }
.voice-track { flex: 1; height: 4px; background: var(--border); border-radius: 2px; position: relative; }
.voice-track .voice-progress { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: var(--brass); border-radius: 2px; transition: width 0.3s linear; }
.voice-time { font-size: 0.75rem; color: var(--ink-soft); }

/* Traditions */
.tradition-years { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.year-col { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem; }
.year-col .y-num { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; color: var(--brass); font-weight: 600; }
.year-col .y-note { font-size: 0.9rem; color: var(--ink-soft); margin: 0.5rem 0 0.8rem; }
.next-year { border-style: dashed; background: transparent; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--ink-soft); min-height: 200px; }

/* Recipes */
.lineage { display: flex; flex-direction: column; gap: 0; margin: 1.2rem 0 1.6rem; }
.lineage-step { display: flex; gap: 0.9rem; }
.lineage-line { display: flex; flex-direction: column; align-items: center; }
.lineage-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--brass); margin-top: 0.45rem; }
.lineage-bar { width: 2px; flex: 1; background: var(--border); }
.lineage-step:last-child .lineage-bar { display: none; }
.lineage-body { padding-bottom: 1.1rem; }
.recipe-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.4rem; }
@media (max-width: 700px) { .recipe-cols { grid-template-columns: 1fr; } }
.card-scan { background: repeating-linear-gradient(0deg, #fdf9ee, #fdf9ee 26px, #f0e7d2 27px); border: 1px solid var(--border); border-radius: 6px; padding: 1.1rem 1.3rem; font-family: 'Cormorant Garamond', serif; font-style: italic; color: #6b5d3f; transform: rotate(-1deg); }

/* Quotes */
.quote-wall { columns: 2; column-gap: 1.2rem; }
@media (max-width: 700px) { .quote-wall { columns: 1; } }
.quote-card { break-inside: avoid; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1.3rem 1.5rem; margin-bottom: 1.2rem; }
.quote-card .q-text { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; font-style: italic; color: var(--green-deep); line-height: 1.35; }
.quote-card .q-who { margin-top: 0.7rem; font-size: 0.83rem; color: var(--brass); letter-spacing: 0.08em; text-transform: uppercase; }

/* Vault */
.vault-item { background: var(--green-deep); color: var(--cream); border-radius: 10px; padding: 1.5rem 1.7rem; margin-bottom: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.vault-item .v-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; }
.vault-item .v-meta { font-size: 0.83rem; color: var(--brass-light); margin-top: 0.25rem; }
.countdown { text-align: right; }
.countdown .c-num { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; color: var(--brass-light); }
.countdown .c-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #9aa694; }
.vault-note { color: var(--ink-soft); font-size: 0.9rem; margin-top: 1.4rem; }

/* Tribute */
.tribute-page .person-hero { background: var(--tribute); border-radius: 12px; padding: 1.6rem; }
.memory-wall .story { background: var(--tribute); border-color: #d7dcd0; }
.fav-list { list-style: none; }
.fav-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.fav-list li:last-child { border-bottom: none; }
.fav-list li::before { content: '✦ '; color: var(--brass); }

/* Galleries */
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }
.chip { border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 0.3rem 0.95rem; font-size: 0.83rem; cursor: pointer; font-family: 'Jost', sans-serif; }
.chip.on { background: var(--green); color: var(--cream); border-color: var(--green); }
.gallery-card { text-decoration: none; color: var(--ink); }
.gallery-card .g-count { font-size: 0.78rem; color: var(--brass); letter-spacing: 0.1em; text-transform: uppercase; }

/* Footer */
.site-footer { background: var(--green-deep); color: #9aa694; text-align: center; padding: 2rem 1rem; font-size: 0.85rem; }
.site-footer .footer-fine { font-size: 0.72rem; margin-top: 0.5rem; opacity: 0.7; }
