/* ============================================================
   SKS Tartan Fabric Guide  (/pages/fabric-guide)
   Ported from fabric-guide.html. Loaded by main-page.liquid when
   the page body carries id="sks-fabric".

   Three deliberate changes from the source <style> block:

   1. EVERYTHING scoped under #sks-fabric. The source used bare
      element rules (*, html, body, a, details, summary, footer)
      and generic classes (.container, .section, .btn) that would
      collide head-on with theme styles.

   2. All rem -> px at a 16px base. Dawn sets html{font-size:62.5%}
      so 1rem = 10px here; leaving rem would render the page ~37%
      too small.

   3. Explicit `display` on the CSS-woven swatches. base.css has
      `div:empty{display:none}` (0,1,1) and .gswatch/.ws-loom are
      empty divs painted entirely with gradients — they would
      vanish. #sks-fabric .gswatch is (1,1,0) so it wins.

   Chrome from the source file (announce bar, nav, footer) is NOT
   ported — the theme supplies it. Fonts (Playfair Display + Jost)
   are already loaded site-wide in theme.liquid.
   ============================================================ */

#sks-fabric {
  --ivory: #f5f0e8;
  --parch: #e8dfd0;
  --parch-d: #ddd0bb;
  --white: #ffffff;
  --onyx: #1a1a1a;
  --slate: #2c3e50;
  --slate-d: #1e2d3b;
  --slate-l: #3a5269;
  --amber: #b8520a;
  --amber-l: #d4681a;
  --amber-d: #9a4308;
  --amber-p: #fef3ec;
  --crimson: #8b1f1f;
  --crimson-d: #6b1414;
  --gold: #c9a84c;
  --star: #e8a02e;
  --ok: #1a5c2a;
  --ok-p: #eaf3de;
  --body-c: #4a4440;
  --muted: #7a726b;
  --muted-l: #9a9088;
  --line: #d5cabb;
  --line-soft: #e2dacb;
  --cream: #e8c9a8;
  --r: 6px;
}

/* ── base + rte reset ─────────────────────────────────────────
   The body content renders inside Dawn's `.rte`, which adds its
   own margins/list styles. Reset the elements we use so the
   ported spacing is the only spacing.
   ────────────────────────────────────────────────────────────── */
#sks-fabric,
#sks-fabric *,
#sks-fabric *::before,
#sks-fabric *::after {
  box-sizing: border-box;
}

#sks-fabric {
  background: var(--ivory);
  color: var(--body-c);
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

#sks-fabric h1,
#sks-fabric h2,
#sks-fabric h3,
#sks-fabric p,
#sks-fabric ul,
#sks-fabric li,
#sks-fabric nav,
#sks-fabric div,
#sks-fabric span {
  margin: 0;
  padding: 0;
}

#sks-fabric ul {
  list-style: none;
}

#sks-fabric a {
  color: var(--amber);
  text-decoration: none;
}

#sks-fabric a:hover {
  text-decoration: underline;
}

#sks-fabric :focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

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

@media (prefers-reduced-motion: reduce) {
  #sks-fabric * {
    animation: none !important;
    transition: none !important;
  }
}

/* ── buttons ─────────────────────────────────────────────────── */
#sks-fabric .btn {
  display: inline-block;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 14.88px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 13.6px 30.4px;
  border: 1px solid transparent;
  border-radius: var(--r);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  cursor: pointer;
}

#sks-fabric .btn:hover {
  text-decoration: none;
}

#sks-fabric .btn-primary {
  background: var(--amber);
  color: var(--white);
}

#sks-fabric .btn-primary:hover {
  background: var(--amber-l);
}

#sks-fabric .btn-ghost {
  background: transparent;
  color: var(--amber);
  border-color: var(--amber);
}

#sks-fabric .btn-ghost:hover {
  background: var(--amber);
  color: var(--white);
}

#sks-fabric .btn-gold {
  background: var(--slate-d);
  color: var(--white);
}

#sks-fabric .btn-gold:hover {
  background: var(--slate);
}

/* ── PAGE HEADER · plain, no hero banner ─────────────────────── */
#sks-fabric .page-head {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 44.8px;
}

#sks-fabric .crumbs {
  font-size: 13.12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 20.8px;
}

#sks-fabric .crumbs a {
  color: var(--muted);
}

#sks-fabric .crumbs a:hover {
  color: var(--amber);
}

#sks-fabric .crumbs span {
  color: var(--muted-l);
  margin: 0 7.2px;
}

#sks-fabric .eyebrow {
  display: inline-block;
  font-size: 11.84px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 13.6px;
}

#sks-fabric .page-head h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(33.6px, 4.6vw, 48px);
  font-weight: 600;
  color: var(--onyx);
  line-height: 1.15;
  margin-bottom: 17.6px;
  max-width: 760px;
}

#sks-fabric .page-head h1 em {
  font-style: italic;
  color: var(--amber);
}

#sks-fabric .lede {
  font-size: 16.96px;
  font-weight: 300;
  max-width: 680px;
  line-height: 1.85;
  margin-bottom: 16px;
}

#sks-fabric .lede b {
  font-weight: 600;
  color: var(--slate-d);
}

#sks-fabric .signoff {
  font-size: 15.68px;
  font-weight: 300;
  color: var(--muted);
}

#sks-fabric .signoff b {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  color: var(--slate-d);
  font-size: 16.8px;
}

#sks-fabric .head-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  flex-wrap: wrap;
}

#sks-fabric .hstat b {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--amber);
  line-height: 1.1;
}

#sks-fabric .hstat span {
  font-size: 12.8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── SECTION SHELL ───────────────────────────────────────────── */
#sks-fabric .section {
  padding: 70.4px 0;
}

#sks-fabric .section.alt {
  background: var(--white);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

#sks-fabric .shead {
  max-width: 700px;
  margin-bottom: 38.4px;
}

#sks-fabric .shead h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(25.6px, 3.4vw, 35.2px);
  font-weight: 600;
  color: var(--onyx);
  line-height: 1.2;
  margin-bottom: 12.8px;
}

#sks-fabric .shead h2 em {
  font-style: italic;
  color: var(--amber);
}

#sks-fabric .shead p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
}

/* ── GUIDE CARDS (the commercial router) ─────────────────────── */
#sks-fabric .guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17.6px;
}

#sks-fabric .gcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

#sks-fabric .gcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(30, 45, 59, 0.13);
  text-decoration: none;
}

/* `display:block` is load-bearing: base.css hides `div:empty` and
   these swatches carry no text — the tartan is pure gradient. */
#sks-fabric .gswatch {
  display: block;
  height: 130px;
  position: relative;
}

#sks-fabric .gswatch::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.06) 0,
    rgba(0, 0, 0, 0) 2px,
    rgba(255, 255, 255, 0.05) 4px,
    rgba(0, 0, 0, 0) 6px
  );
}

/* four CSS-woven tartans, one per guide */
#sks-fabric .tw-crimson {
  background: repeating-linear-gradient(
      90deg,
      rgba(139, 31, 31, 0.85) 0 14px,
      rgba(30, 45, 59, 0.9) 14px 40px,
      rgba(201, 168, 76, 0.9) 40px 44px,
      rgba(30, 45, 59, 0.9) 44px 70px
    ),
    repeating-linear-gradient(0deg, #8b1f1f 0 14px, #1e2d3b 14px 40px, #c9a84c 40px 44px, #1e2d3b 44px 70px);
  background-blend-mode: multiply;
}

#sks-fabric .tw-hunting {
  background: repeating-linear-gradient(
      90deg,
      rgba(26, 60, 38, 0.9) 0 18px,
      rgba(30, 45, 59, 0.88) 18px 44px,
      rgba(232, 201, 168, 0.85) 44px 47px,
      rgba(30, 45, 59, 0.88) 47px 72px
    ),
    repeating-linear-gradient(0deg, #1a3c26 0 18px, #1e2d3b 18px 44px, #e8c9a8 44px 47px, #1e2d3b 47px 72px);
  background-blend-mode: multiply;
}

#sks-fabric .tw-dress {
  background: repeating-linear-gradient(
      90deg,
      rgba(245, 240, 232, 0.9) 0 16px,
      rgba(139, 31, 31, 0.88) 16px 40px,
      rgba(30, 45, 59, 0.85) 40px 44px,
      rgba(139, 31, 31, 0.88) 44px 66px
    ),
    repeating-linear-gradient(0deg, #f5f0e8 0 16px, #8b1f1f 16px 40px, #1e2d3b 40px 44px, #8b1f1f 44px 66px);
  background-blend-mode: multiply;
}

#sks-fabric .tw-muted {
  background: repeating-linear-gradient(
      90deg,
      rgba(90, 83, 78, 0.9) 0 16px,
      rgba(221, 208, 187, 0.85) 16px 42px,
      rgba(184, 82, 10, 0.8) 42px 45px,
      rgba(221, 208, 187, 0.85) 45px 70px
    ),
    repeating-linear-gradient(0deg, #5a534e 0 16px, #ddd0bb 16px 42px, #b8520a 42px 45px, #ddd0bb 45px 70px);
  background-blend-mode: multiply;
}

#sks-fabric .gbody {
  padding: 20px 20.8px 22.4px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

#sks-fabric .gkicker {
  font-size: 10.88px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 5.6px;
}

#sks-fabric .gtitle {
  font-family: 'Playfair Display', serif;
  font-size: 19.52px;
  font-weight: 600;
  color: var(--onyx);
  line-height: 1.25;
  margin-bottom: 8px;
}

#sks-fabric .gdesc {
  font-size: 14.08px;
  font-weight: 300;
  color: var(--body-c);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

#sks-fabric .glink {
  font-size: 14.08px;
  font-weight: 500;
  color: var(--amber);
}

#sks-fabric .gcard:hover .glink {
  text-decoration: underline;
}

@media (max-width: 960px) {
  #sks-fabric .guide-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  #sks-fabric .guide-grid {
    grid-template-columns: 1fr;
  }
}

/* ── FABRIC COMMERCE STRIP ───────────────────────────────────── */
#sks-fabric .shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17.6px;
}

#sks-fabric .scard {
  background: var(--amber-p);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  border-radius: var(--r);
  padding: 24px 22.4px;
  display: flex;
  flex-direction: column;
}

#sks-fabric .scard .price {
  font-family: 'Playfair Display', serif;
  font-size: 21.6px;
  font-weight: 700;
  color: var(--amber-d);
  margin-bottom: 2.4px;
}

#sks-fabric .scard .price small {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 12.16px;
  font-weight: 400;
  color: var(--muted);
}

#sks-fabric .scard h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18.4px;
  font-weight: 600;
  color: var(--onyx);
  margin-bottom: 8px;
}

#sks-fabric .scard p {
  font-size: 14.24px;
  font-weight: 300;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 17.6px;
}

#sks-fabric .scard .btn {
  padding: 9.6px 19.2px;
  font-size: 13.6px;
  text-align: center;
}

@media (max-width: 960px) {
  #sks-fabric .shop-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  #sks-fabric .shop-grid {
    grid-template-columns: 1fr;
  }
}

/* ── HONEST FABRIC NOTE ──────────────────────────────────────── */
#sks-fabric .material-note {
  background: var(--parch);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  padding: 28.8px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-top: 41.6px;
}

#sks-fabric .mn-item b {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 16.8px;
  font-weight: 600;
  color: var(--onyx);
  margin-bottom: 4.8px;
}

#sks-fabric .mn-item p {
  font-size: 14.08px;
  font-weight: 300;
  line-height: 1.7;
}

@media (max-width: 820px) {
  #sks-fabric .material-note {
    grid-template-columns: 1fr;
  }
}

/* ── FAQ ─────────────────────────────────────────────────────── */
#sks-fabric .faq-list {
  max-width: 840px;
}

#sks-fabric details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 11.2px;
  overflow: hidden;
}

#sks-fabric details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16.8px 22.4px;
  font-family: 'Playfair Display', serif;
  font-size: 16.64px;
  font-weight: 600;
  color: var(--onyx);
}

#sks-fabric details summary::-webkit-details-marker {
  display: none;
}

#sks-fabric details summary::after {
  content: '+';
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 20.8px;
  font-weight: 300;
  color: var(--amber);
  transition: transform 0.2s;
  flex-shrink: 0;
}

#sks-fabric details[open] summary::after {
  transform: rotate(45deg);
}

#sks-fabric details[open] summary {
  border-bottom: 1px solid var(--line-soft);
}

#sks-fabric .faq-body {
  padding: 16.8px 22.4px 20px;
  font-size: 15.2px;
  font-weight: 300;
  line-height: 1.8;
}

#sks-fabric .faq-body b {
  font-weight: 600;
  color: var(--slate-d);
}

#sks-fabric .faq-more {
  margin-top: 25.6px;
  font-size: 15.2px;
  font-weight: 300;
}

/* ── WORKSHOP FEATURE ────────────────────────────────────────── */
#sks-fabric .workshop {
  background: var(--slate-d);
  color: var(--parch);
}

#sks-fabric .ws-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

#sks-fabric .ws-grid h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(25.6px, 3.4vw, 35.2px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 14.4px;
}

#sks-fabric .ws-grid h2 em {
  font-style: italic;
  color: var(--gold);
}

#sks-fabric .ws-grid p {
  font-size: 15.68px;
  font-weight: 300;
  color: var(--cream);
  line-height: 1.85;
  margin-bottom: 25.6px;
  opacity: 0.92;
}

#sks-fabric .ws-visual {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r);
  overflow: hidden;
}

/* Holds the workshop photo. Keeps the original 280px height so the
   panel matches the mock; the gradient below still shows through if
   the image ever fails to load. */
#sks-fabric .ws-loom {
  display: block;
  height: 280px;
  position: relative;
  overflow: hidden;
  background: repeating-linear-gradient(
      90deg,
      rgba(139, 31, 31, 0.75) 0 16px,
      rgba(30, 45, 59, 0.4) 16px 46px,
      rgba(201, 168, 76, 0.8) 46px 50px,
      rgba(30, 45, 59, 0.4) 50px 80px
    ),
    repeating-linear-gradient(0deg, #8b1f1f 0 16px, #24384a 16px 46px, #c9a84c 46px 50px, #24384a 50px 80px);
  background-blend-mode: multiply;
}

#sks-fabric .ws-loom img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Bottom scrim so .ws-cap stays legible over the photo. The source
   file also laid a woven-thread texture over this; dropped, since it
   reads as noise on a real photograph. ::after is positioned so it
   paints above the in-flow <img> without needing a z-index. */
#sks-fabric .ws-loom::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(30, 45, 59, 0.55) 100%);
}

#sks-fabric .ws-cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 13.6px 19.2px;
  font-size: 13.12px;
  letter-spacing: 0.06em;
  color: var(--cream);
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

#sks-fabric .ws-points {
  margin-bottom: 28.8px;
}

#sks-fabric .ws-points li {
  position: relative;
  padding-left: 22.4px;
  margin-bottom: 8.8px;
  font-size: 14.88px;
  font-weight: 300;
  color: var(--parch);
}

#sks-fabric .ws-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--gold);
}

@media (max-width: 820px) {
  #sks-fabric .ws-grid {
    grid-template-columns: 1fr;
  }
}
