/* ===========================================================
   Tori Finds The Good Stuff — shared styles
   Palette + type carried over from the Sunday House site
   =========================================================== */

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

:root {
  --cream: #F4F1EB;
  --warm:  #EAE6DC;
  --ink:   #1C170F;   /* deeper near-black brown for stronger contrast */
  --mid:   #29231B;   /* darkened 2026-10-29 — body/secondary text reads stronger */
  --gold:  #4D391F;   /* darkened gold so eyebrows/labels/"shop" read clearly */
  --rule:  rgba(28, 23, 15, 0.18);
  --shadow: 0 18px 40px -24px rgba(28, 23, 15, 0.5);
}

html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { font-style: normal; }   /* no italics anywhere per brand preference */

/* ── shared type helpers ── */
.eyebrow {
  font-size: 12px; font-weight: 300; letter-spacing: 0.22em;
  text-transform: lowercase; color: var(--gold);
}
.serif { font-family: 'Cormorant', serif; font-weight: 300; }
.serif em, em.serif { font-style: normal; }

/* ===========================================================
   NAV
   =========================================================== */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 241, 235, 0.9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 0.75px solid var(--rule);
}
.nav-bar {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1rem;
  padding: 0.9rem 2rem;
}
.nav-home {
  font-size: 10px; font-weight: 400; letter-spacing: 0.2em;
  text-transform: lowercase; color: var(--mid);
}
.nav-home:hover { color: var(--ink); }
.nav-logo {
  justify-self: center; text-align: center;
  font-family: 'Jost', sans-serif; font-weight: 200;
  font-size: clamp(15px, 2.2vw, 21px);
  letter-spacing: 0.2em; text-transform: lowercase; color: var(--ink);
  white-space: nowrap;
}
.nav-logo b { font-weight: 300; }
.nav-right { justify-self: end; }
.nav-cta {
  font-size: 10px; font-weight: 400; letter-spacing: 0.2em;
  text-transform: lowercase; color: var(--mid);
}
.nav-cta:hover { color: var(--ink); }

/* horizontal, scrollable list of every category — appears under the nav
   on the interior pages so any section is one tap away */
.section-nav {
  border-bottom: 0.75px solid var(--rule);
  background: var(--cream);
}
.section-nav-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; gap: 0.35rem; overflow-x: auto;
  padding: 0.6rem 1.25rem;
  scrollbar-width: none;
}
.section-nav-inner::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  font-size: 11px; letter-spacing: 0.12em; text-transform: lowercase;
  color: var(--mid); padding: 0.4rem 0.9rem; border-radius: 999px;
  border: 0.75px solid transparent; white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.chip:hover { color: var(--ink); background: var(--warm); }
.chip[aria-current="page"] {
  color: var(--ink); border-color: var(--rule); background: var(--warm);
}

/* ===========================================================
   HOME — HERO
   =========================================================== */
.hero {
  max-width: 1240px; margin: 0 auto;
  padding: 2.75rem 2rem 1.75rem;
  text-align: center;
}
.hero-eyebrow { margin-bottom: 0.9rem; }
.wordmark {
  font-family: 'Jost', sans-serif; font-weight: 200;
  text-transform: lowercase; line-height: 1.15;
  letter-spacing: 0.16em; color: var(--ink); margin-bottom: 1.35rem;
}
.wordmark .line-1 {
  display: block; font-weight: 200;
  font-size: clamp(30px, 6vw, 58px);
}
.wordmark .line-2 {
  display: block; font-weight: 200;
  font-size: clamp(22px, 4.6vw, 42px); margin-top: 0.3rem; color: var(--ink);
}
.hero-sub {
  font-family: 'Cormorant', serif; font-style: normal;
  font-size: clamp(18px, 2.4vw, 22px); color: var(--mid);
  max-width: 640px; margin: 0 auto; line-height: 1.6;
}

/* compact headshot + intro blurb, sits under the wordmark */
.meet {
  max-width: 640px; margin: 1.75rem auto 0;
  display: flex; flex-direction: column; align-items: center;
  gap: 1.25rem; text-align: center;   /* centered: photo on top, blurb below */
}
.meet-photo {
  flex: 0 0 auto; width: 132px; height: 132px; border-radius: 50%;
  object-fit: cover; object-position: center 22%;
  border: 1px solid rgba(255,255,255,0.8); box-shadow: var(--shadow);
}
.meet-text {
  font-size: 16.5px; color: var(--mid); line-height: 1.6;
  text-align: center; text-wrap: pretty; hyphens: none;
}
.meet-text .meet-hi {
  font-family: 'Jost', sans-serif; font-weight: 500;
  text-transform: lowercase; letter-spacing: 0.12em; color: var(--ink);
}
@media (max-width: 560px) {
  .meet { flex-direction: column; text-align: center; gap: 1.1rem; max-width: 440px; }
  .meet-photo { width: 116px; height: 116px; }
}

/* ── HOME — ABOUT / HEADSHOT band (sits below the boards now) ── */
.about {
  max-width: 940px; margin: 0 auto; padding: 3rem 2rem 4rem;
  display: grid; grid-template-columns: 0.72fr 1.28fr;
  gap: 2.5rem; align-items: center;
  border-top: 0.75px solid var(--rule);
}
.about-photo {
  border-radius: 3px; overflow: hidden; border: 0.75px solid var(--rule);
  box-shadow: var(--shadow); aspect-ratio: 4 / 5;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text .eyebrow { margin-bottom: 1rem; }
.about-title {
  font-family: 'Cormorant', serif; font-weight: 300;
  font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15;
  margin-bottom: 1.25rem;
}
.about-title em { font-style: normal; }
.about-text p {
  font-size: 16px; color: var(--mid); line-height: 1.9; margin-bottom: 1rem;
  max-width: 46ch;
}
.about-sign {
  font-family: 'Cormorant', serif; font-style: normal;
  font-size: 20px; color: var(--ink); margin-top: 0.5rem;
}

/* ===========================================================
   HOME — SEARCH
   =========================================================== */
.search { max-width: 1240px; margin: 0 auto; padding: 0 2rem; }
.search-wrap { max-width: 620px; margin: 0 auto 2.5rem; position: relative; }
.search-input {
  width: 100%; box-sizing: border-box;
  font-family: 'Jost', sans-serif; font-weight: 300; font-size: 15px; letter-spacing: 0.04em;
  color: var(--ink); background: #fff; border: 0.75px solid var(--rule);
  border-radius: 999px; padding: 0.85rem 1.4rem; outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-input::placeholder { color: var(--mid); opacity: 0.65; }
.search-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(111, 86, 54, 0.08); }
.search-results { margin-top: 1rem; text-align: left; }
.search-results .sr-item {
  display: block; padding: 0.85rem 0.35rem; border-bottom: 0.75px solid var(--rule);
  transition: padding-left 0.2s ease;
}
.search-results .sr-item:hover { padding-left: 0.6rem; }
.search-results .sr-sec {
  display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: lowercase;
  color: var(--gold); margin-bottom: 0.15rem;
}
.search-results .sr-title {
  display: block; font-family: 'Cormorant', serif; font-size: 19px; color: var(--ink);
}
.search-results .sr-prod {
  display: block; font-size: 12.5px; color: var(--mid); line-height: 1.5; margin-top: 0.2rem;
}
.search-results .sr-note { padding: 0.85rem 0.35rem; font-size: 14px; color: var(--mid); }

/* brief highlight when the home search jumps you to a board */
@keyframes boardFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(111, 86, 54, 0); }
  15%, 55% { box-shadow: 0 0 0 3px rgba(111, 86, 54, 0.35); }
}
.board-flash { animation: boardFlash 2.4s ease; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .board-flash { animation: none; } }

/* ── site-wide nav search (button + overlay) ── */
.nav-right-wrap { justify-self: end; display: flex; align-items: center; }
.nav-search-btn {
  background: none; border: none; cursor: pointer; color: var(--mid);
  display: inline-flex; align-items: center; padding: 0; margin-right: 1.1rem;
  transition: color 0.2s ease;
}
.nav-search-btn:hover { color: var(--ink); }
.nav-search-btn svg { display: block; }

.search-overlay { position: fixed; inset: 0; z-index: 100; }
.search-overlay[hidden] { display: none; }
.search-overlay-backdrop {
  position: absolute; inset: 0; background: rgba(28, 23, 15, 0.4);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.search-overlay-panel {
  position: relative; z-index: 1; width: calc(100% - 2.5rem); max-width: 620px;
  margin: 7vh auto 0; background: var(--cream); border: 0.75px solid var(--rule);
  border-radius: 14px; box-shadow: var(--shadow); padding: 1.5rem 1.35rem 1.35rem;
  max-height: 82vh; overflow: auto;
}
.search-overlay-close {
  position: absolute; top: 0.6rem; right: 0.9rem; z-index: 2;
  background: none; border: none; color: var(--mid); font-size: 26px; line-height: 1;
  cursor: pointer; padding: 0.2rem 0.4rem;
}
.search-overlay-close:hover { color: var(--ink); }
.search-overlay-panel .search-results { margin-top: 0.9rem; }

/* ===========================================================
   HOME — CATEGORY GRID
   =========================================================== */
.rooms {
  max-width: 1240px; margin: 0 auto; padding: 1.75rem 2rem 3.25rem;
}
.rooms-head { text-align: center; margin-bottom: 2rem; }
.rooms-head .eyebrow { margin-bottom: 0.9rem; }
.rooms-head h2 {
  font-family: 'Cormorant', serif; font-weight: 300;
  font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15;
}
.rooms-head h2 em { font-style: normal; }
/* flex so a partial last row (e.g. the 3 bottom cards) centers under the full rows */
.rooms-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4.5rem 2rem;
}
.room-card { flex: 0 1 calc(25% - 1.5rem); text-align: center; }  /* 4 per row */
.room-card-img {
  position: relative; aspect-ratio: 9 / 16; border-radius: 3px;   /* fallback frame for placeholder tiles */
  overflow: hidden; border: 0.75px solid var(--rule);
  background: var(--warm); margin-bottom: 1.1rem;
}
.room-card-img:has(img) { aspect-ratio: auto; }   /* real covers show the full board photo, uncropped */
.room-card-img img { width: 100%; height: auto; display: block; }
.room-card-img .placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.6rem; color: var(--gold);
}
.room-card-img .placeholder svg { opacity: 0.5; }
.room-card-img::after {
  content: 'Explore ↗';
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; background: rgba(42, 36, 25, 0.4);
  color: #fff; font-size: 11px; letter-spacing: 0.2em; text-transform: lowercase;
  opacity: 0; transition: opacity 0.35s ease;
}
.room-card:hover .room-card-img::after,
.room-card:focus-visible .room-card-img::after { opacity: 1; }
/* bigger, bolder, lowercase name in a light box, centered under each card */
.room-card-name {
  display: inline-block;
  font-family: 'Jost', sans-serif; font-size: 17px; font-weight: 600;
  text-transform: lowercase; letter-spacing: 0.1em; color: var(--ink);
  border: 0.75px solid var(--rule); border-radius: 5px;
  background: rgba(255, 255, 255, 0.55);
  padding: 0.55rem 1.15rem; margin-bottom: 0.5rem;
}
.room-card-desc {
  font-size: 12.5px; color: var(--mid); line-height: 1.6; letter-spacing: 0.01em;
  max-width: 30ch; margin: 0 auto;
}

/* ===========================================================
   CATEGORY PAGE — HEADER
   =========================================================== */
.page-head {
  max-width: 820px; margin: 0 auto; padding: 3rem 2rem 2rem;
  text-align: center;
}
.page-head .eyebrow { margin-bottom: 0.7rem; }
.page-head h1 {
  font-family: 'Cormorant', serif; font-weight: 300;
  font-size: clamp(34px, 6vw, 56px); line-height: 1.08; margin-bottom: 0.7rem;
}
.page-head h1 em { font-style: normal; }
.page-head p {
  font-size: 16px; color: var(--mid); line-height: 1.6;
  max-width: 58ch; margin: 0 auto;
}

/* ── BOARDS (blog-like list) ── */
/* "jump to a board" index — auto-built by site.js at the top of section pages */
.board-index {
  max-width: 860px; margin: 0.25rem auto 0; padding: 1.5rem 2rem 0;
  text-align: center;
}
.board-index-label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: lowercase;
  color: var(--gold); margin-bottom: 0.85rem;
}
.board-index-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem 0.6rem;
}
.board-index-links a {
  font-family: 'Jost', sans-serif; font-size: 12.5px; color: var(--mid);
  border: 0.75px solid var(--rule); border-radius: 999px;
  padding: 0.4rem 0.9rem; background: rgba(255, 255, 255, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.board-index-links a:hover {
  color: var(--ink); border-color: var(--gold); background: rgba(255, 255, 255, 0.85);
}

.boards {
  max-width: 1080px; margin: 0 auto; padding: 1.5rem 2rem 3rem;
}
/* one board per row: image on the LEFT, details + shop links on the RIGHT */
.board {
  display: flex; gap: 3rem; align-items: flex-start; text-align: left;
  padding: 2.75rem 0; border-top: 0.75px solid var(--rule);
  scroll-margin-top: 90px;   /* so a jumped-to board sits below the sticky nav */
}
.board:first-child { border-top: none; }
.board-media {
  position: relative; border-radius: 3px; overflow: hidden;
  border: 0.75px solid var(--rule); background: var(--warm);
  box-shadow: var(--shadow);
  flex: 0 0 420px; max-width: 420px; margin: 0;
  aspect-ratio: 2 / 3;   /* fallback frame for placeholder boards (no image yet) */
}
.board-media:has(img) { aspect-ratio: auto; }   /* real board graphics display at their natural ratio — never cropped */
.board-media img { width: 100%; height: auto; display: block; }
.board-media .placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.75rem;
  color: var(--gold); text-align: center; padding: 1.5rem;
}
.board-media .placeholder svg { opacity: 0.5; }
.board-media .placeholder span {
  font-size: 11px; letter-spacing: 0.16em; text-transform: lowercase;
}
.board-body { flex: 1 1 auto; min-width: 0; padding-top: 0.25rem; }
.board-kicker { display: none; }   /* subheader removed per Tori */
.board-title {
  font-family: 'Cormorant', serif; font-weight: 300;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.15; margin-bottom: 0.5rem;
}
.board-title em { font-style: normal; }
.board-desc {
  font-size: 14.5px; color: var(--mid); line-height: 1.55; margin-bottom: 1rem;
  max-width: none;
}
.shop-label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: lowercase;
  color: var(--ink); padding-bottom: 0.6rem; margin-bottom: 0.4rem;
  border-bottom: 0.75px solid var(--rule);
}
/* two columns so a long list stays compact; collapses to one on narrow widths */
.shop-list {
  list-style: none; text-align: left;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  column-gap: 1.75rem;
}
.shop-list li { border-bottom: 0.75px solid var(--rule); }
.shop-list a {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding: 0.5rem 0; font-size: 14px; color: var(--ink);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.shop-list a:hover { color: var(--gold); padding-left: 0.35rem; }
.shop-list .shop-name { line-height: 1.4; }
.shop-list .shop-go {
  font-size: 10px; letter-spacing: 0.14em; text-transform: lowercase;
  color: var(--gold); white-space: nowrap;
}

/* ── affiliate disclosure ── */
.disclosure {
  max-width: 1080px; margin: 0 auto; padding: 1.5rem 2rem 0;
}
.disclosure p {
  font-size: 12px; color: var(--mid); line-height: 1.7;
  font-style: normal; opacity: 1;
  border-top: 0.75px solid var(--rule); padding-top: 1.25rem;
}

/* small note to help future editing — never shown */
.editor-note { display: none; }

/* ===========================================================
   FOOTER
   =========================================================== */
footer {
  border-top: 0.75px solid var(--rule); margin-top: 2rem;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 2.5rem 2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 1rem; flex-wrap: wrap;
}
.footer-logo {
  font-family: 'Cormorant', serif; font-style: normal;
  font-size: 18px; color: var(--ink); letter-spacing: 0.04em;
}
.footer-links {
  display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center;
}
.footer-links a {
  font-size: 11px; letter-spacing: 0.14em; text-transform: lowercase;
  color: var(--mid);
}
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: 11px; color: var(--mid); opacity: 0.95; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 900px) {
  .rooms-grid { gap: 2.75rem 1.6rem; }
  .room-card { flex-basis: calc(50% - 0.8rem); }   /* 2 per row on tablet */
  .about { grid-template-columns: 1fr; gap: 2rem; max-width: 520px; }
  .about-photo { aspect-ratio: 4 / 5; max-width: 360px; margin: 0 auto; width: 100%; }
  .about-text { text-align: center; }
  .about-text p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 560px) {
  .nav-bar { padding: 0.8rem 1.1rem; }
  .nav-home, .nav-cta { font-size: 9px; letter-spacing: 0.14em; }
  .nav-logo { font-size: 15px; letter-spacing: 0.08em; }
  .hero { padding: 3rem 1.25rem 2rem; }
  .about, .rooms, .boards, .page-head, .disclosure { padding-left: 1.25rem; padding-right: 1.25rem; }
  .room-card { flex-basis: 100%; }   /* 1 per row on mobile */
  .footer-inner { flex-direction: column; text-align: center; justify-content: center; }
}

/* on narrow screens, stack each board: image on top, links below (centered) */
@media (max-width: 680px) {
  .board { flex-direction: column; align-items: center; text-align: center; gap: 0; }
  .board-media { flex-basis: auto; max-width: 380px; width: 100%; margin: 0 auto 1.5rem; }
  .board-body { width: 100%; }
  .board-desc { max-width: 54ch; margin-left: auto; margin-right: auto; }
}
