/* Caravan — home prototype
   Palette from the shop: navy fascia, cream paper, brick, gift-card green & blue */
:root {
  --navy: #1d2533;
  --navy-2: #283244;
  --paper: #f3eee4;
  --paper-2: #e9e2d4;
  --brick: #a5432f;
  --green: #3f6e3c;
  --sky: #b4d6dc;
  --ink: #1d2533;
  --muted: #5d6472;
  --line: rgba(29, 37, 51, .18);

  --display: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --pad: clamp(20px, 4vw, 56px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: 22px; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.eyebrow {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 14px 22px;
  border-radius: 999px;
  font: 600 14px/1 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  border: 1.5px solid currentColor;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.btn-solid:hover { background: var(--brick); border-color: var(--brick); }
.btn-line { background: transparent; color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--paper); }
.btn-cream { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn-line-cream { background: transparent; color: var(--paper); }
.link-arrow { font: 500 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-bottom: 1.5px solid; padding-bottom: 2px; }
.link-arrow::after { content: " →"; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--pad);
  background: var(--navy);
  color: var(--paper);
}
.wordmark {
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.main-nav { display: flex; gap: 26px; flex: 1; justify-content: center; }
.main-nav a { font-size: 14px; font-weight: 500; text-decoration: none; opacity: .85; }
.main-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px var(--mono); letter-spacing: .04em;
  padding: 7px 12px; border: 1px solid rgba(243, 238, 228, .35); border-radius: 999px;
  white-space: nowrap;
}
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa1ad; }
.status-pill.is-open::before { background: #7ccf7f; box-shadow: 0 0 0 3px rgba(124, 207, 127, .25); }
.status-pill.is-closed::before { background: #e07a5f; }
.cart { font-size: 14px; font-weight: 600; text-decoration: none; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 4px; border-radius: 50%; background: var(--paper); color: var(--navy); font-size: 12px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(243,238,228,.4); color: var(--paper); border-radius: 999px; padding: 8px 14px; font: 600 13px var(--sans); }
.mobile-nav { background: var(--navy); color: var(--paper); padding: 8px var(--pad) 24px; position: sticky; top: 58px; z-index: 19; }
.mobile-nav a { display: block; padding: 10px 0; font-family: var(--display); font-size: 26px; text-decoration: none; border-bottom: 1px solid rgba(243,238,228,.15); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  padding: clamp(40px, 6vw, 88px) var(--pad) 0;
}
.hero-copy { padding-bottom: clamp(32px, 6vw, 96px); }
.hero h1 {
  font-size: clamp(42px, 6.2vw, 92px);
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.lede { font-size: clamp(17px, 1.4vw, 20px); max-width: 34em; color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin: 48px 0 0; padding-top: 22px; border-top: 1px solid var(--line);
}
.hero-facts dt { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brick); }
.hero-facts dd { margin: 6px 0 0; font-size: 14px; font-weight: 500; }
.hero-art { margin: 0; align-self: end; }
.hero-art img {
  width: 100%; max-height: 86vh; object-fit: contain; object-position: bottom;
}

/* ---------- Ticker ---------- */
.ticker { background: var(--navy); color: var(--paper); overflow: hidden; border-top: 1px solid var(--navy); }
.ticker-track { display: flex; gap: 28px; width: max-content; padding: 16px 0; animation: ticker 38s linear infinite; }
.ticker span { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; }
.ticker i { font-style: normal; color: var(--sky); align-self: center; font-size: 14px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 128px) var(--pad); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p:not(.eyebrow) { color: var(--muted); }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; }

/* Categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(180px, 20vw, 290px);
  gap: 14px;
}
.cat { position: relative; overflow: hidden; border-radius: var(--radius); text-decoration: none; color: var(--paper); background: var(--navy); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20, 25, 35, .78)); }
.cat:hover img { transform: scale(1.04); }
.cat-xl { grid-column: span 2; grid-row: span 2; }
.cat-tall { grid-row: span 2; }
.cat-wide { grid-column: span 2; }
.cat-label { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: grid; gap: 2px; }
.cat-label b { font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: clamp(22px, 2vw, 30px); line-height: 1.1; }
.cat-xl .cat-label b { font-size: clamp(30px, 3.2vw, 46px); }
.cat-label em { font-style: normal; font: 400 12px var(--mono); letter-spacing: .04em; opacity: .85; }

/* Listening room */
.listening {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center;
  background: var(--navy); color: var(--paper);
  padding: clamp(64px, 9vw, 128px) var(--pad);
}
.listening .eyebrow { color: var(--sky); }
.listening p { color: rgba(243, 238, 228, .82); max-width: 32em; }
.listening .btn { margin-top: 12px; }
.listening-photos { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(420px, 48vw, 640px); }
.listening-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.lp-a { grid-row: span 2; }

/* Events */
#events { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); column-gap: clamp(32px, 5vw, 72px); }
#events .section-head { grid-column: 1 / -1; }
.event-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--navy); }
.event-list li { display: grid; grid-template-columns: 110px 1fr auto; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.event-list time { display: grid; }
.event-list time b { font-family: var(--display); font-size: 40px; font-weight: 500; line-height: 1; }
.event-list time span { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.event-list h3 { margin-bottom: 4px; }
.event-list p { margin: 0; color: var(--muted); }
.tag { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--navy); border-radius: 999px; white-space: nowrap; }
.event-photo { margin: 0; }
.event-photo img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); }

/* Tea */
.tea { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--sky); }
.tea-photo { margin: 0; min-height: 560px; }
.tea-photo img { width: 100%; height: 100%; object-fit: cover; }
.tea-copy { padding: clamp(48px, 7vw, 112px) var(--pad); }
.tea-copy .eyebrow { color: var(--green); }
.tea-copy h2 { color: var(--green); }
.tea-list { list-style: none; padding: 0; margin: 28px 0 8px; border-top: 1.5px solid var(--green); }
.tea-list li { display: grid; grid-template-columns: 64px 1fr auto; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(63, 110, 60, .3); }
.tea-list .jp { font-size: 20px; color: var(--green); font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; }
.tea-list b { font-family: var(--display); font-weight: 600; font-size: 22px; }
.tea-list em { font-style: normal; font: 400 12px var(--mono); color: var(--navy); opacity: .75; }

/* Gift card */
.gift { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.gift-card {
  aspect-ratio: 1.58; max-width: 520px; width: 100%; justify-self: center;
  background: var(--sky); color: var(--green);
  border-radius: 14px; padding: 28px 32px;
  display: grid; grid-template-rows: auto 1fr auto;
  box-shadow: 0 30px 60px -30px rgba(29, 37, 51, .45), 0 2px 0 rgba(0,0,0,.04);
  transform: rotate(-4deg);
  transition: transform .4s ease;
}
.gift-card:hover { transform: rotate(-1deg) translateY(-4px); }
.gc-small { font: 500 14px var(--mono); letter-spacing: .06em; }
.gc-word { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 800; font-size: clamp(56px, 7vw, 96px); align-self: center; line-height: 1; }
.gc-tag { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.gift-copy p:not(.eyebrow) { color: var(--muted); max-width: 30em; }
.gift-amounts { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.chip { font: 600 15px var(--sans); padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--navy); background: transparent; color: var(--navy); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--paper); }

/* Journal */
#journal { border-top: 1px solid var(--line); }
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.post { text-decoration: none; }
.post img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 18px; transition: opacity .2s; }
.post:hover img { opacity: .88; }
.post-meta { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brick); margin-bottom: 8px; }
.post p:last-child { color: var(--muted); font-size: 15px; }
.post:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

/* Visit */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--navy); color: var(--paper); }
.visit-photo { margin: 0; min-height: 640px; }
.visit-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 85%; }
.visit-copy { padding: clamp(48px, 7vw, 112px) var(--pad); }
.visit .eyebrow { color: var(--sky); }
.visit address { font-style: normal; font-size: 18px; line-height: 1.5; margin-bottom: 28px; }
.hours { width: 100%; max-width: 420px; border-collapse: collapse; font-size: 15px; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid rgba(243, 238, 228, .15); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-family: var(--mono); font-size: 14px; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--sky); font-weight: 600; }
.hours tr.is-today th::after { content: " · today"; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.visit-note { margin-top: 32px; font-size: 14px; color: rgba(243, 238, 228, .7); max-width: 34em; }

/* Newsletter */
.newsletter {
  text-align: center; padding: clamp(72px, 10vw, 140px) var(--pad);
  background: var(--paper-2) url("assets/img/shop-8283.jpg") center / cover;
  background-blend-mode: soft-light;
}
.newsletter h2 { font-variation-settings: "SOFT" 100, "WONK" 1; font-size: clamp(40px, 6vw, 80px); }
.newsletter p { color: var(--muted); }
.nl-form { display: flex; gap: 10px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.nl-form input { min-width: min(340px, 100%); padding: 14px 22px; border-radius: 999px; border: 1.5px solid var(--navy); background: var(--paper); font: 15px var(--sans); color: var(--navy); }

/* Footer */
.site-footer { background: var(--navy); color: var(--paper); padding: 64px var(--pad) 28px; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.footer-brand .wordmark { font-size: 56px; display: block; margin-bottom: 14px; }
.footer-brand p { color: rgba(243, 238, 228, .7); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin: 0 0 14px; }
.footer-cols a { display: block; text-decoration: none; padding: 4px 0; opacity: .85; }
.footer-cols a:hover { opacity: 1; text-decoration: underline; }
.footer-small { grid-column: 1 / -1; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid rgba(243, 238, 228, .15); font: 400 12px var(--mono); color: rgba(243, 238, 228, .6); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-block; margin-left: 0; }
}
@media (max-width: 900px) {
  .hero, .listening, .tea, .gift, .visit, #events, .site-footer { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 520px; justify-self: center; }
  .hero-art img { max-height: 62vh; }
  .hero-copy { padding-bottom: 56px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .cat-xl, .cat-wide { grid-column: span 2; }
  .cat-tall { grid-row: span 1; }
  .event-photo { margin-top: 32px; }
  .tea-photo, .visit-photo { min-height: 380px; }
  .journal-grid { grid-template-columns: 1fr; }
  .gift-card { max-width: 420px; }
}
@media (max-width: 600px) {
  .status-pill { display: none; }
  .hero-facts { grid-template-columns: 1fr; gap: 14px; }
  .event-list li { grid-template-columns: 72px 1fr; }
  .event-list .tag { grid-column: 2; justify-self: start; }
  .section-head.row { flex-direction: column; align-items: start; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
