@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #172033;
  --muted: #4f5a6b;
  --paper: #f3efe4;
  --card: #fffdf7;
  --sand: #e7e0cf;
  --blue: #1f4f8f;
  --blueprint: #14305c;
  --blueprint-deep: #0d2244;
  --yellow: #f5c33b;
  --red: #b3341f;
  --green: #2f6b3e;
  --rule: rgb(23 32 51 / 0.16);
  --grid-line: rgb(255 255 255 / 0.07);
  --radius: 10px;
  --wrap: 70rem;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body { margin: 0; font: 400 1.0625rem/1.7 var(--sans); color: var(--ink); background: var(--paper); }
img, svg { 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: 3px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }

h1, h2, h3, h4 { margin: 0 0 0.5em; font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); font-weight: 650; }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.3vw, 1.5rem); line-height: 1.2; }
h4 { font-size: 1.1rem; line-height: 1.25; }
h1 em, h2 em { font-style: italic; font-weight: 500; }
p, ul, ol { margin: 0 0 1.1em; }
li + li { margin-top: 0.35em; }
strong, b { font-weight: 700; }
small, .note { font-size: 0.875rem; color: var(--muted); }
mark { background: linear-gradient(transparent 55%, rgb(245 195 59 / 0.7) 55%); color: inherit; padding-inline: 0.05em; }

.skip { position: absolute; left: -999px; top: 0; padding: 0.75rem 1rem; background: var(--ink); color: var(--paper); z-index: 10; }
.skip:focus { left: 1rem; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* Header: paper with a blueprint rule above */
.masthead { position: sticky; top: 0; z-index: 5; background: rgb(243 239 228 / 0.94); backdrop-filter: blur(8px); border-top: 6px solid var(--blueprint); border-bottom: 1px solid var(--rule); }
.masthead__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; padding-top: 0.7rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.brand__mark { width: clamp(1.5rem, 5.5vw, 1.9rem); color: var(--blueprint); flex: none; }
.brand__name { font: 600 clamp(0.98rem, 4vw, 1.15rem)/1.1 var(--serif); letter-spacing: -0.01em; }
.brand__name i { font-weight: 400; color: var(--blue); }
.topnav { order: 3; flex-basis: 100%; display: flex; gap: 1.25rem; overflow-x: auto; padding-block: 0.5rem 0.6rem; scrollbar-width: none; font-size: 0.93rem; }
.topnav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.topnav a:hover, .topnav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 0.35em; }
@media (min-width: 68rem) {
  .masthead__row { flex-wrap: nowrap; padding-block: 0.75rem; }
  .topnav { order: 0; flex-basis: auto; margin-left: auto; padding: 0; }
}
.masthead__cta { flex: none; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0 auto; padding: 0.9rem 0 0; width: min(100% - 2.5rem, var(--wrap)); font-size: 0.85rem; color: var(--muted); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 0.4rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.4rem; border: 2px solid transparent; border-radius: 999px;
  font: 700 1rem/1.1 var(--sans); text-decoration: none; cursor: pointer;
}
.btn--primary { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn--primary:hover { translate: -1px -1px; box-shadow: 4px 4px 0 var(--ink); }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgb(23 32 51 / 0.06); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--small { min-height: 2.4rem; padding: 0.4rem 1rem; font-size: 0.88rem; box-shadow: 2px 2px 0 var(--ink); }

/* Sections */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section--alt { background: var(--sand); }
.section--dark { background: var(--blueprint); color: var(--paper); background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 2rem 2rem; }
.section--dark a:not(.btn) { color: var(--yellow); }
.section--dark .note { color: #c4cee0; }
.section__head { max-width: 46rem; margin-bottom: 2.25rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem;
  font: 600 0.78rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 1.75rem; height: 0.55rem; border: 1.5px solid currentColor; border-top: 0; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--yellow); }
.lede { font-size: clamp(1.15rem, 2.1vw, 1.32rem); line-height: 1.6; max-width: 42rem; }

/* Hero: a drawing on blueprint paper */
.hero {
  position: relative; color: var(--paper); background-color: var(--blueprint);
  background-image:
    linear-gradient(rgb(255 255 255 / 0.11) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.11) 1px, transparent 1px),
    linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 8rem 8rem, 8rem 8rem, 1rem 1rem, 1rem 1rem;
  padding-block: clamp(3rem, 9vw, 6rem);
  border-bottom: 6px solid var(--yellow);
}
.hero h1 { max-width: 18ch; }
.hero h1 em { color: var(--yellow); }
.hero .lede { color: #dbe3f0; }
.hero a:not(.btn) { color: var(--yellow); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }
.hero .btn--ghost { color: var(--paper); }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin: 1.75rem 0 0; padding: 0; list-style: none; color: #c4cee0; font-size: 0.93rem; }
.hero__facts li { margin: 0; }
.hero__facts li::before { content: "✓"; color: var(--yellow); margin-right: 0.45rem; font-weight: 700; }
.hero--split .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .hero--split .wrap { grid-template-columns: 1.1fr 1fr; } }

/* Layout helpers */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.4fr 1fr; } }
.stack > * + * { margin-top: 1.25rem; }

.card { position: relative; padding: 1.5rem; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius); box-shadow: 5px 5px 0 rgb(23 32 51 / 0.12); }
.card > :last-child { margin-bottom: 0; }
.card--accent { box-shadow: 5px 5px 0 var(--yellow); }
.section--dark .card { background: var(--blueprint-deep); border-color: rgb(255 255 255 / 0.35); box-shadow: none; color: var(--paper); }
.card__kicker { display: block; margin-bottom: 0.6rem; font: 600 0.75rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.section--dark .card__kicker { color: var(--yellow); }

/* Numbered steps as drawing callouts */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1.6rem; }
.steps > li { counter-increment: step; position: relative; padding-left: 3.75rem; margin: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -0.1rem; display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border: 2px solid currentColor; border-radius: 50%;
  font: 600 1.2rem/1 var(--serif); color: var(--blue); background: var(--card);
}
.section--dark .steps > li::before { color: var(--yellow); background: transparent; }
.steps h3 { margin-bottom: 0.3em; }
.steps > li > :last-child { margin-bottom: 0; }

.checklist { list-style: none; padding: 0; }
.checklist > li { position: relative; padding-left: 1.9rem; }
.checklist > li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--green); }
.section--dark .checklist > li::before { color: var(--yellow); }
.checklist--x > li::before { content: "✕"; color: var(--red); }

.callout { padding: 1.1rem 1.3rem; border: 1.5px dashed var(--blue); border-radius: var(--radius); background: rgb(31 79 143 / 0.05); }
.callout > :last-child { margin-bottom: 0; }
.callout--plain { border-style: solid; border-color: var(--rule); background: var(--card); }
.section--dark .callout { border-color: var(--yellow); background: transparent; }
.section--dark .toc { background: var(--blueprint-deep); border-color: rgb(255 255 255 / 0.35); }
.section--dark .toc h2 { color: var(--yellow); }
.section--dark .faq, .section--dark .faq details { border-color: rgb(255 255 255 / 0.3); }
.section--dark .faq summary::after { border-color: currentColor; color: var(--paper); }
.section--dark .faq details[open] summary::after { color: var(--ink); }
.hero .figure figcaption { color: #c4cee0; }

.tag { display: inline-block; padding: 0.15rem 0.65rem; border-radius: 999px; border: 1px solid var(--ink); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; }
.tag--copper { background: var(--yellow); }

/* Spec label: a dimension line with a measurement in the middle */
.spec { display: flex; align-items: center; gap: 0.75rem; font: 600 0.72rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.spec::before, .spec::after { content: ""; flex: 1; height: 0.6rem; border: 1px solid currentColor; border-block: 0; background: linear-gradient(currentColor, currentColor) center/100% 1px no-repeat; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 38rem; }
caption { text-align: left; padding: 0.9rem 1rem; font: 600 1.05rem/1.3 var(--serif); caption-side: top; }
th, td { padding: 0.8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
thead th { background: var(--blueprint); color: var(--paper); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
tbody th { font-weight: 700; }
tbody tr:last-child > * { border-bottom: 0; }
.is-theo { background: rgb(245 195 59 / 0.18); }

/* FAQ */
.faq { display: grid; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; cursor: pointer; list-style: none; font: 600 1.15rem/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; font: 400 1.1rem/1 var(--sans); transition: rotate 0.2s; }
.faq details[open] summary::after { rotate: 45deg; background: var(--yellow); }
.faq details > div { padding: 0 0 1.2rem; max-width: 46rem; }
.faq details > div > :last-child { margin-bottom: 0; }

/* Long-form reading */
.prose { max-width: 43rem; }
.prose h2 { margin-top: 2em; font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
.prose h3 { margin-top: 1.7em; }
.prose > :first-child { margin-top: 0; }
.toc { padding: 1.25rem 1.5rem; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius); }
.toc h2 { font: 600 0.78rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.9rem; }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: 0.95rem; }
.article { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) { .article { grid-template-columns: minmax(0, 1fr) 16.5rem; } .article .toc { position: sticky; top: 6rem; align-self: start; order: 2; } }

/* Mockups of made-up sites */
.mock { border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 8px 8px 0 rgb(23 32 51 / 0.15); }
.mock__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.75rem; background: var(--sand); border-bottom: 1.5px solid var(--ink); font-size: 0.75rem; color: var(--muted); }
.mock__bar::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; border: 1.5px solid var(--ink); box-shadow: 1rem 0 0 -1.5px var(--ink), 2rem 0 0 -1.5px var(--ink); margin-right: 2.4rem; }
.mock__url { flex: 1; padding: 0.2rem 0.6rem; background: #fff; border-radius: 999px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mock__screen { position: relative; }
.phone { width: min(100%, 17rem); border: 9px solid var(--ink); border-radius: 2rem; overflow: hidden; background: #fff; box-shadow: 8px 8px 0 rgb(23 32 51 / 0.15); }
.figure { margin: 0; }
.figure figcaption { margin-top: 0.75rem; font-size: 0.9rem; color: var(--muted); }

/* Closing call to action */
.cta-band { padding-block: clamp(2.5rem, 6vw, 4rem); background: var(--yellow); border-block: 1.5px solid var(--ink); }
.cta-band .wrap { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 52rem) { .cta-band .wrap { grid-template-columns: 1fr auto; } }
.cta-band h2 { margin-bottom: 0.3em; }
.cta-band p { margin: 0; max-width: 40rem; }
.cta-band .btn--primary { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--paper); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Footer */
.footer { background: var(--blueprint-deep); color: #c4cee0; padding-top: 3.5rem; font-size: 0.95rem; }
.footer a { color: var(--paper); }
.footer .brand__name { color: var(--paper); font-size: 1.3rem; }
.footer .brand__name i { color: var(--yellow); }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.footer__about { grid-column: 1 / -1; max-width: 34rem; }
@media (min-width: 60rem) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer__about { grid-column: auto; } }
.footer__head { font: 600 0.78rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--yellow); margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer__base { margin-top: 2.5rem; padding-block: 1.25rem 2rem; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 0.85rem; }
.footer__base p { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
