/* Loop & Loom — Knitting and Crochet Studio */
:root {
  --cream: #F6E4C1;
  --cream-deep: #E8D09A;
  --paper: #FFF8E8;
  --ink: #16100C;
  --ink-soft: #3D2A22;
  --muted: #5C463A;
  --tomato: #E02716;
  --tomato-dark: #B91C10;
  --cobalt: #1A35C8;
  --cobalt-dark: #122690;
  --mustard: #F5B400;
  --sunflower: #FFC107;
  --grass: #1F9A32;
  --grass-dark: #157326;
  --pink: #F01588;
  --pink-dark: #C01070;
  --line: 3px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 18px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-script: "Caveat", "Segoe Script", cursive;
  --font-sans: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
  --header-h: 78px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--cobalt); }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }

.skip {
  position: absolute;
  left: 1rem; top: 1rem;
  background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 100;
  clip-path: inset(50%);
  width: 1px; height: 1px; overflow: hidden;
}
.skip:focus {
  clip-path: none;
  width: auto; height: auto; overflow: visible;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Patterns */
.grid-paper {
  background-color: var(--cream);
  background-image:
    linear-gradient(to right, rgba(26,53,200,.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26,53,200,.09) 1px, transparent 1px);
  background-size: 24px 24px;
}
.gingham-tomato {
  background-color: #fff3dc;
  background-image:
    repeating-linear-gradient(90deg, rgba(224,39,22,.38) 0 11px, transparent 11px 22px),
    repeating-linear-gradient(0deg, rgba(224,39,22,.38) 0 11px, transparent 11px 22px);
}
.gingham-cobalt {
  background-color: #eef1ff;
  background-image:
    repeating-linear-gradient(90deg, rgba(26,53,200,.35) 0 11px, transparent 11px 22px),
    repeating-linear-gradient(0deg, rgba(26,53,200,.35) 0 11px, transparent 11px 22px);
}
.gingham-pink {
  background-color: #ffe6f3;
  background-image:
    repeating-linear-gradient(90deg, rgba(240,21,136,.35) 0 11px, transparent 11px 22px),
    repeating-linear-gradient(0deg, rgba(240,21,136,.35) 0 11px, transparent 11px 22px);
}
.gingham-mustard {
  background-color: #fff4cc;
  background-image:
    repeating-linear-gradient(90deg, rgba(245,180,0,.5) 0 11px, transparent 11px 22px),
    repeating-linear-gradient(0deg, rgba(245,180,0,.5) 0 11px, transparent 11px 22px);
}

.stitched {
  border: 2px dashed var(--ink);
  box-shadow: inset 0 0 0 7px var(--paper), inset 0 0 0 9px var(--ink), var(--shadow-sm);
}

.hl {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}
.hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: .08em -.12em .02em;
  background: var(--mustard);
  transform: rotate(-1.4deg);
}
.hl-tomato::before { background: var(--tomato); }
.hl-tomato { color: var(--paper); }
.hl-pink::before { background: var(--pink); }
.hl-pink { color: var(--paper); }
.hl-cobalt::before { background: var(--cobalt); }
.hl-cobalt { color: var(--paper); }
.hl-grass::before { background: var(--grass); }
.hl-grass { color: var(--paper); }

.kicker {
  font-family: var(--font-script);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: var(--tomato);
  margin: 0 0 .35rem;
  line-height: 1.1;
  letter-spacing: .01em;
}
.kicker.cobalt { color: var(--cobalt); }
.kicker.pink { color: var(--pink); }
.kicker.grass { color: var(--grass); }
.kicker.cream { color: var(--mustard); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.45rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm);
  background: var(--tomato);
  color: var(--paper);
  transition: transform .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn:hover, .btn:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
  outline: none;
}
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.btn-mustard { background: var(--mustard); color: var(--ink); }
.btn-cobalt { background: var(--cobalt); color: var(--paper); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-pink { background: var(--pink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

/* Yarn ball decor */
.yarn {
  position: absolute;
  width: 68px;
  height: 82px;
  pointer-events: none;
  z-index: 3;
  line-height: 0;
}
.yarn svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}
.yarn-sm { width: 46px; height: 56px; }
.yarn-md { width: 58px; height: 70px; }
.yarn-lg { width: 84px; height: 100px; }
.corner-tl { top: -26px; left: -26px; transform: rotate(-18deg); }
.corner-tr { top: -26px; right: -26px; transform: scaleX(-1) rotate(-8deg); }
.corner-bl { bottom: -22px; left: -24px; transform: rotate(200deg) scaleX(-1); }
.corner-br { bottom: -22px; right: -24px; transform: rotate(18deg); }
.corner-tl-in { top: -10px; left: -10px; transform: rotate(-22deg); }
.corner-tr-in { top: -10px; right: -10px; transform: scaleX(-1) rotate(-12deg); }
.yarn-nudge-l { margin-left: -6px; }
.title-block, .card, .frame, .panel, .badge, .form-card, .logo, .hero-copy, .project, .skill, .price-card, .track, .faq-item, .about-frame {
  position: relative;
}

/* Torn edges */
.tear {
  height: 28px;
  width: 100%;
  display: block;
  margin: 0;
  line-height: 0;
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.tear svg { width: 100%; height: 28px; }

/* Knit stitch divider */
.knit-strip {
  height: 22px;
  width: 100%;
  background-color: var(--cobalt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='14' viewBox='0 0 16 14'%3E%3Cpath d='M1 1c2.4 5 5.2 5 7 0 2.4 5 5.2 5 7 0' fill='none' stroke='%23fff8e8' stroke-width='1.6' stroke-linecap='round' opacity='.85'/%3E%3Cpath d='M1 7c2.4 5 5.2 5 7 0 2.4 5 5.2 5 7 0' fill='none' stroke='%23fff8e8' stroke-width='1.6' stroke-linecap='round' opacity='.85'/%3E%3C/svg%3E");
  background-size: 16px 14px;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

/* Marquee */
.marquee {
  background: var(--tomato);
  color: var(--paper);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
  max-width: 100%;
  clip-path: inset(0);
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .82rem;
  line-height: 1;
  padding: .7rem 0;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: tick 28s linear infinite;
  will-change: transform;
}
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  padding: 0 1.2rem;
}
.dot {
  width: .45rem; height: .45rem; border-radius: 50%;
  background: var(--mustard); display: inline-block;
  box-shadow: 0 0 0 2px var(--ink);
  flex: none;
}
@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}
.header-inner {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--ink);
  padding-left: .2rem;
}
.logo-mark {
  width: 42px; height: 42px; flex: none;
  position: relative;
}
.logo-mark svg { width: 42px; height: 50px; overflow: visible; margin-top: -4px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; gap: .16rem; }
.logo-text strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}
.logo-text em,
.logo-sub {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 800;
  font-size: .62rem;
  letter-spacing: .045em;
  text-transform: uppercase;
  color: var(--tomato);
  line-height: 1.2;
  white-space: nowrap;
}
nav.desk {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}
nav.desk a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
}
nav.desk a:not(.btn):hover { color: var(--tomato); }
nav.desk .btn { padding: .55rem 1.1rem; font-size: .92rem; }
.menu-btn {
  display: none;
  background: var(--mustard);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: .4rem .85rem;
  font-weight: 800;
  box-shadow: 2px 2px 0 var(--ink);
}
.menu-btn:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
nav.mobile {
  display: none;
  border-top: 3px solid var(--ink);
  background: var(--paper);
  padding: .8rem 1.2rem 1.1rem;
  flex-direction: column;
  gap: .35rem;
}
nav.mobile a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  padding: .55rem .2rem;
  border-bottom: 1px dashed rgba(22,16,12,.25);
}
nav.mobile a.btn { border-bottom: 0; margin-top: .4rem; }
.site-header.open nav.mobile { display: flex; }

/* Hero */
.hero {
  position: relative;
  padding: 3.2rem 0 3.8rem;
  overflow: visible;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.7rem, 6.6vw, 5.6rem);
  font-weight: 800;
  margin: 0 0 .8rem;
  letter-spacing: -0.035em;
  line-height: .95;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 1.5rem;
}
.hero-copy { padding-top: .4rem; padding-bottom: 1rem; }
.hero-doodle {
  font-family: var(--font-script);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cobalt);
  transform: rotate(-6deg);
  display: inline-block;
  margin: .6rem 0 0 .2rem;
}

/* Illustration frame */
.frame {
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  padding: 14px;
  border-radius: 8px 8px 12px 12px;
  transform: rotate(2.4deg);
  background-clip: padding-box;
}
.frame-inner {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 4px;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}
.tape {
  position: absolute;
  width: 78px; height: 26px;
  background: rgba(26,53,200,.35);
  border: 2px solid rgba(22,16,12,.45);
  z-index: 4;
  pointer-events: none;
}
.tape-tl { top: -10px; left: 28px; transform: rotate(-8deg); background: rgba(245,180,0,.55); }
.tape-tr { top: -8px; right: 36px; transform: rotate(12deg); background: rgba(240,21,136,.35); }
.caption {
  font-family: var(--font-script);
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  margin: .65rem 0 0;
  color: var(--ink);
  padding: 0 2.1rem .1rem;
  line-height: 1.2;
}

/* Stickers / badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 3px solid var(--ink);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  background: var(--pink);
  color: var(--paper);
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .85rem;
  letter-spacing: .02em;
}
.badge-star {
  position: absolute;
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-weight: 800;
  font-size: .78rem;
  line-height: 1.15;
  color: var(--ink);
  z-index: 5;
  transform: rotate(12deg);
  filter: drop-shadow(3px 3px 0 var(--ink));
  pointer-events: none;
}
.badge-star svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge-star span { position: relative; z-index: 1; font-family: var(--font-sans); padding: 0 .5rem; }

/* Sections */
.section { padding: 4rem 0 4.2rem; position: relative; overflow: visible; }
.section h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  margin: 0;
}
.title-block {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.4rem;
  padding: 1.1rem 2.2rem .4rem;
}
.title-block p.lede {
  margin: .85rem 0 0;
  color: var(--ink-soft);
}

/* Featured workshop */
.workshop { background: var(--paper); }
.feature {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 2.4rem;
  align-items: center;
}
.feature-copy {
  background: var(--mustard);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.8rem 1.8rem 1.7rem;
  position: relative;
}
.feature-copy h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 .4rem;
}
.price-lg {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin: .3rem 0 .2rem;
  line-height: 1;
}
.price-lg small {
  display: block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-top: .35rem;
}
.includes {
  list-style: none;
  margin: 1rem 0 1.3rem;
  display: grid;
  gap: .55rem;
}
.includes li {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: .6rem;
  align-items: start;
  font-weight: 700;
}
.includes li::before {
  content: "";
  flex: none;
  width: 1.15rem; height: 1.15rem;
  margin-top: .2rem;
  background: var(--grass);
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px var(--mustard), 1px 1px 0 var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2l2.6 2.6L10 3.2' fill='none' stroke='%23fff8e8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 10px; background-repeat: no-repeat; background-position: center;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.step {
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.3rem 1.15rem 1.2rem;
  min-height: 100%;
}
.step:nth-child(1) { background: var(--tomato); color: var(--paper); transform: rotate(-1.2deg); }
.step:nth-child(2) { background: var(--cobalt); color: var(--paper); transform: rotate(1.1deg); }
.step:nth-child(3) { background: var(--mustard); color: var(--ink); transform: rotate(-.6deg); }
.step:nth-child(4) { background: var(--grass); color: var(--paper); transform: rotate(1.3deg); }
.step .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: .4rem;
  display: block;
}
.step h3 { font-size: 1.25rem; margin: 0 0 .35rem; }
.step p { font-size: .95rem; }

/* Monthly */
.monthly { background: var(--cobalt); color: var(--paper); }
.monthly .kicker { color: var(--mustard); }
.monthly .title-block p.lede { color: #d9def8; }
.monthly h2 { color: var(--paper); }
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.price-card {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem;
}
.price-card.featured-card { background: var(--mustard); }
.price-card h3 { font-size: 1.55rem; margin-bottom: .15rem; }
.price-card .amt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: .4rem 0 .15rem;
}
.price-card .amt span { font-size: 1rem; font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; }
.price-card ul {
  list-style: none;
  margin: 1rem 0 0;
  display: grid;
  gap: .4rem;
  font-weight: 700;
  font-size: .98rem;
}
.price-card ul li::before { content: "▸ "; color: var(--tomato); }

/* Tracks */
.tracks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.track {
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.4rem;
}
.track.little { background: #ffe3f1; }
.track.big { background: #e4e9ff; }
.track h3 { font-size: 1.85rem; margin: 0 0 .15rem; }
.track .meta { font-weight: 800; margin-bottom: .7rem; }
.track.little .meta { color: var(--pink-dark); }
.track.big .meta { color: var(--cobalt); }
.track ul { list-style: none; display: grid; gap: .4rem; font-weight: 650; }
.track ul li { padding-left: 1.2rem; position: relative; }
.track ul li::before {
  content: "";
  position: absolute; left: 0; top: .45rem;
  width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--pink); border: 2px solid var(--ink);
}
.track.big ul li::before { background: var(--cobalt); }

.projects {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1.8rem;
}
.project {
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sm);
  border-radius: 16px;
  padding: 1rem .7rem .85rem;
  text-align: center;
}
.project:nth-child(1) { transform: rotate(-1.5deg); }
.project:nth-child(2) { transform: rotate(1.2deg); }
.project:nth-child(3) { transform: rotate(-.8deg); }
.project:nth-child(4) { transform: rotate(1.4deg); }
.project:nth-child(5) { transform: rotate(-1deg); }
.project .icon { height: 86px; display: flex; align-items: center; justify-content: center; margin-bottom: .35rem; }
.project .icon svg { width: 86px; height: 86px; }
.project h3 { font-size: 1.05rem; margin: 0 0 .15rem; }
.project p { font-size: .8rem; color: var(--muted); font-weight: 700; }

/* Skills */
.learn { background: var(--paper); }
.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.skill {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 1.15rem 1.1rem 1.05rem;
}
.skill:nth-child(6n+1) { background: #ffd8d3; }
.skill:nth-child(6n+2) { background: #d9e0ff; }
.skill:nth-child(6n+3) { background: #ffe89a; }
.skill:nth-child(6n+4) { background: #c9f0c8; }
.skill:nth-child(6n+5) { background: #ffd0ea; }
.skill:nth-child(6n+6) { background: var(--paper); }
.skill h3 { font-size: 1.2rem; margin: 0 0 .25rem; }
.skill p { font-size: .92rem; }

/* FAQ */
.faq-list { display: grid; gap: .8rem; max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  padding: 1rem 2.6rem 1rem 1.15rem;
  position: relative;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1rem; top: 50%;
  transform: translateY(-50%);
  width: 1.6rem; height: 1.6rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--mustard);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; background: var(--mustard); color: var(--ink); }
.faq-item .ans { padding: 0 1.15rem 1.15rem; color: var(--ink-soft); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 2.2rem;
  align-items: center;
}
.about-frame { transform: rotate(-2deg); }
.about-copy {
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.5rem;
}

/* Signup */
.signup { background: var(--tomato); color: var(--paper); }
.signup .kicker { color: var(--mustard); }
.signup .title-block p.lede { color: #ffe4df; }
.signup h2 { color: var(--paper); }
.form-card {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}
.demo-note {
  background: var(--mustard);
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: .75rem 1rem;
  font-weight: 800;
  font-size: .95rem;
  margin: 0 0 1.2rem;
  text-align: center;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem 1rem;
}
.field { display: flex; flex-direction: column; gap: .3rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 800; font-size: .92rem; }
.field input, .field select, .field textarea {
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: .7rem .8rem;
  background: var(--cream);
  box-shadow: 2px 2px 0 var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--cobalt);
  outline-offset: 1px;
  background: #fff;
}
.form-actions { margin-top: 1rem; display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
.form-ok {
  display: none;
  background: var(--grass);
  color: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: .75rem 1rem;
  font-weight: 800;
}
.form-ok.show { display: block; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 2.2rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.footer-inner {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: end;
}
.site-footer a { color: var(--mustard); text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--sunflower); }
.foot-brand strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  display: block;
}
.foot-brand em,
.foot-brand .logo-sub {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--mustard);
  display: block;
  margin-top: .28rem;
  white-space: nowrap;
}
.foot-links { display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; }
.tiny { opacity: .8; font-size: .85rem; margin-top: .6rem; }

/* Ruler doodle */
.ruler {
  position: absolute;
  left: -8px;
  top: 18%;
  width: 28px;
  height: 220px;
  pointer-events: none;
  opacity: .9;
  display: none;
}
@media (min-width: 1240px) {
  .ruler { display: block; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .feature, .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .projects { grid-template-columns: 1fr 1fr; }
  .projects .project:last-child { grid-column: 1 / -1; max-width: 260px; margin-inline: auto; width: 100%; }
  .hero { padding-top: 2.2rem; }
  .frame { transform: rotate(1deg); max-width: 440px; margin-inline: auto; }
  .skills { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --header-h: 70px; }
  nav.desk { display: none; }
  .menu-btn { display: inline-flex; }
  .hero h1 { font-size: clamp(2.35rem, 12vw, 3.2rem); }
  .hero-lead { font-size: 1.05rem; }
  .steps, .pricing, .tracks-grid, .form-grid, .skills { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr 1fr; }
  .projects .project:last-child { grid-column: auto; max-width: none; }
  .title-block { padding: 1.2rem 1.4rem .2rem; }
  .section { padding: 3.1rem 0 3.2rem; }
  .feature-copy, .price-card, .track, .about-copy, .form-card { padding: 1.35rem 1.15rem 1.25rem; }
  .yarn { width: 50px; height: 60px; }
  .yarn-lg { width: 62px; height: 74px; }
  .yarn-md { width: 46px; height: 56px; }
  .yarn-sm { width: 38px; height: 46px; }
  .corner-tl { top: -18px; left: -14px; }
  .corner-tr { top: -18px; right: -14px; }
  .corner-bl { bottom: -16px; left: -12px; }
  .corner-br { bottom: -16px; right: -12px; }
  .hide-mobile { display: none !important; }
  .wrap { width: min(var(--max), calc(100% - 1.5rem)); }
  .header-inner { width: min(var(--max), calc(100% - 1.5rem)); }
  .badge-star { width: 84px; height: 84px; font-size: .7rem; }
  .step { transform: none !important; }
  .project { transform: none !important; }
  .frame { transform: none; }
  .about-frame { transform: none; }
}
@media (max-width: 420px) {
  .projects { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .btn, .step, .project, .frame { transition: none; }
}

/* Anchor offset under sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 28px); }

.hero-art { position: relative; }
.logo-mark .yarn {
  position: relative;
  top: auto; right: auto; left: auto; bottom: auto;
  width: 44px;
  height: 52px;
  transform: rotate(-14deg);
}
.site-footer { overflow: visible; }
.site-footer .yarn { z-index: 1; }
.title-block { overflow: visible; }
.monthly .title-block .yarn-mustard,
.signup .title-block .yarn-mustard,
.signup .title-block .yarn-cream {
  /* keep cream/mustard yarns visible on bold bands */
}
@media (max-width: 720px) {
  .title-block { padding-left: 1.8rem; padding-right: 1.8rem; }
  .hero-copy { padding-left: .4rem; padding-right: .6rem; }
  .hero-doodle { margin-left: 0; }
  .badge-star { right: -8px; bottom: -8px; }
}

.hero-copy {
  padding: 1.6rem 1.2rem 1.4rem 4.4rem;
}
.hero-copy > .yarn.corner-tl {
  top: .15rem;
  left: -.1rem;
  width: 72px;
  height: 86px;
}
.badge-star {
  width: 110px;
  height: 110px;
  font-size: .72rem;
  line-height: 1.1;
}
.badge-star span { padding: 0 .35rem; }
.site-footer {
  overflow: hidden;
  padding: 2.4rem 0 2.5rem;
}
.site-footer .yarn.corner-tl { top: 12px; left: 16px; transform: rotate(-18deg); }
.site-footer .yarn.corner-br { bottom: 12px; right: 16px; transform: rotate(18deg); }
.workshop .frame-inner { min-height: 320px; }
@media (max-width: 720px) {
  .hero-copy {
    padding: 1.15rem 0.2rem 1rem 3.5rem;
  }
  .hero-copy > .yarn.corner-tl {
    top: .05rem;
    left: -.15rem;
    width: 52px;
    height: 62px;
  }
  .caption { padding: 0 1.7rem .05rem; font-size: 1.2rem; }
  .frame-inner { min-height: 240px !important; }
  .workshop .frame-inner { min-height: 260px !important; }
  .badge-star { width: 96px; height: 96px; font-size: .68rem; }
}

html, body { max-width: 100%; overflow-x: hidden; }
.marquee-track { width: max-content; }
.hero-art { padding: 1.2rem 1.4rem 1.6rem 0.4rem; margin-right: 0; overflow: visible; }
.badge-star {
  width: 108px;
  height: 108px;
  right: 4px;
  bottom: 18px;
  font-size: .7rem;
  letter-spacing: 0;
  filter: drop-shadow(3px 3px 0 var(--ink));
}
.badge-star.sticker svg { filter: none; }
@media (max-width: 720px) {
  .hero-art { padding: 0.4rem 0.6rem 1.2rem; }
  .badge-star { width: 96px; height: 96px; font-size: .64rem; right: 2px; bottom: 10px; }
}

/* Hero caption must clear the corner sticker */
.hero-art .caption {
  padding-left: 1.2rem;
  padding-right: 7.2rem;
  text-align: left;
}
.hero-art .badge-star {
  right: 6px;
  bottom: 6px;
}
html, body { overflow-x: clip; }
@media (max-width: 720px) {
  .hero-art .caption {
    padding-left: 1rem;
    padding-right: 6.4rem;
    font-size: 1.15rem;
  }
  .hero-art .badge-star {
    right: 2px;
    bottom: 4px;
    width: 88px;
    height: 88px;
    font-size: .6rem;
  }
}

@media (max-width: 380px) {
  .logo-text .logo-sub { white-space: normal; max-width: 12.5rem; }
  .logo-text strong { font-size: 1.1rem; }
}

/* ---- i18n, fonts, language switcher, RTL ---- */
html.i18n-pending body { visibility: hidden; }

html[lang="zh-CN"] {
  --font-sans: "Noto Sans SC", "Nunito", sans-serif;
  --font-display: "Noto Serif SC", "Fraunces", serif;
  --font-script: "Noto Sans SC", "Caveat", sans-serif;
}
html[lang="nan-TW"] {
  --font-sans: "Noto Sans TC", "Nunito", sans-serif;
  --font-display: "Noto Serif TC", "Fraunces", serif;
  --font-script: "Noto Sans TC", "Caveat", sans-serif;
}
html[lang="ja"] {
  --font-sans: "Noto Sans JP", "Nunito", sans-serif;
  --font-display: "Noto Serif JP", "Fraunces", serif;
  --font-script: "Noto Sans JP", "Caveat", sans-serif;
}
html[lang="ko"] {
  --font-sans: "Noto Sans KR", "Nunito", sans-serif;
  --font-display: "Noto Serif KR", "Fraunces", serif;
  --font-script: "Noto Sans KR", "Caveat", sans-serif;
}
html[lang="ar"] {
  --font-sans: "Cairo", "Noto Naskh Arabic", "Nunito", sans-serif;
  --font-display: "Cairo", "Noto Naskh Arabic", "Fraunces", sans-serif;
  --font-script: "Cairo", "Noto Naskh Arabic", sans-serif;
}
html[lang="ru"] {
  --font-script: "Fraunces", "Nunito", cursive;
}
html[lang="hi"] {
  --font-sans: "Noto Sans Devanagari", "Nunito", sans-serif;
  --font-display: "Noto Serif Devanagari", "Fraunces", serif;
  --font-script: "Noto Serif Devanagari", "Noto Sans Devanagari", sans-serif;
}
html[lang="bn"] {
  --font-sans: "Noto Sans Bengali", "Nunito", sans-serif;
  --font-display: "Noto Serif Bengali", "Fraunces", serif;
  --font-script: "Noto Serif Bengali", "Noto Sans Bengali", sans-serif;
}

/* CJK / Arabic subtitles shouldn't be forced uppercase */
html[lang="zh-CN"] .logo-sub,
html[lang="nan-TW"] .logo-sub,
html[lang="ja"] .logo-sub,
html[lang="ko"] .logo-sub,
html[lang="ar"] .logo-sub,
html[lang="ru"] .logo-sub,
html[lang="hi"] .logo-sub,
html[lang="bn"] .logo-sub {
  text-transform: none;
  letter-spacing: .02em;
  font-size: .7rem;
  font-weight: 700;
}
html[lang="ru"] .kicker,
html[lang="ar"] .kicker,
html[lang="zh-CN"] .kicker,
html[lang="nan-TW"] .kicker,
html[lang="ja"] .kicker,
html[lang="ko"] .kicker,
html[lang="hi"] .kicker,
html[lang="bn"] .kicker {
  font-style: italic;
}

.header-end {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: none;
}
.lang-switch { position: relative; z-index: 50; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .7rem .4rem .55rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--mustard);
  color: var(--ink);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .04em;
  box-shadow: 2px 2px 0 var(--ink);
  line-height: 1;
}
.lang-btn:hover, .lang-btn:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
  outline: none;
}
.lang-btn:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.lang-globe { display: flex; }
.lang-caret { font-size: .7rem; }
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  margin: 0;
  padding: .4rem;
  list-style: none;
  min-width: 24.5rem;
  width: max-content;
  max-width: min(36rem, calc(100vw - 1.5rem));
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
  max-height: min(70vh, 28rem);
  overflow: auto;
}
.lang-switch.open .lang-menu { display: block; }
/* Desktop: two balanced columns so 15 languages sit in a compact card */
#langSwitch.open .lang-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .15rem .3rem;
  align-content: start;
  column-count: 1;
}
.lang-menu [data-lang] {
  display: block;
  width: 100%;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  text-align: start;
  padding: .5rem .7rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
}
.lang-menu [data-lang]:hover,
.lang-menu [data-lang]:focus {
  background: var(--cream);
  outline: none;
}
.lang-menu [data-lang].is-active {
  background: var(--mustard);
  border-color: var(--ink);
}
.lang-mobile-panel {
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 2px dashed rgba(22,16,12,.3);
}
.lang-legend {
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 .45rem;
  color: var(--ink-soft);
}
.lang-mobile-panel .lang-switch { display: block; }
.lang-mobile-panel .lang-btn { display: none; }
.lang-mobile-panel .lang-menu {
  position: static;
  display: grid;
  box-shadow: none;
  max-height: none;
  min-width: 0;
  width: auto;
  max-width: none;
  inset: auto;
  column-count: 1;
}

/* Longer translations shouldn't blow the layout */
.btn, nav.desk a { text-wrap: balance; }
.logo-sub {
  white-space: normal;
  max-width: 16rem;
  text-wrap: balance;
}
.badge-star { text-wrap: balance; }
.hero h1, .section h2, .feature-copy h3 { text-wrap: balance; }
.price-lg, .amt { overflow-wrap: anywhere; }
nav.desk { flex-wrap: wrap; justify-content: flex-end; }

/* Logical properties for lists so RTL mirrors cleanly */
.track ul li { padding-left: 0; padding-inline-start: 1.2rem; }
.track ul li::before { left: auto; inset-inline-start: 0; }
.faq-item summary { padding-inline: 1.15rem 2.6rem; padding-block: 1rem; }
.faq-item summary::after { right: auto; inset-inline-end: 1rem; left: auto; }

/* RTL layout */
html[dir="rtl"] .logo { padding-left: 0; padding-inline-start: .2rem; }
html[dir="rtl"] .hero-doodle { transform: rotate(6deg); }
html[dir="rtl"] .hero-art .caption { text-align: right; }
html[dir="rtl"] .marquee-track { animation-name: tick-rtl; }
@keyframes tick-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
html[dir="rtl"] .price-card ul li::before { content: "◂ "; }
html[dir="rtl"] .lang-menu { box-shadow: -4px 4px 0 var(--ink); }
html[dir="rtl"] .btn:hover, html[dir="rtl"] .btn:focus-visible,
html[dir="rtl"] .lang-btn:hover, html[dir="rtl"] .lang-btn:focus-visible {
  transform: translate(1px, -1px);
}
/* Keep yarn decor in place (as designed); only flip UI chrome */
html[dir="rtl"] body { text-align: start; }

@media (max-width: 720px) {
  .header-end { gap: .45rem; }
  .lang-btn {
    padding: .38rem .55rem .38rem .42rem;
    font-size: .75rem;
  }
  .logo-sub { max-width: 11.5rem; font-size: .58rem; letter-spacing: .03em; }
  .desk .lang-switch { /* desktop nav hidden already */ }
  nav.desk { display: none; }
  /* compact hero padding already set; let long German CTAs stack */
  .btn { width: auto; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
}

@media (max-width: 380px) {
  .logo-text .logo-sub { max-width: 10.5rem; }
}

/* i18n follow-up fixes */
.hero h1 { margin-bottom: .75rem; }
.hero h1 .hl { display: inline-block; }
html[lang="ar"] .hero h1 {
  font-size: clamp(2.35rem, 6.2vw, 4.7rem);
  line-height: 1.18;
  margin-bottom: 1rem;
}
html[lang="ar"] .hero-lead { position: relative; z-index: 1; }

@media (max-width: 720px) {
  .site-header.open .header-end > .lang-switch { display: none; }
  nav.mobile {
    max-height: calc(100dvh - var(--header-h) - 2.2rem);
    overflow-y: auto;
  }
  .lang-mobile-panel .lang-menu {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: .28rem;
    padding: .35rem;
  }
  .lang-mobile-panel .lang-menu [data-lang] {
    padding: .45rem .5rem;
    font-size: .9rem;
    text-align: center;
  }
}

/* Devanagari and Bengali need room for matras; don't tighten tracking */
html[lang="hi"],
html[lang="bn"] {
  letter-spacing: 0;
}
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3, html[lang="hi"] h4,
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3, html[lang="bn"] h4 {
  line-height: 1.22;
  letter-spacing: 0;
}
html[lang="hi"] .hero h1,
html[lang="bn"] .hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  line-height: 1.24;
  margin-bottom: 1rem;
}
html[lang="hi"] .hero-lead,
html[lang="bn"] .hero-lead {
  position: relative;
  z-index: 1;
  line-height: 1.65;
}
html[lang="hi"] .kicker,
html[lang="bn"] .kicker {
  line-height: 1.35;
}
