/* ============================================================
   Kamal Knitwears — Design Tokens
   Palette:
     --ink        #1C1B1F  charcoal ink (text)
     --paper      #F7F3EC  bill-paper cream (background)
     --paper-line #E8E2D5  soft paper border / hairline
     --maroon     #7A2E2E  wool-thread maroon (primary accent)
     --mustard    #C9A227  festive gold (secondary accent)
     --slate      #3A4A5C  denim-slate (cool contrast / links)
   Type:
     Display: 'Fraunces' (heritage serif, tailored feel)
     Body:    'IBM Plex Sans'
     Utility/Numbers: 'IBM Plex Mono' (ledger / invoice feel)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  --ink: #1C1B1F;
  --paper: #F7F3EC;
  --paper-line: #E0D9C8;
  --maroon: #7A2E2E;
  --maroon-dark: #5c2222;
  --mustard: #C9A227;
  --slate: #3A4A5C;
  --white: #ffffff;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius: 4px;
  --shadow: 0 2px 10px rgba(28,27,31,0.08);
  --shadow-lg: 0 12px 40px rgba(28,27,31,0.16);
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a{ color: var(--slate); }
img{ max-width: 100%; display:block; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- stitch divider: the signature element ---------------------- */
.stitch{
  border: none;
  border-top: 2px dashed var(--maroon);
  opacity: 0.55;
  margin: 0;
}
.stitch-label{
  display:flex; align-items:center; gap:14px;
  color: var(--maroon); font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  margin: 64px 0 28px;
}
.stitch-label::before, .stitch-label::after{
  content:""; flex:1; border-top: 2px dashed var(--maroon); opacity:0.5;
}

/* --- buttons ------------------------------------------------------ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family: var(--font-body); font-weight:600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor:pointer; text-decoration:none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--maroon); color: var(--white); }
.btn-primary:hover{ background: var(--maroon-dark); box-shadow: var(--shadow); }
.btn-outline{ background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover{ background: var(--ink); color: var(--paper); }
.btn-ghost{ background: transparent; color: var(--slate); border-color: var(--paper-line); }
.btn-ghost:hover{ border-color: var(--slate); }
.btn-sm{ padding: 8px 14px; font-size: 0.85rem; }
.btn-danger{ background: #a33; color:#fff; }
.btn-danger:hover{ background:#822; }
.btn:disabled{ opacity:.45; cursor:not-allowed; }

/* --- site header ---------------------------------------------------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(247,243,236,0.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--paper-line);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  height: 78px;
}
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--ink); }
.brand-mark{
  width:40px; height:40px; border-radius:50%;
  background: var(--maroon); color:#fff; display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-size:1.2rem;
}
.brand-name{ font-family: var(--font-display); font-size:1.15rem; font-weight:600; line-height:1.1; }
.brand-name span{ display:block; font-family: var(--font-mono); font-size:0.62rem; letter-spacing:.14em; color:var(--maroon); text-transform:uppercase; font-weight:500;}
.nav-links{ display:flex; align-items:center; gap:28px; font-size:0.95rem; }
.nav-links a{ color: var(--ink); text-decoration:none; }
.nav-links a:hover{ color: var(--maroon); }

/* --- hero ------------------------------------------------------------ */
.hero{ padding: 84px 0 60px; }
.hero-grid{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap:56px; align-items:center; }
.eyebrow{
  font-family: var(--font-mono); font-size:0.78rem; letter-spacing:.16em; text-transform:uppercase;
  color: var(--maroon); margin-bottom: 18px; display:block;
}
.hero h1{ font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height:1.06; }
.hero h1 em{ font-style: italic; color: var(--maroon); }
.hero p.lead{ font-size:1.12rem; color:#4a4750; max-width: 46ch; margin: 18px 0 32px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

.swatch-panel{
  background: var(--white); border:1px solid var(--paper-line); border-radius: 10px;
  padding: 28px; box-shadow: var(--shadow-lg); position:relative;
}
.swatch-row{ display:flex; justify-content:space-between; padding:14px 0; border-bottom:1px dashed var(--paper-line); font-family: var(--font-mono); font-size:0.88rem;}
.swatch-row:last-child{ border-bottom:none; }
.swatch-row b{ font-family: var(--font-body); font-weight:600; }

/* --- product grid ------------------------------------------------- */
.products{ padding: 20px 0 80px; }
.section-head{ max-width: 60ch; margin-bottom: 40px; }
.section-head p{ color:#4a4750; }
.product-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:24px; }
.product-card{
  background: var(--white); border:1px solid var(--paper-line); border-radius: 8px;
  padding: 26px; position:relative; overflow:hidden;
}
.product-card .tag-no{
  font-family: var(--font-mono); font-size:0.72rem; color: var(--maroon); letter-spacing:.1em;
}
.product-card h3{ font-size:1.25rem; margin: 10px 0 8px; }
.product-card p{ color:#565159; font-size:0.94rem; margin:0; }
.product-card::after{
  content:""; position:absolute; right:-30px; bottom:-30px; width:110px; height:110px;
  border: 2px dashed var(--paper-line); border-radius:50%;
}

/* --- about / ledger strip ------------------------------------------ */
.about{ padding: 20px 0 80px; }
.about-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:56px; align-items:start; }
.ledger{
  background: var(--ink); color: var(--paper); border-radius: 10px; padding: 30px;
  font-family: var(--font-mono); font-size:0.88rem;
}
.ledger-line{ display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid rgba(247,243,236,.14); }
.ledger-line:last-child{ border-bottom:none; }
.ledger-line span:first-child{ opacity:.6; }

/* --- footer / cta --------------------------------------------------- */
.cta-banner{
  background: var(--maroon); color:#fff; padding: 56px 0; text-align:center;
}
.cta-banner h2{ color:#fff; }
.cta-banner p{ color: rgba(255,255,255,.85); max-width: 50ch; margin: 8px auto 26px; }
.site-footer{ padding: 40px 0; border-top:1px solid var(--paper-line); }
.footer-grid{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; font-size:0.9rem; color:#565159;}
.footer-grid a{ text-decoration:none; }

/* --- responsive ------------------------------------------------------ */
@media (max-width: 880px){
  .hero-grid, .about-grid{ grid-template-columns: 1fr; }
  .product-grid{ grid-template-columns: 1fr 1fr; }
  .nav-links{ display:none; }
}
@media (max-width: 560px){
  .product-grid{ grid-template-columns: 1fr; }
}

/* --- focus states ------------------------------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline: 2.5px solid var(--slate); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; transition:none !important; }
}
