/*
 * Hatch Gauge: components
 * Needs tokens.css first. Every class starts with "hg-" so it can sit next to any other CSS.
 */

/* Base */
.hg { margin: 0; background: var(--hg-paper); color: var(--hg-ink); font-family: var(--hg-sans); font-size: var(--hg-text-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.hg *, .hg *::before, .hg *::after { box-sizing: border-box; }
.hg a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.hg a:hover { color: var(--hg-red); }
.hg ::selection { background: var(--hg-ink); color: var(--hg-paper); }
.hg-container { width: min(100% - 40px, var(--hg-container)); margin-inline: auto; }
.hg-narrow { width: min(100% - 40px, var(--hg-narrow)); margin-inline: auto; }

/* Sections */
.hg-section { padding-block: var(--hg-section); }
.hg-section--tint { background: var(--hg-tint); }
.hg-section--ink { background: var(--hg-ink); color: var(--hg-paper); }
.hg-section--ink .hg-lead { color: var(--hg-rule); }
.hg-section--ink a:hover { color: var(--hg-paper); }

/* Ruled block: a hatched strip runs down the left edge of the content */
.hg-ruled { position: relative; padding-left: clamp(28px, 6vw, 72px); }
.hg-ruled::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; background: var(--hg-hatch); }

/* Type */
.hg-hero-title, .hg-h2, .hg-h3 { margin: 0; font-family: var(--hg-display); font-weight: 700; line-height: var(--hg-leading-display); letter-spacing: var(--hg-tracking-display); text-wrap: balance; }
.hg-hero-title { font-size: var(--hg-text-hero); font-weight: 800; }
.hg-h2 { font-size: var(--hg-text-h2); }
.hg-h3 { font-size: var(--hg-text-h3); line-height: 1.05; }
.hg-lead { max-width: 620px; margin: 22px 0 0; color: var(--hg-graphite); font-size: var(--hg-text-lead); line-height: 1.6; }
.hg-label { display: inline-block; font-family: var(--hg-mono); font-size: var(--hg-text-micro); font-weight: 700; letter-spacing: .02em; }
.hg-mark { color: var(--hg-red); }
.hg-strike { text-decoration: line-through; text-decoration-color: var(--hg-red); text-decoration-thickness: 3px; }
.hg-code { padding: 1px 5px; background: var(--hg-tint); font-family: var(--hg-mono); font-size: .86em; }

/* Notice: the black mono strip above everything */
.hg-notice { padding: 14px 20px; background: var(--hg-ink); color: var(--hg-paper); font-family: var(--hg-mono); font-size: 14px; line-height: 1.6; }
.hg-notice b { font-weight: 700; }
.hg-notice a { color: var(--hg-paper); }

/* Nav */
.hg-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 22px; border-bottom: var(--hg-border); }
.hg-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--hg-display); font-size: 26px; font-weight: 800; line-height: 1; text-decoration: none; text-transform: uppercase; }
.hg-logo__box { width: 26px; height: 26px; border: var(--hg-border); background: var(--hg-hatch-fine); }
.hg-nav__links { display: flex; flex-wrap: wrap; gap: 8px 26px; font-family: var(--hg-display); font-size: 20px; font-weight: 600; }
.hg-nav__links a { text-decoration: none; }
.hg-nav__links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* Buttons: square boxes with a heavy border and an underlined condensed label */
.hg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border: var(--hg-border); border-radius: var(--hg-radius); background: var(--hg-white); color: var(--hg-ink); font-family: var(--hg-display); font-size: 24px; font-weight: 700; line-height: 1.1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; white-space: nowrap; cursor: pointer; }
.hg .hg-btn:hover { background: var(--hg-ink); color: var(--hg-paper); }
.hg .hg-btn--solid { background: var(--hg-ink); color: var(--hg-paper); text-decoration: none; }
.hg .hg-btn--solid:hover { background: var(--hg-red); border-color: var(--hg-red); color: var(--hg-white); }
.hg-btn--wide { width: 100%; }
.hg-btn--sm { padding: 8px 16px; font-size: 18px; border-width: 3px; }
.hg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 36px; }

/* Plate: the framed "cover". A white panel inside an 8px frame. Wrap it in .hg-stack with a
   .hg-plate__hatch sibling and a hatch block sits offset behind it, down and to the right */
.hg-plate { position: relative; padding: clamp(20px, 3vw, 36px); border: var(--hg-frame); background: var(--hg-white); }
.hg-stack { position: relative; isolation: isolate; padding: 0 var(--hg-offset) var(--hg-offset) 0; }
.hg-plate__hatch { position: absolute; inset: var(--hg-offset) 0 0 var(--hg-offset); z-index: -1; background: var(--hg-hatch); }

/* Dimension lines: a mono label between two measuring lines with end ticks, like a technical drawing */
.hg-dim { display: flex; align-items: center; gap: 8px; color: var(--hg-ink); font-family: var(--hg-mono); font-size: var(--hg-text-micro); font-weight: 700; line-height: 1; white-space: nowrap; }
.hg-dim::before, .hg-dim::after { content: ""; flex: 1; height: 14px; }
.hg-dim::before { background: linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 0 / 2px 100% no-repeat; }
.hg-dim::after { background: linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 100% 0 / 2px 100% no-repeat; }
.hg-dim--red { color: var(--hg-red); }
.hg-dim--v { writing-mode: vertical-rl; transform: rotate(180deg); }
.hg-dim--v::before, .hg-dim--v::after { width: 14px; height: auto; }
.hg-dim--v::before { background: linear-gradient(currentColor, currentColor) 50% 0 / 2px 100% no-repeat, linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat; }
.hg-dim--v::after { background: linear-gradient(currentColor, currentColor) 50% 0 / 2px 100% no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; }

/* Hatch fills */
.hg-hatch { background: var(--hg-hatch); }
.hg-hatch--fine { background: var(--hg-hatch-fine); }
.hg-hatch--red { background: var(--hg-hatch-red); }

/* Starburst seal: one per page, for the offer */
.hg-burst { display: grid; place-items: center; width: 168px; aspect-ratio: 1; padding: 30px; background: var(--hg-ink); color: var(--hg-paper); font-family: var(--hg-display); font-weight: 800; line-height: .92; text-align: center; text-transform: uppercase; clip-path: polygon(50% 0%, 57% 12%, 69% 4%, 72% 18%, 85% 15%, 82% 29%, 96% 31%, 88% 43%, 100% 50%, 88% 57%, 96% 69%, 82% 71%, 85% 85%, 72% 82%, 69% 96%, 57% 88%, 50% 100%, 43% 88%, 31% 96%, 28% 82%, 15% 85%, 18% 71%, 4% 69%, 12% 57%, 0% 50%, 12% 43%, 4% 31%, 18% 29%, 15% 15%, 28% 18%, 31% 4%, 43% 12%); transform: rotate(-12deg); }
.hg-burst__big { display: block; font-size: 44px; }
.hg-burst__small { display: block; margin-top: 4px; font-family: var(--hg-mono); font-size: 10px; font-weight: 400; line-height: 1.3; text-transform: none; }
.hg-burst--red { background: var(--hg-red); color: var(--hg-white); }

/* Badge: a boxed mono tag */
.hg-badge { display: inline-block; padding: 3px 8px; border: 2px solid var(--hg-ink); background: var(--hg-white); font-family: var(--hg-mono); font-size: var(--hg-text-micro); font-weight: 700; line-height: 1.4; white-space: nowrap; }
.hg-badge--ink { background: var(--hg-ink); color: var(--hg-paper); }
.hg-badge--red { border-color: var(--hg-red); background: var(--hg-red); color: var(--hg-white); }

/* Cards: framed boxes with a 4px border; a numbered head in mono */
.hg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px; }
.hg-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: var(--hg-border); background: var(--hg-white); }
.hg-card__num { font-family: var(--hg-mono); font-size: var(--hg-text-micro); font-weight: 700; }
.hg-card p { margin: 0; color: var(--hg-graphite); }
.hg-card--hatch-top { border-top: 0; padding-top: 0; }
.hg-card--hatch-top::before { content: ""; display: block; height: 18px; margin: 0 -28px 14px; border-block: var(--hg-border); background: var(--hg-hatch-fine); }

/* Inline form: an input welded to a solid button, like the reference's "access link" form */
.hg-field { display: grid; gap: 6px; }
.hg-field__label { font-family: var(--hg-mono); font-size: 14px; font-weight: 700; }
.hg-field__hint { color: var(--hg-graphite); font-size: 14px; }
.hg-input, .hg-select, .hg-textarea { width: 100%; padding: 14px 16px; border: var(--hg-border); border-radius: var(--hg-radius); background: var(--hg-white); color: var(--hg-ink); font: 400 17px var(--hg-sans); }
.hg-input:focus, .hg-select:focus, .hg-textarea:focus { outline: 4px solid var(--hg-red); outline-offset: 2px; }
.hg-inline { display: flex; border: var(--hg-border); background: var(--hg-ink); }
.hg-inline .hg-input { flex: 1; min-width: 0; border: 0; border-right: var(--hg-border); }
.hg-inline button { padding: 0 22px; border: 0; background: var(--hg-ink); color: var(--hg-paper); font: 700 20px var(--hg-display); white-space: nowrap; cursor: pointer; }
.hg-inline button:hover { background: var(--hg-red); }
.hg-check { display: flex; align-items: flex-start; gap: 12px; font-size: var(--hg-text-small); }
.hg-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--hg-ink); }
.hg-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.hg-choice label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 3px solid var(--hg-ink); background: var(--hg-white); font-family: var(--hg-display); font-size: 20px; font-weight: 600; cursor: pointer; }
.hg-choice label:has(input:checked) { background: var(--hg-ink); color: var(--hg-paper); }
.hg-choice input { accent-color: var(--hg-red); }

/* Pricing */
.hg-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; align-items: start; }
.hg-price { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 32px; border: var(--hg-border); background: var(--hg-white); }
.hg-price--pick { border: var(--hg-frame); }
.hg-price__name { font-family: var(--hg-display); font-size: 32px; font-weight: 800; line-height: 1; text-transform: uppercase; }
.hg-price__amount { font-family: var(--hg-display); font-size: 72px; font-weight: 800; line-height: .9; }
.hg-price__amount small { font-family: var(--hg-mono); font-size: 14px; font-weight: 400; }
.hg-price__was { font-family: var(--hg-display); font-size: 28px; font-weight: 700; }
.hg-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hg-list li { position: relative; padding-left: 28px; }
.hg-list li::before { content: ""; position: absolute; left: 0; top: .4em; width: 14px; height: 14px; border: 3px solid var(--hg-ink); background: var(--hg-hatch-fine); }
.hg-list--x li::before { border-color: var(--hg-rule); background: none; }
.hg-list--x li { color: var(--hg-graphite); }
.hg-price .hg-burst { position: absolute; top: -48px; right: -30px; width: 116px; padding: 18px; }
.hg-price .hg-burst .hg-burst__big { font-size: 26px; }
@media (max-width: 600px) { .hg-price .hg-burst { top: -40px; right: -6px; width: 100px; } }

/* Spec table */
.hg-table { width: 100%; border-collapse: collapse; border: var(--hg-border); background: var(--hg-white); font-size: var(--hg-text-small); }
.hg-table th, .hg-table td { padding: 14px 16px; border-bottom: var(--hg-hair); text-align: left; vertical-align: top; }
.hg-table thead th { background: var(--hg-ink); color: var(--hg-paper); font-family: var(--hg-display); font-size: 20px; font-weight: 700; }
.hg-table tbody tr:nth-child(even) { background: var(--hg-tint); }
.hg-scroll { overflow-x: auto; }

/* Quotes: italic-free, set in the body face inside a framed avatar row */
.hg-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; }
.hg-quote { display: grid; grid-template-columns: minmax(76px, max-content) 1fr; gap: 20px; align-items: start; margin: 0; }
.hg-quote__face { width: 76px; aspect-ratio: 1; border: var(--hg-border); background: var(--hg-hatch-fine); }
.hg-quote__name { display: block; margin-top: 8px; font-family: var(--hg-display); font-size: 18px; font-weight: 700; }
.hg-quote blockquote { margin: 0; font-size: 20px; line-height: 1.45; }

/* Steps: big condensed numbers beside short text */
.hg-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: var(--hg-border); }
.hg-steps li { display: grid; grid-template-columns: 88px 1fr; gap: 20px; padding-block: 24px; border-bottom: var(--hg-border); }
.hg-steps__n { font-family: var(--hg-display); font-size: 64px; font-weight: 800; line-height: .85; }
.hg-steps p { margin: 6px 0 0; color: var(--hg-graphite); }

/* Article */
.hg-article { font-size: 18px; line-height: 1.7; }
.hg-article > * + * { margin-top: 1.2em; }
.hg-article h2 { margin-top: 2em; font-family: var(--hg-display); font-size: 40px; font-weight: 700; line-height: 1; }
.hg-article h3 { margin-top: 1.6em; font-family: var(--hg-display); font-size: 28px; font-weight: 700; line-height: 1.05; }
.hg-article p, .hg-article ul, .hg-article ol { margin-bottom: 0; }
.hg-article ul, .hg-article ol { padding-left: 1.3em; }
.hg-article li + li { margin-top: .4em; }
.hg-article blockquote { margin-inline: 0; padding: 6px 0 6px 40px; background: var(--hg-hatch) left top / 14px 100% no-repeat; font-family: var(--hg-display); font-size: 32px; font-weight: 700; line-height: 1.1; }
.hg-article figure { margin-inline: 0; }
.hg-article figcaption { margin-top: 10px; color: var(--hg-graphite); font-family: var(--hg-mono); font-size: var(--hg-text-micro); }
.hg-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; color: var(--hg-graphite); font-family: var(--hg-mono); font-size: 13px; }
.hg-callout { padding: 22px 24px; border: var(--hg-border); background: var(--hg-white); }
.hg-callout strong { font-family: var(--hg-display); font-size: 22px; }

/* Logo row: plain wordmarks set in type, never images */
.hg-logos { display: flex; flex-wrap: wrap; gap: 20px 44px; align-items: center; margin-top: 44px; font-family: var(--hg-display); font-size: 28px; font-weight: 800; text-transform: uppercase; }
.hg-logos span:nth-child(2n) { font-family: var(--hg-sans); font-size: 22px; font-weight: 700; text-transform: none; }
.hg-logos span:nth-child(3n) { padding: 2px 8px; border: 3px solid var(--hg-ink); font-size: 20px; }

/* Footer */
.hg-footer { padding-block: 56px 40px; border-top: var(--hg-frame); }
.hg-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 32px; }
.hg-footer h4 { margin: 0 0 12px; font-family: var(--hg-display); font-size: 20px; font-weight: 700; }
.hg-footer ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: var(--hg-text-small); }
.hg-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 18px; border-top: var(--hg-hair); color: var(--hg-graphite); font-family: var(--hg-mono); font-size: var(--hg-text-micro); }
