/* Buoy marketing site. Hand-drawn feel: paper background, ink lines, hand-lettered type, wobbly borders. */
:root {
  --paper: #fbfaf5; --paper-2: #f3f1e8; --ink: #1d1c1a; --ink-soft: #5d5a52; --line: #c9c4b4;
  --blue: #2457c5; --blue-soft: #e4ecfb; --marker: #fff2a8; --red: #d4432f;
  --hand: 'Gloria Hallelujah', 'Comic Sans MS', 'Chalkboard SE', cursive;
  --body: 'Patrick Hand', 'Chalkboard SE', 'Comic Sans MS', cursive;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #17181c; --paper-2: #1f2127; --ink: #ecebe4; --ink-soft: #b2afa4; --line: #4a4c55; --blue: #7ea1ff; --blue-soft: #243252; --marker: #4d4420; }
}
* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 21px/1.5 var(--body); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 22px 22px; }
a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-style: wavy; }
img, svg { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 720px; }
.center { text-align: center; }
.hand, h1, h2, h3 { font-family: var(--hand); font-weight: 400; line-height: 1.15; margin: 0 0 .45em; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5.4vw, 56px); }
h2 { font-size: clamp(27px, 3.6vw, 38px); }
h3 { font-size: 23px; }
p { margin: 0 0 1em; }
.lead { font-size: 24px; color: var(--ink-soft); max-width: 640px; }
.muted { color: var(--ink-soft); }
.small { font-size: 16px; }
mark { background: linear-gradient(transparent 35%, var(--marker) 35%, var(--marker) 92%, transparent 92%); color: inherit; padding: 0 3px; }

/* sketchy boxes: uneven radii + ink border, each one tilted a hair */
.sk { border: 2.5px solid var(--ink); border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; background: var(--paper-2); padding: 22px 24px; }
.sk:nth-child(2n) { border-radius: 15px 255px 15px 225px / 225px 15px 255px 15px; transform: rotate(.3deg); }
.sk:nth-child(3n) { transform: rotate(-.4deg); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 22px; font-family: var(--hand); font-size: 20px; color: var(--ink); background: var(--paper); text-decoration: none;
  border: 2.5px solid var(--ink); border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; box-shadow: 3px 3px 0 var(--ink); transition: transform .08s ease, box-shadow .08s ease; }
.btn:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); text-decoration: none; }
.btn.primary { background: var(--blue); color: #fff; border-color: var(--ink); }
.btn.big { font-size: 24px; padding: 14px 30px; }

/* header */
.top { padding: 18px 0 6px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 30px; }
.brand .ring { color: var(--red); }
.links { display: flex; gap: 22px; align-items: center; font-family: var(--hand); font-size: 18px; }
.links a:not(.btn) { color: var(--ink); text-decoration: none; }
.links a:not(.btn):hover { text-decoration: underline wavy; }
.links .btn { font-size: 17px; padding: 7px 16px; }
@media (max-width: 680px) { .links a:not(.btn) { display: none; } }

/* hero */
.hero { padding: 40px 0 24px; }
.hero h1 { max-width: 760px; }
.hero .cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin: 26px 0 10px; }
.hero .fine { font-size: 17px; color: var(--ink-soft); }
.comic { margin: 36px 0 0; }
.comic svg { width: 100%; }
.caption { font-family: var(--hand); font-size: 17px; color: var(--ink-soft); text-align: center; margin-top: 8px; }

/* sections */
section { padding: 64px 0 28px; }
.divider { width: 100%; height: 12px; color: var(--line); margin: 10px 0 0; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 30px; align-items: start; }
@media (max-width: 860px) { .three { grid-template-columns: 1fr; } }
.note { position: relative; }
.note .spot { width: 120px; height: 120px; margin: -6px auto 10px; color: var(--ink); }
.note h3 { text-align: center; }
.note p { margin: 0; font-size: 19px; }

/* taped screenshots */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; margin-top: 30px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; max-width: 460px; } }
.polaroid { background: #fff; padding: 12px 12px 10px; border: 2px solid var(--ink); box-shadow: 4px 5px 0 rgba(0,0,0,.18); transform: rotate(-1.4deg); position: relative; margin: 14px auto 18px; }
.steps > :nth-child(2) .polaroid { transform: rotate(1.1deg); }
.steps > :nth-child(3) .polaroid { transform: rotate(-.6deg); }
.polaroid::before { content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: rgba(255,242,168,.85); border: 1px solid rgba(0,0,0,.12); transform: rotate(-3deg); }
.polaroid img { width: 100%; background: #f3f1e8; }
.steps .polaroid img { aspect-ratio: 5 / 4; object-fit: contain; }
@media (prefers-color-scheme: dark) { .polaroid { background: #23252b; } }
.step h3 { font-size: 24px; }
.step h3 .n { display: inline-block; width: 34px; height: 34px; line-height: 30px; text-align: center; border: 2.5px solid var(--ink); border-radius: 50%; margin-right: 10px; font-size: 19px; }
.step p { font-size: 19px; }

/* credits ledger */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .ledger { grid-template-columns: 1fr; } }
.ledger ul { list-style: none; padding: 0; margin: 0; font-size: 22px; }
.ledger li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 2px dashed var(--line); }
.ledger li b { font-family: var(--hand); font-weight: 400; }

/* honest list */
.nots { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; max-width: 760px; }
.nots li { padding-left: 46px; position: relative; font-size: 21px; }
.nots li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 22px; height: 22px; border: 2.5px solid var(--ink); border-radius: 40% 60% 55% 45%; }
.nots li.x::after { content: "✕"; position: absolute; left: 10px; top: 1px; color: var(--red); font-size: 22px; font-family: var(--hand); }
.nots li.ok::after { content: "✓"; position: absolute; left: 9px; top: 0; color: var(--blue); font-size: 24px; font-family: var(--hand); }

/* blog */
.post-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 20px; }
.post-card h3 { margin: 0 0 6px; }
.post-card a { text-decoration: none; color: var(--ink); }
.post-card a:hover h3 { text-decoration: underline wavy; text-decoration-color: var(--blue); }
.post-card p { margin: 0 0 8px; font-size: 19px; }
.meta { font-family: var(--hand); font-size: 16px; color: var(--ink-soft); }
.post { margin-top: 20px; }
.post header { margin-bottom: 28px; }
.post p, .post li { font-size: 21px; }
.post blockquote { margin: 24px 0; padding: 4px 22px; border-left: 4px solid var(--ink); font-size: 22px; }
.post h2 { margin-top: 44px; }
.post h3 { margin-top: 30px; }
.post hr { border: 0; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7c60-6 120 4 180-1s120-7 180-2 120 6 236 1' fill='none' stroke='%23c9c4b4' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 12px no-repeat; margin: 40px 0; }
.post sup a { text-decoration: none; }
.post .sources { font-size: 17px; color: var(--ink-soft); }
.post .sources li { margin-bottom: 8px; word-break: break-word; }
.post table { border-collapse: collapse; font-size: 18px; width: 100%; margin: 20px 0; }
.post th, .post td { border-bottom: 2px dashed var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.post th { font-family: var(--hand); font-weight: 400; }
.more { margin-top: 56px; }

/* faq */
details { border-bottom: 2px dashed var(--line); padding: 14px 0; }
summary { cursor: pointer; font-family: var(--hand); font-size: 21px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ink-soft); }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--ink-soft); }

/* footer */
.foot { padding: 44px 0 40px; margin-top: 50px; }
.foot .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 20px; }
.flinks { display: flex; gap: 18px; flex-wrap: wrap; align-items: start; font-family: var(--hand); font-size: 17px; }
.flinks a { color: var(--ink); }

/* final */
.final { text-align: center; padding: 70px 0 20px; }
.final .lead { margin: 0 auto 24px; }

/* illustrations share one stroke style */
.sketch { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sketch text, .comic text { font-family: var(--hand); fill: currentColor; stroke: none; }
.comic .panel { fill: var(--paper); }
