/* KnitChats: one stylesheet, no build step. Tokens first; components below. */

:root {
  --paper: #fcfaf7;
  --cream: #f6f0e9;
  --blush: #fbecf1;
  --ink: #2e2a33;
  --muted: #625b69;
  --line: #e8dfd5;
  --yarn: #4a5382;        /* slate-indigo yarn from the hero photos */
  --yarn-dark: #2f3559;
  --pink: #c22a68;        /* brand pink: actions and accents */
  --pink-dark: #9e1f53;
  --logo-gray: #77767c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(46, 42, 51, .06), 0 8px 24px rgba(46, 42, 51, .07);
  --max: 1120px;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-dark); text-underline-offset: 3px; }
a:hover { color: var(--pink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.18; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--muted); }
.eyebrow { font: 700 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--pink); margin-bottom: .8rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yarn); outline-offset: 2px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 250, 247, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--logo-gray); }
.logo-mark { display: grid; font: 500 1.55rem/0.86 "Nunito Sans", system-ui, sans-serif; letter-spacing: -.02em; position: relative; padding-right: 30px; }
.logo-mark svg { position: absolute; right: 0; top: -2px; width: 34px; height: 22px; }
.logo sup { font-size: .55rem; color: var(--logo-gray); margin-left: 2px; align-self: start; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--blush); color: var(--pink-dark); }
.nav .btn { margin-left: 8px; color: #fff; }
.nav .btn:hover { background: var(--pink-dark); color: #fff; }
.menu { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-weight: 700; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { background: var(--blush); }
  .menu nav { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: grid; min-width: 220px; }
  .menu nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 14px; border-radius: 10px; }
  .menu nav a:hover, .menu nav a[aria-current="page"] { background: var(--blush); }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: 700 .98rem/1.2 var(--sans); text-decoration: none; padding: 13px 22px; border-radius: 999px; border: 2px solid var(--pink); background: var(--pink); color: #fff; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { background: var(--pink-dark); border-color: var(--pink-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--pink-dark); }
.btn-ghost:hover { background: var(--blush); color: var(--pink-dark); }
.btn-light { background: #fff; border-color: #fff; color: var(--yarn-dark); }
.btn-light:hover { background: var(--cream); border-color: var(--cream); color: var(--yarn-dark); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.center .actions { justify-content: center; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero picture img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(252, 250, 247, .96) 0%, rgba(252, 250, 247, .88) 42%, rgba(252, 250, 247, .15) 78%); }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 9vw, 120px); }
.hero-copy { max-width: 560px; }
.hero h1 em { font-style: normal; color: var(--pink); }
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(180deg, rgba(252, 250, 247, .9) 0%, rgba(252, 250, 247, .96) 100%); }
}

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-cream { background: var(--cream); }
.section-blush { background: var(--blush); }
.section-yarn { background: var(--yarn-dark); color: #eef0f7; }
.section-yarn h2, .section-yarn h3 { color: #fff; }
.section-yarn a:not(.btn) { color: #fff; }
.section-head { max-width: 680px; margin: 0 auto 2.6rem; text-align: center; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 820px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-bottom: .35em; }
.card p:last-of-type { flex: 1; }
.card .price { font: 400 1.5rem/1.2 var(--serif); color: var(--yarn-dark); margin: .2em 0 .6em; }
.card .price s { color: var(--muted); font-size: 1rem; margin-right: 6px; }
.card .btn { align-self: flex-start; margin-top: .6rem; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blush); color: var(--pink); margin-bottom: 14px; }
.card-icon svg { width: 24px; height: 24px; }

/* product cards */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; background: #fff; }
.product.wide img { aspect-ratio: 3 / 2; }
.product .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product h3 { font-size: 1.15rem; }
.product .price { font: 400 1.35rem/1.2 var(--serif); color: var(--yarn-dark); margin: 0 0 .5em; }
.product p { font-size: .96rem; color: var(--muted); }
.product .btn { margin-top: auto; align-self: flex-start; }
.product details { font-size: .92rem; color: var(--muted); margin: 0 0 1rem; }
.product details summary { cursor: pointer; color: var(--yarn); font-weight: 700; }
.product details ul { padding-left: 1.1em; margin: .5em 0 0; }
.tag { display: inline-block; background: var(--pink); color: #fff; font: 700 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; margin-bottom: 10px; align-self: flex-start; }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.quote { margin: 0; background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.quote p { font-size: 1rem; }
.quote p::before { content: "“"; font: 2.6rem/0 var(--serif); color: var(--pink); vertical-align: -0.45em; margin-right: 4px; }
.quote footer { font-weight: 700; color: var(--yarn); }
.quote footer span { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }
.quote img { height: 56px; width: auto; margin-bottom: 12px; }

/* ---------- misc ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: .55em; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--pink); border-bottom: 2.5px solid var(--pink); transform: rotate(-45deg); }
.note { background: var(--blush); border-radius: var(--radius); padding: 18px 22px; font-size: .97rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.team-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.team-list strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.team-list span { color: var(--muted); font-size: .95rem; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.contact-grid h3 { font-size: 1rem; font-family: var(--sans); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--pink); }
.sheep { width: 150px; border-radius: 50%; aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow); }

/* videos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.video { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.video .thumb { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--cream); }
.video video { aspect-ratio: 16 / 9; width: 100%; background: #000; }
.video .body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.video h3 { margin: 0; font-size: 1.15rem; }
.video .meta { font-size: .9rem; color: var(--muted); margin: 0; }
.video .btn { align-self: flex-start; margin-top: auto; }
.soon { font-size: .9rem; color: var(--muted); font-style: italic; margin-top: auto; }

/* ---------- footer ---------- */
.newsletter { background: var(--yarn); color: #fff; }
.newsletter .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 40px; }
.newsletter h2 { color: #fff; font-size: 1.6rem; margin: 0 0 .2em; }
.newsletter p { margin: 0; color: #e4e6f2; }
.site-footer { background: var(--yarn-dark); color: #d9dcea; font-size: .95rem; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 36px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font: 800 .8rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer .logo sup { color: #fff; }
.legal { border-top: 1px solid rgba(255, 255, 255, .15); }
.legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; grid-template-columns: none; font-size: .88rem; color: #b9bdd3; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
