/*
 * Yellow Disc: components
 * Every value comes from tokens.css. Load tokens.css first.
 */
*, *::before, *::after { box-sizing: border-box; }

.yd-page {
  margin: 0;
  background: var(--yd-mist);
  color: var(--yd-ink);
  font-family: var(--yd-sans);
  font-size: var(--yd-text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.yd-page :where(a) { color: inherit; }
.yd-page img, .yd-page svg { max-width: 100%; }

.yd-wrap { width: 100%; max-width: var(--yd-container); margin: 0 auto; padding: 0 var(--yd-gutter); }
.yd-narrow { max-width: var(--yd-narrow); }
.yd-section { padding: var(--yd-section) 0; }

/* Ruler: a row of hairline ticks with one open box, the kit's signature ornament */
.yd-ruler { display: flex; align-items: center; gap: 8px; height: 18px; min-width: 200px; }
.yd-ruler::before { content: ""; width: 30px; height: 16px; border: 1px solid var(--yd-tick); flex: none; }
.yd-ruler::after {
  content: ""; flex: 1; max-width: 160px; height: 16px;
  background: repeating-linear-gradient(90deg, var(--yd-tick) 0 1px, transparent 1px 10px);
}
.yd-ruler--center { justify-content: center; }
.yd-ruler--long::after { max-width: none; }

/* Nav */
.yd-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; }
.yd-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--yd-display); font-weight: 500; font-size: 19px; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.yd-logo::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--yd-sun); box-shadow: inset 0 0 0 1px var(--yd-ink); }
.yd-nav__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: var(--yd-text-small); }
.yd-nav__links a { text-decoration: none; color: var(--yd-soft); }
.yd-nav__links a:hover, .yd-nav__links a[aria-current] { color: var(--yd-ink); }
.yd-nav__actions { display: flex; align-items: center; gap: 12px; }
@media (max-width: 760px) { .yd-nav__links, .yd-nav__hide { display: none; } }

/* Sheet: the white panel. Content sits above the disc */
.yd-sheet { position: relative; background: var(--yd-sheet); overflow: hidden; border-radius: var(--yd-radius); }
.yd-sheet > :where(:not(.yd-disc, .yd-cross)) { position: relative; z-index: 1; }
.yd-sheet--pad { padding: clamp(32px, 6vw, 72px); }

/* Disc: the one loud shape. Size with --size, place with top/right/left/bottom */
.yd-disc {
  position: absolute; z-index: 0; pointer-events: none;
  width: var(--size, 60%); aspect-ratio: 1; border-radius: 50%;
  background: var(--yd-sun);
}
.yd-disc--drift { animation: yd-drift 14s var(--yd-ease) infinite alternate; }
@keyframes yd-drift { from { transform: translate(0, 0); } to { transform: translate(-4%, 3%); } }
@media (prefers-reduced-motion: reduce) { .yd-disc--drift { animation: none; } }

/* Crosshair: a hairline plus marking the center of something */
.yd-cross { position: absolute; z-index: 2; width: 22px; height: 22px; pointer-events: none; transform: translate(-50%, -50%); }
.yd-cross::before, .yd-cross::after { content: ""; position: absolute; background: var(--yd-ink); }
.yd-cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.yd-cross::after { top: 50%; left: 0; right: 0; height: 1px; }

/* Type */
.yd-hero-title, .yd-h2, .yd-h3 { font-family: var(--yd-display); font-weight: 400; margin: 0; color: var(--yd-ink); }
.yd-hero-title { font-size: var(--yd-text-hero); line-height: var(--yd-leading-hero); letter-spacing: var(--yd-tracking-hero); }
.yd-h2 { font-size: var(--yd-text-h2); line-height: 1.08; letter-spacing: var(--yd-tracking-h2); }
.yd-h3 { font-size: var(--yd-text-h3); line-height: 1.25; letter-spacing: -.015em; font-weight: 500; }
/* Staggered lines: wrap each line in .yd-line; every second one steps in */
.yd-line { display: block; }
.yd-line:nth-child(even) { padding-left: var(--yd-indent); }
.yd-lead { font-size: var(--yd-text-lead); line-height: 1.5; color: var(--yd-soft); max-width: 36em; margin: 0; }
.yd-label { font-family: var(--yd-mono); font-size: var(--yd-text-micro); letter-spacing: .06em; text-transform: uppercase; color: var(--yd-soft); }
.yd-mark { background: var(--yd-sun); padding: 0 .12em; }

/* Buttons */
.yd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: var(--yd-radius-sm);
  font-family: var(--yd-sans); font-size: 15px; font-weight: 500; text-decoration: none;
  white-space: nowrap; cursor: pointer; border: 1px solid transparent;
  transition: background var(--yd-slow) var(--yd-ease), color .2s;
}
.yd-btn--ink { background: var(--yd-ink); color: var(--yd-sheet); }
.yd-btn--ink:hover { background: #000; }
.yd-btn--sun { background: var(--yd-sun); color: var(--yd-ink); border-color: var(--yd-ink); }
.yd-btn--sun:hover { background: var(--yd-sun-deep); }
.yd-btn--line { background: transparent; color: var(--yd-ink); border-color: var(--yd-ink); }
.yd-btn--line:hover { background: var(--yd-sun); }
.yd-btn--text { background: none; padding: 0; height: auto; border: 0; color: var(--yd-ink); text-decoration: underline; text-underline-offset: 4px; }
.yd-btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.yd-btn--block { width: 100%; }

/* Badge */
.yd-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--yd-mono); font-size: var(--yd-text-micro); text-transform: uppercase; letter-spacing: .05em; padding: 4px 9px; border: var(--yd-border-ink); border-radius: var(--yd-radius-pill); white-space: nowrap; }
.yd-badge--sun { background: var(--yd-sun); }
.yd-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.yd-badge--plain::before { display: none; }

/* Grid of cards: white sheets separated by mist gaps */
.yd-grid { display: grid; gap: 2px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.yd-card { background: var(--yd-sheet); padding: 32px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.yd-card > :where(:not(.yd-disc)) { position: relative; z-index: 1; }
.yd-card__num { font-family: var(--yd-mono); font-size: var(--yd-text-micro); color: var(--yd-faint); }
.yd-card p { margin: 0; color: var(--yd-soft); }

/* Index rows: a plain list like a table of contents */
.yd-index { list-style: none; margin: 0; padding: 0; border-top: var(--yd-border-ink); }
.yd-index li { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: var(--yd-border); }
.yd-index__n { font-family: var(--yd-mono); font-size: var(--yd-text-micro); color: var(--yd-faint); }
.yd-index__t { font-family: var(--yd-display); font-size: 22px; letter-spacing: -.015em; }
.yd-index__m { font-size: var(--yd-text-small); color: var(--yd-soft); text-align: right; }
@media (max-width: 560px) { .yd-index li { grid-template-columns: 36px 1fr; } .yd-index__m { grid-column: 2; text-align: left; } }

/* Stat */
.yd-stat__n { font-family: var(--yd-display); font-size: clamp(40px, 5vw, 64px); letter-spacing: -.04em; line-height: 1; }
.yd-stat__l { font-size: var(--yd-text-small); color: var(--yd-soft); margin-top: 8px; }

/* Forms */
.yd-form { display: grid; gap: 20px; }
.yd-field { display: grid; gap: 8px; }
.yd-field__label { font-family: var(--yd-mono); font-size: var(--yd-text-micro); text-transform: uppercase; letter-spacing: .06em; color: var(--yd-soft); }
.yd-input, .yd-select {
  width: 100%; height: 48px; padding: 0 14px; font: inherit; color: var(--yd-ink);
  background: var(--yd-sheet); border: 0; border-bottom: var(--yd-border-ink); border-radius: 0;
  transition: background .3s var(--yd-ease);
}
.yd-input:focus, .yd-select:focus { outline: none; background: var(--yd-sun-soft); }
.yd-input::placeholder { color: var(--yd-faint); }
.yd-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--yd-text-small); color: var(--yd-soft); }
.yd-check input { accent-color: var(--yd-ink); width: 16px; height: 16px; margin-top: 3px; }
.yd-choice { display: flex; flex-wrap: wrap; gap: 1px; background: var(--yd-line); border: var(--yd-border); }
.yd-choice label { flex: 1 1 110px; background: var(--yd-sheet); padding: 14px; font-size: var(--yd-text-small); cursor: pointer; display: flex; gap: 8px; align-items: center; }
.yd-choice input { accent-color: var(--yd-ink); }
.yd-choice label:has(input:checked) { background: var(--yd-sun); color: var(--yd-ink); }

/* Pricing */
.yd-plans { display: grid; gap: 2px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.yd-plan { background: var(--yd-sheet); padding: 36px 32px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; }
.yd-plan > :where(:not(.yd-disc)) { position: relative; z-index: 1; }
.yd-plan__price { font-family: var(--yd-display); font-size: 56px; letter-spacing: -.04em; line-height: 1; }
.yd-plan__price small { font-family: var(--yd-sans); font-size: var(--yd-text-small); color: var(--yd-soft); letter-spacing: 0; margin-left: 4px; }
.yd-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--yd-text-small); }
.yd-plan li { padding-left: 22px; position: relative; }
.yd-plan li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--yd-ink); }
.yd-plan--featured li::before { background: var(--yd-sun); }
.yd-plan .yd-btn { margin-top: auto; }
.yd-toggle { display: inline-flex; border: var(--yd-border-ink); border-radius: var(--yd-radius-pill); padding: 3px; background: var(--yd-sheet); }
.yd-toggle button { font: inherit; font-size: var(--yd-text-small); border: 0; background: none; padding: 7px 16px; border-radius: var(--yd-radius-pill); cursor: pointer; color: var(--yd-soft); white-space: nowrap; }
.yd-toggle button[aria-pressed="true"] { background: var(--yd-ink); color: var(--yd-sheet); }

/* FAQ */
.yd-faq details { border-bottom: var(--yd-border); padding: 18px 0; }
.yd-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-family: var(--yd-display); font-size: 20px; letter-spacing: -.01em; }
.yd-faq summary::after { content: "+"; font-family: var(--yd-mono); }
.yd-faq details[open] summary::after { content: "\2212"; }
.yd-faq p { color: var(--yd-soft); margin: 12px 0 0; }

/* Article */
.yd-article { font-size: 18px; line-height: 1.7; }
.yd-article > * { max-width: var(--yd-narrow); margin-left: auto; margin-right: auto; }
.yd-article h2 { font-family: var(--yd-display); font-weight: 400; font-size: 32px; letter-spacing: -.025em; line-height: 1.15; margin-top: 56px; margin-bottom: 16px; }
.yd-article p { margin-top: 0; margin-bottom: 22px; }
.yd-article blockquote { margin-top: 40px; margin-bottom: 40px; padding-left: 24px; border-left: 4px solid var(--yd-sun); font-family: var(--yd-display); font-size: 28px; line-height: 1.25; letter-spacing: -.02em; }
.yd-article figure { margin-top: 40px; margin-bottom: 40px; }
.yd-article figcaption { font-family: var(--yd-mono); font-size: var(--yd-text-micro); color: var(--yd-soft); margin-top: 10px; text-transform: uppercase; letter-spacing: .05em; }
.yd-article ul { padding-left: 20px; }
.yd-article li { margin-bottom: 8px; }
.yd-byline { display: flex; align-items: center; gap: 12px; font-size: var(--yd-text-small); color: var(--yd-soft); }
.yd-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--yd-sun); border: var(--yd-border-ink); display: grid; place-items: center; font-family: var(--yd-display); color: var(--yd-ink); font-size: 15px; flex: none; }

/* Footer */
.yd-footer { padding: 48px 0 40px; font-size: var(--yd-text-small); color: var(--yd-soft); }
.yd-footer__cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 40px; }
.yd-footer h4 { font-family: var(--yd-mono); font-weight: 400; font-size: var(--yd-text-micro); text-transform: uppercase; letter-spacing: .06em; color: var(--yd-ink); margin: 0 0 12px; }
.yd-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.yd-footer a { text-decoration: none; }
.yd-footer a:hover { color: var(--yd-ink); }
.yd-footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: var(--yd-border); padding-top: 20px; }

/* Inline SVG helpers: line drawings in ink, with yellow fills */
.yd-fill-sun { fill: var(--yd-sun); }
.yd-fill-ink { fill: var(--yd-ink); }
