/* ============================================================
   boandsam.com — clean & modern family tribute
   ============================================================ */

:root {
  --bg:        #fbf8f5;   /* warm off-white page */
  --surface:   #ffffff;
  --ink:       #2c2926;   /* near-black, warm */
  --muted:     #837a70;   /* warm gray for secondary text */
  --accent:    #a8755b;   /* terracotta / clay */
  --accent-2:  #7c9070;   /* soft sage (used sparingly) */
  --soft:      #efe7df;   /* soft panel / placeholder */
  --line:      #ece4da;   /* hairline borders */
  --shadow:    0 10px 30px rgba(44, 41, 38, 0.08);
  --radius:    14px;
  --maxw:      1080px;
  --serif:     "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:      "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 245, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.nav__brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.nav__brand .amp { color: var(--accent); font-style: italic; }
.nav__links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); font-size: 0.95rem; letter-spacing: 0.02em; }
.nav__links a:hover { color: var(--accent); text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid; place-items: center;
  text-align: center;
  padding: 80px 24px;
  /* To use a photo, replace the gradient with:
     background: linear-gradient(rgba(44,41,38,.35), rgba(44,41,38,.35)),
                 url("/assets/hero.jpg") center/cover no-repeat;
     and set .hero, .hero * color to #fff. */
  background:
    radial-gradient(1200px 500px at 50% -10%, #f6e9e0 0%, transparent 60%),
    linear-gradient(160deg, #fbf8f5 0%, #f1e7df 100%);
}
.hero__kicker {
  text-transform: uppercase; letter-spacing: 0.35em; font-size: 0.8rem;
  color: var(--accent); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(3rem, 9vw, 6rem); margin: 0; }
.hero h1 .amp { font-style: italic; color: var(--accent); }
.hero__tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 3vw, 1.7rem); color: var(--muted); margin-top: 12px; }
.hero__cue { margin-top: 40px; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; }

/* ---------- generic section ---------- */
.section { padding: 88px 0; }
.section:nth-child(even) { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__eyebrow { text-transform: uppercase; letter-spacing: 0.25em; font-size: 0.78rem; color: var(--accent); margin: 0 0 10px; }
.section__title { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 8px; }
.section__lead { color: var(--muted); max-width: 60ch; font-size: 1.05rem; }

/* two-column story rows: text + photo, alternating */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 40px; }
.story + .story { margin-top: 64px; }
.story--reverse .story__media { order: -1; }
.story__body h3 { font-size: 1.6rem; margin: 0 0 10px; }
.story__body p { color: #4a443e; margin: 0 0 14px; }

/* photo frame + graceful placeholder (looks intentional before real photos) */
.frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  border: 1px solid var(--line);
}
.frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.frame--placeholder {
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, #f3ebe3 0 14px, #efe7df 14px 28px);
  color: var(--muted);
}
.frame--placeholder span { font-size: 0.9rem; letter-spacing: 0.05em; }

/* ---------- galleries (dogs / photo grids) ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 36px; }
.gallery img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 10px; box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.gallery img:hover { transform: scale(1.03); }

/* ---------- countdowns ---------- */
.cd-group { margin-top: 44px; }
.cd-group:first-of-type { margin-top: 32px; }
.cd-group__title { font-size: 1.4rem; margin: 0 0 18px; color: var(--ink); }
.cd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.cd-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 18px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cd-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(44,41,38,.12); }
.cd-card[data-category="holiday"]     { border-top-color: var(--accent); }
.cd-card[data-category="anniversary"] { border-top-color: #c08497; }
.cd-card[data-category="birthday"]    { border-top-color: var(--accent-2); }
.cd-card[data-category="dog"]         { border-top-color: #d2a24c; }
.cd-card--today { outline: 2px solid var(--accent); outline-offset: 2px; }
.cd-card__emoji { font-size: 2.2rem; line-height: 1; }
.cd-card__name { font-size: 1.12rem; margin: 10px 0 4px; }
.cd-card__date { color: var(--muted); font-size: 0.85rem; }
.cd-card__days { margin-top: 10px; font-size: 1rem; color: var(--ink); }
.cd-card__days strong { font-size: 1.5rem; color: var(--accent); font-family: var(--serif); }
.cd-card__clock {
  margin-top: 8px; font-size: 0.82rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.cd-error { color: var(--muted); background: var(--soft); padding: 18px; border-radius: var(--radius); }

/* ---------- footer ---------- */
.footer {
  text-align: center; padding: 56px 24px 64px;
  color: var(--muted); font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.footer .heart { color: var(--accent); }
.footer__retro { display: inline-block; margin-top: 10px; font-size: 0.8rem; opacity: 0.7; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav__links { display: none; }            /* keep brand only on small screens */
  .story { grid-template-columns: 1fr; gap: 22px; }
  .story--reverse .story__media { order: 0; }
  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img, .cd-card { transition: none; }
}
