@font-face{ font-family:"Inter"; font-style:normal; font-display:swap; font-weight:100 900;
  src:url("/fonts/inter-var-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family:"Inter"; font-style:normal; font-display:swap; font-weight:100 900;
  src:url("/fonts/inter-var-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* Gigante Journal — shared blog-post styles.
   Linked by every post under /blog/<slug>/index.html so they stay consistent
   (one edit updates them all). The hero banner is opt-in via class="hero" on a
   <figure> so only the actual header image crops — inline photos never do. */

/* Self-hosted Playfair Display — the SAME font files the React app bundles
   (@fontsource-variable/playfair-display). Served from our own origin so it
   loads under the site CSP; the old Google Fonts <link> was silently blocked,
   dropping every blog title to the Georgia fallback on the live site. Variable
   weight axis 400–900 covers h1/h2/lead/pull. */
@font-face {
  font-family: "Playfair Display"; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url("/blog/fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Playfair Display"; font-style: italic; font-display: swap; font-weight: 400 900;
  src: url("/blog/fonts/playfair-display-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Playfair Display"; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url("/blog/fonts/playfair-display-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display"; font-style: italic; font-display: swap; font-weight: 400 900;
  src: url("/blog/fonts/playfair-display-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --ink: #1A1A1A; --body: #44434A; --muted: #6B6B6B;
  --purple: #6B4F8C; --purple-deep: #533D6E; --pink: #C4789A; --bg: #FAFAF8;
  --line: #E8E5E0; --card: #FFFFFF;
  --pink-ink: #BC5C86;  /* was undefined here → .rcat silently fell back to purple */
}

/* Category colour-system — soft-but-saturated shades drawn from the wool range,
   one per journal lane. Add a cat-* class to any card/eyebrow and it inherits
   --c. Shared by post cards, the index story grid and the homepage strip so the
   whole blog reads as one colour story. */
.cat-beginners{ --c:#7A5EA8; }   /* lavender   */
.cat-yarn     { --c:#B5872F; }   /* butter     */
.cat-wool     { --c:#5E7A4F; }   /* sage       */
.cat-care     { --c:#BC5C86; }   /* blush      */
.cat-make     { --c:#B0683C; }   /* coral      */
.cat-tutorial { --c:#B0683C; }   /* tutorial → coral */
.cat-bts      { --c:#3F6090; }   /* behind-the-scenes blue */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px; line-height: 1.75; -webkit-font-smoothing: antialiased;
}
.serif { font-family: "Playfair Display", Georgia, "Times New Roman", serif; }

/* Site nav + journal sub-nav now live in the shared /blog/_nav.css (the floating
   frosted `.gknav` bar), linked by every article AND the journal home so the nav
   is single-source. The old `.topbar` / `.jbar` rules were retired when the
   generator (tools/build-blog.mjs) took over — do not reintroduce them. */

/* Article — white bounding card floating on the cream page */
article {
  max-width: 720px; margin: 26px auto; padding: 36px 40px 22px;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 12px 40px rgba(31,22,46,0.06);
}
.back { display: inline-block; font-size: 14px; font-weight: 600; color: var(--purple); text-decoration: none; margin: 0 0 16px; }
.back:hover { text-decoration: underline; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 2px; font-size: 12.5px;
  font-weight: 700; color: var(--pink); margin: 4px 0 14px;
}
h1 {
  font-family: "Playfair Display", Georgia, serif; color: var(--ink);
  font-size: 40px; line-height: 1.12; letter-spacing: -0.5px; margin: 0 0 16px; font-weight: 800;
}
h2 {
  font-family: "Playfair Display", Georgia, serif; color: var(--ink);
  font-size: 27px; line-height: 1.2; letter-spacing: -0.3px; margin: 44px 0 14px; font-weight: 700;
}
p { margin: 0 0 20px; }
.lead { font-size: 20px; color: #333; }
a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }
/* Body links bolder + thicker underline so they stand out in running text
   (Fernando: hard to see). Scoped to prose only — nav, share, cards & footer
   anchors keep their own styling. */
article p a, article li a { font-weight: 700; text-decoration-thickness: 2px; }

/* Meta row — category chip + byline */
.metarow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 18px; }
.chip {
  display: inline-block; background: #FBE9F1; color: #B0507C;
  font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.byline { font-size: 14.5px; color: var(--muted); }

/* Author badge — photo + name, links to the About Us page */
.authorbadge {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink);
  font-size: 14.5px; font-weight: 600;
}
.authorbadge img {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 1.5px solid var(--line);
  box-shadow: 0 1px 3px rgba(31,22,46,0.12); display: block;
}
.authorbadge b { font-weight: 700; }
.authorbadge:hover b { text-decoration: underline; }

figure { margin: 30px 0; }
figure img {
  width: auto; max-width: 100%; height: auto; max-height: 520px;
  margin: 0 auto; display: block; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(31,22,46,0.10);
}
figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; }

/* Hero — full-width banner header. Opt-in via class="hero"; inline photos never crop. */
figure.hero { margin: 24px -40px 30px; }
figure.hero img {
  width: 100%; max-width: none; height: 340px; max-height: 340px;
  object-fit: cover; object-position: center 18%;
  border-radius: 0; box-shadow: none;
}

/* Responsive 16:9 YouTube embed (CSP already allows youtube + youtube-nocookie) */
.embed {
  position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 26px 0 10px;
  border-radius: 16px; overflow: hidden; background: #000;
  box-shadow: 0 10px 30px rgba(31,22,46,0.14);
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch-note { font-size: 14px; color: var(--muted); text-align: center; margin: 0 0 6px; }

/* Shorts series — vertical (9:16) YouTube embeds in a grid (e.g. the how-to tutorial) */
.shorts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 10px; }
.shorts figure { margin: 0; }
.shorts .vid { position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 8px 22px rgba(31,22,46,0.12); }
.shorts .vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.shorts figcaption { font-size: 13px; font-weight: 700; color: var(--ink); text-align: center; margin-top: 8px; }
@media (max-width: 680px) { .shorts { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.pull {
  font-family: "Playfair Display", Georgia, serif; font-style: italic;
  font-size: 24px; line-height: 1.35; color: var(--purple);
  border-left: 3px solid var(--pink); padding: 4px 0 4px 20px; margin: 30px 0;
}
ul { margin: 0 0 20px; padding-left: 22px; }
li { margin: 0 0 10px; }

/* Share — icon buttons, made to look like a shareable piece of content */
.sharebar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 20px 0; padding: 16px 18px; background: #F6F0FA;
  border: 1px solid #E7DBF0; border-radius: 16px;
}
.sharebar .lab { font-size: 14px; font-weight: 700; color: var(--ink); margin-right: 4px; }
.sbtn {
  width: 42px; height: 42px; border-radius: 50%; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; color: #555;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s;
}
.sbtn svg { width: 19px; height: 19px; fill: currentColor; }
.sbtn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(31,22,46,0.14); }
.sbtn.pin:hover { background: #E60023; color: #fff; border-color: #E60023; }
.sbtn.fb:hover  { background: #1877F2; color: #fff; border-color: #1877F2; }
.sbtn.wa:hover  { background: #25D366; color: #fff; border-color: #25D366; }
.sbtn.x:hover   { background: #111;    color: #fff; border-color: #111; }
.sbtn.em:hover  { background: var(--purple); color: #fff; border-color: var(--purple); }
.sbtn.cp:hover  { background: var(--purple); color: #fff; border-color: var(--purple); }

/* Mobile: the label + 6 icons no longer fit on one line, and the default
   flex-wrap left a lopsided 4-then-2 (label eats row one). Switch to a
   balanced 3-column grid — label spans the top, then two even rows of three
   — so it reads as a deliberate share row and keeps the 42px tap targets. */
@media (max-width: 560px) {
  .sharebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    justify-items: center;
    align-items: center;
  }
  .sharebar .lab { grid-column: 1 / -1; justify-self: start; margin: 0; }
}

#copyToast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(8px);
  background: #1A1A1A; color: #fff; padding: 11px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 60;
}
#copyToast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Ways-in CTA — coloured door cards */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 8px; }
.way {
  position: relative; display: block; background: color-mix(in srgb, var(--c, var(--purple)) 10%, #fff);
  border: 1px solid var(--line); border-left: 4px solid var(--c, var(--purple));
  border-radius: 14px; padding: 18px 20px; text-decoration: none; color: var(--ink);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.way:nth-child(1) { --c: #6B4F8C; }
.way:nth-child(2) { --c: #BC5C86; }
.way:nth-child(3) { --c: #5E7A4F; }
.way:nth-child(4) { --c: #B0683C; }
.way:hover { box-shadow: 0 10px 24px rgba(31,22,46,0.12); transform: translateY(-3px); }
.way b { display: block; font-size: 17px; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.way b::after { content: " →"; color: var(--c); }
.way span { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }

@media (max-width: 560px) {
  article { margin: 12px; padding: 26px 22px 16px; border-radius: 16px; }
  figure.hero { margin: 16px -22px 24px; }
  figure.hero img { height: 220px; }
  .ways { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
}

/* Figures table — e.g. the yarn-by-size table in the "how much yarn" post */
table.figs { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15px; }
table.figs th, table.figs td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.figs thead th { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); border-bottom: 2px solid var(--line); }
table.figs tbody th { font-weight: 700; color: var(--ink); }
table.figs td { color: var(--body); }
table.figs tbody tr:last-child th, table.figs tbody tr:last-child td { border-bottom: none; }
table.figs caption { caption-side: bottom; font-size: 13px; color: var(--muted); text-align: left; line-height: 1.5; margin-top: 10px; }
@media (max-width: 480px) { table.figs { font-size: 13.5px; } table.figs th, table.figs td { padding: 9px 8px; } }

/* ── Keep reading — editorial "read this next" module at the foot of a post.
   One featured next-read (image + Playfair title + one-line hook + reading
   time) plus compact siblings. Category-coloured via the .cat-* system; the
   eyebrow carries the "stitch thread" signature. Fills the old empty white
   space with substance instead of a bare 4-up grid. ── */
.keepreading{ margin: 46px 0 6px; }
.kr-eyebrow{
  display: flex; align-items: center; gap: 16px; margin: 0 0 18px;
  font-size: 12px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--purple);
}
.kr-eyebrow::after{ content: ""; flex: 1; height: 1px; background: var(--line); }

/* shared card chrome (used by featured + siblings; --c from .cat-*).
   Default --c via :where() (0 specificity) so any .cat-* class wins — otherwise
   this rule, defined after .cat-*, would override every card back to purple. */
:where(.rcard){ --c: var(--purple); }
.rcard{
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  text-decoration: none; color: var(--ink);
  box-shadow: 0 4px 16px rgba(31,22,46,0.05);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.rcard:hover{ transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--c) 45%, var(--line));
  box-shadow: 0 16px 34px color-mix(in srgb, var(--c) 22%, transparent); }
.rcard .rimg{ aspect-ratio: 4/3; overflow: hidden; background: #F2F2F5; }
.rcard .rimg img{ width: 100%; height: 100%; object-fit: cover; display: block;
  margin: 0; border-radius: 0; box-shadow: none; max-height: none; transition: transform .5s ease; }
.rcard:hover .rimg img{ transform: scale(1.05); }
.rcard .rb{ padding: 13px 15px 15px; display: flex; flex-direction: column; flex: 1; }
.rcat{ display: inline-block; align-self: flex-start;
  font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  color: color-mix(in srgb, var(--c) 78%, #2A2320);
  background: color-mix(in srgb, var(--c) 17%, #fff);
  padding: 4px 11px; border-radius: 999px; }
.rt{ color: var(--ink); font-weight: 700; letter-spacing: -.2px; margin: 6px 0 0; font-size: 15px; line-height: 1.22; }
.rhook{ font-size: 14px; line-height: 1.5; color: var(--muted); margin: 7px 0 0; }
.rmeta{ margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.rgo{ margin-top: auto; padding-top: 13px; font-size: 13px; font-weight: 800; color: var(--c); }

/* featured next-read — image beside text */
.kr-featured{ display: grid; grid-template-columns: 1.04fr 1fr; margin-bottom: 16px; }
.kr-featured .rimg{ position: relative; aspect-ratio: auto; height: auto; min-height: 200px; align-self: stretch; }
/* Absolutely-positioned image so the card height follows the TEXT column, not the
   photo's aspect ratio — otherwise a portrait image stretches the whole card tall. */
.kr-featured .rimg img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kr-featured .rb{ padding: 24px 26px; }
.kr-featured .rt{ font-size: 24px; line-height: 1.16; margin: 9px 0 0; }
.kr-featured .rhook{ font-size: 15px; }

/* compact siblings — title + reading time, hook hidden to stay tight */
.kr-siblings{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kr-siblings .rhook{ display: none; }
.kr-siblings .rmeta{ margin-top: auto; padding-top: 10px; }

@media (max-width: 760px){
  .kr-featured{ grid-template-columns: 1fr; }
  .kr-featured .rimg{ aspect-ratio: 16/9; min-height: 0; }
}
@media (max-width: 560px){
  .kr-siblings{ grid-template-columns: 1fr; }
  .kr-siblings .rcard{ flex-direction: row; align-items: stretch; }
  .kr-siblings .rimg{ flex: 0 0 116px; aspect-ratio: 1; }
  .kr-siblings .rb{ padding: 12px 14px; justify-content: center; }
  .kr-siblings .rmeta{ margin-top: 6px; padding-top: 0; }
}

/* ── Wool shade cards — static mirror of the colour-family cards on
   /_wool-cards (src/components/tabs/_test/WoolColourCards.jsx): real roving
   cut-outs from /yarn/corriedale/ + shade name + the sampled hex as a chip,
   on the family's tinted card. Shade names, hexes and family bg/ink mirror
   src/data/corriedaleWool.js (WOOL_FAMILY_CARDS) — update the two together. */
.woolfam {
  border-radius: 16px; border: 1px solid rgba(0,0,0,0.06);
  padding: 22px 22px 20px; margin: 20px 0;
}
.woolfam .wf-eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase;
  opacity: 0.72; margin: 0 0 3px;
}
.woolfam .wf-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 23px; font-weight: 700; line-height: 1.1; letter-spacing: -0.2px;
  margin: 0 0 6px; color: inherit;
}
.woolfam .wf-tip { font-size: 15px; line-height: 1.55; color: #55504A; margin: 0 0 16px; }
.woolfam .wf-swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 8px; }
.woolfam .wf-sw { width: 104px; text-align: center; }
.woolfam .wf-sw img {
  width: 78px; height: 78px; object-fit: contain; display: block; margin: 0 auto;
  filter: drop-shadow(0 5px 12px rgba(0,0,0,0.16));
}
.woolfam .wf-name { font-size: 13.5px; font-weight: 700; color: #2A2A2A; line-height: 1.15; margin-top: 7px; }
.woolfam .wf-hex {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; color: #8A8A8A; letter-spacing: 0.5px; margin-top: 3px;
}
.woolfam .wf-hex i { width: 11px; height: 11px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); }
.woolfam .wf-role {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  opacity: 0.7; margin-top: 4px;
}
/* Feature variant — the in-story shade line-up (bigger cut-outs, role labels) */
.woolfam.wf-feature .wf-sw { width: 136px; }
.woolfam.wf-feature .wf-sw img { width: 106px; height: 106px; }
@media (max-width: 560px) {
  .woolfam { padding: 18px 14px 16px; }
  .woolfam .wf-sw { width: 86px; }
  .woolfam .wf-sw img { width: 66px; height: 66px; }
  .woolfam.wf-feature .wf-sw { width: 100px; }
  .woolfam.wf-feature .wf-sw img { width: 82px; height: 82px; }
}

/* Sign-off — Fernando's handwritten signature at the foot of each post */
.signoff{ margin: 32px 0 6px; }
.signoff img{ width: 220px; max-width: 60%; height: auto; display: block; margin: 0; border-radius: 0; box-shadow: none; }

/* Footer */
footer {
  max-width: 720px; margin: 40px auto 0; padding: 26px 20px calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center;
}
footer nav { margin-bottom: 12px; }
footer nav a { color: var(--purple); text-decoration: none; margin: 0 9px; }
footer nav a:hover { text-decoration: underline; }
