/* Luna Veras, lunaveras.com
   A sunny, scrapbook site. No pamphlet layout. */

@font-face {
  font-family: "Pacifico";
  src: url("assets/fonts/pacifico.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/fredoka.woff") format("woff");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Patrick Hand";
  src: url("assets/fonts/patrick-hand.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito.woff") format("woff");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-italic.woff") format("woff");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --cream: #fff6ea;
  --paper: #fffdf8;
  --peach: #ffb089;
  --coral: #ff6f7a;
  --mango: #ffc94a;
  --pink: #ff8fab;
  --teal: #1aa7a5;
  --teal-deep: #0e6e6c;
  --leaf: #3db36b;
  --ink: #3a2a24;
  --ink-soft: #6a534a;
  --white: #fffefb;
  --shadow: 0 12px 30px rgba(58, 42, 36, 0.16);
  --font-script: "Pacifico", "Segoe Script", cursive;
  --font-display: "Fredoka", "Nunito", sans-serif;
  --font-hand: "Patrick Hand", "Comic Sans MS", cursive;
  --font-body: "Nunito", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

html, body, main {
  overflow-x: clip;
  max-width: 100%;
}

.hero,
.site-footer,
.heroes,
.band {
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 201, 74, 0.18), transparent 36%),
    radial-gradient(circle at 90% 70%, rgba(255, 143, 171, 0.16), transparent 40%),
    var(--cream);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover { color: var(--coral); }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
}

.skip-link:focus { top: 0.7rem; }

.wrap {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 0.7rem 0 0;
}

.header-inner {
  width: min(72rem, calc(100% - 1.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-script);
  font-size: 1.85rem;
  color: var(--white);
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  line-height: 1;
}

.wordmark:hover { color: var(--mango); }

.nav-toggle {
  width: 2.7rem;
  height: 2.7rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 0;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 3px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  right: 0.75rem;
  top: 4.1rem;
  background: var(--paper);
  border-radius: 1.4rem;
  padding: 0.7rem 1.1rem 0.9rem;
  box-shadow: var(--shadow);
  min-width: 12rem;
}

.site-nav.is-open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.28rem 0.15rem;
}

.site-nav a:hover { color: var(--teal-deep); }

/* Hero, full bleed */

.hero {
  position: relative;
  min-height: 100svh;
  color: var(--white);
  isolation: isolate;
}

.hero-photo,
.hero-photo picture,
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-photo img {
  object-fit: cover;
  object-position: 68% 18%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(40, 22, 16, 0.72) 0%, rgba(40, 22, 16, 0.12) 42%, rgba(40, 22, 16, 0.18) 100%);
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 1.15rem 1.6rem;
  width: min(72rem, 100%);
  margin-inline: auto;
}

.hero-hello {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  margin: 0 0 0.1rem;
}

.hero-title {
  margin: 0;
  line-height: 0.8;
}

.hero-script {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(4.6rem, 22vw, 8.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.hero-display {
  display: block;
  font-family: var(--font-display);
  font-weight: 620;
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.hero-tag {
  font-family: var(--font-hand);
  font-size: clamp(1.25rem, 4.4vw, 1.7rem);
  margin: 0.55rem 0 1.1rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.82rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.08);
}

.btn:hover { transform: translateY(-1px); }

.btn-spotify { background: var(--teal); color: var(--white); }
.btn-spotify:hover { background: var(--teal-deep); color: var(--white); }
.btn-apple { background: var(--mango); color: var(--ink); }
.btn-apple:hover { background: #ffd56a; color: var(--ink); }
.btn-coral { background: var(--coral); color: var(--white); }
.btn-coral:hover { background: #e85a66; color: var(--white); }

/* Shared rhythm */

.band {
  padding: 3.2rem 0;
  position: relative;
}

.kicker {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--coral);
  margin: 0;
  line-height: 1;
}

.band h2 {
  font-family: var(--font-display);
  font-weight: 620;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  margin: 0.15rem 0 0.7rem;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

.tile-strip {
  display: flex;
  height: 0.62rem;
  width: 100%;
  overflow: hidden;
}

.tile-strip span { display: block; height: 100%; flex: 0 0 auto; }

/* Listen */

.listen {
  background:
    linear-gradient(180deg, rgba(255, 176, 137, 0.2), rgba(255, 246, 234, 0) 40%),
    var(--cream);
}

.listen-spread {
  display: grid;
  gap: 1.6rem;
}

.playlist {
  position: relative;
  background-color: #fffaf1;
  background-image: repeating-linear-gradient(
    #fffaf1 0,
    #fffaf1 1.75rem,
    #eadfce 1.75rem,
    #eadfce calc(1.75rem + 1px)
  );
  border-radius: 0.3rem 1.1rem 0.4rem 0.35rem;
  padding: 1.5rem 1.1rem 1.2rem 2.4rem;
  box-shadow: var(--shadow);
  transform: rotate(0.8deg);
}

.playlist::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.45rem;
  width: 2px;
  background: rgba(255, 111, 122, 0.45);
}

.playlist-title {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  margin: 0 0 0.2rem;
  color: var(--ink-soft);
}

.playlist ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.playlist li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  line-height: 1.75rem;
  min-height: 1.75rem;
}

.playlist .num { color: var(--teal-deep); }
.playlist .note { color: var(--ink-soft); font-size: 1.1rem; }
.credit {
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 1rem 0 1.1rem;
}

.ep-hidden { display: none !important; }


.about-photos {
  display: grid;
  gap: 1.1rem;
  align-items: start;
}

/* Mid-page full-bleed Rio band */

.photo-band {
  position: relative;
  min-height: 68vh;
  color: var(--white);
  isolation: isolate;
  overflow-x: clip;
  max-width: 100%;
}

.photo-band-pic,
.photo-band-pic picture,
.photo-band-pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
}

.photo-band-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(40, 22, 16, 0.62) 0%, rgba(40, 22, 16, 0.08) 58%);
  z-index: 1;
}

.photo-band-copy {
  position: relative;
  z-index: 2;
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 1.15rem 2rem;
  width: min(72rem, 100%);
  margin-inline: auto;
}

.photo-band-copy .kicker { color: var(--mango); }

.photo-band-copy h2 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.2rem, 8vw, 4.1rem);
  margin: 0.1rem 0 0.4rem;
  line-height: 1;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.photo-band-copy p {
  margin: 0;
  max-width: 28rem;
  font-size: 1.05rem;
}

/* Polaroids */

.polaroid {
  position: relative;
  background: #fffef8;
  padding: 0.55rem 0.55rem 0.35rem;
  box-shadow: var(--shadow);
  border-radius: 0.2rem 0.2rem 0.35rem 0.35rem;
  display: block;
  width: 100%;
}

.polaroid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #efe4d4;
}

.polaroid figcaption,
.polaroid .caption {
  font-family: var(--font-hand);
  font-size: 1.22rem;
  text-align: center;
  padding: 0.55rem 0.3rem 0.65rem;
  color: var(--ink);
}

.tape {
  position: absolute;
  top: -0.55rem;
  left: 50%;
  width: 4.4rem;
  height: 1.15rem;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 201, 74, 0.62);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
  z-index: 2;
}

.tape.coral { background: rgba(255, 111, 122, 0.55); transform: translateX(-50%) rotate(4deg); }
.tape.teal { background: rgba(26, 167, 165, 0.45); }
.tape.pink { background: rgba(255, 143, 171, 0.55); transform: translateX(-50%) rotate(2deg); }

.tilt-l { transform: rotate(-2.2deg); }
.tilt-r { transform: rotate(2deg); }
.tilt-s { transform: rotate(-1deg); }

/* About */

.about-spread {
  display: grid;
  gap: 1.6rem;
}

.about p { margin: 0 0 0.85rem; }
.about p:last-child { margin-bottom: 0; }

.honest {
  font-size: 0.98rem;
  color: var(--ink-soft);
}

/* Heroes, record shelf */

.heroes {
  background:
    url("assets/azulejo.svg") repeat,
    #e7f0f4;
  background-size: 120px 120px, auto;
  padding: 2.4rem 0 2.8rem;
}

.heroes-inner {
  background: rgba(255, 246, 234, 0.94);
  border-radius: 1.8rem;
  padding: 1.3rem 0 1.5rem;
}

.heroes-inner .wrap-pad {
  padding: 0 1rem;
}

.shelf {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.2rem 1rem 1.4rem 1rem;
  padding-right: 1.4rem;
  -webkit-overflow-scrolling: touch;
}

.shelf::-webkit-scrollbar { height: 6px; }
.shelf::-webkit-scrollbar-thumb { background: var(--peach); border-radius: 99px; }

.sleeve {
  flex: 0 0 min(78vw, 16.5rem);
  scroll-snap-align: start;
  background: var(--paper);
  border-radius: 0.25rem 0.7rem 0.25rem 0.25rem;
  padding: 1.1rem 1rem 1.15rem;
  box-shadow: var(--shadow);
  position: relative;
  min-height: 15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sleeve h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 1.1rem 0 0.45rem;
  line-height: 1.1;
}

.sleeve p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.sleeve-top {
  height: 0.7rem;
  margin: -1.1rem -1rem 0;
  border-radius: 0.25rem 0.7rem 0 0;
}

.s1 .sleeve-top { background: #2b241c; }
.s2 .sleeve-top { background: var(--teal); }
.s3 .sleeve-top { background: var(--mango); }
.s4 .sleeve-top { background: var(--coral); }
.s5 .sleeve-top { background: var(--leaf); }
.s6 .sleeve-top { background: var(--peach); }

.s1 { transform: rotate(-1.4deg); }
.s2 { transform: rotate(1.2deg); }
.s3 { transform: rotate(-0.8deg); }
.s4 { transform: rotate(1.6deg); }
.s5 { transform: rotate(-1.1deg); }
.s6 { transform: rotate(0.9deg); }

/* Celebrate diary */

.diary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 0.7rem;
  align-items: start;
}

.diary .polaroid:nth-child(odd) { transform: rotate(-2deg); }
.diary .polaroid:nth-child(even) { transform: rotate(2.2deg); margin-top: 1.4rem; }

.diary .word-card { grid-column: 1 / -1; }

.word-card {
  background: var(--paper);
  border-radius: 1.4rem;
  padding: 1.1rem 1rem 1.2rem;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
  border: 3px solid var(--mango);
  position: relative;
}

.word-card .wk {
  font-family: var(--font-hand);
  color: var(--coral);
  margin: 0;
  font-size: 1.15rem;
}

.word-card h3 {
  font-family: var(--font-script);
  font-size: 2.4rem;
  margin: 0.1rem 0 0.15rem;
  line-height: 1;
  color: var(--teal-deep);
}

.say {
  font-family: var(--font-display);
  margin: 0 0 0.45rem;
  color: var(--ink-soft);
}

.word-card p:last-child { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* Gallery wall */

.gallery-band {
  background: linear-gradient(180deg, transparent, rgba(255, 176, 137, 0.18) 40%, transparent);
}

.rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 1rem 1.6rem;
  -webkit-overflow-scrolling: touch;
}

.rail .polaroid {
  flex: 0 0 min(78vw, 18rem);
  scroll-snap-align: center;
}

.rail .polaroid:nth-child(3n+1) { transform: rotate(-2deg); }
.rail .polaroid:nth-child(3n+2) { transform: rotate(1.8deg); }
.rail .polaroid:nth-child(3n) { transform: rotate(-1deg); }

.swipe-hint {
  font-family: var(--font-hand);
  text-align: center;
  margin: 0;
  color: var(--ink-soft);
}

/* Newsletter and contact */

.signup-block {
  background: var(--teal);
  color: var(--white);
  border-radius: 2rem;
  padding: 1.5rem 1.2rem 1.4rem;
  position: relative;
  overflow: hidden;
}

.signup-block .kicker { color: var(--mango); }
.signup-block h2,
.signup-block p { color: var(--white); }

.signup {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.signup label { font-weight: 700; font-size: 0.9rem; }

.signup input {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}

.signup button { margin-top: 0.4rem; justify-self: start; min-width: 10rem; }

.form-todo, .form-note {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: #ffe7c2;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.contact-list a {
  font-family: var(--font-display);
  font-weight: 620;
  font-size: 1.2rem;
  text-decoration: none;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 0 0 1.8rem;
}

.site-footer .tile-strip { margin-bottom: 1.3rem; }

.footer-exact {
  margin: 0 auto 0.8rem;
  max-width: 22rem;
  text-align: center;
  font-weight: 600;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a { color: var(--peach); }
.footer-links a:hover { color: var(--white); }

/* Stickers and doodles */

.doodle {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}

/* Motion. Hidden only when JS is available, so content stays visible without it. */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Desktop */

@media (min-width: 800px) {
  .nav-toggle { display: none; }

  .site-nav {
    display: block;
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0;
    min-width: 0;
  }

  .site-nav ul {
    display: flex;
    gap: 1.1rem;
    align-items: center;
  }

  .site-nav a {
    color: var(--white);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    padding: 0;
    font-size: 1.25rem;
  }

  .hero-photo img { object-position: 60% 20%; }

  .hero-copy {
    padding: 0 2rem 3.2rem;
    max-width: 72rem;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .btn { min-width: 12.5rem; }

  .listen-spread,
  .about-spread {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 2.4rem;
  }

  .about-photos .polaroid:last-child {
    width: 82%;
    justify-self: end;
    margin-top: -1.2rem;
  }

  .photo-band,
  .photo-band-copy { min-height: 74vh; }

  .photo-band-copy { padding: 0 2rem 3rem; }

  .diary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
  }

  .diary .polaroid:nth-child(even) { margin-top: 2.2rem; }

  .word-card { margin-top: 0.4rem; }

  .shelf {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
    gap: 1.4rem 1.1rem;
    padding: 1.3rem 1.4rem 1.7rem;
  }

  .sleeve {
    flex: none;
    width: 100%;
    min-height: 14.5rem;
  }

  .diary .word-card {
    grid-column: 1 / -1;
    max-width: 28rem;
    margin: 0.2rem auto 0;
  }

  .rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
    gap: 1.6rem 1.2rem;
    padding: 1.2rem 0 0.4rem;
  }

  .rail .polaroid {
    flex: none;
    width: 100%;
  }

  .rail .polaroid:nth-child(3n+2) { margin-top: 1.8rem; }
  .rail .polaroid:nth-child(3n) { margin-top: 0.7rem; }

  .rail .polaroid:last-child { grid-column: auto; }

  .swipe-hint { display: none; }

  .signup-block {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem 2.1rem;
  }

  .signup { margin-top: 0; }

  .footer-exact { max-width: 54rem; }

  .band { padding: 4.2rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover { transform: none; }
  .nav-toggle span { transition: none; }
  .tilt-l, .tilt-r, .tilt-s,
  .playlist,
  .diary .polaroid,
  .rail .polaroid,
  .sleeve,
  .word-card { transform: none; }
}


/* Mixed camera-roll tile sizes. Default polaroids stay 3 / 4. */

.polaroid.tile-tall img { aspect-ratio: 9 / 16; }
.polaroid.tile-land img { aspect-ratio: 4 / 3; }
.polaroid.tile-wide img { aspect-ratio: 16 / 9; }
.polaroid.tile-std img { aspect-ratio: 3 / 4; }

.rail .polaroid.tile-tall { flex-basis: min(58vw, 14.5rem); }
.rail .polaroid.tile-land { flex-basis: min(82vw, 20rem); }
.rail .polaroid.tile-wide { flex-basis: min(90vw, 24.5rem); }

/* Luna's Diary, home carousel and inner pages */

.journal-band {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 143, 171, 0.16), transparent 36%),
    radial-gradient(circle at 10% 90%, rgba(26, 167, 165, 0.1), transparent 40%);
}

.journal-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
  margin-bottom: 0.4rem;
}

.journal-intro .lead { margin-bottom: 0; }

.see-all {
  flex: 0 0 auto;
  text-decoration: none;
}

.journal-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 1rem 1.6rem;
  -webkit-overflow-scrolling: touch;
}

.journal-card {
  flex: 0 0 min(78vw, 17.5rem);
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
}

.journal-card:hover { color: inherit; }

.journal-card .polaroid { height: 100%; }

.journal-card-date,
.journal-card-title,
.journal-card-caption {
  display: block;
}

.journal-card-date {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin-bottom: 0.1rem;
}

.journal-card-title {
  font-family: var(--font-display);
  font-weight: 620;
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
}

.journal-card-caption {
  font-size: 1.05rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink-soft);
}

.journal-empty {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  text-align: center;
  color: var(--ink-soft);
  margin: 0.8rem auto 0;
  max-width: 28rem;
}

.sample-tag {
  position: absolute;
  top: 0.85rem;
  right: 0.55rem;
  z-index: 2;
  font-family: var(--font-hand);
  font-size: 0.98rem;
  background: var(--mango);
  color: var(--ink);
  padding: 0.08rem 0.55rem;
  border-radius: 999px;
  transform: rotate(6deg);
  box-shadow: 0 2px 0 rgba(58, 42, 36, 0.08);
}

/* Solid header on diary pages (no hero photo behind it) */

body.diary-page { padding-top: 0; }

body.diary-page .site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 246, 234, 0.94);
  backdrop-filter: blur(10px);
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(58, 42, 36, 0.06);
}

body.diary-page .wordmark {
  color: var(--coral);
  text-shadow: none;
}

body.diary-page .wordmark:hover { color: var(--teal-deep); }

.journal-archive h1,
.entry h1 {
  font-family: var(--font-display);
  font-weight: 620;
  font-size: clamp(2rem, 7vw, 3.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.journal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.1rem 0 1.3rem;
}

.journal-filters button {
  font-family: var(--font-hand);
  font-size: 1.12rem;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
  box-shadow: 0 2px 0 rgba(58, 42, 36, 0.08);
  cursor: pointer;
}

.journal-filters button:hover { background: #fff1dc; }

.journal-filters button.is-on {
  background: var(--coral);
  color: var(--white);
}

.journal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.journal-grid .journal-card {
  flex: none;
  width: 100%;
}

.crumbs {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.crumbs a { color: var(--teal-deep); text-decoration: none; }
.crumbs a:hover { color: var(--coral); }

.entry {
  width: min(42rem, calc(100% - 2rem));
  margin-inline: auto;
  padding: 1.5rem 0 3rem;
}

.entry-meta {
  font-family: var(--font-hand);
  color: var(--ink-soft);
  margin: 0 0 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  align-items: center;
}

.entry-pillar {
  background: var(--paper);
  border-radius: 999px;
  padding: 0.05rem 0.7rem;
  color: var(--teal-deep);
}

.entry .sample-tag {
  position: static;
  display: inline-block;
  margin: 0 0 0.55rem;
  transform: rotate(-5deg);
}

.entry-photos {
  display: grid;
  gap: 1rem;
  margin: 1.1rem 0 1.3rem;
}

.entry-photos .polaroid:not(:first-child) {
  max-width: 82%;
  justify-self: center;
}

.entry-copy p { margin: 0 0 0.9rem; }

.entry-listen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.2rem;
}

.entry-listen .btn { min-width: 10rem; }

.entry-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin: 0.4rem 0 1rem;
  padding: 0;
  font-family: var(--font-hand);
  color: var(--teal-deep);
  font-size: 1.15rem;
}

.entry-credits {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.entry-honest {
  font-size: 0.98rem;
  color: var(--ink-soft);
  border-top: 1px dashed rgba(58, 42, 36, 0.16);
  padding-top: 0.85rem;
  margin-top: 0.4rem;
}

.entry-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
  font-family: var(--font-hand);
  font-size: 1.2rem;
}

.entry-nav a { text-decoration: none; }

.entry-hold {
  padding: 2rem 0 3rem;
}

@media (min-width: 800px) {
  body.diary-page .site-nav a {
    color: var(--ink);
    text-shadow: none;
  }

  body.diary-page .site-nav a:hover,
  body.diary-page .site-nav a[aria-current="page"] {
    color: var(--coral);
  }

  .site-nav ul { gap: 0.85rem; }
  .site-nav a { font-size: 1.18rem; }

  .rail {
    align-items: start;
  }

  .rail .polaroid.tile-tall,
  .rail .polaroid.tile-land,
  .rail .polaroid.tile-wide,
  .rail .polaroid.tile-std {
    flex: none;
    width: 100%;
  }

  .journal-rail {
    padding-left: 0;
    padding-right: 0;
    width: min(72rem, calc(100% - 2rem));
    margin-inline: auto;
  }

  .journal-card { flex-basis: 16.8rem; }

  .journal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem 1.2rem;
  }

  .journal-grid .journal-card:nth-child(3n+2) { margin-top: 1.4rem; }
  .journal-grid .journal-card:nth-child(3n) { margin-top: 0.6rem; }
}

@media (min-width: 1100px) {
  .site-nav ul { gap: 1.1rem; }
  .site-nav a { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .journal-card,
  .entry-shot,
  .sample-tag { transform: none; }
}
