
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Nunito+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --cream: #FFF9F0;
  --sage: #607A63;
  --sky: #A8C5D6;
  --sun: #F4C95D;
  --terra: #D98262;
  --charcoal: #30352F;
  --grey: #77756F;
  --card: #FFFCF7;
  --line: rgba(96,122,99,.12);
  --shadow: 0 14px 38px rgba(48,53,47,.09);
  --radius-lg: 26px;
  --radius-md: 18px;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

/* =========================
   STICKY HEADER
   Mobile: logo on row 1, all six links visible in a 3 x 2 grid.
   Desktop: logo and links on one row.
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,249,240,.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 5px 18px rgba(48,53,47,.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  padding-top: 12px;
  padding-bottom: 10px;
}

.brand {
  display: inline-block;
  font-family: "DM Serif Display", serif;
  font-size: 2.15rem;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--sage);
}

.brand span { color: var(--terra); }

.site-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 8px;
  margin-top: 10px;
}

.site-nav a {
  min-width: 0;
  padding: 7px 5px;
  border-radius: 999px;
  text-align: center;
  font-size: .82rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--charcoal);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.site-nav a:hover {
  color: var(--sage);
  background: rgba(96,122,99,.08);
}

.site-nav a[aria-current="page"] {
  color: white;
  background: var(--sage);
}

/* =========================
   TYPOGRAPHY
========================= */

.eyebrow {
  margin-bottom: 10px;
  color: var(--terra);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0 0 18px;
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  line-height: 1.06;
}

h1 {
  font-size: clamp(3rem, 12vw, 5.8rem);
  letter-spacing: -.045em;
}

h2 {
  font-size: clamp(2.15rem, 8vw, 3.9rem);
  letter-spacing: -.035em;
}

h3 { font-size: 1.55rem; }

p { margin: 0 0 16px; }

.lead {
  max-width: 700px;
  color: var(--grey);
  font-size: 1.08rem;
}

.tagline {
  margin: 14px 0 20px;
  color: var(--sage);
  font-weight: 800;
}

/* =========================
   BUTTONS / LINKS
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--sage);
  color: white;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(96,122,99,.2);
}

.text-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--sage);
  font-weight: 800;
}

.text-link:hover { text-decoration: underline; }

/* =========================
   LAYOUT / SECTIONS
========================= */

.hero { padding: 34px 0 72px; }

.hero-grid,
.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

.section { padding: 70px 0; }
.section.soft { background: rgba(168,197,214,.17); }
.section.sun { background: rgba(244,201,93,.15); }
.section.terra { background: rgba(217,130,98,.10); }

.section-copy p { color: var(--grey); }

.page-hero {
  padding: 54px 0 30px;
}

/* =========================
   PHOTOS
========================= */

.hero-photo,
.media,
.photo-placeholder,
.story-card > img,
.story-card .photo-placeholder,
.memory-item .photo-placeholder,
.memory-item > img {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ece9e2;
  box-shadow: var(--shadow);
}

.hero-photo {
  height: clamp(300px, 78vw, 520px);
  object-fit: cover;
  object-position: center;
}

.media,
.photo-placeholder {
  height: 280px;
}

.media img,
.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split > img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.story-card > img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

/* GIFs should keep moving but use the same neat crop */
img[src$=".gif"] {
  object-fit: cover;
}

/* =========================
   CARDS
========================= */

.cards,
.page-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.card {
  padding: 23px;
  border: 1px solid rgba(96,122,99,.07);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow);
}

.card .icon {
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.card p,
.story-card p { color: var(--grey); }

.story-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.story-card .photo-placeholder {
  height: 240px;
  border-radius: 0;
  box-shadow: none;
}

.story-card .content { padding: 23px; }

/* =========================
   CHIPS / FAVOURITES
========================= */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip {
  padding: 9px 13px;
  border: 1px solid rgba(96,122,99,.11);
  border-radius: 999px;
  background: var(--card);
  font-size: .9rem;
  font-weight: 800;
}

.favourites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.favourite {
  display: flex;
  min-height: 125px;
  padding: 20px 16px;
  border-radius: 22px;
  flex-direction: column;
  justify-content: space-between;
  font-weight: 800;
}

.favourite:nth-child(1) { background: rgba(244,201,93,.32); }
.favourite:nth-child(2) { background: rgba(168,197,214,.35); }
.favourite:nth-child(3) { background: rgba(217,130,98,.24); }
.favourite:nth-child(4) { background: rgba(96,122,99,.18); }

.favourite .emoji { font-size: 2rem; }

/* =========================
   SCRAPBOOK
========================= */

.scrapbook {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.polaroid {
  padding: 11px 11px 20px;
  background: white;
  box-shadow: 0 12px 28px rgba(48,53,47,.11);
  transform: rotate(-1deg);
}

.polaroid:nth-child(2) { transform: rotate(1deg); }

.polaroid .photo-placeholder {
  height: 210px;
  min-height: 0;
  border-radius: 8px;
  box-shadow: none;
}

.polaroid p {
  margin: 11px 4px 0;
  font-family: "DM Serif Display", serif;
  font-size: 1.15rem;
}

/* =========================
   MEMORIES
========================= */

.memory-list {
  display: grid;
  gap: 22px;
}

.memory-item {
  display: grid;
  gap: 18px;
  padding: 17px;
  align-items: center;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.memory-item .photo-placeholder {
  height: 220px;
  min-height: 0;
  box-shadow: none;
}

.memory-item p { color: var(--grey); }

/* =========================
   QUOTE / FOOTER
========================= */

.quote {
  max-width: 780px;
  margin-inline: auto;
  padding: 24px 0;
  text-align: center;
}

.quote h2 { margin-bottom: 10px; }
.quote .lead { margin-inline: auto; }

.footer {
  padding: 50px 0 30px;
  background: var(--sage);
  color: #fffdf8;
}

.footer .brand { color: #fffdf8; }

.footer-grid {
  display: grid;
  gap: 22px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-weight: 700;
}

.footer small { opacity: .82; }

/* =========================
   REVEAL
========================= */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Do not hide content when JS is unavailable */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* =========================
   TABLET / DESKTOP
========================= */

@media (min-width: 760px) {
  .container {
    width: min(calc(100% - 56px), var(--max));
  }

  .header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    width: auto;
    margin-top: 0;
  }

  .site-nav a {
    padding: 8px 12px;
    font-size: .92rem;
  }

  .hero { padding: 68px 0 104px; }

  .hero-grid {
    grid-template-columns: .92fr 1.08fr;
    gap: 58px;
  }

  .hero-photo {
    height: 500px;
  }

  .split {
    grid-template-columns: .82fr 1.18fr;
    gap: 52px;
  }

  .split > img,
  .media,
  .photo-placeholder {
    height: 330px;
  }

  .cards.two,
  .page-grid.two {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .cards.three,
  .page-grid.three {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

  .favourites-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .scrapbook {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .polaroid .photo-placeholder {
    height: 230px;
  }

  .memory-item {
    grid-template-columns: .82fr 1.18fr;
    padding: 20px;
  }

  .memory-item .photo-placeholder {
    height: 240px;
  }

  .memory-item:nth-child(even) .photo-placeholder {
    order: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}

@media (min-width: 1040px) {
  .site-nav a {
    padding-inline: 14px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

/* Very small phones */
@media (max-width: 370px) {
  .site-nav {
    gap: 3px 5px;
  }

  .site-nav a {
    padding: 7px 3px;
    font-size: .76rem;
  }

  .brand { font-size: 1.95rem; }

  h1 { font-size: 2.85rem; }
}
