/* ── Family Wisdom — warm family-journal design ─────────────────────────── */

:root {
  --paper: #f6f3ec;          /* page background */
  --card: #fffefa;           /* card surface */
  --ink: #2a2520;            /* main text */
  --ink-soft: #857b6e;       /* secondary text */
  --line: #e6dfd2;           /* borders */
  --accent: #47684f;         /* deep sage green */
  --accent-hover: #38543f;
  --accent-soft: #eef1ea;
  --gold: #c99a3f;
  --shadow: rgba(60, 50, 30, 0.07);
  --shadow-md: rgba(60, 50, 30, 0.16);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Tag palette (soft pastels on warm paper) */
  --tag-blue-bg: #dbe7ef;   --tag-blue-fg: #22455c;
  --tag-green-bg: #dcead9;  --tag-green-fg: #29472f;
  --tag-pink-bg: #f3dfe6;   --tag-pink-fg: #59303f;
  --tag-yellow-bg: #f7ebcd; --tag-yellow-fg: #58421c;
  --tag-red-bg: #f6ddd7;    --tag-red-fg: #642a20;
  --tag-purple-bg: #e7dfee; --tag-purple-fg: #46315c;
  --tag-orange-bg: #f7e3cd; --tag-orange-fg: #5c3a17;
  --tag-brown-bg: #ece0d6;  --tag-brown-fg: #4b3527;
  --tag-gray-bg: #e7e3da;   --tag-gray-fg: #423d35;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
button { font-family: inherit; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-soft); }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: rgba(0,0,0,0.05); color: var(--ink); }
.btn-ghost.active { background: var(--tag-yellow-bg); color: var(--tag-yellow-fg); }
.btn-small { padding: 5px 12px; font-size: 13.5px; }
.btn-large { padding: 12px 24px; font-size: 16px; }
.btn-danger { color: #96412f; }
.btn-danger:hover { background: var(--tag-red-bg); }

/* ── Auth screen ── */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1200px 500px at 50% -10%, #ece5d4, transparent),
    var(--paper);
  padding: 24px;
}
.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 36px var(--shadow-md);
  padding: 48px 40px;
  max-width: 430px;
  text-align: center;
}
.auth-emoji { font-size: 54px; }
.auth-card h1 { margin: 12px 0 8px; font-size: 32px; font-family: var(--serif); font-weight: 600; }
.auth-card p { color: var(--ink-soft); margin: 0 0 24px; }
.btn-google {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid #d8d2c4;
  box-shadow: 0 1px 3px var(--shadow);
}
.auth-note { font-size: 13px; margin-top: 16px !important; }
.auth-error { color: #96412f; font-size: 14px; margin-top: 12px !important; }

/* ── Demo banner ── */
.demo-banner {
  background: var(--tag-yellow-bg);
  color: var(--tag-yellow-fg);
  text-align: center;
  padding: 8px 16px;
  font-size: 13.5px;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(140deg, #4c6b53 0%, #33503c 55%, #24392b 100%);
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(18, 24, 18, 0.42) 0%, rgba(18, 24, 18, 0.12) 40%, rgba(14, 20, 14, 0.62) 100%);
}
.hero-inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 24px 30px;
  color: #fff;
}
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-brand {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.4px;
  opacity: 0.95;
}
.hero-top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-hero-chip {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(20, 26, 20, 0.25);
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-hero-chip:hover { background: rgba(20, 26, 20, 0.45); }
.btn-hero-chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #2c2108;
}
.hero-user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  padding: 4px 12px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(20, 26, 20, 0.25);
  backdrop-filter: blur(6px);
}
.hero-title-block {
  margin-top: auto;
  text-align: center;
  padding: 34px 0 6px;
}
.hero-title-block h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 52px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.hero-sub {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  opacity: 0.92;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.hero-photo-btn {
  position: absolute;
  right: 24px;
  bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(20, 26, 20, 0.35);
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s, background 0.15s;
}
.hero-photo-btn:hover { opacity: 1; background: rgba(20, 26, 20, 0.55); }

/* ── Avatars & tags ── */
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--sans);
  flex-shrink: 0;
}
.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.tag-blue   { background: var(--tag-blue-bg);   color: var(--tag-blue-fg); }
.tag-green  { background: var(--tag-green-bg);  color: var(--tag-green-fg); }
.tag-pink   { background: var(--tag-pink-bg);   color: var(--tag-pink-fg); }
.tag-yellow { background: var(--tag-yellow-bg); color: var(--tag-yellow-fg); }
.tag-red    { background: var(--tag-red-bg);    color: var(--tag-red-fg); }
.tag-purple { background: var(--tag-purple-bg); color: var(--tag-purple-fg); }
.tag-orange { background: var(--tag-orange-bg); color: var(--tag-orange-fg); }
.tag-brown  { background: var(--tag-brown-bg);  color: var(--tag-brown-fg); }
.tag-gray   { background: var(--tag-gray-bg);   color: var(--tag-gray-fg); }

.avatar-blue   { background: var(--tag-blue-bg);   color: var(--tag-blue-fg); }
.avatar-green  { background: var(--tag-green-bg);  color: var(--tag-green-fg); }
.avatar-pink   { background: var(--tag-pink-bg);   color: var(--tag-pink-fg); }
.avatar-yellow { background: var(--tag-yellow-bg); color: var(--tag-yellow-fg); }
.avatar-red    { background: var(--tag-red-bg);    color: var(--tag-red-fg); }
.avatar-purple { background: var(--tag-purple-bg); color: var(--tag-purple-fg); }
.avatar-orange { background: var(--tag-orange-bg); color: var(--tag-orange-fg); }
.avatar-brown  { background: var(--tag-brown-bg);  color: var(--tag-brown-fg); }
.avatar-gray   { background: var(--tag-gray-bg);   color: var(--tag-gray-fg); }

.fg-blue   { color: var(--tag-blue-fg); }
.fg-green  { color: var(--tag-green-fg); }
.fg-pink   { color: var(--tag-pink-fg); }
.fg-yellow { color: var(--tag-yellow-fg); }
.fg-red    { color: var(--tag-red-fg); }
.fg-purple { color: var(--tag-purple-fg); }
.fg-orange { color: var(--tag-orange-fg); }
.fg-brown  { color: var(--tag-brown-fg); }
.fg-gray   { color: var(--tag-gray-fg); }

/* ── Toolbar ── */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 243, 236, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.toolbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.view-tabs { display: flex; gap: 18px; flex-wrap: wrap; }
.view-tab {
  border: none;
  background: transparent;
  padding: 10px 2px 8px;
  font-size: 15px;
  font-family: var(--serif);
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.view-tab:hover { color: var(--ink); }
.view-tab.active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--accent);
}
.toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search-input {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-family: inherit;
  width: 170px;
  color: var(--ink);
}
.search-input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }

.filter-row {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-row:empty { display: none; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ── Main content ── */
.main-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 24px 60px;
  min-height: 50vh;
}

/* Pinned strip */
.pinned-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fbf6e7;
  border: 1px solid #eadfbc;
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.pinned-strip:hover { box-shadow: 0 3px 12px var(--shadow); }
.pinned-strip .pin-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
}
.pinned-strip .pin-hint {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 13px;
  white-space: nowrap;
}

/* Featured (latest) card */
.featured-card {
  display: flex;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 2px 10px var(--shadow);
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 22px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.featured-card:hover { box-shadow: 0 8px 26px var(--shadow-md); transform: translateY(-1px); }
.featured-body { padding: 28px 32px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.featured-photo { width: 38%; min-height: 240px; object-fit: cover; flex-shrink: 0; }
.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.eyebrow .latest-label { color: var(--gold); }
.featured-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.2;
}
.featured-excerpt {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.wisdom-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 1px 4px var(--shadow);
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.wisdom-card:hover { box-shadow: 0 6px 20px var(--shadow-md); transform: translateY(-2px); }
.card-cover { width: 100%; height: 160px; object-fit: cover; display: block; }
.card-body { padding: 18px 20px 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-title-row { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; }
.card-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}
.fav-star {
  border: none; background: none; cursor: pointer;
  font-size: 16px; line-height: 1; padding: 2px;
  filter: grayscale(1); opacity: 0.35;
  transition: filter 0.15s, opacity 0.15s, transform 0.1s;
  flex-shrink: 0;
}
.fav-star:hover { opacity: 0.9; transform: scale(1.15); }
.fav-star.on { filter: none; opacity: 1; }
.card-excerpt {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-excerpt.quotey {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15.5px;
  color: var(--ink);
}
.card-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f0ebdf;
  color: var(--ink-soft);
  font-size: 12.5px;
}
.card-meta .avatar { width: 24px; height: 24px; font-size: 10.5px; }
.card-meta .meta-name { font-weight: 600; color: var(--ink); }

/* ── Group sections (By Person / By Topic) ── */
.group-section { margin-bottom: 40px; }
.group-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}
.group-heading .avatar { width: 38px; height: 38px; font-size: 15px; }
.group-heading .count { color: var(--ink-soft); font-size: 13.5px; font-weight: 400; font-family: var(--sans); }

/* ── Timeline ── */
.timeline { max-width: 700px; margin: 0 auto; }
.timeline-month {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  margin: 30px 0 6px;
}
.timeline-month:first-child { margin-top: 4px; }
.timeline-items { border-left: 2px solid var(--line); margin-left: 7px; }
.timeline-row {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 8px 10px 26px;
  border-radius: 10px;
  cursor: pointer;
}
.timeline-row:hover { background: rgba(0, 0, 0, 0.035); }
.timeline-row::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--paper);
}
.timeline-row .tl-date { color: var(--ink-soft); font-size: 12.5px; white-space: nowrap; width: 58px; flex-shrink: 0; }
.timeline-row .tl-title { font-family: var(--serif); font-weight: 600; font-size: 16.5px; }
.timeline-row .tl-author { color: var(--ink-soft); font-size: 13px; margin-left: auto; white-space: nowrap; }

.empty-state {
  text-align: center;
  color: var(--ink-soft);
  padding: 70px 20px;
}
.empty-state .big { font-size: 44px; margin-bottom: 10px; }

/* ── Modals ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 25, 15, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  z-index: 100;
}
.modal {
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(30, 25, 15, 0.35);
  width: 100%;
  max-width: 660px;
  margin-bottom: 40px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 0;
}
.modal-header h2 { margin: 0; font-size: 23px; font-family: var(--serif); font-weight: 600; }
.detail-header { justify-content: flex-end; padding-bottom: 0; }
.modal-close {
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.modal-close:hover { background: rgba(0, 0, 0, 0.1); color: var(--ink); }
.modal-body { padding: 8px 26px 22px; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 20px;
  border-top: 1px solid var(--line);
}

/* ── Composer ── */
.posting-as {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  margin: 10px 0 4px;
}
.field-label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin: 22px 0 6px;
}
.required { color: #96412f; }
.field-hint { color: var(--ink-soft); font-size: 13px; margin: -2px 0 8px; }
.field-hint-inline { color: var(--ink-soft); font-weight: 400; font-size: 13px; }

.input-title, .input-body {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
}
.input-title { font-family: var(--serif); font-size: 18px; }
.input-title:focus, .input-body:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: transparent;
}
.input-body {
  resize: vertical;
  line-height: 1.65;
  font-family: var(--serif);
  font-size: 16.5px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
}

.format-toolbar {
  display: flex;
  gap: 2px;
  background: #f1ede3;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 6px 8px;
}
.fmt-btn {
  border: none;
  background: transparent;
  border-radius: 7px;
  padding: 5px 11px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.fmt-btn:hover { background: rgba(0, 0, 0, 0.07); }
.fmt-btn strong { font-weight: 800; }
.fmt-italic em { font-family: var(--serif); }

.pill-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.65;
  transition: border-color 0.1s, opacity 0.1s, transform 0.05s;
}
.pill:hover { opacity: 1; }
.pill:active { transform: scale(0.97); }
.pill.selected { border-color: currentColor; font-weight: 600; opacity: 1; }

.photo-upload { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.photo-previews { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-preview { position: relative; }
.photo-preview img {
  width: 96px; height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}
.photo-remove {
  position: absolute;
  top: -7px; right: -7px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  line-height: 1;
}

/* ── Post detail ── */
.post-detail .modal-body { padding-bottom: 10px; }
.detail-eyebrow { margin-bottom: 6px; }
.detail-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  margin: 2px 0 14px;
  line-height: 1.2;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 13.5px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.detail-body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
}
.detail-body h1 { font-size: 24px; margin: 24px 0 8px; font-weight: 600; }
.detail-body h2 { font-size: 20px; margin: 20px 0 6px; font-weight: 600; }
.detail-body blockquote {
  margin: 14px 0;
  padding: 6px 18px;
  border-left: 3px solid var(--gold);
  background: #faf6ea;
  border-radius: 0 8px 8px 0;
}
.detail-body ul, .detail-body ol { padding-left: 26px; }
.detail-body li { margin: 5px 0; }
.detail-body hr { border: none; border-top: 1px solid var(--line); margin: 22px 0; }
.detail-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 18px; }
.detail-photos img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
  cursor: pointer;
}
.detail-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px 18px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.detail-footer .btn-danger { margin-left: auto; }

.help-body blockquote {
  margin: 14px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--gold);
  background: #faf6ea;
  border-radius: 0 8px 8px 0;
}

/* ── Footer / toast ── */
.site-footer {
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  padding: 22px;
  font-family: var(--serif);
  font-style: italic;
}
.site-footer a { color: var(--ink-soft); }

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fdfaf2;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 14.5px;
  box-shadow: 0 8px 24px var(--shadow-md);
  z-index: 200;
  animation: toast-in 0.25s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ── Mobile ── */
@media (max-width: 720px) {
  .hero { min-height: 250px; }
  .hero-title-block h1 { font-size: 36px; }
  .hero-sub { font-size: 15px; }
  .hero-photo-btn { position: static; margin: 14px auto 0; display: block; }
  .featured-card { flex-direction: column-reverse; }
  .featured-photo { width: 100%; min-height: 180px; }
  .featured-body { padding: 20px 22px; }
  .featured-title { font-size: 24px; }
  .search-input { width: 120px; }
  .modal-overlay { padding: 12px 8px; }
  .card-grid { grid-template-columns: 1fr; }
  .view-tabs { gap: 12px; }
  .timeline-row .tl-author { display: none; }
}
