/* Dot Signage: components. Built only from tokens.css. */

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

.ds-body {
  margin: 0;
  background: var(--ds-paper);
  color: var(--ds-ink);
  font-family: var(--ds-font);
  font-size: var(--ds-text-body);
  font-weight: var(--ds-weight-body);
  line-height: var(--ds-leading);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.ds-body ::selection { background: var(--ds-signal); color: var(--ds-paper); }
.ds-body p { margin: 0 0 var(--ds-space-3); }

/* Links: ink, no underline until hover, then a thin orange one */
.ds-body a { color: var(--ds-ink); text-decoration: none; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ds-body a:hover { color: var(--ds-signal-deep); text-decoration: underline; }

/* Layout */
.ds-page { max-width: var(--ds-page); margin: 0 auto; padding: 0 var(--ds-gutter); }
.ds-column { max-width: var(--ds-column); }
.ds-split { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: var(--ds-space-7); align-items: start; }
@media (max-width: 860px) { .ds-split { grid-template-columns: minmax(0, 1fr); gap: var(--ds-space-6); } }
.ds-section { margin-top: var(--ds-space-6); }
.ds-rule { border: 0; border-top: var(--ds-hair); margin: var(--ds-space-6) 0; max-width: 400px; }
.ds-rule--full { max-width: none; }

/* The mark: dot-matrix name in two tones, half the bulbs off */
.ds-mark { font-family: var(--ds-dots); font-weight: var(--ds-weight-dots); font-size: var(--ds-text-mark); line-height: 0.95; letter-spacing: -0.01em; margin: 0; white-space: nowrap; }
.ds-mark__lit { color: var(--ds-signal); }
.ds-mark__dim { color: var(--ds-ash); font-weight: 600; }
.ds-mark-sub { font-family: var(--ds-dots); font-weight: var(--ds-weight-dots); color: var(--ds-ash); font-size: clamp(16px, 1.8vw, 20px); line-height: 1.2; margin: var(--ds-space-2) 0 0; }
.ds-mark--small { font-size: 26px; }

/* Header: small mark left, quiet links right */
.ds-header { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-4); padding: var(--ds-space-5) 0 0; flex-wrap: wrap; }
.ds-body .ds-header .ds-mark { text-decoration: none; }
.ds-nav { display: flex; flex-wrap: wrap; gap: 2px var(--ds-space-4); font-size: 15px; }
.ds-body .ds-nav a { color: var(--ds-slate); }
.ds-body .ds-nav a:hover, .ds-body .ds-nav a[aria-current] { color: var(--ds-signal); text-decoration: none; }

/* Hero: the big mark with a lead under it */
.ds-hero { padding: var(--ds-space-7) 0 var(--ds-space-6); }
.ds-hero__lead { font-size: 20px; font-weight: var(--ds-weight-light); color: var(--ds-slate); max-width: 520px; margin: var(--ds-space-5) 0 var(--ds-space-4); }
.ds-title { font-family: var(--ds-dots); font-weight: var(--ds-weight-dots); font-size: var(--ds-text-hero); line-height: 1.05; margin: 0 0 var(--ds-space-3); color: var(--ds-ink); }
.ds-title em { font-style: normal; color: var(--ds-signal); }

/* Type */
.ds-h2 { font-size: var(--ds-text-h2); font-weight: var(--ds-weight-body); color: var(--ds-signal); margin: 0 0 var(--ds-space-4); line-height: 1.3; }
.ds-h2::after { content: "\2026"; }
.ds-h2--plain::after { content: none; }
.ds-h3 { font-size: var(--ds-text-h3); font-weight: var(--ds-weight-bold); margin: 0 0 var(--ds-space-2); }
.ds-lead { font-size: 19px; font-weight: var(--ds-weight-light); color: var(--ds-slate); margin: 0 0 var(--ds-space-4); }
.ds-small { font-size: var(--ds-text-small); color: var(--ds-slate); }
.ds-tag { font-family: var(--ds-mono); font-size: var(--ds-text-tag); color: var(--ds-ash); white-space: nowrap; letter-spacing: 0.02em; }
.ds-tag::before { content: "/ "; }
.ds-tag--bare::before { content: none; }
.ds-mono { font-family: var(--ds-mono); font-size: 0.86em; }

/* Link list: big light links, a slash tag after each */
.ds-list { list-style: none; margin: 0; padding: 0; }
.ds-list li { font-size: var(--ds-text-list); font-weight: var(--ds-weight-body); line-height: 1.3; margin: 0 0 var(--ds-space-2); }
.ds-list .ds-tag { margin-left: 6px; }
.ds-list__note { display: block; font-size: var(--ds-text-small); color: var(--ds-slate); font-weight: var(--ds-weight-light); margin-top: 2px; }
.ds-list--roomy li { margin-bottom: var(--ds-space-4); }

/* Icon links: a small two-column grid of glyph + label */
.ds-iconlinks { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ds-space-2) var(--ds-space-4); list-style: none; margin: 0; padding: 0; font-size: 13px; font-weight: var(--ds-weight-mid); }
.ds-iconlinks a { display: inline-flex; align-items: center; gap: var(--ds-space-2); }
.ds-iconlinks svg { width: 14px; height: 14px; color: var(--ds-ash); flex-shrink: 0; }

/* Contact sheet: square tiles drawn in CSS, with a caption under */
.ds-sheet { display: grid; grid-template-columns: repeat(4, var(--ds-tile-size)); gap: 3px; }
.ds-sheet--wide { grid-template-columns: repeat(auto-fill, minmax(var(--ds-tile-size), 1fr)); }
.ds-sheet__label { font-size: 12px; font-weight: var(--ds-weight-mid); margin: 0 0 var(--ds-space-2); display: flex; align-items: center; gap: var(--ds-space-2); }
.ds-sheet__caption { font-size: 12px; color: var(--ds-slate); margin-top: var(--ds-space-2); }
.ds-tile { aspect-ratio: 1; background: var(--ds-paper-dim); position: relative; overflow: hidden; }
.ds-tile--dial { background: radial-gradient(circle at 50% 55%, var(--ds-tile-sand) 0 22%, var(--ds-tile-night) 23% 26%, var(--ds-tile-sand) 27% 40%, transparent 41%), var(--ds-tile-teal); }
.ds-tile--dial::after { content: ""; position: absolute; left: 50%; top: 55%; width: 34%; height: 2px; background: var(--ds-signal); transform-origin: 0 50%; transform: rotate(-38deg); }
.ds-tile--wave { background: repeating-linear-gradient(90deg, transparent 0 5px, rgba(255,255,255,0.12) 5px 6px), var(--ds-tile-night); }
.ds-tile--wave svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ds-tile--wave polyline { stroke: var(--ds-signal); }
.ds-tile--grid { background: linear-gradient(var(--ds-tile-sand) 1px, transparent 1px) 0 0 / 12px 12px, linear-gradient(90deg, var(--ds-tile-sand) 1px, transparent 1px) 0 0 / 12px 12px, var(--ds-tile-moss); }
.ds-tile--sun { background: radial-gradient(circle at 70% 35%, var(--ds-signal) 0 16%, transparent 17%), linear-gradient(var(--ds-tile-sand) 0 62%, var(--ds-tile-brick) 62%); }
.ds-tile--bars { background: linear-gradient(90deg, var(--ds-tile-plum) 0 20%, var(--ds-tile-sand) 20% 40%, var(--ds-tile-teal) 40% 60%, var(--ds-signal) 60% 80%, var(--ds-tile-night) 80%); }
.ds-tile--dots { background: radial-gradient(circle, var(--ds-signal) 0 2px, transparent 2.5px) 0 0 / 9px 9px, var(--ds-tile-night); }
.ds-tile--mast { background: linear-gradient(var(--ds-tile-night), var(--ds-tile-plum)); }
.ds-tile--mast::before { content: ""; position: absolute; left: 48%; bottom: 0; width: 4%; height: 74%; background: var(--ds-tile-sand); }
.ds-tile--mast::after { content: ""; position: absolute; left: 30%; bottom: 0; width: 40%; height: 74%; background: linear-gradient(to top right, transparent 49%, var(--ds-tile-sand) 50% 52%, transparent 53%), linear-gradient(to top left, transparent 49%, var(--ds-tile-sand) 50% 52%, transparent 53%); }
.ds-tile--ring { background: repeating-radial-gradient(circle at 50% 50%, var(--ds-tile-teal) 0 5px, var(--ds-tile-sand) 5px 7px); }
.ds-tile--keys { background: linear-gradient(var(--ds-paper) 0 0) 50% 60% / 70% 12% no-repeat, repeating-linear-gradient(90deg, var(--ds-paper) 0 9px, var(--ds-tile-night) 9px 11px) 50% 38% / 70% 26% no-repeat, var(--ds-tile-brick); }
.ds-tile--map { background: radial-gradient(ellipse at 30% 40%, var(--ds-tile-moss) 0 24%, transparent 25%), radial-gradient(ellipse at 72% 68%, var(--ds-tile-moss) 0 18%, transparent 19%), var(--ds-tile-teal); }
.ds-tile--map::after { content: ""; position: absolute; left: 30%; top: 40%; width: 8px; height: 8px; border-radius: 50%; background: var(--ds-signal); box-shadow: 0 0 0 4px rgba(240, 98, 14, 0.25); }
.ds-tile--paper { background: repeating-linear-gradient(var(--ds-paper) 0 9px, var(--ds-rule) 9px 10px); }

/* Buttons: flat, square, orange or outlined */
.ds-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--ds-space-2); padding: 11px 20px; border: 1px solid transparent; border-radius: var(--ds-radius); font-family: var(--ds-font); font-size: 15px; font-weight: var(--ds-weight-mid); line-height: 1.2; white-space: nowrap; cursor: pointer; }
.ds-body a.ds-btn { text-decoration: none; }
.ds-btn--signal { background: var(--ds-signal); color: var(--ds-paper); }
.ds-body a.ds-btn--signal { color: var(--ds-paper); }
.ds-btn--signal:hover, .ds-body a.ds-btn--signal:hover { background: var(--ds-signal-deep); color: var(--ds-paper); }
.ds-btn--line { background: transparent; border-color: var(--ds-ink); color: var(--ds-ink); }
.ds-btn--line:hover, .ds-body a.ds-btn--line:hover { border-color: var(--ds-signal); color: var(--ds-signal-deep); }
.ds-btn--block { width: 100%; }
.ds-arrow { color: var(--ds-signal); font-weight: var(--ds-weight-mid); }
.ds-arrow::after { content: " \2192"; }
.ds-actions { display: flex; flex-wrap: wrap; gap: var(--ds-space-3); align-items: center; }

/* Cards: hairline top rule only, no box */
.ds-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-5); }
@media (max-width: 760px) { .ds-cards { grid-template-columns: minmax(0, 1fr); gap: var(--ds-space-4); } }
.ds-card { border-top: var(--ds-hair); padding-top: var(--ds-space-3); }
.ds-card p { font-size: 15px; color: var(--ds-slate); font-weight: var(--ds-weight-light); }
.ds-card__num { font-family: var(--ds-dots); font-weight: var(--ds-weight-dots); font-size: 30px; color: var(--ds-signal); line-height: 1; margin-bottom: var(--ds-space-2); }

/* Badge: a mono label in a hairline frame */
.ds-badge { display: inline-block; font-family: var(--ds-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 7px; border: 1px solid var(--ds-ash); border-radius: var(--ds-radius); color: var(--ds-slate); white-space: nowrap; }
.ds-badge--lit { border-color: var(--ds-signal); color: var(--ds-signal-deep); }

/* Readout: a big dot-matrix number with a small label */
.ds-readout { display: flex; flex-wrap: wrap; gap: var(--ds-space-5); }
.ds-readout__n { font-family: var(--ds-dots); font-weight: var(--ds-weight-dots); font-size: 44px; line-height: 1; color: var(--ds-ink); }
.ds-readout__l { font-size: 13px; color: var(--ds-slate); }

/* Forms */
.ds-form { display: grid; gap: var(--ds-space-4); }
.ds-field { display: grid; gap: 6px; }
.ds-label { font-size: 14px; font-weight: var(--ds-weight-mid); }
.ds-hint { font-size: 13px; color: var(--ds-ash); font-weight: var(--ds-weight-light); }
.ds-input, .ds-select { width: 100%; padding: 11px 12px; border: var(--ds-hair); border-bottom: 1px solid var(--ds-ash); border-radius: var(--ds-radius); background: var(--ds-paper-dim); font-family: var(--ds-font); font-size: 16px; color: var(--ds-ink); }
.ds-input:focus, .ds-select:focus { outline: none; border-bottom-color: var(--ds-signal); background: var(--ds-paper); box-shadow: inset 0 -1px 0 var(--ds-signal); }
.ds-input::placeholder { color: var(--ds-ash); }
.ds-check { display: flex; gap: var(--ds-space-2); align-items: flex-start; font-size: 14px; color: var(--ds-slate); }
.ds-check input { accent-color: var(--ds-signal); margin-top: 4px; }
.ds-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-2); }
@media (max-width: 520px) { .ds-choice { grid-template-columns: minmax(0, 1fr); } }
.ds-choice label { display: block; border: var(--ds-hair); border-radius: var(--ds-radius); padding: 10px 12px; font-size: 14px; cursor: pointer; }
.ds-choice input { accent-color: var(--ds-signal); margin-right: 6px; }
.ds-choice label:has(input:checked) { border-color: var(--ds-signal); background: var(--ds-signal-wash); }

/* Pricing: hairline columns, dot-matrix prices, the picked plan on an orange wash */
.ds-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--ds-line); }
@media (max-width: 820px) { .ds-plans { grid-template-columns: minmax(0, 1fr); } }
.ds-plan { padding: var(--ds-space-4); border-right: var(--ds-hair); display: flex; flex-direction: column; gap: var(--ds-space-3); }
.ds-plan:last-child { border-right: 0; }
@media (max-width: 820px) { .ds-plan { border-right: 0; border-bottom: var(--ds-hair); } }
.ds-plan--picked { background: var(--ds-signal-wash); }
.ds-plan__name { font-size: 15px; font-weight: var(--ds-weight-bold); display: flex; justify-content: space-between; align-items: center; gap: var(--ds-space-2); }
.ds-plan__price { font-family: var(--ds-dots); font-weight: var(--ds-weight-dots); font-size: 52px; line-height: 1; }
.ds-plan--picked .ds-plan__price { color: var(--ds-signal); }
.ds-plan__per { font-size: 13px; color: var(--ds-slate); }
.ds-plan ul { list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: var(--ds-weight-light); flex: 1; }
.ds-plan li { padding: 6px 0; border-bottom: var(--ds-hair); }
.ds-plan li::before { content: "\00B7"; color: var(--ds-signal); font-weight: 900; margin-right: 8px; }

/* Table */
.ds-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ds-table th { text-align: left; font-weight: var(--ds-weight-mid); padding: 10px 8px 10px 0; border-bottom: var(--ds-line); }
.ds-table td { padding: 10px 8px 10px 0; border-bottom: var(--ds-hair); font-weight: var(--ds-weight-light); }
.ds-table td:not(:first-child), .ds-table th:not(:first-child) { text-align: center; }
.ds-yes { color: var(--ds-signal); }
.ds-no { color: var(--ds-ash); }
.ds-scroll { overflow-x: auto; }

/* FAQ */
.ds-faq details { border-bottom: var(--ds-hair); padding: var(--ds-space-3) 0; }
.ds-faq summary { cursor: pointer; font-size: 18px; list-style: none; }
.ds-faq summary::-webkit-details-marker { display: none; }
.ds-faq summary::before { content: "+ "; color: var(--ds-signal); font-family: var(--ds-mono); }
.ds-faq details[open] summary::before { content: "\2212\00a0"; }
.ds-faq p { margin: var(--ds-space-2) 0 0; color: var(--ds-slate); font-weight: var(--ds-weight-light); }

/* Article */
.ds-article { max-width: var(--ds-column); }
.ds-article__meta { display: flex; flex-wrap: wrap; gap: var(--ds-space-2) var(--ds-space-3); align-items: center; margin-bottom: var(--ds-space-5); }
.ds-prose { font-size: 18px; font-weight: var(--ds-weight-light); line-height: 1.7; }
.ds-prose p { margin: 0 0 var(--ds-space-4); }
.ds-prose h2 { font-size: var(--ds-text-h2); font-weight: var(--ds-weight-body); color: var(--ds-signal); margin: var(--ds-space-6) 0 var(--ds-space-3); }
.ds-prose strong { font-weight: var(--ds-weight-bold); }
.ds-body .ds-prose a { text-decoration: underline; text-decoration-color: var(--ds-signal); }
.ds-prose blockquote { margin: var(--ds-space-5) 0; padding-left: var(--ds-space-4); border-left: 2px solid var(--ds-signal); font-size: 21px; color: var(--ds-ink); }
.ds-code { font-family: var(--ds-mono); font-size: 14px; background: var(--ds-paper-dim); border-top: var(--ds-hair); border-bottom: var(--ds-hair); padding: var(--ds-space-3) var(--ds-space-4); overflow-x: auto; white-space: pre; line-height: 1.6; margin: 0 0 var(--ds-space-4); }
.ds-figure { margin: var(--ds-space-5) 0; }
.ds-figure figcaption { font-size: 13px; color: var(--ds-slate); margin-top: var(--ds-space-2); }

/* Notice */
.ds-notice { background: var(--ds-signal-wash); padding: var(--ds-space-3) var(--ds-space-4); font-size: 15px; border-left: 2px solid var(--ds-signal); }

/* Footer: small, ash, a dim mark at the end */
.ds-footer { margin-top: var(--ds-space-7); padding: var(--ds-space-5) 0 var(--ds-space-6); border-top: var(--ds-hair); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--ds-space-4); font-size: 13px; color: var(--ds-ash); }
.ds-footer nav { display: flex; flex-wrap: wrap; gap: var(--ds-space-2) var(--ds-space-4); }
.ds-body .ds-footer a { color: var(--ds-slate); }
