/* Hatch Cabin: components. Built only from tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--hc-paper);
  color: var(--hc-ink);
  font-family: var(--hc-sans);
  font-size: var(--hc-text-body);
  line-height: 1.6;
  font-variant-ligatures: none;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--hc-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--hc-marker); }
p { margin: 0 0 1em; }

.hc-container { max-width: var(--hc-container); margin: 0 auto; padding: 0 24px; }
.hc-narrow { max-width: var(--hc-narrow); }
.hc-section { padding: var(--hc-section) 0; }
.hc-section--wash { background: var(--hc-wash); border-top: var(--hc-rule); border-bottom: var(--hc-rule); }
.hc-section--ink { background: var(--hc-ink); color: var(--hc-paper); }
.hc-section--ink a, .hc-section--ink .hc-h2 { color: var(--hc-paper); }

/* ---------- Type ---------- */
.hc-hero-title, .hc-h2, .hc-h3 {
  font-family: var(--hc-sans);
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: underline;
  text-decoration-thickness: var(--hc-underline);
  text-underline-offset: var(--hc-underline-offset);
  margin: 0 0 .5em;
}
.hc-hero-title { font-size: var(--hc-text-hero); line-height: 1.04; }
.hc-h2 { font-size: var(--hc-text-h2); line-height: 1.1; }
.hc-h3 { font-size: var(--hc-text-h3); line-height: 1.25; text-decoration-thickness: 2px; }
.hc-lead { font-size: var(--hc-text-lead); color: var(--hc-graphite); max-width: 560px; }
.hc-hand { font-family: var(--hc-hand); font-size: var(--hc-text-hand); line-height: 1.2; letter-spacing: .02em; }
.hc-mono { font-family: var(--hc-mono); font-size: var(--hc-text-small); }
.hc-small { font-size: var(--hc-text-small); color: var(--hc-graphite); }

/* A word circled in red marker */
.hc-circle { position: relative; display: inline-block; padding: 0 .12em; }
.hc-circle::after {
  content: ""; position: absolute; inset: -.1em -.18em -.02em -.18em;
  border: 2.5px solid var(--hc-marker);
  border-radius: 52% 46% 55% 44% / 58% 50% 48% 52%;
  transform: rotate(-3deg);
  pointer-events: none;
}

/* Masking-tape note */
.hc-tape {
  display: inline-block;
  background: var(--hc-tape);
  font-family: var(--hc-hand);
  font-size: var(--hc-text-hand);
  line-height: 1.2;
  padding: 6px 14px 4px;
  transform: rotate(var(--hc-tilt));
  border-left: 1px dashed rgba(18, 18, 18, .25);
  border-right: 1px dashed rgba(18, 18, 18, .25);
}

/* ---------- Nav: drawn icons with hand-lettered labels ---------- */
.hc-nav { border-bottom: var(--hc-rule); }
.hc-nav__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-block: 20px 16px; flex-wrap: wrap; }
.hc-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; text-decoration: none; letter-spacing: -.02em; }
.hc-logo svg { width: 40px; height: 40px; }
.hc-iconnav { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.hc-iconnav a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; font-family: var(--hc-hand); font-size: 18px; line-height: 1; }
.hc-iconnav svg { width: 40px; height: 40px; }
.hc-iconnav a[aria-current="page"] span, .hc-iconnav a:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hc-iconnav a:hover { color: var(--hc-ink); }

/* Drawings: every inline SVG uses these */
.hc-draw { fill: none; stroke: var(--hc-ink); stroke-width: var(--hc-stroke); stroke-linecap: round; stroke-linejoin: round; }
.hc-draw .fill-paper { fill: var(--hc-paper); }
.hc-draw .fill-ink { fill: var(--hc-ink); }
.hc-draw .fill-hatch { fill: url(#hc-hatch); }
.hc-draw .fill-wash { fill: var(--hc-wash); }
.hc-draw .thin { stroke-width: 1.2; }
.hc-draw .marker { stroke: var(--hc-marker); }

/* ---------- Buttons ---------- */
.hc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--hc-sans); font-weight: 600; font-size: 16px; line-height: 1;
  padding: 14px 22px; border: var(--hc-rule); border-radius: var(--hc-radius);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--hc-paper); color: var(--hc-ink);
}
.hc-btn--ink { background: var(--hc-ink); color: var(--hc-paper); }
.hc-btn--ink:hover { background: var(--hc-paper); color: var(--hc-ink); }
.hc-btn--paper:hover { background: var(--hc-ink); color: var(--hc-paper); }
.hc-btn--link { border: 0; padding: 14px 0; text-decoration: underline; text-underline-offset: .2em; background: none; }
.hc-btn--sm { padding: 10px 14px; font-size: 14px; }
.hc-btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- Hero ---------- */
.hc-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding-block: 56px 72px; }
.hc-hero__art svg { width: 100%; height: auto; }
.hc-hero__note { margin-bottom: 20px; }

/* ---------- Cards and boxes ---------- */
.hc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--hc-gap); }
.hc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.hc-card { border: var(--hc-rule); background: var(--hc-paper); padding: 22px; }
.hc-card__art { height: 120px; border-bottom: var(--hc-rule-thin); margin: -22px -22px 18px; display: flex; align-items: center; justify-content: center; background: var(--hc-paper); }
.hc-card__art svg { height: 96px; width: auto; }
.hc-card__title { font-weight: 800; font-size: 20px; margin: 0 0 6px; }
.hc-card__text { color: var(--hc-graphite); margin: 0; }
.hc-box--hatch { border: var(--hc-rule); background: var(--hc-hatch-fine); padding: 10px; }
.hc-box--hatch > * { background: var(--hc-paper); border: var(--hc-rule); }

/* Labels and badges */
.hc-badge { display: inline-block; font-family: var(--hc-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; border: var(--hc-rule-thin); padding: 3px 8px; line-height: 1.3; }
.hc-badge--ink { background: var(--hc-ink); color: var(--hc-paper); }
.hc-badge--marker { border-color: var(--hc-marker); color: var(--hc-marker); }
.hc-stamp { display: inline-block; font-family: var(--hc-hand); font-size: 18px; color: var(--hc-marker); border: 2.5px solid var(--hc-marker); padding: 4px 12px 2px; transform: rotate(var(--hc-tilt)); }

/* ---------- Log: dated entries with dotted leaders ---------- */
.hc-log { list-style: none; margin: 0; padding: 0; border-top: var(--hc-rule); }
.hc-log li { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: var(--hc-rule-thin); }
.hc-log__date { font-family: var(--hc-mono); font-size: var(--hc-text-small); color: var(--hc-graphite); flex: none; width: 92px; }
.hc-log__title { font-weight: 600; }
.hc-log__lead { flex: 1; border-bottom: var(--hc-rule-dotted); min-width: 24px; transform: translateY(-4px); }
.hc-log__tag { flex: none; }

/* Lists with drawn ticks */
.hc-ticks { list-style: none; margin: 0; padding: 0; }
.hc-ticks li { position: relative; padding: 6px 0 6px 30px; }
.hc-ticks li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 14px; height: 7px; border-left: 2.5px solid var(--hc-ink); border-bottom: 2.5px solid var(--hc-ink); transform: rotate(-45deg); }
.hc-ticks--marker li::before { border-color: var(--hc-marker); }

/* Stats as tally numbers */
.hc-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: var(--hc-rule); }
.hc-stat { padding: 20px; border-right: var(--hc-rule); }
.hc-stat:last-child { border-right: 0; }
.hc-stat__num { font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -.03em; }
.hc-stat__label { font-family: var(--hc-hand); font-size: 18px; color: var(--hc-graphite); margin-top: 6px; }

/* Quote, handwritten */
.hc-quote { border-left: 6px solid var(--hc-ink); padding: 4px 0 4px 24px; margin: 0; }
.hc-quote p { font-family: var(--hc-hand); font-size: 28px; line-height: 1.25; margin: 0 0 10px; }
.hc-quote cite { font-style: normal; font-size: var(--hc-text-small); color: var(--hc-graphite); }

/* ---------- Pricing ---------- */
.hc-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--hc-gap); align-items: start; }
.hc-plan { border: var(--hc-rule); padding: 26px; background: var(--hc-paper); position: relative; }
.hc-plan--featured { outline: 2px solid var(--hc-ink); outline-offset: 6px; }
.hc-plan__label { position: absolute; top: -18px; right: 16px; }
.hc-plan__name { font-weight: 800; font-size: 22px; margin: 0 0 4px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.hc-plan__desc { color: var(--hc-graphite); font-size: var(--hc-text-small); min-height: 44px; }
.hc-plan__price { font-weight: 800; font-size: 46px; letter-spacing: -.03em; line-height: 1; margin: 18px 0 4px; }
.hc-plan__price small { font-size: 16px; font-weight: 400; color: var(--hc-graphite); letter-spacing: 0; }
.hc-plan__list { margin: 18px 0 24px; border-top: var(--hc-rule-thin); padding-top: 10px; }
.hc-plan .hc-btn { width: 100%; }

.hc-table { width: 100%; border-collapse: collapse; border: var(--hc-rule); font-size: 15px; }
.hc-table th, .hc-table td { text-align: left; padding: 12px 14px; border-bottom: var(--hc-rule-thin); }
.hc-table thead th { background: var(--hc-ink); color: var(--hc-paper); font-weight: 600; }
.hc-table tbody tr:nth-child(even) { background: var(--hc-wash); }
.hc-table-wrap { overflow-x: auto; }

/* FAQ */
.hc-faq details { border-bottom: var(--hc-rule-thin); padding: 14px 0; }
.hc-faq details:first-child { border-top: var(--hc-rule); }
.hc-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.hc-faq summary::after { content: "+"; font-family: var(--hc-mono); font-size: 20px; line-height: 1; }
.hc-faq details[open] summary::after { content: "\2212"; }
.hc-faq p { margin: 10px 0 0; color: var(--hc-graphite); }

/* ---------- Article ---------- */
.hc-article { max-width: var(--hc-narrow); }
.hc-article__meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.hc-article h2 { font-size: 26px; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; margin: 1.6em 0 .5em; }
.hc-article p, .hc-article li { font-size: 18px; line-height: 1.7; }
.hc-article ol { padding-left: 1.3em; }
.hc-figure { margin: 32px 0; border: var(--hc-rule); }
.hc-figure svg { width: 100%; height: auto; }
.hc-figure figcaption { border-top: var(--hc-rule-thin); padding: 10px 14px; font-family: var(--hc-hand); font-size: 18px; color: var(--hc-graphite); }
.hc-aside { background: var(--hc-tape); padding: 18px 22px; border-left: 6px solid var(--hc-ink); margin: 28px 0; }
.hc-aside p { margin: 0; font-size: 17px; }
.hc-code { font-family: var(--hc-mono); font-size: 14px; background: var(--hc-ink); color: var(--hc-paper); padding: 16px 18px; overflow-x: auto; white-space: pre; margin: 24px 0; }

/* ---------- Forms ---------- */
.hc-form { display: grid; gap: 18px; }
.hc-field label { display: block; font-family: var(--hc-hand); font-size: 20px; margin-bottom: 4px; }
.hc-input, .hc-select, .hc-textarea {
  width: 100%; font: inherit; color: var(--hc-ink);
  background: var(--hc-paper); border: var(--hc-rule); border-radius: var(--hc-radius);
  padding: 12px 14px;
}
.hc-input::placeholder, .hc-textarea::placeholder { color: var(--hc-pencil); }
.hc-input:focus, .hc-select:focus, .hc-textarea:focus { outline: 3px solid var(--hc-tape); outline-offset: 0; background: var(--hc-paper); }
.hc-field__hint { font-size: 13px; color: var(--hc-graphite); margin-top: 4px; }
.hc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.hc-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--hc-ink); flex: none; }
.hc-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hc-choice label { border: var(--hc-rule); padding: 12px; cursor: pointer; display: block; font-family: var(--hc-sans); font-size: 15px; }
.hc-choice input { position: absolute; opacity: 0; pointer-events: none; }
.hc-choice input:checked + label { background: var(--hc-ink); color: var(--hc-paper); }
.hc-choice strong { display: block; font-size: 16px; }

/* ---------- Footer ---------- */
.hc-footer { border-top: var(--hc-rule); padding: 40px 0 56px; font-size: var(--hc-text-small); }
.hc-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.hc-footer h4 { font-family: var(--hc-hand); font-weight: 400; font-size: 20px; margin: 0 0 8px; }
.hc-footer ul { list-style: none; margin: 0; padding: 0; }
.hc-footer li { padding: 2px 0; }
.hc-footer__base { margin-top: 32px; padding-top: 16px; border-top: var(--hc-rule-dotted); color: var(--hc-graphite); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hc-hero { grid-template-columns: 1fr; gap: 32px; padding-block: 36px 48px; }
  .hc-grid, .hc-grid--2, .hc-plans { grid-template-columns: 1fr; }
  .hc-stats { grid-template-columns: repeat(2, 1fr); }
  .hc-stat:nth-child(2) { border-right: 0; }
  .hc-stat:nth-child(-n+2) { border-bottom: var(--hc-rule); }
  .hc-footer__grid { grid-template-columns: 1fr 1fr; }
  .hc-plans { gap: 36px; }
}
@media (max-width: 560px) {
  .hc-iconnav { gap: 12px; }
  .hc-iconnav svg { width: 32px; height: 32px; }
  .hc-iconnav a { font-size: 15px; }
  .hc-log li { flex-wrap: wrap; gap: 4px 12px; }
  .hc-log__lead { display: none; }
  .hc-log__date { width: auto; }
  .hc-choice { grid-template-columns: 1fr; }
  .hc-footer__grid { grid-template-columns: 1fr; }
  .hc-quote p { font-size: 23px; }
}

/* Hidden SVG holding the shared hatch pattern; put it once at the top of <body> */
.hc-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hc-hatchline { stroke: var(--hc-ink); stroke-width: 1.3; }
.hc-section--ink .hc-lead { color: var(--hc-wash); }
.hc-section--ink .hc-btn--paper:hover { background: var(--hc-ink); color: var(--hc-paper); border-color: var(--hc-paper); }
[hidden] { display: none !important; }
.hc-section--ink .hc-btn--paper { color: var(--hc-ink); }
