:root {
  --cream: #f8f5ef;
  --ivory: #fffdf9;
  --gold: #b49a70;
  --ink: #292723;
  --muted: #77736b;
  --line: #e8e1d6;
  --content-width: 1200px;
  --header-layer: 100;
  --overlay-layer: 1000;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: Arial, sans-serif;
  line-height: 1.65;
}

h1,
h2,
h3,
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

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

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.announcement {
  padding: 8px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 10px;
  letter-spacing: 2px;
}

header {
  position: sticky;
  top: 0;
  z-index: var(--header-layer);
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--content-width);
  margin: auto;
  padding: 20px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  text-align: center;
  letter-spacing: 4px;
  font-size: 29px;
}

header .brand::before {
  content: "";
  display: inline-block;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  background: url("/assets/FB-T2T-logo.jpg") center / contain no-repeat;
}

.tagline {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 3px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

nav a {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

nav a:hover {
  color: var(--gold);
}

.menu-button {
  display: none;
  border: 0;
  background: none;
  font-size: 22px;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 13px 27px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.btn:hover {
  background: transparent;
  color: var(--gold);
}

footer {
  padding: 45px 24px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

footer .brand {
  font-size: 24px;
}

footer p {
  color: #c5beb2;
  font-size: 11px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin: 25px;
}

.footer-links a {
  color: #e3d9ca;
  font-size: 10px;
}

footer .legal {
  color: #aaa49a;
  font-size: 9px;
}

.legal-page {
  width: min(760px, calc(100% - 40px));
  min-height: 55vh;
  margin: 64px auto 88px;
}

.legal-page h1 {
  margin: 10px 0 28px;
  font-size: clamp(36px, 6vw, 54px);
  line-height: 1.12;
}

.legal-page h2 {
  margin: 34px 0 10px;
  font-size: 25px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.85;
}

.legal-page a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

/* Shared newsletter component */
.newsletter {
  padding: 58px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  text-align: center;
}

.newsletter .kicker {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 2px;
}

.newsletter h2 {
  margin: 8px 0;
  font-size: clamp(28px, 4vw, 40px);
}

.newsletter p {
  margin: 0 auto 20px;
  color: var(--muted);
}

.newsletter form {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter input {
  min-width: 0;
  flex: 1 1 240px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
}

.newsletter button {
  padding: 13px 22px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  letter-spacing: 1.5px;
}

.newsletter small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 700px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .brand {
    gap: 8px;
    font-size: 21px;
  }

  header .brand::before {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .menu-button {
    display: block;
  }

  header nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  header nav.open {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}



/* Editorial two-row header: brand left, tagline upper-right, navigation below. */
.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 24px;
  row-gap: 14px;
  padding: 36px 24px 14px;
}
.header-inner .brand {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  position: static;
  width: max-content;
  max-width: 100%;
  text-align: left;
}
.header-inner .tagline {
  position: absolute;
  top: 10px;
  right: 24px;
  margin: 0;
  white-space: nowrap;
  text-align: right;
}
.header-inner .header-spacer { display: none; }
.header-inner > nav {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: clamp(8px, 1.2vw, 18px);
}
.header-inner > nav a {
  flex: 0 1 auto;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 1px;
}
.header-inner > .menu-button { display: none; }

@media (max-width: 700px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 34px 16px 14px;
  }
  .header-inner .tagline {
    top: 8px;
    right: 16px;
    font-size: 8px;
    letter-spacing: 2px;
  }
  .header-inner > .menu-button {
    display: block;
    order: 0;
    flex: 0 0 auto;
  }
  .header-inner .brand {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(18px, 5vw, 22px);
    letter-spacing: 2px;
  }
  .header-inner > nav {
    order: 2;
    display: none;
    width: 100%;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    padding: 12px 0 4px;
    text-align: center;
  }
  .header-inner > nav.open { display: flex; }
  .header-inner > nav a { white-space: normal; }
}


/* Shared footer brand mark and social links. */
.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  letter-spacing: 3px;
}
.footer-brand img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.social-links {
  display: flex;
  justify-content: center;
  margin: 18px 0 8px;
}
.social-links a {
  color: #e3d9ca;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}
.social-links a:hover { color: var(--gold); }


/* Shared, understated affiliate disclosure */
.affiliate-note {
  margin: 20px auto;
  padding: 14px 18px;
  max-width: 760px;
  border: 1px solid #e5e4dc;
  border-left: 3px solid #71806f;
  border-radius: 8px;
  background: #f4f3ee;
  color: #62665f;
  font-size: 13px;
  line-height: 1.65;
}


/* Phase 3: shared design system and responsive consistency */
:root {
  --surface:#fffdf9; --surface-soft:#f8f5ef; --surface-muted:#f2eee6;
  --accent-dark:#92784f; --text:#292723; --text-muted:#77736b;
  --radius-sm:4px; --radius-md:10px; --radius-lg:16px;
  --shadow-soft:0 8px 24px rgba(41,39,35,.07);
  --content-gutter:clamp(18px,4vw,48px);
}
body{color:var(--text);background:var(--surface);font-size:15px}
img,video,iframe{max-width:100%} main{min-width:0}
button,.btn,.product-link,.product-detail-buy,.newsletter button{min-height:44px;border-radius:var(--radius-sm);transition:background-color .18s ease,border-color .18s ease,color .18s ease}
button:disabled{opacity:.6;cursor:wait}
.btn,.product-link,.product-detail-buy,.newsletter button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 20px;border:1px solid var(--gold);background:var(--gold);color:#fff;font-weight:600;text-align:center;text-decoration:none}
.btn:hover,.product-link:hover,.product-detail-buy:hover,.newsletter button:hover{background:var(--accent-dark);border-color:var(--accent-dark);color:#fff}
input,select,textarea{max-width:100%;border-radius:var(--radius-sm)}
:where(a,button,input,select,textarea):focus-visible{outline:3px solid color-mix(in srgb,var(--gold) 72%,white);outline-offset:3px}
.header-inner{width:min(100%,var(--content-width))}
.header-inner>nav a{padding:9px 3px;text-underline-offset:5px}
.header-inner>nav a:hover{text-decoration:underline;text-decoration-color:var(--gold)}
.menu-button{min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:var(--radius-sm);color:var(--ink)}
footer{padding:52px var(--content-gutter) 30px}
.footer-links{max-width:900px;margin:24px auto;row-gap:12px}
.footer-links a{padding:7px 4px}
.footer-links a:hover{color:#fff;text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:4px}
.newsletter{padding:clamp(42px,6vw,68px) var(--content-gutter)}
.newsletter input{min-height:48px;border-radius:var(--radius-sm)}
.affiliate-note{width:min(100% - 32px,760px)}
@media(max-width:760px){
 .header-inner{padding-left:16px;padding-right:16px}
 .header-inner .brand{letter-spacing:1.5px}
 .header-inner>nav a{display:block;width:100%;padding:11px 14px;border:1px solid var(--line);background:var(--cream)}
 .section{padding:48px 18px}
 .categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .category img{height:clamp(150px,42vw,240px)}
 .footer-links{gap:8px 16px;margin:20px auto}
 .newsletter form{align-items:stretch}
 .newsletter input,.newsletter button{flex:1 1 100%;width:100%}
}
@media(max-width:420px){.categories{grid-template-columns:1fr}.brand{white-space:normal}}


.newsletter-signup{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;max-width:620px;margin:20px auto 0}
.newsletter-signup .newsletter-email-label{min-width:0}
.newsletter-signup input[type=email]{width:100%}
.newsletter-interests{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;padding:12px;border:1px solid var(--line);text-align:left}
.newsletter-interests legend{padding:0 6px;color:var(--muted);font-size:12px}
.newsletter-interests legend span{font-weight:400}
.newsletter-interests label{display:inline-flex;align-items:center;gap:6px;font-size:12px}
.newsletter-interests input{flex:0 0 auto;min-width:auto}
.newsletter-signup button{margin:0}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Compact newsletter signup with optional expandable interest preferences. */
.newsletter form.newsletter-signup{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:10px;max-width:620px;margin:22px auto 0}
.newsletter-signup .newsletter-email-label{min-width:0}
.newsletter-signup input[type="email"]{width:100%;min-height:48px}
.newsletter-signup button{margin:0;min-width:116px}
.newsletter-preferences{grid-column:1/-1;text-align:left;font-size:12px}
.newsletter-preferences summary{display:table;margin:4px auto 0;color:var(--muted);cursor:pointer;list-style:none;text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:4px}
.newsletter-preferences summary::-webkit-details-marker{display:none}
.newsletter-preferences summary::after{content:" +";color:var(--gold);font-weight:700}
.newsletter-preferences[open] summary::after{content:" −"}
.newsletter-preferences summary span{font-weight:400}
.newsletter-interests{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;margin:14px 0 6px;padding:12px;border:1px solid var(--line);border-radius:var(--radius-md);background:rgba(255,255,255,.55);text-align:left}
.newsletter-interests legend{padding:0 6px;color:var(--muted);font-size:12px}
.newsletter-interests label{display:inline-flex;align-items:center;gap:6px;font-size:12px}
.newsletter-interests input{flex:0 0 auto;min-width:auto;accent-color:var(--accent-dark)}
.newsletter-preferences>small{display:block;text-align:center;color:var(--muted);font-size:11px}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){.newsletter form.newsletter-signup{display:grid;grid-template-columns:minmax(0,1fr) auto}.newsletter-signup .newsletter-email-label{min-width:0}.newsletter-signup input[type="email"]{width:100%}.newsletter-preferences{grid-column:1/-1}}
@media(max-width:560px){.newsletter form.newsletter-signup{grid-template-columns:1fr}.newsletter-signup button{width:100%}.newsletter-interests{justify-content:flex-start}}


/* SITE-WIDE CARD SYSTEM
   Match the predictable sizing used on Our Finds across journal, recipes,
   Beauty & Style, homepage collections, related content, and product cards. */
:where(.blog-grid,.recipe-grid,.nail-grid,.home-card-grid,.home-finds-grid,.related-recipe-grid,.beauty-find-grid,.product-grid) {
  align-items: stretch;
  grid-auto-rows: 1fr;
}
:where(.blog-card-link,.recipe-card-link) {
  display: flex;
  min-width: 0;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
:where(.blog-card,.recipe-card,.nail-card,.home-content-card,.home-find-card,.related-recipe-card,.product-card) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
:where(.blog-card-body,.recipe-card-body,.nail-card-copy,.home-card-copy,.home-find-copy) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  box-sizing: border-box;
}
:where(.blog-card-image,.recipe-card>img,.recipe-card>.recipe-placeholder,.nail-card>img,.home-content-card>img,.home-find-card>img,.home-card-placeholder,.home-find-placeholder,.related-recipe-card>img) {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  overflow: hidden;
  object-fit: cover;
  box-sizing: border-box;
}
:where(.blog-card-image img) {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
:where(.blog-card-body>p:not(.blog-category),.recipe-card-body>p,.nail-card-copy>p:not(.nail-tags),.home-card-copy>p:not(.home-card-category),.home-find-copy>p,.related-recipe-card>p,.product-card-main>p,.product-description) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  max-height: calc(1.6em * 4);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
:where(.blog-card h2,.recipe-card h2,.nail-card h3,.home-card-copy h3,.home-find-copy h3,.related-recipe-card h3,.product-card h3) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.4em;
  max-height: 2.4em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
:where(.blog-card-tags,.recipe-link,.blog-read-link,.home-card-cta,.home-find-cta,.product-card .product-link) {
  margin-top: auto;
}
:where(.product-card-main) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
:where(.product-card-main img,.product-card .product-photo,.product-card .product-image) {
  display: grid;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  object-fit: contain;
  background: #f8f7f3;
}
:where(.category) {
  display: flex;
  height: 100%;
  flex-direction: column;
  min-width: 0;
}
:where(.category-caption) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-start;
}
:where(.category-caption p) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}
@media (max-width: 760px) {
  :where(.blog-grid,.recipe-grid,.nail-grid,.home-card-grid,.home-finds-grid,.related-recipe-grid,.beauty-find-grid,.product-grid) {
    grid-auto-rows: 1fr;
  }
}


/* Shared Our Finds-style filter panel for all content collection pages. */
.site-filter-panel {
  display: block;
  width: 100%;
  margin: 0 auto 20px;
  padding: 0;
  background: #fbf9f4;
  border: 1px solid #e8e1d6;
  box-sizing: border-box;
  text-align: left;
}
.site-filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 14px 18px;
  list-style: none;
  cursor: pointer;
  color: #292723;
  background: #fff;
  font: 700 15px/1.35 Georgia,serif;
}
.site-filter-toggle::-webkit-details-marker { display: none; }
.site-filter-toggle::after {
  content: "+";
  flex: 0 0 auto;
  color: #526b5b;
  font: 400 22px/1 Arial,sans-serif;
}
.site-filter-panel[open] > .site-filter-toggle::after { content: "−"; }
.site-filter-content {
  padding: 16px 18px 18px;
  border-top: 1px solid #e8e1d6;
}
.site-filter-content label {
  color: #343a35;
}
.site-filter-content select,
.site-filter-content button {
  box-sizing: border-box;
  min-height: 44px;
  font: inherit;
}
.site-filter-content select {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #dcd7cd;
  background: #fff;
  color: #292723;
  font-size: 13px;
}
.site-filter-content button {
  cursor: pointer;
}
.site-filter-content :is(.blog-filter,.recipe-filter,.beauty-find-chip) {
  border-radius: 999px;
  border: 1px solid #d9d5cb;
  background: #fff;
  color: #526b5b;
  padding: 9px 14px;
  font-size: 12px;
}
.site-filter-content :is(.blog-filter.is-active,.recipe-filter.is-active,.beauty-find-chip.is-active),
.site-filter-content :is(.blog-filter:hover,.recipe-filter:hover,.beauty-find-chip:hover) {
  background: #526b5b;
  border-color: #526b5b;
  color: #fff;
}
@media (max-width: 600px) {
  .site-filter-toggle { padding: 13px 14px; }
  .site-filter-content { padding: 14px; }
}
