/* Hemmingway's — Music, Magic & Memories.
   Warm, candlelit keepsake theme built from the original site's branding:
   Grand Hotel script + Montserrat + Open Sans, and the logo's island amber. */

:root {
  --bg: #17120d;
  --bg-raise: #211a13;
  --line: rgba(240, 169, 63, 0.16);
  --ink: #f3ead9;
  --ink-soft: #c9b99f;
  --ink-faint: #97876e;
  --amber: #f0a93f;
  --amber-deep: #f26c22;
  --paper: #f7f1e3;
  --radius: 14px;
  --wrap: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.4rem; }

a { color: var(--amber); text-decoration-color: rgba(240, 169, 63, 0.4); text-underline-offset: 3px; }
a:hover { color: #ffc46a; }

.script {
  font-family: 'Grand Hotel', cursive;
  font-weight: 400;
  color: var(--amber);
  line-height: 1.1;
}

.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 0.4rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(3rem, 8vh, 6rem) 0 clamp(3rem, 7vh, 5rem);
  background:
    radial-gradient(900px 480px at 72% -10%, rgba(240, 169, 63, 0.16), transparent 65%),
    radial-gradient(700px 420px at 12% 110%, rgba(242, 108, 34, 0.08), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.4rem;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-copy { flex: 1 1 26rem; max-width: 34rem; text-align: left; }

.hero h1 {
  font-size: clamp(3.4rem, 9vw, 5.8rem);
  text-shadow: 0 2px 30px rgba(240, 169, 63, 0.25);
}

.tagline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0.4rem 0 1.2rem;
}

.hero-sub { color: var(--ink-soft); max-width: 30rem; }

.hero-cta {
  display: inline-block;
  margin-top: 1.6rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1c1409;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(242, 108, 34, 0.28);
}
.hero-cta:hover { color: #1c1409; filter: brightness(1.08); }

/* The logo keepsake — a tilted polaroid so the black lettering sits on paper */
.hero-logo { flex: 0 0 auto; }
.polaroid {
  background: var(--paper);
  padding: 14px 14px 10px;
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(0, 0, 0, 0.4);
  transform: rotate(-3deg);
  width: min(300px, 68vw);
  transition: transform 0.35s ease;
}
.polaroid:hover { transform: rotate(-1deg) scale(1.02); }
.polaroid img { width: 100%; height: auto; display: block; }
.polaroid-caption {
  display: block;
  text-align: center;
  font-family: 'Grand Hotel', cursive;
  font-size: 1.35rem;
  color: #3a3126;
  padding: 0.35rem 0 0.4rem;
}

/* ---------- Sections ---------- */

section { padding: clamp(3.2rem, 8vh, 5.5rem) 0; }

section h2 { font-size: clamp(2.5rem, 6vw, 3.6rem); margin-bottom: 1.4rem; }

.section-sub { color: var(--ink-soft); max-width: 46rem; margin-bottom: 2.4rem; }

/* Story */
.story { border-bottom: 1px solid var(--line); }
.story-cols { columns: 2 22rem; column-gap: 3rem; max-width: 60rem; }
.story-cols p { break-inside: avoid; margin-bottom: 1.2rem; color: var(--ink-soft); }
.story-cols p:first-child::first-letter {
  font-family: 'Grand Hotel', cursive;
  font-size: 3.2rem;
  float: left;
  line-height: 0.8;
  padding: 0.28rem 0.55rem 0 0;
  color: var(--amber);
}
.story-cols em { color: var(--ink); font-style: italic; }

/* ---------- Timeline of memories ---------- */

.timeline {
  position: relative;
  padding-left: clamp(1.6rem, 4vw, 2.6rem);
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--line) 6%, var(--line) 94%, transparent);
}

.year-marker { position: relative; margin: 2.6rem 0 1.6rem; }
.year-marker:first-child { margin-top: 0; }
.year-marker span {
  font-family: 'Grand Hotel', cursive;
  font-size: 2.1rem;
  color: var(--amber-deep);
}
.year-marker::before {
  content: '';
  position: absolute;
  left: calc(-1 * clamp(1.6rem, 4vw, 2.6rem) + 2px);
  top: 0.9em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(240, 169, 63, 0.18), 0 0 18px rgba(240, 169, 63, 0.5);
}

.event {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3.5vw, 2.2rem);
  margin-bottom: 2.2rem;
}

.event-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1c1409;
  background: var(--amber);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  display: inline-block;
  margin-bottom: 0.9rem;
}

.event h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}

.event-story { color: var(--ink-soft); max-width: 46rem; margin-bottom: 1.5rem; }

/* Video grid */
.video-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, 1fr); }
.video-grid.vg-1 { grid-template-columns: minmax(0, 26rem); }
.video-grid.vg-2 { grid-template-columns: repeat(2, minmax(0, 26rem)); }
@media (max-width: 860px) { .video-grid, .video-grid.vg-2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .video-grid, .video-grid.vg-2, .video-grid.vg-1 { grid-template-columns: 1fr; } }

.video-card figcaption {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding-top: 0.55rem;
  line-height: 1.4;
}

.video-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  padding: 0;
}
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.35s ease;
}
.video-facade:hover img, .video-facade:focus-visible img { opacity: 1; transform: scale(1.04); }

.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(23, 18, 13, 0.72);
  border: 2px solid var(--amber);
  box-shadow: 0 0 24px rgba(240, 169, 63, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}
.play-btn::after {
  content: '';
  position: absolute;
  left: 55%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--amber);
}
.video-facade:hover .play-btn, .video-facade:focus-visible .play-btn {
  transform: scale(1.1);
  background: rgba(23, 18, 13, 0.9);
}

.duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.75);
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: block;
  background: #000;
}

/* ---------- Flavours ---------- */

.flavours { border-top: 1px solid var(--line); }

.flavour-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
@media (max-width: 760px) { .flavour-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .flavour-grid { grid-template-columns: 1fr; } }

.flavour-grid li {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 2;
}
.flavour-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.flavour-grid li:hover img { transform: scale(1.05); }
.flavour-grid span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.9rem 0.65rem;
  font-family: 'Grand Hotel', cursive;
  font-size: 1.5rem;
  color: var(--paper);
  background: linear-gradient(to top, rgba(12, 9, 5, 0.85), transparent);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 4rem;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 120%, rgba(240, 169, 63, 0.1), transparent 65%),
    var(--bg);
}
.foot-script { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 1rem; }
footer p { color: var(--ink-faint); font-size: 0.95rem; margin-bottom: 0.35rem; }
.foot-note { margin-top: 1.2rem; font-style: italic; }

/* ---------- Reveal on scroll (JS adds .seen; harmless without JS) ---------- */

.event, .flavour-grid li { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .event, .js .flavour-grid li { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
  .js .event.seen, .js .flavour-grid li.seen { opacity: 1; transform: none; }
}
