/* Self-hosted Google Fonts, latin subset, variable where available.
   Preloaded in partials/head.html. Regenerate from fonts.googleapis.com if the families change. */
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('/fonts/caveat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/fraunces.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fonts/inter.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Special Elite'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/special-elite.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #fdfbf5;
  --paper-2: #f6f1e4;
  --rule-line: #dfe8f2;
  --margin-line: #eab0ac;
  --ink: #22252f;
  --ink-soft: #5a5f6b;
  --pencil: #9a9a9a;
  --red: #c0392b;
  --red-ink: #fff;
  --rule: #e4dccb;
  --card: #fffefa;
  --highlight: #fff2a8;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --type: "Special Elite", "Courier New", monospace;
  --line: 28px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17191f;
    --paper-2: #1d2028;
    --rule-line: #232733;
    --margin-line: #5a2b2a;
    --ink: #ece7dc;
    --ink-soft: #a9a497;
    --pencil: #6f6c66;
    --red: #ec6b5a;
    --red-ink: #17191f;
    --rule: #323644;
    --card: #1f222b;
    --highlight: #5a4d12;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--line) - 1px), var(--rule-line) calc(var(--line) - 1px) var(--line));
}
body::before {
  content: "";
  position: fixed;
  top: 0; bottom: 0;
  left: max(18px, calc(50% - 600px));
  width: 1.5px;
  background: var(--margin-line);
  pointer-events: none;
  z-index: 0;
}
main, .site-footer { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
::selection { background: var(--highlight); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px 0 44px; }
.narrow { max-width: 760px; }
@media (max-width: 600px) { .wrap { padding: 0 16px 0 34px; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Editing marks */
.edit del { color: var(--pencil); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.edit ins, .hand { font-family: var(--hand); color: var(--red); text-decoration: none; font-weight: 500; }
.edit ins { font-size: 1.12em; margin-left: .15em; }
.circle { position: relative; white-space: nowrap; }
.circle::after { content: ""; position: absolute; inset: -.1em -.22em -.05em; border: 2px solid var(--red); border-radius: 50% 45% 55% 48%; transform: rotate(-2deg); pointer-events: none; }
.underline { background: linear-gradient(transparent 62%, var(--highlight) 62% 92%, transparent 92%); padding: 0 .1em; }
.caret { font-family: var(--hand); color: var(--red); }
.margin-note {
  font-family: var(--hand);
  color: var(--red);
  font-size: 1.55rem;
  line-height: 1.05;
  transform: rotate(-4deg);
  display: inline-block;
}
h2.marked::after {
  content: "";
  display: block;
  width: 110px;
  height: 8px;
  margin-top: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 8'%3E%3Cpath d='M2 5 C 30 1, 60 7, 108 3' fill='none' stroke='%23c0392b' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
}

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 2px; text-decoration: none; color: var(--ink); font: 1.35rem var(--type); }
.brand .caret { font-size: 1.6rem; line-height: 0; }
.site-nav { display: flex; align-items: center; gap: 22px; font: .98rem var(--type); }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--red); }
.site-nav a[aria-current="page"] { color: var(--red); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.site-nav a[aria-current="page"].btn { color: var(--red-ink); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); color: var(--ink); border-radius: 4px; padding: 6px 12px; font: 1rem var(--type); }
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 20px 16px 44px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; }
  .site-nav .btn { margin-top: 8px; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .45em; background: var(--red); color: var(--red-ink); text-decoration: none; padding: 13px 26px; border-radius: 999px; font: 600 1rem var(--sans); letter-spacing: .01em; border: 0; cursor: pointer; box-shadow: 0 1px 2px rgba(34, 37, 47, .12), 0 6px 16px -6px color-mix(in srgb, var(--red) 55%, transparent); transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn::after { content: "→"; transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--red) 88%, #000); box-shadow: 0 2px 4px rgba(34, 37, 47, .14), 0 10px 22px -8px color-mix(in srgb, var(--red) 65%, transparent); text-decoration: none; }
.btn:hover::after { transform: translateX(3px); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(34, 37, 47, .12); }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.site-nav .btn, .btn-small { padding: 8px 18px; color: var(--red-ink); font: 600 .9rem var(--sans); }
.site-nav .btn::after, .btn-small::after { content: none; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }
.btn-ghost::after { content: none; }
.btn-ghost:hover { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Sections */
.hero { padding: clamp(48px, 9vw, 104px) 0 clamp(40px, 7vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; align-items: start; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero-grid .margin-note { justify-self: start; } }
.hero .eyebrow { font: .95rem var(--type); color: var(--ink-soft); margin-bottom: 18px; }
.hero h1 { line-height: 1.15; }
.hero p.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 36em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.hero .margin-note { margin-top: 40px; font-size: 1.9rem; text-align: center; }
.hero .margin-note svg { display: block; margin: 6px auto 0; }
.page-head { padding: 60px 0 20px; }
.page-head p { color: var(--ink-soft); font-size: 1.15rem; max-width: 38em; }
.section { padding: 48px 0; }
.section.alt { background: color-mix(in srgb, var(--paper-2) 88%, transparent); border-block: 1px solid var(--rule); }
.note { color: var(--ink-soft); font-size: .92rem; }

.creds { display: flex; flex-wrap: wrap; gap: 10px 30px; padding: 0; margin: 0; list-style: none; font: .98rem var(--type); color: var(--ink); }
.creds li::before { content: "✓ "; font-family: var(--hand); color: var(--red); font-size: 1.3em; }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }

/* Paper cards: a sheet with a slight tilt and a stacked-page edge */
.card, .rate-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 28px 26px 24px;
  box-shadow: 0 1px 0 var(--rule), 4px 5px 0 -1px var(--paper-2), 4px 5px 0 0 var(--rule);
  position: relative;
}
.cols > .card:nth-child(odd) { transform: rotate(-.4deg); }
.cols > .card:nth-child(even) { transform: rotate(.35deg); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--red); }
.rate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.rate { font-size: 1.05rem; color: var(--ink-soft); }
.rate span { font: 600 2.4rem var(--serif); color: var(--ink); margin-right: 4px; }
.rate-card ul { padding-left: 0; list-style: none; }
.rate-card li { padding-left: 1.5em; position: relative; margin-bottom: .35em; }
.rate-card li::before { content: "✓"; position: absolute; left: 0; font: 1.3em/1.2 var(--hand); color: var(--red); }

.fees { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--rule); }
.fees caption { text-align: left; font: 600 1.3rem var(--serif); padding-bottom: 12px; }
.fees th { font: .9rem var(--type); color: var(--ink-soft); font-weight: 400; }
.fees th, .fees td { padding: 12px 18px; text-align: left; border-bottom: 1px dashed var(--rule); }
.fees td:last-child, .fees th:last-child { text-align: right; }
.fees td:last-child { font: 600 1.1rem var(--serif); }
.fees tr:last-child td { border-bottom: 0; }

.steps { list-style: none; padding: 0; max-width: 46em; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; margin-bottom: 1em; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -4px; width: 36px; height: 36px; border: 2px solid var(--red); border-radius: 50% 46% 52% 48%; display: grid; place-items: center; font: 1.4rem var(--hand); color: var(--red); }

/* Testimonials as margin comments */
.quotes { columns: 2 320px; column-gap: 28px; }
.quote { display: inline-block; width: 100%; break-inside: avoid; margin: 14px 0 14px; background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--red); padding: 22px 24px; position: relative; }
.quote::before { content: "Comment"; position: absolute; top: -11px; left: 14px; background: var(--red); color: var(--red-ink); font: .72rem var(--type); padding: 2px 8px; letter-spacing: .04em; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 1.06rem; line-height: 1.6; }
.quote blockquote p:last-child { margin: 0; }
.quote figcaption { margin-top: 12px; font: .85rem var(--type); color: var(--ink-soft); }

/* Portfolio */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 32px 24px; list-style: none; padding: 0; margin: 0; }
.cover { aspect-ratio: 2 / 3; border-radius: 2px 6px 6px 2px; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 14px; font: 600 1rem/1.25 var(--serif); box-shadow: inset 6px 0 0 rgba(255,255,255,.08), 4px 5px 0 var(--rule); position: relative; }
.shelf li:nth-child(3n+2) .cover { background: #7a2a24; }
.shelf li:nth-child(3n) .cover { background: #2f4a5e; }
.cover img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cover:has(img) { padding: 0; background: none; aspect-ratio: auto; }
.cover img { display: block; height: auto; }
.shelf .meta { margin-top: 12px; font-size: .85rem; color: var(--ink-soft); line-height: 1.4; }
.shelf .meta strong { display: block; color: var(--ink); font-size: .92rem; }

/* Forms: typed onto ruled lines */
.form { display: grid; gap: 22px; max-width: 680px; }
.form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 4px; font: .95rem var(--type); color: var(--ink-soft); }
.form input, .form select, .form textarea { width: 100%; min-width: 0; font: 1.05rem var(--sans); padding: 8px 2px; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); }
.form select { padding-right: 20px; }
.form textarea { min-height: 120px; resize: vertical; border: 1.5px solid var(--ink); padding: 10px; background: var(--card); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 1.5px 0 var(--red); }
.estimate { background: var(--card); border: 2px dashed var(--red); padding: 18px 22px; font: .95rem var(--type); color: var(--ink-soft); }
.estimate strong { font: 2.6rem var(--hand); color: var(--red); display: block; line-height: 1.1; }

.legal h2 { margin-top: 1.6em; }
.legal { background: var(--card); border: 1px solid var(--rule); padding-top: 32px; padding-bottom: 32px; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--paper); margin-top: 64px; padding: 40px 0 24px; color: var(--ink-soft); font-size: .93rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-inner nav { display: flex; flex-direction: column; gap: 6px; font-family: var(--type); }
.footer-brand { font: 1.25rem var(--type); color: var(--ink); margin-bottom: 6px; }
.fineprint { margin-top: 24px; font: .8rem var(--type); }
@media (prefers-reduced-motion: no-preference) {
  .edit del { animation: strike .7s .3s both ease-out; }
  .edit ins { animation: write .5s 1s both ease-out; }
  @keyframes strike { from { text-decoration-color: transparent; } to { text-decoration-color: var(--red); } }
  @keyframes write { from { opacity: 0; transform: translateY(4px) rotate(-3deg); } to { opacity: 1; transform: none; } }
}

/* About photo, taped to the page */
.about-head { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 640px) { .about-head { grid-template-columns: 1fr; } .polaroid { max-width: 220px; } }
.polaroid { margin: 0; background: #fff; padding: 12px 12px 8px; border: 1px solid var(--rule); box-shadow: 4px 5px 0 var(--rule); transform: rotate(-2.5deg); position: relative; }
.polaroid::before { content: ""; position: absolute; top: -12px; left: 50%; width: 84px; height: 24px; margin-left: -42px; background: rgba(255, 242, 168, .75); transform: rotate(3deg); }
.polaroid img { display: block; width: 100%; height: auto; }
.polaroid figcaption { font: 1.4rem var(--hand); color: var(--red); text-align: center; padding-top: 6px; }
.footer-logo { display: block; width: 96px; height: auto; margin-bottom: 8px; }

/* Editing samples: screenshots clipped onto the page */
.samples { display: grid; gap: 32px; margin-top: 24px; }
.sample { margin: 0; background: #fff; border: 1px solid var(--rule); padding: 16px 18px 18px; box-shadow: 4px 5px 0 var(--rule); }
.sample figcaption { font-size: .95rem; color: #5a5f6b; margin-bottom: 10px; }
.sample figcaption .hand { font-size: 1.5rem; margin-right: 6px; }
.sample img { display: block; width: 100%; height: auto; }

/* Pricing page */
.rate-card { display: flex; flex-direction: column; }
.rate-card .card-cta { margin: auto 0 0; padding-top: 8px; }
.assurances { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; padding: 0; margin: 18px 0 0; font: .95rem var(--type); color: var(--ink); }
.assurances li::before { content: "✓ "; font: 1.3em var(--hand); color: var(--red); }
.examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 16px; }
.example { display: grid; gap: 2px; background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--red); padding: 18px 20px; color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.example:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(34, 37, 47, .35); text-decoration: none; }
.example-label { font: .9rem var(--type); color: var(--ink-soft); }
.example-price { font: 600 2.3rem/1.15 var(--serif); }
.example-math { font-size: .88rem; color: var(--ink-soft); }
.other-services { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.other-services h3, .other-services p { margin-bottom: 4px; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; background: var(--card); border: 2px dashed var(--red); padding: 32px 36px; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; color: var(--ink-soft); max-width: 34em; }
.cta-kicker { font-size: 1.6rem !important; color: var(--red) !important; margin-bottom: 2px !important; transform: rotate(-2deg); display: inline-block; }
.cta-actions { display: grid; justify-items: start; gap: 10px; }
.cta-email { font-size: .92rem; }
@media (max-width: 600px) { .cta-band { padding: 24px 20px; } }
