/*
 * Ridge Line: components
 * Every class is built only from tokens.css. Load tokens.css first.
 */

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

body {
  margin: 0;
  background: var(--rl-paper);
  color: var(--rl-text);
  font-family: var(--rl-sans);
  font-size: var(--rl-text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 var(--rl-space-4); }

.rl-wrap { max-width: var(--rl-container); margin: 0 auto; padding: 0 var(--rl-gutter); }
.rl-narrow { max-width: var(--rl-text-width); }

/* ---------- Links and text ---------- */
.rl-link { color: var(--rl-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--rl-fast) var(--rl-ease); }
.rl-link:hover { color: var(--rl-blue); }

.rl-mast-word, .rl-hero-title, .rl-h2, .rl-h3 {
  font-family: var(--rl-display);
  font-weight: var(--rl-weight-display);
  letter-spacing: var(--rl-track-display);
  line-height: 0.98;
  margin: 0;
}
.rl-hero-title { font-size: var(--rl-text-hero); text-transform: uppercase; }
.rl-h2 { font-size: var(--rl-text-h2); text-transform: uppercase; line-height: 1; }
.rl-h3 { font-size: var(--rl-text-h3); letter-spacing: -0.015em; line-height: 1.15; font-weight: 700; }
.rl-lead { font-size: var(--rl-text-lead); color: var(--rl-soft); line-height: 1.5; max-width: 620px; }
.rl-small { font-size: var(--rl-text-small); color: var(--rl-soft); }
.rl-mono { font-family: var(--rl-mono); font-size: var(--rl-text-small); }

.rl-label {
  display: inline-flex; align-items: center; gap: var(--rl-space-2);
  font-family: var(--rl-mono); font-size: var(--rl-text-tiny); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--rl-text);
}

/* Hold dots: the only round thing in the style */
.rl-dot { width: 10px; height: 10px; border-radius: var(--rl-radius-dot); background: var(--rl-ink); flex: none; display: inline-block; }
.rl-dot--yellow { background: var(--rl-hold-yellow); }
.rl-dot--pink { background: var(--rl-hold-pink); }
.rl-dot--green { background: var(--rl-hold-green); }
.rl-dot--orange { background: var(--rl-hold-orange); }
.rl-dot--blue { background: var(--rl-blue); }
.rl-dot--lg { width: 14px; height: 14px; }

/* ---------- The ridge ---------- */
/* An inline SVG polyline with preserveAspectRatio="none" and vector-effect="non-scaling-stroke",
   so it stretches with the box while the line stays 1px. */
.rl-ridge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.rl-ridge polyline, .rl-ridge path { fill: none; stroke: var(--rl-line); stroke-width: var(--rl-stroke); vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
.rl-ridge--draw { animation: rl-draw var(--rl-draw) var(--rl-ease) both; }
@keyframes rl-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.rl-ridge-rule { position: relative; height: 56px; margin: var(--rl-space-7) 0; }
.rl-ridge-rule--sm { height: 28px; margin: var(--rl-space-5) 0; }

/* ---------- Masthead ---------- */
.rl-mast { position: relative; padding-top: var(--rl-space-7); }
.rl-mast__art { position: relative; height: clamp(170px, 24vw, 330px); }
.rl-mast-word {
  position: relative; z-index: 1; display: inline-block;
  font-size: var(--rl-text-mast); font-weight: var(--rl-weight-heavy);
  text-transform: uppercase; letter-spacing: -0.045em; line-height: 0.86;
  text-decoration: none; padding: 0 0 0 var(--rl-space-2);
}
.rl-mast__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--rl-space-3);
  padding: var(--rl-space-4) 0;
  font-size: var(--rl-text-small);
}
.rl-mast__bar .rl-mast__hours { margin-right: var(--rl-space-2); }
.rl-mast--compact .rl-mast__art { height: clamp(110px, 12vw, 170px); }
.rl-mast--compact .rl-mast-word { font-size: clamp(44px, 6vw, 84px); }

/* ---------- Big ruled nav ---------- */
.rl-nav { border-top: var(--rl-stroke) solid var(--rl-line); border-bottom: var(--rl-stroke) solid var(--rl-line); display: flex; align-items: center; justify-content: space-between; gap: var(--rl-space-5); }
.rl-nav__links { display: flex; flex-wrap: wrap; column-gap: clamp(16px, 2.6vw, 40px); row-gap: 0; margin: 0; padding: 0; list-style: none; }
.rl-nav__links a {
  display: inline-block; padding: 10px 0 8px;
  font-family: var(--rl-display); font-weight: var(--rl-weight-display); font-size: var(--rl-text-nav);
  letter-spacing: -0.03em; text-transform: uppercase; text-decoration: none; line-height: 1.05;
  border-bottom: var(--rl-stroke-strong) solid transparent;
  transition: color var(--rl-fast) var(--rl-ease), border-color var(--rl-fast) var(--rl-ease);
}
.rl-nav__links a:hover { color: var(--rl-blue); }
.rl-nav__links a.is-active { border-bottom-color: var(--rl-blue); }
.rl-nav__tools { display: flex; gap: var(--rl-space-4); flex: none; }
.rl-icon-btn { width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; padding: 0; color: var(--rl-text); cursor: pointer; }
.rl-icon-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* A plain notice line under the nav, closed by a rule */
.rl-notice { padding: var(--rl-space-6) 0; border-bottom: var(--rl-stroke) solid var(--rl-line); }
.rl-notice p { margin: 0; max-width: 820px; }

/* ---------- Buttons: outlined squares ---------- */
.rl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--rl-space-2);
  min-height: 34px; padding: 6px 15px;
  font-family: var(--rl-sans); font-size: 15px; font-weight: 500; letter-spacing: var(--rl-track-caps);
  text-transform: uppercase; text-decoration: none; white-space: nowrap; line-height: 1;
  color: var(--rl-text); background: var(--rl-paper);
  border: var(--rl-stroke) solid var(--rl-line); border-radius: var(--rl-radius);
  cursor: pointer; transition: background var(--rl-fast) var(--rl-ease), color var(--rl-fast) var(--rl-ease), border-color var(--rl-fast) var(--rl-ease);
}
.rl-btn:hover { background: var(--rl-ink); color: var(--rl-on-ink); }
.rl-btn--primary { background: var(--rl-blue); border-color: var(--rl-blue); color: var(--rl-on-ink); }
.rl-btn--primary:hover { background: var(--rl-blue-dark); border-color: var(--rl-blue-dark); }
.rl-btn--ink { background: var(--rl-ink); color: var(--rl-on-ink); }
.rl-btn--ink:hover { background: var(--rl-paper); color: var(--rl-text); }
.rl-btn--on-ink { background: transparent; color: var(--rl-on-ink); border-color: var(--rl-on-ink); }
.rl-btn--on-ink:hover { background: var(--rl-on-ink); color: var(--rl-text); }
.rl-btn--lg { min-height: 48px; padding: 12px 22px; font-size: 16px; }
.rl-btn--sm { min-height: 28px; padding: 4px 10px; font-size: 13px; }
.rl-btn--block { width: 100%; }
.rl-btn__arrow { font-family: var(--rl-mono); text-transform: none; }

/* ---------- Sections ---------- */
.rl-section { padding: var(--rl-section) 0; }
.rl-section--rule { background: linear-gradient(var(--rl-line), var(--rl-line)) no-repeat top center / min(calc(100% - 2 * var(--rl-gutter)), calc(var(--rl-container) - 2 * var(--rl-gutter))) var(--rl-stroke); }
.rl-section--chalk { background: var(--rl-chalk); }
.rl-section--ink { background: var(--rl-ink); color: var(--rl-on-ink); }
.rl-section--ink .rl-lead, .rl-section--ink .rl-small { color: var(--rl-on-ink-soft); }
.rl-section--ink .rl-label { color: var(--rl-on-ink); }
.rl-section--ink .rl-ridge polyline, .rl-section--ink .rl-ridge path { stroke: var(--rl-on-ink); }

.rl-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--rl-space-5); margin-bottom: var(--rl-space-7); }
.rl-section-head .rl-label { margin-bottom: var(--rl-space-4); }

/* ---------- Hero ---------- */
.rl-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; padding-top: clamp(40px, 6vw, 88px); padding-bottom: var(--rl-section); }
.rl-hero .rl-label { margin-bottom: var(--rl-space-5); }
.rl-hero .rl-lead { margin: var(--rl-space-5) 0 var(--rl-space-6); }
.rl-actions { display: flex; flex-wrap: wrap; gap: var(--rl-space-3); }

/* ---------- Plate: a drawn picture panel ---------- */
.rl-plate { position: relative; background: var(--rl-chalk); aspect-ratio: 4 / 3; overflow: hidden; }
.rl-plate--tall { aspect-ratio: 4 / 5; }
.rl-plate--wide { aspect-ratio: 16 / 7; }
.rl-plate > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rl-plate .rl-plate__panel { fill: none; stroke: var(--rl-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rl-plate .rl-plate__fill { fill: var(--rl-chalk-2); }
.rl-plate .rl-plate__ink { fill: var(--rl-ink); }
.rl-plate .rl-plate__y { fill: var(--rl-hold-yellow); }
.rl-plate .rl-plate__p { fill: var(--rl-hold-pink); }
.rl-plate .rl-plate__g { fill: var(--rl-hold-green); }
.rl-plate .rl-plate__o { fill: var(--rl-hold-orange); }
.rl-plate .rl-plate__b { fill: var(--rl-blue); }
.rl-plate__caption { position: absolute; left: var(--rl-space-4); bottom: var(--rl-space-4); background: var(--rl-paper); border: var(--rl-stroke) solid var(--rl-line); padding: 6px 10px; }
.rl-figcaption { margin-top: var(--rl-space-3); font-size: var(--rl-text-small); color: var(--rl-soft); }

/* ---------- Card row: ruled columns, not boxes ---------- */
.rl-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: var(--rl-stroke) solid var(--rl-line); }
.rl-col { padding: var(--rl-space-5) var(--rl-space-5) var(--rl-space-6) 0; }
.rl-col + .rl-col { border-left: var(--rl-stroke) solid var(--rl-line); padding-left: var(--rl-space-5); }
.rl-col__num { font-family: var(--rl-mono); font-size: var(--rl-text-small); color: var(--rl-soft); margin-bottom: var(--rl-space-6); display: flex; align-items: center; gap: var(--rl-space-2); }
.rl-col .rl-h3 { margin-bottom: var(--rl-space-3); }
.rl-col p { color: var(--rl-soft); margin: 0; }

/* ---------- Tile: picture over a caption, for events and posts ---------- */
.rl-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--rl-space-6) clamp(20px, 3vw, 40px); }
.rl-tile { text-decoration: none; display: block; }
.rl-tile .rl-plate { margin-bottom: var(--rl-space-4); }
.rl-tile__kicker { display: flex; align-items: center; gap: var(--rl-space-2); margin-bottom: var(--rl-space-2); }
.rl-tile__title { font-family: var(--rl-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 var(--rl-space-2); }
.rl-tile:hover .rl-tile__title { color: var(--rl-blue); }
.rl-tile p { color: var(--rl-soft); margin: 0; }

/* ---------- Schedule list: ruled rows ---------- */
.rl-list { list-style: none; margin: 0; padding: 0; border-top: var(--rl-stroke) solid var(--rl-line); }
.rl-list__row { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: var(--rl-space-5); align-items: center; padding: var(--rl-space-4) 0; border-bottom: var(--rl-stroke) solid var(--rl-line); }
.rl-list__time { font-family: var(--rl-mono); font-size: var(--rl-text-small); }
.rl-list__title { font-family: var(--rl-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
.rl-list__title span { display: block; font-family: var(--rl-sans); font-weight: 400; font-size: var(--rl-text-small); letter-spacing: 0; color: var(--rl-soft); margin-top: 2px; }
.rl-list__tags { display: flex; gap: var(--rl-space-2); align-items: center; }

/* ---------- Grade chip ---------- */
.rl-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: var(--rl-stroke) solid var(--rl-line); font-family: var(--rl-mono); font-size: var(--rl-text-tiny); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; background: var(--rl-paper); }
.rl-chip--blue { border-color: var(--rl-blue); color: var(--rl-blue); background: var(--rl-blue-soft); }
.rl-chip--ink { background: var(--rl-ink); color: var(--rl-on-ink); }

/* ---------- Quote and stats ---------- */
.rl-quote { margin: 0; }
.rl-quote blockquote { margin: 0 0 var(--rl-space-5); font-family: var(--rl-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 46px); letter-spacing: -0.03em; line-height: 1.1; }
.rl-quote figcaption { font-size: var(--rl-text-small); color: inherit; opacity: .75; }
.rl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: var(--rl-stroke) solid currentColor; }
.rl-stat { padding: var(--rl-space-5) var(--rl-space-4) 0 0; }
.rl-stat__num { font-family: var(--rl-display); font-weight: var(--rl-weight-heavy); font-size: clamp(44px, 5vw, 72px); letter-spacing: -0.05em; line-height: 1; }
.rl-stat__label { font-size: var(--rl-text-small); opacity: .75; margin-top: var(--rl-space-2); }

/* ---------- Pricing ---------- */
.rl-toggle { display: inline-flex; border: var(--rl-stroke) solid var(--rl-line); }
.rl-toggle button { font: 500 14px/1 var(--rl-sans); text-transform: uppercase; letter-spacing: var(--rl-track-caps); padding: 10px 16px; border: 0; background: var(--rl-paper); color: var(--rl-text); cursor: pointer; white-space: nowrap; }
.rl-toggle button + button { border-left: var(--rl-stroke) solid var(--rl-line); }
.rl-toggle button[aria-pressed="true"] { background: var(--rl-ink); color: var(--rl-on-ink); }

.rl-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: var(--rl-stroke) solid var(--rl-line); border-bottom: var(--rl-stroke) solid var(--rl-line); }
.rl-plan { position: relative; display: flex; flex-direction: column; padding: var(--rl-space-6) var(--rl-space-5) var(--rl-space-6); }
.rl-plan + .rl-plan { border-left: var(--rl-stroke) solid var(--rl-line); }
.rl-plan--featured { background: var(--rl-blue-soft); }
.rl-plan--featured::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 6px; background: var(--rl-blue); }
.rl-plan__label { min-height: 28px; margin-bottom: var(--rl-space-5); display: flex; justify-content: space-between; align-items: center; gap: var(--rl-space-3); }
.rl-plan__name { font-family: var(--rl-display); font-weight: var(--rl-weight-display); font-size: 34px; letter-spacing: -0.03em; text-transform: uppercase; line-height: 1; margin: 0 0 var(--rl-space-3); }
.rl-plan__desc { color: var(--rl-soft); min-height: 3.1em; }
.rl-plan__price { display: flex; align-items: baseline; gap: var(--rl-space-2); margin: var(--rl-space-4) 0 var(--rl-space-5); }
.rl-plan__price strong { font-family: var(--rl-display); font-weight: var(--rl-weight-heavy); font-size: 64px; letter-spacing: -0.05em; line-height: 1; }
.rl-plan__price span { color: var(--rl-soft); font-size: var(--rl-text-small); }
.rl-plan__list { list-style: none; margin: var(--rl-space-6) 0 0; padding: 0; border-top: var(--rl-stroke) solid var(--rl-line); }
.rl-plan__list li { display: flex; gap: var(--rl-space-3); align-items: baseline; padding: 10px 0; border-bottom: var(--rl-stroke) solid var(--rl-line-soft); font-size: 15px; }
.rl-plan__list li::before { content: "/"; font-family: var(--rl-mono); color: var(--rl-blue); flex: none; }

.rl-table-wrap { overflow-x: auto; border-top: var(--rl-stroke) solid var(--rl-line); }
.rl-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 15px; }
.rl-table th, .rl-table td { text-align: left; padding: 14px 12px 14px 0; border-bottom: var(--rl-stroke) solid var(--rl-line); vertical-align: top; }
.rl-table thead th { font-family: var(--rl-display); font-weight: var(--rl-weight-display); font-size: 20px; text-transform: uppercase; letter-spacing: -0.02em; }
.rl-table tbody th { font-weight: 500; }
.rl-table__yes { color: var(--rl-blue); font-family: var(--rl-mono); }
.rl-table__no { color: var(--rl-faint); font-family: var(--rl-mono); }

.rl-faq { border-top: var(--rl-stroke) solid var(--rl-line); }
.rl-faq details { border-bottom: var(--rl-stroke) solid var(--rl-line); }
.rl-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--rl-space-5); padding: var(--rl-space-5) 0; font-family: var(--rl-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.rl-faq summary::-webkit-details-marker { display: none; }
.rl-faq summary::after { content: "+"; font-family: var(--rl-mono); font-weight: 400; font-size: 24px; flex: none; transition: transform var(--rl-fast) var(--rl-ease); }
.rl-faq details[open] summary::after { transform: rotate(45deg); }
.rl-faq details p { color: var(--rl-soft); max-width: 720px; padding-bottom: var(--rl-space-5); margin: 0; }

/* ---------- Article ---------- */
.rl-article-head { padding-top: clamp(40px, 6vw, 80px); padding-bottom: var(--rl-space-7); }
.rl-article-head .rl-label { margin-bottom: var(--rl-space-5); }
.rl-article-head .rl-hero-title { font-size: clamp(38px, 5.6vw, 80px); max-width: 1100px; }
.rl-article-head .rl-lead { margin-top: var(--rl-space-5); max-width: 720px; }
.rl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rl-space-3); font-size: var(--rl-text-small); color: var(--rl-soft); }
.rl-meta > * + *::before { content: "/"; font-family: var(--rl-mono); margin-right: var(--rl-space-3); color: var(--rl-faint); }
.rl-author { display: flex; align-items: center; gap: var(--rl-space-3); padding: var(--rl-space-4) 0; border-top: var(--rl-stroke) solid var(--rl-line); border-bottom: var(--rl-stroke) solid var(--rl-line); margin-top: var(--rl-space-6); }
.rl-avatar { width: 40px; height: 40px; flex: none; background: var(--rl-chalk-2); border: var(--rl-stroke) solid var(--rl-line); display: grid; place-items: center; font-family: var(--rl-display); font-weight: 800; font-size: 15px; }
.rl-author strong { display: block; font-weight: 600; }
.rl-author--card { border: var(--rl-stroke) solid var(--rl-line); padding: var(--rl-space-5); align-items: flex-start; }
.rl-author--card p { margin: var(--rl-space-2) 0 0; color: var(--rl-soft); font-size: 15px; }

.rl-article-grid { display: grid; grid-template-columns: 200px minmax(0, 720px); gap: clamp(24px, 6vw, 96px); }
.rl-toc { position: sticky; top: var(--rl-space-5); align-self: start; font-size: var(--rl-text-small); border-top: var(--rl-stroke) solid var(--rl-line); padding-top: var(--rl-space-3); }
.rl-toc ol { list-style: none; margin: var(--rl-space-3) 0 0; padding: 0; counter-reset: toc; }
.rl-toc li { counter-increment: toc; padding: 6px 0; }
.rl-toc li::before { content: counter(toc, decimal-leading-zero) " "; font-family: var(--rl-mono); color: var(--rl-faint); }
.rl-toc a { text-decoration: none; }
.rl-toc a:hover { color: var(--rl-blue); }

.rl-prose { font-size: 18px; line-height: 1.7; }
.rl-prose > * + * { margin-top: var(--rl-space-5); }
.rl-prose p { margin-bottom: 0; }
.rl-prose > p:first-child::first-line { font-weight: 600; }
.rl-prose h2 { font-family: var(--rl-display); font-weight: var(--rl-weight-display); font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.03em; text-transform: uppercase; line-height: 1.02; margin-top: var(--rl-space-8); padding-top: var(--rl-space-4); border-top: var(--rl-stroke) solid var(--rl-line); }
.rl-prose h3 { font-family: var(--rl-display); font-weight: 700; font-size: 22px; letter-spacing: -0.015em; margin-top: var(--rl-space-7); }
.rl-prose ul, .rl-prose ol { padding-left: 0; list-style: none; }
.rl-prose li { position: relative; padding-left: 28px; margin-top: var(--rl-space-2); }
.rl-prose ul li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 9px; height: 9px; border-radius: var(--rl-radius-dot); background: var(--rl-blue); }
.rl-prose ol { counter-reset: pr; }
.rl-prose ol li { counter-increment: pr; }
.rl-prose ol li::before { content: counter(pr, decimal-leading-zero); position: absolute; left: 0; font-family: var(--rl-mono); font-size: 14px; color: var(--rl-blue); top: 0.2em; }
.rl-prose blockquote { margin: var(--rl-space-7) 0; padding: var(--rl-space-5) 0; border-top: var(--rl-stroke) solid var(--rl-line); border-bottom: var(--rl-stroke) solid var(--rl-line); font-family: var(--rl-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.025em; line-height: 1.2; }
.rl-prose code { font-family: var(--rl-mono); font-size: 0.85em; background: var(--rl-chalk); padding: 2px 6px; }
.rl-prose figure { margin: var(--rl-space-7) 0; }
.rl-callout { border: var(--rl-stroke) solid var(--rl-line); padding: var(--rl-space-5); display: grid; grid-template-columns: auto 1fr; gap: var(--rl-space-3) var(--rl-space-4); font-size: 16px; line-height: 1.6; }
.rl-callout .rl-dot { margin-top: 0.45em; }
.rl-callout strong { display: block; }

/* ---------- Forms ---------- */
.rl-form { display: grid; gap: var(--rl-space-5); }
.rl-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--rl-space-4); }
.rl-field { display: grid; gap: var(--rl-space-2); }
.rl-field__label { font-family: var(--rl-mono); font-size: var(--rl-text-tiny); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.rl-input, .rl-select {
  width: 100%; min-height: 46px; padding: 10px 0;
  font: 400 17px/1.3 var(--rl-sans); color: var(--rl-text);
  background: transparent; border: 0; border-bottom: var(--rl-stroke) solid var(--rl-line); border-radius: var(--rl-radius);
  transition: border-color var(--rl-fast) var(--rl-ease), box-shadow var(--rl-fast) var(--rl-ease);
}
.rl-input::placeholder { color: var(--rl-faint); }
.rl-input:focus, .rl-select:focus { outline: none; border-bottom-color: var(--rl-blue); box-shadow: 0 1px 0 0 var(--rl-blue); }
.rl-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--rl-ink) 50%), linear-gradient(135deg, var(--rl-ink) 50%, transparent 50%); background-position: calc(100% - 12px) 50%, calc(100% - 6px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 28px; }
.rl-input-wrap { position: relative; }
.rl-input-wrap .rl-input { padding-right: 64px; }
.rl-input-toggle { position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: none; border: 0; font: 500 12px/1 var(--rl-mono); text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; color: var(--rl-text); padding: 6px 0; }
.rl-help { font-size: 13px; color: var(--rl-soft); }
.rl-error { font-size: 13px; color: var(--rl-hold-orange); display: none; }
.rl-field--error .rl-input { border-bottom-color: var(--rl-hold-orange); box-shadow: 0 1px 0 0 var(--rl-hold-orange); }
.rl-field--error .rl-error { display: block; }

.rl-check { display: grid; grid-template-columns: 20px 1fr; gap: var(--rl-space-3); align-items: start; font-size: 15px; cursor: pointer; }
.rl-check input { appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border: var(--rl-stroke) solid var(--rl-line); background: var(--rl-paper); display: grid; place-items: center; cursor: pointer; }
.rl-check input:checked { background: var(--rl-blue); border-color: var(--rl-blue); }
.rl-check input:checked::after { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--rl-on-ink); border-bottom: 2px solid var(--rl-on-ink); transform: rotate(-45deg) translate(1px, -1px); }

/* Choice tiles: radio options as ruled rows */
.rl-choices { display: grid; border-top: var(--rl-stroke) solid var(--rl-line); }
.rl-choice { display: grid; grid-template-columns: 20px 1fr auto; gap: var(--rl-space-3); align-items: center; padding: var(--rl-space-4) 0; border-bottom: var(--rl-stroke) solid var(--rl-line); cursor: pointer; }
.rl-choice input { appearance: none; width: 18px; height: 18px; margin: 0; border: var(--rl-stroke) solid var(--rl-line); border-radius: var(--rl-radius-dot); cursor: pointer; }
.rl-choice input:checked { border: 5px solid var(--rl-blue); }
.rl-choice strong { font-family: var(--rl-display); font-weight: 700; font-size: 19px; letter-spacing: -0.015em; display: block; }
.rl-choice span { font-size: 14px; color: var(--rl-soft); }
.rl-choice em { font-style: normal; font-family: var(--rl-mono); font-size: var(--rl-text-small); white-space: nowrap; }
.rl-choice:has(input:checked) { background: var(--rl-blue-soft); box-shadow: -12px 0 0 var(--rl-blue-soft), 12px 0 0 var(--rl-blue-soft); }

.rl-divider-text { display: flex; align-items: center; gap: var(--rl-space-3); font-family: var(--rl-mono); font-size: var(--rl-text-tiny); text-transform: uppercase; letter-spacing: 0.08em; color: var(--rl-soft); }
.rl-divider-text::before, .rl-divider-text::after { content: ""; flex: 1; border-top: var(--rl-stroke) solid var(--rl-line); }
.rl-steps { display: flex; flex-wrap: wrap; gap: var(--rl-space-2) var(--rl-space-5); font-family: var(--rl-mono); font-size: var(--rl-text-tiny); text-transform: uppercase; letter-spacing: 0.08em; color: var(--rl-faint); }
.rl-steps .is-current { color: var(--rl-text); border-bottom: var(--rl-stroke-strong) solid var(--rl-blue); padding-bottom: 2px; }

/* ---------- Footer ---------- */
.rl-footer { position: relative; padding-bottom: var(--rl-space-6); }
.rl-footer__ridge { position: relative; height: clamp(80px, 10vw, 140px); }
.rl-footer__word { font-family: var(--rl-display); font-weight: var(--rl-weight-heavy); text-transform: uppercase; letter-spacing: -0.045em; font-size: clamp(40px, 6vw, 80px); line-height: .9; margin: 0 0 var(--rl-space-6); }
.rl-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--rl-space-6); border-top: var(--rl-stroke) solid var(--rl-line); padding-top: var(--rl-space-5); }
.rl-footer__cols h4 { margin: 0 0 var(--rl-space-3); font-family: var(--rl-mono); font-size: var(--rl-text-tiny); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
.rl-footer__cols ul { list-style: none; margin: 0; padding: 0; }
.rl-footer__cols li { padding: 3px 0; }
.rl-footer__cols a { text-decoration: none; }
.rl-footer__cols a:hover { color: var(--rl-blue); text-decoration: underline; }
.rl-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--rl-space-3); margin-top: var(--rl-space-7); padding-top: var(--rl-space-4); border-top: var(--rl-stroke) solid var(--rl-line); font-size: 13px; color: var(--rl-soft); }

/* ---------- Motion ---------- */
.rl-rise { animation: rl-rise 700ms var(--rl-ease) both; }
@keyframes rl-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rl-ridge--draw, .rl-rise { animation: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .rl-hero { grid-template-columns: 1fr; align-items: start; }
  .rl-article-grid { grid-template-columns: 1fr; }
  .rl-toc { position: static; }
  .rl-list__row { grid-template-columns: 1fr auto; }
  .rl-list__time { grid-column: 1 / -1; }
  .rl-col + .rl-col, .rl-plan + .rl-plan { border-left: 0; border-top: var(--rl-stroke) solid var(--rl-line); padding-left: 0; }
  .rl-plan { padding-left: 0; padding-right: 0; }
  .rl-plan--featured { padding-left: var(--rl-space-4); padding-right: var(--rl-space-4); }
  .rl-mast__bar { justify-content: flex-start; }
  .rl-mast__bar .rl-mast__hours { width: 100%; }
}
@media (max-width: 600px) {
  .rl-mast__art .rl-ridge { top: auto; height: 58%; }
}
@media (max-width: 520px) {
  .rl-form-row { grid-template-columns: 1fr; }
  .rl-nav__tools { display: none; }
  .rl-plan__price strong { font-size: 52px; }
}

/* ---------- Spacing helpers ---------- */
.rl-m0 { margin: 0; }
.rl-mt-4 { margin-top: var(--rl-space-4); }
.rl-mt-5 { margin-top: var(--rl-space-5); }
.rl-mt-6 { margin-top: var(--rl-space-6); }
