/* samples.html: builds on tokens.css and site.css */

/* ---------- sm-hero: a short madder header with a round bottom edge ---------- */
.sm-hero {
  position: relative; z-index: 3; min-height: 56svh;
  padding-block: clamp(40px, 6vw, 96px) clamp(96px, 11vw, 180px);
}
.sm-hero__grid { position: relative; align-items: end; row-gap: 28px; }
.sm-hero__h1 { grid-column: 1 / 10; grid-row: 1; font-size: clamp(56px, 12vw, 200px); color: var(--accent-ink); max-width: 7ch; }
.sm-hero__stamp {
  grid-column: 10 / 12; grid-row: 1; align-self: center; justify-self: start;
  width: clamp(104px, 10vw, 150px); background: var(--turmeric); color: var(--turmeric-ink);
  transform: rotate(-9deg); font-size: 12px; line-height: 1.1;
}
.sm-hero__stamp > span { display: grid; gap: 2px; }
.sm-hero__stamp b { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 4vw, 60px); letter-spacing: -.02em; line-height: .85; }
.sm-hero__answer { grid-column: 7 / 13; grid-row: 2; }
.sm-hero__kicker { color: var(--accent-ink); font-family: var(--font-label); font-size: 14px; line-height: 1.4; letter-spacing: .18em; margin-bottom: 14px; }
.sm-hero__body { font-size: 19px; line-height: 1.45; max-width: 46ch; font-weight: 500; }
.sm-hero__go { margin-top: 28px; }
.sm-hero__arrow { grid-column: 4 / 7; grid-row: 2; justify-self: end; align-self: end; width: clamp(96px, 10vw, 160px); height: auto; margin-bottom: -40px; transform: rotate(6deg); }
@media (max-width: 899px) {
  .sm-hero { min-height: 0; padding-top: 36px; }
  .sm-hero__grid { row-gap: 20px; }
  .sm-hero__h1 { grid-row: 1; max-width: none; }
  .sm-hero__stamp { grid-row: 2; justify-self: end; width: 96px; margin-top: -56px; margin-right: 4px; }
  .sm-hero__stamp b { font-size: 36px; }
  .sm-hero__answer { grid-row: 3; }
  .sm-hero__body { font-size: 18px; }
  .sm-hero__go { width: 100%; }
  .sm-hero__arrow { display: none; }
}

/* ---------- sm-next: five knots on one madder thread ---------- */
.sm-next { position: relative; padding-block: clamp(80px, 10vw, 160px) clamp(170px, 18vw, 260px); }
.sm-next__grid { align-items: center; row-gap: 48px; }
.sm-next__intro { grid-column: 1 / 5; }
.sm-next__intro h2 { max-width: 6ch; }
.sm-next__body { margin-top: 24px; font-size: 19px; }
.sm-next__ask { margin-top: 28px; }
.sm-next__thread { grid-column: 5 / 13; position: relative; height: clamp(420px, 34vw, 500px); }
.thread-h { position: absolute; left: -2%; width: 104%; top: calc(50% - 20px); height: 40px; overflow: visible; }
.thread-v { display: none; }
.knot { position: absolute; left: var(--x); top: 50%; width: 0; height: 0; }
.knot__stamp {
  position: absolute; left: 0; top: 0; translate: -50% -50%;
  width: clamp(96px, 8.4vw, 124px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center; padding: 12px;
  background: var(--c); color: var(--ci);
  font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; line-height: 1.25;
  box-shadow: 2px 2px 0 rgba(35,48,94,.28);
}
.knot__stamp::after { /* the knot's dashed stitch ring */
  content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px dashed currentColor; opacity: .55;
}
.knot__line { position: absolute; left: -48px; width: 190px; font-size: 17px; line-height: 1.35; font-weight: 500; }
.knot--up .knot__line { bottom: clamp(70px, 6vw, 84px); }
.knot--down .knot__line { top: clamp(70px, 6vw, 84px); }
.knot--end .knot__line { left: auto; right: -48px; text-align: right; }
@media (max-width: 1199px) and (min-width: 900px) {
  .knot__line { width: 150px; font-size: 16px; }
}
@media (max-width: 899px) {
  .sm-next { padding-bottom: clamp(140px, 30vw, 200px); }
  .sm-next__ask { width: 100%; }
  .sm-next__thread { height: auto; padding-left: 0; }
  .thread-h { display: none; }
  .thread-v { display: block; position: absolute; left: 41px; top: 20px; bottom: 20px; width: 6px; border-radius: 3px; background: var(--accent); transform-origin: 50% 0; }
  .knots { display: grid; gap: 22px; }
  .knots .knot { position: relative; left: auto; top: auto; width: auto; height: auto; display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 18px; }
  .knots .knot:nth-child(2) { margin-bottom: 18px; }
  .knots .knot:nth-child(4) { margin-bottom: 44px; }
  .knot__stamp { position: relative; translate: none; width: 88px; font-size: 10px; letter-spacing: .08em; padding: 10px; }
  .knot__line, .knot--end .knot__line { position: static; width: auto; text-align: left; font-size: 18px; }
}

/* ---------- sm-faq: eight paper tags in two uneven columns ---------- */
.sm-faq { padding-block: clamp(110px, 12vw, 200px) clamp(130px, 13vw, 200px); }
.sm-faq__grid { row-gap: 28px; align-items: start; }
.sm-faq__h { grid-column: 1 / 8; grid-row: 1; margin-bottom: clamp(16px, 3vw, 48px); }
.sm-faq__col { display: grid; gap: clamp(18px, 2vw, 28px); align-content: start; }
.sm-faq__col--a { grid-column: 1 / 8; grid-row: 2; }
.sm-faq__col--b { grid-column: 8 / 13; grid-row: 1 / span 2; padding-top: clamp(40px, 9vw, 150px); padding-left: clamp(0px, 1.5vw, 24px); }
.qtag {
  position: relative; background: #fff3df; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 10px 10px 4px 4px;
  box-shadow: 2px 2px 0 rgba(35,48,94,.28);
  transform: rotate(var(--tilt, 0deg)); transform-origin: 28px 50%;
}
.qtag { border-bottom: 0; border-radius: 10px 10px 0 0; margin-bottom: 10px; }
.qtag::before, .qtag::after { /* zigzag tear along the bottom edge: ink teeth under paper teeth */
  content: ""; position: absolute; height: 10px; pointer-events: none;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%;
}
.qtag::before { left: -2px; right: -2px; bottom: -12px; background: var(--ink); }
.qtag::after { left: 0; right: 0; bottom: -9px; background: #fff3df; }
.qtag summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 14px;
  min-height: 76px; padding: 14px 16px 14px 14px;
}
.qtag summary::-webkit-details-marker { display: none; }
.qtag__yarn { width: 44px; height: 44px; border-radius: 50%; background: var(--c); display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(35,48,94,.25); }
.qtag__yarn i { width: 13px; height: 13px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px rgba(35,48,94,.4); }
.qtag__q { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.12; letter-spacing: -.01em; }
.qtag__plus { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); }
.qtag__plus::before, .qtag__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; background: var(--ink); translate: -50% -50%; transition: rotate var(--dur-standard) var(--ease-out); }
.qtag__plus::after { rotate: 90deg; }
.qtag[open] .qtag__plus::after { rotate: 0deg; }
.qtag[open] .qtag__plus { background: var(--ink); }
.qtag[open] .qtag__plus::before, .qtag[open] .qtag__plus::after { background: var(--bg); }
.qtag__a { overflow: hidden; }
.qtag__a p { padding: 4px 22px 24px 72px; font-size: 18px; line-height: 1.45; max-width: 62ch; border-top: 2px dashed rgba(35,48,94,.25); padding-top: 16px; margin-inline: 14px; padding-left: 58px; }
.qtag__a .qtag__ph { font-family: var(--font-label); font-weight: 700; letter-spacing: .14em; font-size: 15px; }
.qtag summary:hover .qtag__q { text-decoration: underline; text-decoration-color: var(--turmeric); text-decoration-thickness: 3px; text-underline-offset: 5px; }
@media (max-width: 899px) {
  .sm-faq__h { margin-bottom: 8px; }
  .sm-faq__col--a, .sm-faq__col--b { grid-row: auto; padding: 0; }
  .qtag summary { grid-template-columns: 36px 1fr 44px; gap: 12px; padding: 12px; }
  .qtag__yarn { width: 36px; height: 36px; }
  .qtag__q { font-size: 20px; }
  .qtag__a p { padding: 14px 8px 20px 8px; margin-inline: 12px; }
}

/* ---------- the madder ask ---------- */
.sm-ask { min-height: 0; padding-block: clamp(120px, 13vw, 210px) clamp(72px, 8vw, 120px); }
.sm-ask__big {
  grid-column: 1 / 12; display: block; text-decoration: none; color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(52px, 10.5vw, 184px); line-height: .88; letter-spacing: -.02em;
  overflow-wrap: normal; word-break: normal; hyphens: none;
}
.sm-ask__big:hover span:first-child { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .1em; text-decoration-color: var(--turmeric); }
.sm-ask__arr { font-family: var(--font-label); font-weight: 700; font-size: .5em; vertical-align: .4em; color: var(--turmeric); }
.sm-ask__do { margin-top: 40px; }
.sm-ask__mail { color: var(--accent-ink); text-decoration: none; padding: 14px 4px; font-size: 14px; font-weight: 700; }
.sm-ask__mail:hover { text-decoration: underline; }
@media (max-width: 899px) { .sm-ask__do .pill { width: 100%; } }

/* the sample-tag form brings its own tag to this page; the site-wide one would hang over it */
.sample-tag { display: none; }
