﻿/* ==========================================================================
   ADELAIDABLE â€” editorial city guide
   Anchor: Airbnb discovery structure. Skin: sunset pastels + category worlds.
   Fonts: Instrument Serif (display) / Schibsted Grotesk (body)
   Signature device: the Glenelg jetty horizon rule, re-tinted per world.
   ========================================================================== */

:root {
  /* Sunrise world (home) â€” bright, refreshing orange into violet */
  --paper: #fffdf7;
  --ink: #2e2440;
  --ink-soft: #6b5f82;
  --hairline: #ecdfd6;
  --accent: #f2762e;
  --accent-deep: #d4571b;
  --band: #fff0dd;
  --sky-a: #b99af0;
  --sky-b: #ff9db4;
  --sky-c: #ffa860;
  --sky-d: #ffd47a;
  --horizon: linear-gradient(90deg, #ffb13d, #ff5e7e 45%, #8b5cf6);

  --serif: "Figtree", "Segoe UI", -apple-system, sans-serif;
  --sans: "Figtree", "Segoe UI", -apple-system, sans-serif;
  --maxw: 1160px;
}

/* Category worlds */
.theme-eat {
  --paper: #faf5ec;
  --ink: #362b21;
  --ink-soft: #77685a;
  --hairline: #e5d9c6;
  --accent: #a9653b;
  --accent-deep: #8a4f2b;
  --band: #efe3cf;
  --horizon: linear-gradient(90deg, #a9653b, #c98a52 55%, #8a6a45);
}
.theme-beach {
  --paper: #f4f8f8;
  --ink: #21363e;
  --ink-soft: #5c7078;
  --hairline: #d4e2e4;
  --accent: #38758a;
  --accent-deep: #275a6b;
  --band: #ddebed;
  --horizon: linear-gradient(90deg, #38758a, #6aa7b5 55%, #d9b98a);
}
.theme-todo {
  --paper: #f9f5fa;
  --ink: #322639;
  --ink-soft: #6f6178;
  --hairline: #e6dcea;
  --accent: #8d5a7c;
  --accent-deep: #6f4361;
  --band: #eee0f0;
  --horizon: linear-gradient(90deg, #8d5a7c, #b678a3 55%, #d98ba0);
}
.theme-events {
  --paper: #fffaf1;
  --ink: #3a2c1c;
  --ink-soft: #7d6c55;
  --hairline: #eddfc8;
  --accent: #d98324;
  --accent-deep: #b3661a;
  --band: #ffedcd;
  --horizon: linear-gradient(90deg, #d98324, #e8a35c 55%, #d96a8a);
}
.theme-nature {
  --paper: #f4f6ef;
  --ink: #27332a;
  --ink-soft: #64705f;
  --hairline: #d9e0cd;
  --accent: #4e6e4e;
  --accent-deep: #3a563a;
  --band: #e2e9d6;
  --horizon: linear-gradient(90deg, #4e6e4e, #7d9367 55%, #b9a06a);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* --- The jetty horizon rule (signature device) ------------------------- */
.horizon {
  height: 3px;
  background: var(--horizon);
  border: none;
  border-radius: 2px;
}
.horizon--thin { height: 2px; opacity: 0.85; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  max-width: 1320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
  min-width: 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand-name {
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: 0.2px;
  line-height: 1;
}
.brand-name span { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.site-nav a.is-active { color: var(--ink); border-bottom-color: var(--accent); }

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.nav-toggle { display: none; }

/* --- Sunset hero (home) -------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 42%, var(--sky-c) 72%, var(--sky-d) 100%);
}
.hero .wrap {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  padding-bottom: 40px;
  max-width: 880px;
  text-align: center;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.5px;
}
.hero h1 em { font-style: italic; color: #8f2450; }
.hero p {
  margin: 24px auto 32px;
  max-width: 560px;
  font-size: 19px;
  color: #443363;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* the jetty scene drawn along the bottom of the hero sky */
.hero-scene { position: relative; z-index: 1; margin-top: -8px; }
.hero-scene svg { width: 100%; height: auto; display: block; }

/* --- Section scaffolding ------------------------------------------------- */
.section { padding: 88px 0; }
.section--band { background: var(--band); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
}
.section-head .more {
  font-weight: 600;
  font-size: 15px;
  color: var(--accent-deep);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
}
.section-head .more:hover { color: var(--ink); }
.section-intro { max-width: 620px; color: var(--ink-soft); margin-bottom: 40px; }

/* --- The guide: magazine contents index ---------------------------------- */
.guide-index { border-top: 1px solid var(--hairline); margin-top: 32px; }
.guide-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--hairline);
  transition: background 0.15s;
}
.guide-row:hover { background: color-mix(in srgb, var(--band) 55%, transparent); }
.guide-swatch {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: none;
}
.guide-row h3 {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 30px;
  line-height: 1.15;
}
.guide-row p { color: var(--ink-soft); font-size: 15.5px; margin-top: 4px; max-width: 560px; }
.guide-arrow {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--accent-deep);
  transition: transform 0.2s;
}
.guide-row:hover .guide-arrow { transform: translateX(6px); }

/* world swatches used on the index */
.sw-eat    { background: linear-gradient(135deg, #c98a52, #8a4f2b); }
.sw-coffee { background: linear-gradient(135deg, #b08968, #6f4e37); }
.sw-beach  { background: linear-gradient(135deg, #7fb6c4, #38758a); }
.sw-nature { background: linear-gradient(135deg, #93ab77, #4e6e4e); }
.sw-todo   { background: linear-gradient(135deg, #c793ae, #8d5a7c); }
.sw-events { background: linear-gradient(135deg, #e8a35c, #cf6a3e); }

/* --- Cards (picks / listings) -------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.card { display: block; }
.card-photo {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--band);
  transition: transform 0.2s;
}
.card:hover .card-photo { transform: translateY(-3px); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }

/* photo placeholder frame: drop a real TikTok still in here */
.ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed color-mix(in srgb, var(--ink) 28%, transparent);
  border-radius: 16px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-align: center;
  padding: 16px;
}
.ph--a { background: linear-gradient(160deg, var(--band), color-mix(in srgb, var(--accent) 22%, var(--paper))); }
.ph--b { background: linear-gradient(200deg, color-mix(in srgb, var(--accent) 14%, var(--paper)), var(--band)); }
.ph--c { background: linear-gradient(120deg, var(--band) 40%, color-mix(in srgb, var(--accent) 30%, var(--band))); }

.card-body { padding: 14px 4px 0; }
.card-body h3 { font-family: var(--serif); font-weight: 800; letter-spacing: -0.02em; font-size: 22px; line-height: 1.2; }
.card-loc { font-size: 14px; font-weight: 600; color: var(--accent-deep); margin-top: 2px; }
.card-body p { font-size: 15px; color: var(--ink-soft); margin-top: 6px; }
.card-note { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; font-style: italic; }

/* --- Category page hero --------------------------------------------------- */
.cat-hero { background: var(--band); }
.cat-hero .wrap { padding-top: 72px; padding-bottom: 56px; max-width: 820px; }
.cat-hero .crumb { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.cat-hero .crumb a:hover { color: var(--accent-deep); }
.cat-hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  margin: 14px 0 18px;
}
.cat-hero h1 em { font-style: italic; color: var(--accent-deep); }
.cat-hero p { font-size: 18px; color: var(--ink-soft); max-width: 600px; }

.cat-subnav {
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.cat-subnav .wrap {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  padding-top: 18px;
  padding-bottom: 0;
}
.cat-subnav a {
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  padding-bottom: 14px;
  border-bottom: 2.5px solid transparent;
}
.cat-subnav a:hover, .cat-subnav a.is-active { color: var(--ink); border-bottom-color: var(--accent); }

/* --- Feature split (editorial spotlight) ---------------------------------- */
.spotlight {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.spotlight .card-photo { aspect-ratio: 4 / 5; }
.spot-kick {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--accent-deep);
}
.spotlight h2 {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.12;
  margin: 10px 0 16px;
}
.spotlight p { color: var(--ink-soft); margin-bottom: 14px; }

/* --- TikTok band ----------------------------------------------------------- */
.tiktok-band { text-align: center; }
.tiktok-band .wrap { max-width: 700px; }
.tiktok-band h2 {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.1;
  margin-bottom: 16px;
}
.tiktok-band p { color: var(--ink-soft); margin-bottom: 28px; }

/* --- Footer ----------------------------------------------------------------- */
.site-footer { background: var(--ink); color: color-mix(in srgb, var(--paper) 82%, transparent); }
.site-footer .horizon { border-radius: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}
.footer-grid .brand-name { color: var(--paper); }
.footer-blurb { margin-top: 14px; font-size: 15px; max-width: 320px; opacity: 0.75; }
.footer-grid h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid ul a { font-size: 15px; opacity: 0.85; }
.footer-grid ul a:hover { opacity: 1; text-decoration: underline; }
.footer-legal {
  border-top: 1px solid color-mix(in srgb, var(--paper) 15%, transparent);
  padding: 22px 0 28px;
  font-size: 13.5px;
  opacity: 0.6;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Motion system ------------------------------------------------------- */
.brand-name { font-weight: 800; letter-spacing: -0.02em; }

.brand { transition: transform 0.25s ease; transform-origin: left center; }
.site-header.scrolled .brand { transform: scale(0.85); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

.hero .wrap > * { animation: fadeUp 0.8s ease both; }
.hero .wrap > *:nth-child(2) { animation-delay: 0.15s; }
.hero .wrap > *:nth-child(3) { animation-delay: 0.3s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* the sun rises on load */
.hero-scene circle { animation: sunrise 1.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes sunrise {
  from { transform: translateY(52px); }
  to { transform: none; }
}
/* water shimmer breathes */
.hero-scene g[stroke="#ffe9b0"] line { animation: shimmer 3.6s ease-in-out infinite alternate; }
.hero-scene g[stroke="#ffe9b0"] line:nth-child(2) { animation-delay: 0.6s; }
.hero-scene g[stroke="#ffe9b0"] line:nth-child(3) { animation-delay: 1.2s; }
.hero-scene g[stroke="#ffe9b0"] line:nth-child(4) { animation-delay: 1.8s; }
.hero-scene g[stroke="#ffe9b0"] line:nth-child(5) { animation-delay: 2.4s; }
@keyframes shimmer {
  from { opacity: 0.15; }
  to { opacity: 0.8; }
}

.card-photo img { transition: transform 0.5s ease; }
.card:hover .card-photo img { transform: scale(1.05); }

/* --- Latest on TikTok embeds ---------------------------------------------- */
.tiktok-embeds { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.tiktok-embeds blockquote { margin: 0; }

/* --- Directions link on venue cards ---------------------------------------- */
.card-dir {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-deep);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 1px;
}
.card-dir:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card-photo, .guide-row, .guide-arrow, .card-photo img, .brand { transition: none; }
  .btn:hover, .card:hover .card-photo, .guide-row:hover .guide-arrow, .card:hover .card-photo img, .site-header.scrolled .brand { transform: none; }
  .hero .wrap > *, .hero-scene circle, .hero-scene g[stroke="#ffe9b0"] line { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Responsive -------------------------------------------------------------- */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .spotlight { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }

  .site-header .wrap { height: 64px; }
  .brand svg { width: 36px; height: 36px; }
  .brand-name { font-size: 22px; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    padding: 8px 16px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; width: 100%; font-size: 17px; border-bottom: 1px solid var(--hairline); }
  .site-nav .btn { margin-top: 14px; text-align: center; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1.5px solid var(--hairline);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    font-family: var(--sans);
    cursor: pointer;
    min-height: 48px;
  }

  .hero .wrap { padding-top: 64px; }
  .hero-scene svg { min-height: 120px; }
  .hero p { font-size: 17px; }
  .hero-actions .btn { width: 100%; max-width: 320px; text-align: center; }

  .cat-subnav a { padding-top: 12px; padding-bottom: 16px; }

  .guide-row { grid-template-columns: 44px 1fr auto; gap: 16px; padding: 22px 4px; }
  .guide-swatch { width: 40px; height: 40px; }
  .guide-row h3 { font-size: 24px; }
  .guide-row p { font-size: 14.5px; }

  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 36px; }
}
