/* ===========================================================
   FrontThread — shared design system
   Warm, natural, premium custom apparel
   (Fonts loaded via <link> in each page head)
   =========================================================== */

:root{
  /* surfaces */
  --paper:      #F7F1E7;   /* warm cream base */
  --paper-2:    #FCF8F1;   /* lighter cards */
  --sand:       #EFE5D4;   /* deeper warm panel */
  --sand-deep:  #E7DAC3;
  --line:       #E3D6BF;   /* hairlines on cream */
  --line-soft:  #EDE3D1;

  /* ink */
  --ink:    #2A251E;
  --ink-2:  #574E40;
  --ink-3:  #8C8170;
  --ink-4:  #A89C87;

  /* accent — warm honey */
  --honey:        #C58A1C;
  --honey-deep:   #946410;   /* honey text on cream */
  --honey-bright: #E2AE3C;
  --honey-tint:   #F3E6C6;
  --honey-tint-2: #F8EFD9;

  --white: #ffffff;
  --snow:  #FEFDFB;   /* crisp natural white for cards */
  --noir:  #16120D;   /* warm natural near-black */
  --noir-2:#211B14;

  --shadow-sm: 0 2px 10px -6px rgba(64,48,16,.30);
  --shadow:    0 22px 48px -30px rgba(64,48,16,.42);
  --shadow-lg: 0 40px 80px -44px rgba(64,48,16,.50);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 56px);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-label: "Marcellus", Georgia, serif;
  --font-body: "Mulish", system-ui, sans-serif;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.65;
}

img{ display:block; max-width:100%; }
a{ color: inherit; text-decoration: none; }

/* ---------- layout ---------- */
.wrap{ max-width: var(--maxw); margin-inline:auto; padding-inline: var(--pad); }
.section{ padding-block: clamp(64px, 9vw, 120px); }
.section--tight{ padding-block: clamp(48px, 6vw, 80px); }

/* ---------- typography ---------- */
.eyebrow{
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--honey-deep);
  display:inline-flex; align-items:center; gap:.7em;
  margin:0 0 22px;
}
.eyebrow::before{
  content:""; width:30px; height:1px; background: var(--honey);
  display:inline-block; opacity:.7;
}
.eyebrow--center{ justify-content:center; }
.eyebrow--center::after{
  content:""; width:30px; height:1px; background: var(--honey);
  display:inline-block; opacity:.7;
}

h1,h2,h3,h4{ margin:0; font-weight:600; }

.display{
  font-family: var(--font-display);
  font-weight:600;
  line-height: 1.02;
  letter-spacing: -.01em;
  font-size: clamp(2.8rem, 6.4vw, 5.3rem);
}
.h-xl{
  font-family: var(--font-display);
  font-weight:600; line-height:1.06; letter-spacing:-.01em;
  font-size: clamp(2.4rem, 4.8vw, 3.9rem);
}
.h-lg{
  font-family: var(--font-display);
  font-weight:600; line-height:1.08;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
}
.h-md{
  font-family: var(--font-display);
  font-weight:600; line-height:1.12;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}
.serif-cap{
  font-family: var(--font-label);
  letter-spacing:.12em; text-transform:uppercase;
}

.lede{
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  line-height:1.62; color: var(--ink-2); font-weight:400;
  max-width: 60ch;
}
p{ margin:0 0 1.1em; color: var(--ink-2); }
p:last-child{ margin-bottom:0; }
.muted{ color: var(--ink-3); }
em.serif{ font-family: var(--font-display); font-style: italic; font-weight:500; color: var(--honey-deep); }

/* ---------- buttons ---------- */
.btn{
  --bg: var(--ink); --fg: var(--paper);
  display:inline-flex; align-items:center; gap:.6em;
  font-family: var(--font-body); font-weight:700; font-size:.95rem;
  letter-spacing:.01em;
  padding: 15px 30px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  border:1px solid transparent; cursor:pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space:nowrap;
}
.btn svg{ width:1.05em; height:1.05em; }
.btn:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--honey{ --bg: var(--honey); --fg:#fff; box-shadow: 0 14px 30px -16px rgba(150,100,16,.7); }
.btn--honey:hover{ background:#b67c14; }
.btn--ghost{
  --bg: transparent; --fg: var(--ink);
  border-color: var(--ink); 
}
.btn--ghost:hover{ background: var(--ink); color: var(--paper); }
.btn--light{ --bg: var(--paper-2); --fg: var(--ink); border-color: var(--line); }
.btn--lg{ padding: 17px 36px; font-size:1rem; }

.textlink{
  font-weight:700; color: var(--ink);
  display:inline-flex; align-items:center; gap:.5em;
  border-bottom:2px solid var(--honey); padding-bottom:2px;
  transition: gap .25s ease, color .25s ease;
}
.textlink:hover{ gap:.85em; color: var(--honey-deep); }
.textlink svg{ width:1em; height:1em; }

/* ---------- header ---------- */
.site-header{
  position: sticky; top:0; z-index:60;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom:1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled{ border-color: var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); }
.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:24px; height:74px;
}
.brand{ display:inline-flex; align-items:center; gap:11px; }
.brand-mark{
  width:34px; height:34px; border-radius:8px;
  object-fit:cover; display:block; flex:none;
}
.brand-name{
  font-family: var(--font-label); font-size:1.28rem; letter-spacing:.06em;
  color: var(--ink); line-height:1;
}
.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-links a{
  font-size:.95rem; font-weight:600; color: var(--ink-2); white-space:nowrap;
  position:relative; padding:6px 0; transition: color .2s ease;
}
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:-2px; height:2px; width:0;
  background: var(--honey); transition: width .25s ease;
}
.nav-links a:hover{ color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after{ width:100%; }
.nav-links a.active{ color: var(--ink); }
.nav-cta{ display:flex; align-items:center; gap:18px; }
.nav-toggle{
  display:none; width:46px; height:46px; border-radius:12px;
  border:1px solid var(--line); background: var(--paper-2);
  align-items:center; justify-content:center; cursor:pointer; color: var(--ink);
}
.nav-toggle svg{ width:22px; height:22px; }

/* mobile drawer */
.mobile-drawer{
  position:fixed; inset:0; z-index:80;
  background: var(--paper); padding: 90px var(--pad) 40px;
  display:flex; flex-direction:column; gap:6px;
  transform: translateY(-100%); opacity:0; pointer-events:none; visibility:hidden;
  transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .3s ease, visibility 0s linear .4s;
}
.mobile-drawer.open{ transform:none; opacity:1; pointer-events:auto; visibility:visible; transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .3s ease; }
.mobile-drawer a{
  font-family: var(--font-display); font-size:2rem; font-weight:600;
  padding:14px 0; border-bottom:1px solid var(--line-soft); color: var(--ink);
}
.mobile-drawer .btn{ margin-top:22px; justify-content:center; }
.mobile-drawer a.btn--honey{ color:#fff; border-bottom:1px solid transparent; }
.mobile-close{
  position:absolute; top:18px; right:var(--pad); width:46px; height:46px;
  border-radius:12px; border:1px solid var(--line); background:var(--paper-2);
  display:grid; place-items:center; cursor:pointer; color:var(--ink);
}

/* ---------- chips / badges ---------- */
.chip{
  display:inline-flex; align-items:center; gap:.5em;
  font-size:.82rem; font-weight:700; letter-spacing:.01em;
  padding:7px 14px; border-radius:999px;
  background: var(--honey-tint); color: var(--honey-deep);
  border:1px solid color-mix(in srgb, var(--honey) 28%, transparent);
}
.chip svg{ width:1.05em; height:1.05em; }
.chip--plain{ background: var(--paper-2); color: var(--ink-2); border-color: var(--line); }

.tag{
  display:inline-block; font-size:.72rem; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase;
  color: var(--ink-3);
}

/* trust row */
.trust-row{ display:flex; flex-wrap:wrap; gap:10px 22px; align-items:center; }
.trust-item{
  display:inline-flex; align-items:center; gap:.55em;
  font-size:.9rem; font-weight:600; color: var(--ink-2);
}
.trust-item svg{ width:18px; height:18px; color: var(--honey-deep); flex:none; }

/* ---------- cards ---------- */
.card{
  background: var(--paper-2); border:1px solid var(--line-soft);
  border-radius: var(--r); padding: 30px;
  box-shadow: var(--shadow-sm);
}

/* value cards */
.value-grid{
  display:grid; grid-template-columns: repeat(4,1fr); gap:20px;
}
.value-card{
  background: var(--paper-2); border:1px solid var(--line-soft);
  border-radius: var(--r); padding: 30px 28px 32px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position:relative; overflow:hidden;
}
.value-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); }
.value-icn{
  width:52px; height:52px; border-radius:13px;
  display:grid; place-items:center; margin-bottom:22px;
  background: var(--honey-tint); color: var(--honey-deep);
  border:1px solid color-mix(in srgb, var(--honey) 24%, transparent);
}
.value-icn svg{ width:25px; height:25px; }
.value-card h3{ font-family: var(--font-display); font-size:1.5rem; font-weight:600; margin-bottom:9px; }
.value-card p{ font-size:.97rem; margin:0; color: var(--ink-2); }
.value-num{
  position:absolute; top:20px; right:24px;
  font-family: var(--font-display); font-style:italic; font-size:1.5rem;
  color: var(--honey); opacity:.45;
}

/* ---------- footer ---------- */
.site-footer{
  background: var(--ink); color: #E9E0D0;
  padding-block: clamp(56px, 7vw, 84px) 36px;
}
.footer-grid{
  display:grid; grid-template-columns: 1.6fr 1fr 1fr; gap:48px;
  padding-bottom: 48px; border-bottom:1px solid rgba(233,224,208,.14);
}
.site-footer .brand-name{ color:#F6EEDD; }
.site-footer .brand-mark{ box-shadow: 0 0 0 1px rgba(246,238,221,.12); }
.footer-blurb{ color:#C3B8A4; max-width:36ch; margin-top:20px; font-size:.97rem; }
.footer-col h4{
  font-family: var(--font-label); font-size:.8rem; letter-spacing:.2em;
  text-transform:uppercase; color: var(--honey-bright); margin-bottom:18px; font-weight:400;
}
.footer-col a, .footer-col p{ display:block; color:#D6CBB7; font-size:.96rem; margin-bottom:11px; transition:color .2s ease; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  padding-top:26px; color:#9C9079; font-size:.85rem;
}
.footer-bottom a{ color:#9C9079; }
.footer-bottom a:hover{ color:#D6CBB7; }

/* ---------- utility ---------- */
.center{ text-align:center; }
.mx-auto{ margin-inline:auto; }
.stack-sm > * + *{ margin-top:14px; }
.divider{ height:1px; background: var(--line); border:0; margin:0; }
.grain{ position:relative; }

.reveal{ opacity:0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px){
  .value-grid{ grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; gap:36px; }
}
@media (max-width: 760px){
  body{ font-size:16px; }
  .nav-links, .nav-cta .btn{ display:none; }
  .nav-toggle{ display:inline-flex; }
  .footer-grid{ grid-template-columns: 1fr; gap:30px; }
}
@media (max-width: 540px){
  .value-grid{ grid-template-columns: 1fr; }
}
