/*
 * Public site (home, templates, guides).
 * Concept: paper on a desk, read by a machine. Cool desk ground, white paper,
 * ink-blue actions and a highlighter for the words a recruiter is looking for.
 */
@font-face {
  font-family: 'UI Sans';
  src: url('/fonts/gsf-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'UI Sans';
  src: url('/fonts/gsf-600.ttf') format('truetype');
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: 'Reading Serif';
  src: url('/fonts/sserif-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Reading Serif';
  src: url('/fonts/sserif-600.ttf') format('truetype');
  font-weight: 600 700;
  font-display: swap;
}
@font-face {
  font-family: 'Parser Mono';
  src: url('/fonts/jbmono-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --desk: #eef1f5;
  --paper: #ffffff;
  --ink: #141b2d;
  --ink-2: #485266;
  --ink-3: #5c6578;
  --rule: #d6dbe4;
  --blue: #2340b8;
  --blue-hover: #1a3296;
  --blue-fg: #ffffff;
  --blue-soft: #e6eafa;
  --marker: #ffe066;
  --bad: #b42318;
  --good: #1c7c4a;
  --shadow-sheet: 0 1px 2px rgb(20 27 45 / 0.08), 0 18px 40px -18px rgb(20 27 45 / 0.35);
  --sans: 'UI Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Reading Serif', Georgia, 'Times New Roman', serif;
  --mono: 'Parser Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --radius: 10px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--blue);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
mark {
  background: var(--marker);
  color: #141b2d;
  padding: 0 0.15em;
  border-radius: 2px;
}
h1,
h2,
h3 {
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}
h1 {
  font-size: clamp(2.35rem, 1.55rem + 3.4vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.032em;
}
h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
}
h3 {
  font-size: 1.18rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.wrap {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}
.narrow {
  width: min(760px, 100% - 2.5rem);
}
.center {
  text-align: center;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 30;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  background: var(--paper);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 0.98rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.btn-primary {
  background: var(--blue);
  color: var(--blue-fg);
}
.btn-primary:hover {
  background: var(--blue-hover);
}
.btn-quiet {
  color: var(--ink);
  border-color: var(--rule);
  background: transparent;
}
.btn-quiet:hover {
  background: var(--paper);
  border-color: var(--ink-3);
}
.btn-lg {
  min-height: 52px;
  padding: 0 1.6rem;
  font-size: 1.04rem;
}
.btn-sm {
  min-height: 38px;
  padding: 0 0.95rem;
  font-size: 0.92rem;
}
.btn-block {
  width: 100%;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--desk) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav {
  margin-left: auto;
}
.nav ul,
.menu ul {
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a,
.menu a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.97rem;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--ink);
}
.nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--marker);
  text-decoration-thickness: 4px;
  text-underline-offset: 0.35em;
}
.menu {
  display: none;
  position: relative;
}
.menu summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu summary span,
.menu summary span::before,
.menu summary span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}
.menu summary span {
  position: relative;
}
.menu summary span::before,
.menu summary span::after {
  content: '';
  position: absolute;
  left: 0;
}
.menu summary span::before {
  top: -6px;
}
.menu summary span::after {
  top: 6px;
}
.menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 220px;
  padding: 0.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sheet);
}
.menu ul {
  flex-direction: column;
  gap: 0;
}
.menu a {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  color: var(--ink);
}
.menu a:hover {
  background: var(--desk);
}

/* ---------- hero ---------- */
.hero {
  /* ---- Tunables ---------------------------------------------------------- */
  --hero-wrap: 1160px; /* keep in sync with .wrap max-width */

  /* Dot matrix - balanced technical graph paper */
  --hero-dot: rgb(20 27 45 / 0.13); /* refined, elegant technical dots */
  --hero-dot-r: 1px; /* 2px crisp dots */
  --hero-dot-gap: 24px; /* grid spacing */
  --hero-dots-x: 50%;

  /* Aurora */
  --hero-orb: clamp(240px, 50vw, 420px);
  --hero-blur: 80px;
  --hero-focus-x: 50%;
  --hero-focus-y: 65%;
  --hero-aurora-fade: 75%;

  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

/* ---- Layer 1 · Aurora glow ------------------------------------------------ */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(
      circle calc(var(--hero-orb) * 0.62)
        at calc(var(--hero-focus-x) + var(--hero-orb) * 0.45)
          calc(var(--hero-focus-y) - var(--hero-orb) * 0.55),
      rgb(56 189 248 / 0.12),
      rgb(56 189 248 / 0) 70%
    ),
    radial-gradient(
      circle calc(var(--hero-orb) * 0.7)
        at calc(var(--hero-focus-x) - var(--hero-orb) * 0.55)
          calc(var(--hero-focus-y) + var(--hero-orb) * 0.4),
      rgb(99 102 241 / 0.08),
      rgb(99 102 241 / 0) 70%
    ),
    radial-gradient(
      ellipse var(--hero-orb) calc(var(--hero-orb) * 1.15)
        at var(--hero-focus-x) var(--hero-focus-y),
      rgb(35 64 184 / 0.12),
      rgb(35 64 184 / 0.04) 40%,
      rgb(35 64 184 / 0) 72%
    );

  filter: blur(var(--hero-blur));

  --hero-aurora-mask: linear-gradient(
    to bottom,
    transparent 0%,
    #000 10%,
    #000 var(--hero-aurora-fade),
    transparent 100%
  );
  -webkit-mask-image: var(--hero-aurora-mask);
  mask-image: var(--hero-aurora-mask);
}

/* ---- Layer 2 · Dot matrix ------------------------------------------------- */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background-image: radial-gradient(
    circle at center,
    var(--hero-dot) var(--hero-dot-r),
    transparent calc(var(--hero-dot-r) + 0.5px)
  );
  background-size: var(--hero-dot-gap) var(--hero-dot-gap);
  background-position: 50% 0;

  /* Smooth linear vertical fade — zero awkward elliptical cutoffs */
  --hero-dots-mask: linear-gradient(
    to bottom,
    transparent 0%,
    #000 8%,
    #000 65%,
    transparent 100%
  );
  -webkit-mask-image: var(--hero-dots-mask);
  mask-image: var(--hero-dots-mask);
}

/* ---- Responsive & Display Density ----------------------------------------- */
@media (max-resolution: 1.49dppx) {
  .hero {
    --hero-dot-r: 1.25px;
  }
}

@media (min-width: 640px) {
  .hero {
    --hero-dot-gap: 28px;
  }
}

@media (min-width: 900px) {
  .hero {
    --hero-orb: clamp(320px, 34vw, 520px);
    --hero-blur: 100px;
    --hero-focus-x: calc(50% + min(24%, var(--hero-wrap) / 4));
    --hero-focus-y: 50%;
    --hero-aurora-fade: 65%;
  }
}

@media (min-width: 1440px) {
  .hero {
    --hero-dot-gap: 32px;
    --hero-blur: 120px;
  }
}

@media (forced-colors: active), (prefers-contrast: more), print {
  .hero::before,
  .hero::after {
    display: none;
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy h1 {
  max-width: 13ch;
}
.lede {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  color: var(--ink-2);
  font-size: clamp(1.06rem, 1rem + 0.35vw, 1.22rem);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero-note {
  margin: 1rem 0 0;
  color: var(--ink-3);
  font-size: 0.93rem;
}

/* The one memorable moment: a résumé being read. */
.scan {
  position: relative;
  padding: 0 0 2.5rem 0;
}
.sheet {
  position: relative;
  margin: 0;
  width: min(430px, 82%);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: none;
}
.scanline {
  position: absolute;
  inset: 0 0 auto 0;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgb(35 64 184 / 0.1) 70%, rgb(35 64 184 / 0.55) 98%, transparent);
  transform: translateY(-110%);
  animation: scan 2.4s cubic-bezier(0.45, 0, 0.3, 1) 0.4s 1 forwards;
  pointer-events: none;
}
@keyframes scan {
  0% {
    transform: translateY(-110%);
    opacity: 1;
  }
  92% {
    transform: translateY(470%);
    opacity: 1;
  }
  100% {
    transform: translateY(470%);
    opacity: 0;
  }
}
.parsed {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(372px, 74%);
  padding: 1rem 1.1rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: none;
  font-size: 0.86rem;
}
.parsed-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  font-weight: 600;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
}
.parsed dl {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}
.parsed dl div {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 0.5rem;
  animation: reveal 0.35s ease both;
}
.parsed dl div:nth-child(1) {
  animation-delay: 0.7s;
}
.parsed dl div:nth-child(2) {
  animation-delay: 0.95s;
}
.parsed dl div:nth-child(3) {
  animation-delay: 1.2s;
}
.parsed dl div:nth-child(4) {
  animation-delay: 1.45s;
}
.parsed dl div:nth-child(5) {
  animation-delay: 1.75s;
}
.parsed dl div:nth-child(6) {
  animation-delay: 2.1s;
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
.parsed dt {
  color: var(--ink-3);
}
.parsed dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}
.parsed-foot {
  margin: 0.75rem 0 0;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--rule);
  color: var(--ink-3);
  font-size: 0.8rem;
}

/* ---------- sections ---------- */
.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}
#templates {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.section-tight {
  padding-top: 1rem;
}
.section-desk {
  background: var(--paper);
  border-block: 1px solid var(--rule);
}
.section-head {
  max-width: 44rem;
  margin-bottom: 2.25rem;
}
.section-head p {
  margin: 0.9rem 0 0;
  color: var(--ink-2);
}
.section-head.split {
  max-width: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.more {
  margin: 2rem 0 0;
}
.page-head {
  padding: 2rem 0 1.5rem;
}
.page-head h1 {
  margin-top: 0.75rem;
  max-width: 20ch;
}
.notfound {
  padding-block: 5rem;
}

/* ---------- template ticker (home) ---------- */
[hidden] {
  display: none !important;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head .kicker {
  margin: 0 0 0.85rem;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 600;
}
.ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: 0.5rem;
}
.ticker-viewport {
  border-radius: var(--radius);
}
.ticker-viewport:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
/* Without JS (or with reduced motion) the strip is a plain swipeable row. */
.ticker-clip {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1.25rem;
  padding: 0.5rem 1.25rem 1.5rem;
  scrollbar-width: thin;
}
.ticker-track,
.ticker-group {
  display: flex;
  gap: 1.25rem;
}
.ticker-track {
  width: max-content;
}
.ticker-group {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticker-group > li {
  scroll-snap-align: start;
}
.is-live .ticker-clip {
  overflow: hidden;
  scroll-snap-type: none;
  padding-inline: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.is-live .is-dragging .ticker-clip {
  cursor: grabbing;
}
.is-live .ticker-track {
  will-change: transform;
}
/* Strictly ZERO-SHADOW across template cards matching Zybra design rules */
.tcard {
  display: block;
  flex: 0 0 auto;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid var(--rule);
  background: var(--paper);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
  -webkit-user-drag: none;
}
.tcard:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
}
.tcard:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.tcard-frame {
  display: block;
  width: 16.5rem;
  height: 23.35rem;
  background: #fff;
  overflow: hidden;
}
.tcard-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  pointer-events: none;
  user-select: none;
}
.tpl-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(1.25rem, 3vw, 2.5rem);
}
@media (max-width: 48rem) {
  .tcard-frame {
    width: clamp(200px, 66vw, 240px);
    height: auto;
    aspect-ratio: 600 / 849;
  }
  .is-live .ticker-clip {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  }
}

/* ---------- templates ---------- */
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem) clamp(1rem, 2.5vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.tpl-grid-lg {
  gap: clamp(1.75rem, 3.5vw, 3rem) clamp(1.25rem, 3vw, 2.25rem);
}
.tpl a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.tpl-sheet {
  display: block;
  overflow: hidden;
  border-radius: 3px;
  background: #fff;
  box-shadow: var(--shadow-sheet);
  transition: transform 0.2s ease;
}
.tpl a:hover .tpl-sheet {
  transform: translateY(-4px);
}
.tpl-name {
  margin: 0.95rem 0 0.15rem;
  font-size: 1.05rem;
}
.tpl a:hover .tpl-name {
  text-decoration: underline;
  text-decoration-color: var(--marker);
  text-decoration-thickness: 4px;
  text-underline-offset: 0.3em;
}
.tpl-line {
  display: block;
  color: var(--ink-3);
  font-size: 0.92rem;
  line-height: 1.45;
}
.tpl-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.tpl-hero-sheet {
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: #fff;
  box-shadow: var(--shadow-sheet);
}
.tpl-copy .btn {
  margin-top: 1.75rem;
}
.tpl-copy h2 {
  margin-top: 2.25rem;
  font-size: 1.25rem;
}
.tpl-copy p {
  color: var(--ink-2);
}
.ticks {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  margin: 0.5rem 0;
  color: var(--ink-2);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.5em;
  width: 0.75rem;
  height: 0.4rem;
  border-left: 2px solid var(--good);
  border-bottom: 2px solid var(--good);
  transform: rotate(-45deg);
}

/* ---------- compare ---------- */
.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}
.compare-card {
  margin: 0;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}
.mini {
  aspect-ratio: 0.71;
  padding: 0.7rem 0.6rem;
  border-radius: 3px;
  background: #fff;
  box-shadow: var(--shadow-sheet);
  display: grid;
  gap: 0.35rem;
  align-content: start;
}
.mini span {
  height: 0.45rem;
  border-radius: 2px;
  background: #c9d0dc;
}
.mini-two {
  grid-template-columns: 1fr 2fr;
}
.mini-two span:nth-child(odd) {
  background: #9aa6bd;
}
.mini-one span:first-child {
  width: 60%;
  height: 0.6rem;
  background: #7e8aa3;
}
.mini-one span:nth-child(3) {
  width: 80%;
}
.mini-one span:nth-child(5) {
  width: 70%;
}
.compare-title {
  margin: 0;
  font-weight: 600;
}
.readout {
  margin: 0.5rem 0;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: var(--desk);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.5;
}
.bad .readout {
  box-shadow: inset 3px 0 0 var(--bad);
}
.good .readout {
  box-shadow: inset 3px 0 0 var(--good);
}
.compare-card figcaption p:last-child {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* ---------- features & steps ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem 2.5rem;
  margin: 0;
}
.features dt {
  padding-top: 0.9rem;
  border-top: 2px solid var(--ink);
  font-weight: 600;
  font-size: 1.08rem;
}
.features dd {
  margin: 0.45rem 0 0;
  color: var(--ink-2);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--marker);
  color: #141b2d;
  font-weight: 700;
}
.steps p {
  margin: 0.4rem 0 0;
  color: var(--ink-2);
}

/* ---------- guides ---------- */
.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-list li {
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
}
.post-list li:last-child {
  border-bottom: 1px solid var(--rule);
}
.post-list h2,
.post-list h3 {
  font-size: 1.2rem;
}
.post-list h2 a,
.post-list h3 a {
  color: var(--ink);
  text-decoration: none;
}
.post-list h2 a:hover,
.post-list h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--marker);
  text-decoration-thickness: 5px;
  text-underline-offset: 0.2em;
}
.post-list p {
  margin: 0.4rem 0 0;
  max-width: 62ch;
  color: var(--ink-2);
}
.post-list .meta {
  color: var(--ink-3);
  font-size: 0.9rem;
}

/* ---------- article ---------- */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-3);
  font-size: 0.9rem;
}
.crumbs li + li::before {
  content: '/';
  margin-right: 0.35rem;
  color: var(--rule);
}
.crumbs a {
  color: var(--ink-3);
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: 4rem;
}
.article {
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--shadow-sheet);
}
.article-head h1 {
  font-size: clamp(2rem, 1.45rem + 2.3vw, 3rem);
  max-width: 22ch;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}
.tags span {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 600;
}
.byline {
  margin: 1.25rem 0 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 0.93rem;
}
.prose {
  max-width: 68ch;
  font-family: var(--serif);
  font-size: 1.14rem;
  line-height: 1.72;
  color: var(--ink);
}
.prose h2 {
  margin: 2.6rem 0 0.8rem;
  font-family: var(--sans);
  font-size: 1.6rem;
}
.prose h3 {
  margin: 2rem 0 0.6rem;
  font-family: var(--sans);
}
.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
}
.prose li {
  margin: 0.35rem 0;
}
.prose li::marker {
  color: var(--blue);
}
.prose strong {
  font-weight: 600;
}
.prose code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--desk);
  font-family: var(--mono);
  font-size: 0.85em;
}
.prose pre {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  border-radius: 8px;
  background: var(--desk);
  font-size: 0.86rem;
  line-height: 1.6;
}
.prose pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}
.prose blockquote {
  margin: 1.4rem 0;
  padding: 0.9rem 1.2rem;
  border-left: 4px solid var(--marker);
  border-radius: 0 8px 8px 0;
  background: var(--desk);
  font-family: var(--sans);
  font-size: 1.02rem;
}
.prose blockquote p {
  margin: 0;
}
.table-wrap {
  margin: 1.5rem 0;
  overflow-x: auto;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.97rem;
}
.prose th,
.prose td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.prose th {
  font-weight: 600;
  background: var(--desk);
}
.cta-box {
  margin: 2.25rem 0;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  background: var(--blue-soft);
  font-family: var(--sans);
}
.cta-box p {
  margin: 0 0 1rem;
  font-size: 1.02rem;
}
.cta-box .cta-title {
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 1.2rem;
}
.toc {
  position: sticky;
  top: 6rem;
  align-self: start;
  font-size: 0.93rem;
}
.toc-title {
  margin: 0 0 0.6rem;
  font-weight: 600;
}
.toc ol {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--rule);
}
.toc li a {
  display: block;
  padding: 0.3rem 0 0.3rem 0.9rem;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1.4;
}
.toc li a:hover {
  border-left-color: var(--blue);
  color: var(--ink);
}

/* ---------- faq ---------- */
.faq {
  border-bottom: 1px solid var(--rule);
}
.faq:first-of-type {
  margin-top: 1.75rem;
  border-top: 1px solid var(--rule);
}
.faq summary {
  position: relative;
  padding: 1.15rem 2.5rem 1.15rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0.3rem;
  top: 0.95rem;
  color: var(--ink-3);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}
.faq[open] summary::after {
  content: '−';
}
.faq p {
  margin: 0 0 1.25rem;
  max-width: 62ch;
  color: var(--ink-2);
}

/* ---------- footer ---------- */
.site-footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}
.footer-brand p {
  max-width: 30ch;
  margin: 0.8rem 0 0;
  color: var(--ink-3);
}
.site-footer h2 {
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer li {
  margin: 0.45rem 0;
}
.site-footer nav a {
  color: var(--ink-2);
  text-decoration: none;
}
.site-footer nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 0.88rem;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    display: none;
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .tpl-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-grid,
  .tpl-detail {
    grid-template-columns: minmax(0, 1fr);
  }
  .tpl-hero-sheet {
    max-width: 420px;
  }
  .compare {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  .nav,
  .header-inner > .btn {
    display: none;
  }
  .menu {
    display: block;
    margin-left: auto;
  }
  .steps,
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
  .tpl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tpl-line {
    font-size: 0.85rem;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .compare-card {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 1rem;
  }
  .scan {
    padding-bottom: 0;
  }
  .sheet {
    width: 78%;
  }
  .parsed {
    position: relative;
    width: auto;
    margin: -3.5rem 0 0 12%;
  }
  .article {
    margin-inline: -0.5rem;
    padding: 1.25rem 1.1rem 1.75rem;
  }
  .prose {
    font-size: 1.08rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scanline {
    display: none;
  }
  .parsed dl div {
    animation: none;
  }
  .tpl-sheet,
  .btn {
    transition: none;
  }
}
@media print {
  .site-header,
  .site-footer,
  .toc,
  .cta-box {
    display: none;
  }
  body {
    background: #fff;
  }
  .article {
    box-shadow: none;
    padding: 0;
  }
}
