:root {
  --ivory: #F8F5EE;
  --cream: #F1ECDF;
  --forest: #1d4436;
  --forest-dark: #0f2a1f;
  --gold: #B89568;
  --gold-light: #C9A96E;
  --taupe: #8B7E6B;
  --taupe-light: #D4CCBC;
  --line: rgba(15, 42, 31, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--ivory);
  color: var(--forest-dark);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

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

/* HERO */
.hero {
  flex: 0 0 auto;
  padding: clamp(4rem, 12vh, 8rem) 1.5rem clamp(2.5rem, 6vh, 4rem);
  text-align: center;
}
.hero.compact {
  padding: clamp(2.5rem, 7vh, 4.5rem) 1.5rem clamp(1.5rem, 4vh, 2.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.hero .eyebrow { margin-bottom: 1.75rem; }
.hero.compact .eyebrow { margin-bottom: 1rem; }

.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--forest);
  margin-bottom: 0.5rem;
}
.hero.compact h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.hero p {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  font-weight: 400;
  margin-top: 1rem;
}

/* MAIN */
main {
  flex: 1 0 auto;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem clamp(4rem, 10vh, 7rem);
}

.main-narrow {
  max-width: 720px;
}

/* SECTIONS */
.section { margin-top: clamp(3rem, 6vh, 5rem); }
.section:first-child { margin-top: 0; }

.section-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.section-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.section-title {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--forest);
}
.section-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* TILES */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  padding: 2.25rem 2rem;
  background: var(--ivory);
  text-decoration: none;
  color: inherit;
  transition: background 0.5s ease;
  position: relative;
}
.tile:hover { background: var(--cream); }
.tile::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tile:hover::after { transform: scaleX(1); }

.tile-tag {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--taupe);
}
.tile-tag.tbc { color: var(--gold); }

.tile-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  line-height: 1.1;
  color: var(--forest);
  margin-top: auto;
  padding-top: 2.5rem;
}

.tile-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--taupe);
  font-weight: 500;
  transition: color 0.3s ease, gap 0.3s ease;
}
.tile:hover .tile-arrow {
  color: var(--gold);
  gap: 0.85rem;
}
.tile-arrow svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  stroke-width: 1.25;
  fill: none;
}

.tile.disabled {
  pointer-events: none;
  opacity: 0.55;
}
.tile.disabled:hover { background: var(--ivory); }
.tile.disabled:hover::after { transform: scaleX(0); }

/* SUB-PAGE CONTENT */
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--forest-dark);
  font-weight: 300;
}
.prose h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--forest);
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  line-height: 1.2;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.prose p { margin-bottom: 1rem; }
.prose p + p { margin-top: 0; }

.prose ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}
.prose ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
}
.prose ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.prose .lede {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--forest);
  margin-bottom: 2rem;
}

.divider {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2.5rem 0;
}

.callout {
  background: var(--cream);
  border-left: 2px solid var(--gold);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--forest-dark);
}
.callout strong {
  font-weight: 500;
  color: var(--forest);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 2rem;
  transition: color 0.3s ease, gap 0.3s ease;
}
.back-link:hover {
  color: var(--gold);
  gap: 0.85rem;
}
.back-link svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  stroke-width: 1.25;
  fill: none;
}

/* UNDER CONSTRUCTION */
.under-construction {
  text-align: center;
  padding: 4rem 1.5rem;
}
.under-construction .badge {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
}
.under-construction h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--forest);
  margin-bottom: 1rem;
}
.under-construction p {
  color: var(--taupe);
  max-width: 480px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* FOOTER */
footer {
  flex: 0 0 auto;
  padding: 3rem 1.5rem 3rem;
  text-align: center;
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 6vh, 5rem);
}
footer .name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  color: var(--forest);
  font-weight: 400;
  margin-bottom: 0.5rem;
}
footer .meta {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--taupe);
  font-weight: 500;
  margin-top: 0.5rem;
}
footer .copy {
  font-size: 0.65rem;
  color: var(--taupe);
  letter-spacing: 0.05em;
  margin-top: 0.75rem;
}

/* Mobile refinements */
@media (max-width: 720px) {
  .tile-grid {
    grid-template-columns: 1fr;
  }
  .tile {
    padding: 1.75rem 1.5rem;
    min-height: 160px;
  }
  .tile-title {
    padding-top: 1.5rem;
    font-size: 1.5rem;
  }
  .section-head {
    gap: 0.85rem;
    margin-bottom: 1rem;
  }
  .section-num {
    font-size: 1.2rem;
  }
  .section-title {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
  }
  main {
    padding: 0 1rem clamp(3rem, 8vh, 5rem);
  }
  .hero {
    padding: clamp(3rem, 9vh, 6rem) 1rem clamp(2rem, 5vh, 3rem);
  }
  .hero h1 {
    font-size: clamp(3rem, 13vw, 4.5rem);
  }
  .eyebrow::before, .eyebrow::after {
    width: 1.75rem;
  }
  .prose {
    font-size: 0.95rem;
  }
  .prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }
  .prose .lede {
    font-size: 1.15rem;
  }
  .back-link {
    margin-bottom: 1.5rem;
  }
  .under-construction {
    padding: 2.5rem 1rem;
  }
  .under-construction h2 {
    font-size: 1.85rem;
  }
  footer {
    padding: 2rem 1rem 2.5rem;
  }
}

/* Very narrow phones */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 2.75rem;
  }
  .tile-title {
    font-size: 1.4rem;
  }
  .section-head { gap: 0.6rem; }
  .eyebrow::before, .eyebrow::after { width: 1.25rem; }
}

/* Prevent horizontal overflow anywhere */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
img, svg { max-width: 100%; }

/* ============================================================
   MY WEEK AT A GLANCE — mobile-first
   ============================================================ */

.myweek-body {
  font-size: 16px; /* prevents iOS zoom on inputs */
}

.myweek-hero {
  padding-bottom: 1rem;
}

.myweek-subtitle {
  font-size: 0.9rem;
  color: var(--taupe);
  margin-top: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.myweek-main {
  padding: 1.5rem 1rem 4rem;
}

/* --- Section I: City strip --- */

.city-strip-wrapper {
  margin: 0 -1rem;
  padding: 0 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.city-strip-wrapper::-webkit-scrollbar { display: none; }

.city-strip {
  display: flex;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  min-width: max-content;
}

.strip-day {
  flex: 0 0 auto;
  min-width: 64px;
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--line);
  background: var(--ivory);
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.strip-day.today {
  background: var(--forest);
  color: var(--ivory);
  border-color: var(--forest);
}

.strip-dow {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  font-weight: 500;
}
.strip-day.today .strip-dow { color: var(--gold-light); }

.strip-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  line-height: 1;
  margin: 0.25rem 0;
  color: var(--forest-dark);
}
.strip-day.today .strip-num { color: var(--ivory); }

.strip-city {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--taupe);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60px;
}
.strip-day.today .strip-city { color: var(--gold-light); }

.strip-loading {
  font-size: 0.85rem;
  color: var(--taupe);
  padding: 1rem;
}

/* --- Section II: Day cards --- */

.days-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.day-card {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0.25rem;
  transition: background 0.2s;
}
.day-card:last-child { border-bottom: 1px solid var(--line); }

.day-card.today {
  background: var(--cream);
  margin: 0 -0.5rem;
  padding: 1.5rem 0.75rem;
  border-left: 2px solid var(--gold);
}

.day-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--taupe);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.day-card.today .day-eyebrow { color: var(--gold); }

.day-headline {
  font-size: 1.65rem;
  line-height: 1.15;
  font-weight: 400;
  color: var(--forest-dark);
  margin-bottom: 0.75rem;
}
.day-headline.day-quiet {
  color: var(--taupe);
  font-style: italic;
  font-size: 1.25rem;
}

.day-event {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  border-top: 1px solid var(--line);
}
.day-event:first-of-type { border-top: 1px solid var(--line); margin-top: 0.5rem; }

.event-time {
  flex: 0 0 60px;
  font-family: 'Cormorant Garamond', serif;
  color: var(--taupe);
  font-size: 0.95rem;
}

.event-title {
  flex: 1;
  color: var(--forest-dark);
  font-weight: 300;
}

.day-meta {
  font-size: 0.7rem;
  color: var(--taupe);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.75rem;
}

.day-loading {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--taupe);
  font-size: 0.9rem;
}

/* --- Section III: Logistics --- */

.logistics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.logistics-card {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0.25rem;
}
.logistics-card:last-child { border-bottom: 1px solid var(--line); }

.logistics-tag {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.logistics-title {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--forest-dark);
  line-height: 1.2;
}

.logistics-meta {
  font-size: 0.85rem;
  color: var(--taupe);
  font-weight: 300;
  margin-top: 0.25rem;
}

.logistics-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}
.logistics-list li {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--forest-dark);
  padding: 0.4rem 0;
  border-top: 1px solid var(--line);
}
.logistics-list li:first-child { border-top: none; padding-top: 0.5rem; }
.meal-day {
  display: inline-block;
  min-width: 50px;
  font-family: 'Cormorant Garamond', serif;
  color: var(--taupe);
  font-size: 0.95rem;
}

/* --- Section IV: Beyond --- */

.beyond-list {
  display: flex;
  flex-direction: column;
}

.beyond-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem 0.25rem;
  border-top: 1px solid var(--line);
}
.beyond-row:last-child { border-bottom: 1px solid var(--line); }

.beyond-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: var(--taupe);
}

.beyond-location {
  font-size: 1.1rem;
  color: var(--forest-dark);
  font-weight: 400;
  line-height: 1.2;
}

.beyond-notes {
  font-size: 0.8rem;
  color: var(--taupe);
  font-weight: 300;
  margin-top: 0.2rem;
  line-height: 1.4;
}

.beyond-when {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
  padding-top: 0.4rem;
}

/* --- Refresh meta --- */

.refresh-meta {
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 3rem;
  padding: 1rem 0;
  font-weight: 400;
  border-top: 1px solid var(--line);
}

/* --- Tablet+ adjustments --- */
@media (min-width: 720px) {
  .myweek-main { padding: 2rem 2rem 4rem; }
  .day-headline { font-size: 2rem; }
  .logistics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
  }
  .day-card.today {
    margin: 0 -1rem;
    padding: 1.75rem 1rem 1.75rem 1rem;
  }
  .beyond-row { grid-template-columns: 100px 1fr auto; gap: 1.5rem; }
  .strip-day { min-width: 72px; }
}

/* --- Very narrow phones --- */
@media (max-width: 380px) {
  .day-headline { font-size: 1.4rem; }
  .strip-day { min-width: 56px; padding: 0.6rem 0.35rem; }
  .strip-num { font-size: 1.3rem; }
  .strip-city { max-width: 52px; font-size: 0.6rem; }
  .event-time { flex: 0 0 52px; font-size: 0.85rem; }
  .event-title { font-size: 0.85rem; }
}
