/* Yarn Map components. Built only from tokens.css. */

*, *::before, *::after { box-sizing: border-box; }

.ym {
  margin: 0;
  background: var(--ym-paper);
  color: var(--ym-ink);
  font-family: var(--ym-font-body);
  font-size: var(--ym-text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.ym a { color: var(--ym-link); text-underline-offset: 3px; }
.ym a:hover { color: var(--ym-teal); }
.ym img, .ym svg { max-width: 100%; }

.ym-page { width: 100%; max-width: var(--ym-page); margin: 0 auto; padding: 0 20px; }
.ym-column { max-width: var(--ym-column); margin: 0 auto; }
.ym-center { text-align: center; }
.ym-canvas { background-color: var(--ym-paper); background-image: var(--ym-speckle); background-size: 120px 120px; }

/* Sections */
.ym-section { padding: var(--ym-section) 0; }
.ym-section--tint { background: var(--ym-paper-2); }
.ym-section--teal { background: var(--ym-teal); color: var(--ym-on-teal); }
.ym-section--teal a { color: var(--ym-cyan); }

/* Type */
.ym-hero-title, .ym-h2, .ym-h3 { font-family: var(--ym-font-display); font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.ym-hero-title { font-size: var(--ym-text-hero); line-height: .95; text-transform: uppercase; }
.ym-h2 { font-size: var(--ym-text-h2); line-height: 1.05; }
.ym-h3 { font-size: var(--ym-text-h3); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.ym-lead { font-size: var(--ym-text-lead); color: var(--ym-soft); max-width: 560px; margin: 12px 0 0; }
.ym-section--teal .ym-lead { color: var(--ym-on-teal); opacity: .85; }
.ym-label { font-family: var(--ym-font-mono); font-size: var(--ym-text-label); text-transform: uppercase; letter-spacing: .08em; color: var(--ym-soft); }
.ym-small { font-size: 14px; color: var(--ym-soft); }

/* The wordmark: a wide chunky name with a stacked two-line caption */
.ym-wordmark { display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ym-wordmark__caption { font-family: var(--ym-font-display); font-weight: 800; font-size: clamp(14px, 1.8vw, 22px); line-height: .95; text-transform: uppercase; }

/* Nav */
.ym-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.ym-nav__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ym-font-display); font-weight: 800; font-size: 18px; color: var(--ym-ink); text-decoration: none; }
.ym .ym-nav__brand { color: var(--ym-ink); text-decoration: none; }
.ym-nav__links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ym-blob { width: 34px; height: 30px; flex: none; }

/* Buttons: small, flat, thin-bordered, like keys on a toolbar */
.ym-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ym-font-body); font-size: 16px; line-height: 1;
  padding: 9px 12px; border-radius: var(--ym-radius);
  border: var(--ym-border); background: var(--ym-card); color: var(--ym-ink);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.ym .ym-btn { color: var(--ym-ink); text-decoration: none; }
.ym-btn:hover { background: var(--ym-paper-2); }
.ym-btn--mint { background: var(--ym-mint); border-color: var(--ym-mint-deep); }
.ym-btn--mint:hover { background: var(--ym-cyan); }
.ym-btn--lg { font-size: 18px; padding: 13px 18px; }
.ym-btn--block { width: 100%; }
.ym-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Chips and tags */
.ym-chip { display: inline-block; font-size: 13px; line-height: 1; padding: 4px 6px; border-radius: var(--ym-radius-chip); background: var(--ym-cyan); color: var(--ym-ink); white-space: nowrap; }
.ym-chip--lilac { background: var(--ym-lilac); }
.ym-chip--butter { background: var(--ym-butter); }
.ym-chip--fog { background: var(--ym-fog); }
.ym-tag { display: inline-block; font-size: 14px; padding: 3px 6px; border-radius: var(--ym-radius-sm); background: var(--ym-lilac); }

/* Nodes: the little note cards that live on the board */
.ym-node {
  position: relative; display: inline-block;
  font-size: var(--ym-text-node); line-height: 1.35;
  padding: 8px 30px 8px 10px; border-radius: var(--ym-radius);
  background: var(--ym-fog); color: var(--ym-ink);
  max-width: 220px;
}
.ym-node--butter { background: var(--ym-butter); }
.ym-node--lilac { background: var(--ym-lilac); }
.ym-node--teal { background: var(--ym-teal); color: var(--ym-on-teal); }
.ym-node--white { background: var(--ym-card); border: var(--ym-border); }
.ym-node--wide { max-width: 300px; }
.ym-node .ym-chip { margin-left: 2px; }
/* The half-moon toggle every node carries in its corner */
.ym-node__dot {
  position: absolute; top: 8px; right: 8px; width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid currentColor;
  background: linear-gradient(90deg, transparent 50%, currentColor 50%);
}
.ym-node__dot--open { background: transparent; }
.ym-node__check { display: inline-block; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ym-node__pic { display: block; margin: -2px -22px 8px -4px; border-radius: var(--ym-radius-sm); overflow: hidden; }

/* The board: an absolutely positioned canvas of nodes tied with strings */
.ym-board { position: relative; min-height: 520px; background-image: var(--ym-speckle); background-size: 120px 120px; }
.ym-board > .ym-node, .ym-board > .ym-pin, .ym-board > .ym-tag { position: absolute; }
.ym-strings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ym-strings path { fill: none; stroke-width: var(--ym-string-width); stroke-linecap: round; }
.ym-string--gold { stroke: var(--ym-string-gold); }
.ym-string--lilac { stroke: var(--ym-string-lilac); }
.ym-string--sky { stroke: var(--ym-string-sky); }
.ym-pin { display: inline-block; }

@media (max-width: 720px) {
  .ym-board { min-height: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 0; align-items: flex-start; align-content: flex-start; }
  .ym-board > .ym-node, .ym-board > .ym-pin, .ym-board > .ym-tag { position: relative; left: auto !important; top: auto !important; }
  .ym-board .ym-strings { display: none; }
}

/* Hero */
.ym-hero { padding: 48px 0 24px; }
.ym-hero__intro { font-size: 18px; margin: 18px 0 0; }

/* Cards */
.ym-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--ym-gap); }
.ym-card { background: var(--ym-card); border: var(--ym-border); border-radius: var(--ym-radius); padding: 20px; }
.ym-card--fog { background: var(--ym-fog); border-color: transparent; }
.ym-card--butter { background: var(--ym-butter); border-color: transparent; }
.ym-card--lilac { background: var(--ym-lilac); border-color: transparent; }
.ym-card--teal { background: var(--ym-teal); color: var(--ym-on-teal); border-color: transparent; }
.ym-card p { margin: 8px 0 0; }
.ym-card__icon { width: 40px; height: 40px; margin-bottom: 14px; }

/* A line of mascot-style doodle with a caption beside it */
.ym-aside { display: flex; align-items: center; gap: 14px; font-size: 18px; }
.ym-aside svg { flex: none; width: 56px; height: 56px; }

/* Quote */
.ym-quote { font-family: var(--ym-font-display); font-weight: 600; font-size: clamp(22px, 2.8vw, 32px); line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
.ym-quote__by { display: block; margin-top: 16px; font-family: var(--ym-font-mono); font-size: var(--ym-text-label); text-transform: uppercase; letter-spacing: .08em; }

/* Pricing */
.ym-toggle { display: inline-flex; border: var(--ym-border); border-radius: var(--ym-radius); background: var(--ym-card); padding: 3px; gap: 3px; }
.ym-toggle button { font: inherit; font-size: 15px; border: 0; background: transparent; padding: 7px 12px; border-radius: var(--ym-radius-sm); cursor: pointer; color: var(--ym-ink); white-space: nowrap; }
.ym-toggle button[aria-pressed="true"] { background: var(--ym-mint); }
.ym-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--ym-gap); align-items: start; }
.ym-plan { background: var(--ym-card); border: var(--ym-border); border-radius: var(--ym-radius); padding: 22px; position: relative; }
.ym-plan--featured { background: var(--ym-butter); border-color: transparent; }
.ym-plan__name { font-family: var(--ym-font-display); font-weight: 600; font-size: 20px; margin: 0; }
.ym-plan__price { font-family: var(--ym-font-display); font-weight: 800; font-size: 44px; line-height: 1; margin: 16px 0 4px; }
.ym-plan__price small { font-family: var(--ym-font-body); font-weight: 400; font-size: 15px; color: var(--ym-soft); }
.ym-plan ul { list-style: none; padding: 0; margin: 18px 0 22px; }
.ym-plan li { padding: 6px 0 6px 22px; position: relative; font-size: 15px; }
.ym-plan li::before { content: ""; position: absolute; left: 0; top: 11px; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ym-ink); background: linear-gradient(90deg, transparent 50%, var(--ym-ink) 50%); }
.ym-plan .ym-tag { position: absolute; top: -12px; right: 16px; }

.ym-faq { border-top: var(--ym-border); }
.ym-faq details { border-bottom: var(--ym-border); padding: 14px 0; }
.ym-faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.ym-faq summary::-webkit-details-marker { display: none; }
.ym-faq summary::before { content: "+ "; font-family: var(--ym-font-mono); color: var(--ym-mint-deep); }
.ym-faq p { margin: 8px 0 0; color: var(--ym-soft); }

/* Article */
.ym-byline { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 15px; color: var(--ym-soft); flex-wrap: wrap; }
.ym-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ym-lilac); display: inline-grid; place-items: center; font-family: var(--ym-font-display); font-weight: 800; font-size: 13px; color: var(--ym-ink); }
.ym-article { font-size: 18px; line-height: 1.7; }
.ym-article h2 { font-family: var(--ym-font-display); font-weight: 600; font-size: 24px; line-height: 1.2; margin: 44px 0 10px; letter-spacing: -0.01em; }
.ym-article p { margin: 0 0 18px; }
.ym-article blockquote { margin: 28px 0; padding: 14px 18px; background: var(--ym-butter); border-radius: var(--ym-radius); font-size: 20px; }
.ym-article ul { padding-left: 22px; }
.ym-article figure { margin: 32px 0; }
.ym-article figcaption { font-family: var(--ym-font-mono); font-size: var(--ym-text-label); color: var(--ym-soft); margin-top: 8px; }

/* Forms */
.ym-form { display: grid; gap: 16px; }
.ym-field { display: grid; gap: 6px; }
.ym-field label, .ym-field legend { font-family: var(--ym-font-mono); font-size: var(--ym-text-label); text-transform: uppercase; letter-spacing: .08em; color: var(--ym-soft); }
.ym-input, .ym-select {
  font: inherit; font-size: 16px; width: 100%;
  padding: 10px 12px; border: var(--ym-border); border-radius: var(--ym-radius);
  background: var(--ym-card); color: var(--ym-ink);
}
.ym-input:focus, .ym-select:focus { outline: 2px solid var(--ym-mint); outline-offset: 1px; border-color: var(--ym-mint-deep); }
.ym-hint { font-size: 14px; color: var(--ym-soft); }
.ym-choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.ym-choice { position: relative; }
.ym-choice input { position: absolute; opacity: 0; }
.ym-choice span { display: inline-block; padding: 7px 10px; border-radius: var(--ym-radius); background: var(--ym-fog); font-size: 15px; cursor: pointer; }
.ym-choice input:checked + span { background: var(--ym-lilac); outline: 1.5px solid var(--ym-ink); }
.ym-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.ym-check input { margin-top: 4px; accent-color: var(--ym-mint-deep); }

/* Footer */
.ym-footer { padding: 40px 0; border-top: var(--ym-border); font-size: 15px; }
.ym-footer__row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.ym-footer__links { display: flex; gap: 16px; flex-wrap: wrap; }
.ym .ym-footer__links a { color: var(--ym-ink); text-decoration: none; }

/* Nodes used as links (related posts, menus) */
.ym a.ym-node { color: var(--ym-ink); text-decoration: none; }
.ym a.ym-node:hover { outline: 1.5px solid var(--ym-ink); }

fieldset.ym-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.ym-field label.ym-choice, .ym-choice span { font-family: var(--ym-font-body); font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--ym-ink); }
