/* zedginidze.com: crayon drawings on pure white, hand-lettered headings, crisp Inter body. */
@font-face { font-family: "Gochi Hand"; src: url("/fonts/gochi-hand.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Patrick Hand"; src: url("/fonts/patrick-hand.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --ground: #ffffff;
  --ink: #1b2340;
  --muted: #4a5372;
  --soft: #6b7491;
  --red: #ef3b2d;
  --blue: #2f6bff;
  --yellow: #ffc928;
  --green: #22b35a;
  --sky: #eaf3ff;
  --hand: "Gochi Hand", "Patrick Hand", cursive;
  --print: "Patrick Hand", "Gochi Hand", cursive;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--hand); font-weight: 400; letter-spacing: 0; margin: 0; line-height: 1.05; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.defs { position: absolute; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(720px + var(--gutter) * 2); }

/* Hand-drawn outlines sit behind each element's content. */
[data-sketch] { position: relative; isolation: isolate; }
svg.sk { position: absolute; z-index: -1; pointer-events: none; overflow: visible; }

/* Buttons and chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 26px; border: 0; background: none; cursor: pointer;
  font: 400 26px/1 var(--hand); color: #fff; text-decoration: none; white-space: nowrap;
  transition: transform .1s var(--ease);
}
.btn > span, .btn > .icon { text-shadow: 0 1px 0 rgba(27, 35, 64, .35); }
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn:active { transform: translateY(1px) scale(.98); transition-duration: .04s; }
.btn-sm { height: 44px; padding: 0 18px; font-size: 22px; }
.btn .icon { width: 22px; height: 22px; }
.icon { width: 20px; height: 20px; flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px;
  border: 2px solid var(--ink); border-radius: 12px 9px 13px 10px / 10px 13px 9px 12px;
  background: #fff; cursor: pointer; text-decoration: none;
  font: 400 21px/1 var(--print); color: var(--ink);
  transition: background-color .1s, transform .1s var(--ease);
}
.chip img { width: 28px; height: 28px; object-fit: contain; }
.chip:hover { background: var(--sky); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip[aria-pressed="true"] img { filter: drop-shadow(0 0 0 #fff); }
.chip-n { font: 600 14px/1 var(--sans); padding: 4px 7px; border-radius: 99px; background: var(--sky); color: var(--ink); }
.chip[aria-pressed="true"] .chip-n { background: var(--yellow); }

.icon-btn {
  display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 0; background: #fff; border-radius: 50%; cursor: pointer;
  transition: transform .1s var(--ease), background-color .1s;
}
.icon-btn:hover { background: var(--sky); transform: scale(1.06); }

/* Header */
.site-header { padding-top: 18px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 31px/1 var(--hand); white-space: nowrap; }
.wordmark img { width: 44px; height: 44px; transition: transform .25s var(--ease); }
.wordmark:hover img { transform: rotate(40deg); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > a:not(.btn) { padding: 8px 14px; font: 400 23px/1 var(--print); text-decoration: none; border-radius: 10px; transition: background-color .1s; }
.nav > a:not(.btn):hover { background: var(--sky); }
.nav > a[aria-current="page"] { text-decoration: underline wavy var(--red) 2px; text-underline-offset: 7px; }
.nav .btn { margin-left: 8px; }

/* Signup form */
.signup { width: 100%; max-width: 540px; }
.signup-row { display: flex; gap: 12px; align-items: stretch; }
.field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 18px 0 16px; cursor: text; }
.field-icon { width: 34px; height: auto; flex: none; }
.field input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0;
  font: 500 18px/1 var(--sans); color: var(--ink); -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #8b93ad; }
.field:focus-within { outline: 3px solid var(--blue); outline-offset: 6px; border-radius: 8px; }
.signup .btn { height: 60px; }
.signup-note { margin-top: 12px; font: 400 19px/1.3 var(--print); color: var(--muted); min-height: 25px; }
.signup.is-busy .btn { opacity: .7; cursor: progress; }
.signup.is-done .signup-note { color: var(--green); font-family: var(--hand); font-size: 23px; }
.signup.is-error .field { animation: nudge .2s; }
@keyframes nudge { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px;
  align-items: center; padding-top: 44px; padding-bottom: 48px;
}
.hero-label { display: inline-block; font: 400 24px/1 var(--print); color: var(--blue); margin-bottom: 18px; }
.hero h1 { font-size: clamp(46px, 5.6vw, 70px); line-height: 1.02; }
.ring { display: inline-block; }
.lede { margin-top: 22px; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 33em; }
.hero .signup { margin-top: 30px; }

.hero-scene { position: relative; display: flex; align-items: flex-end; padding-bottom: 20px; }
.fridge { flex: 1; min-width: 0; display: flex; flex-direction: column; margin-right: 18px; }
.freezer { position: relative; height: clamp(116px, 19%, 150px); display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 0 26px 0 56px; }
.apple { width: 76px; transform: rotate(-8deg); margin-right: auto; }
.note {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 14px; text-decoration: none;
  transform: rotate(2deg); transition: transform .1s var(--ease);
}
.note:hover { transform: rotate(0) translateY(-2px); }
.note-num { font: 400 46px/1 var(--hand); color: var(--red); }
.note-text { font: 400 19px/1.1 var(--print); }
.fridge-door {
  list-style: none; margin: 0; padding: 34px 26px 38px 56px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 18px;
}
.stuck { position: relative; transform: rotate(var(--tilt)); transition: transform .1s var(--ease); }
.stuck:hover, .stuck:focus-within { transform: rotate(0) translateY(-4px) scale(1.04); z-index: 2; }
.stuck-btn { display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; box-shadow: 0 0 0 1.5px rgba(27, 35, 64, .18), 3px 4px 0 rgba(27, 35, 64, .12); transition: box-shadow .1s; }
.stuck:hover .stuck-btn { box-shadow: 0 0 0 1.5px rgba(27, 35, 64, .3), 6px 8px 0 rgba(27, 35, 64, .12); }
.stuck-btn img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.magnet { position: absolute; top: -12px; left: 50%; width: 26px; height: 24px; margin-left: -13px; pointer-events: none; transition: transform .1s var(--ease); }
.stuck:hover .magnet { transform: rotate(-12deg) translateY(-2px); }
.kid { width: 150px; flex: none; transform: scaleX(-1); margin-bottom: -6px; margin-left: -6px; }
.hero-ground { position: absolute; left: -14px; right: -14px; bottom: 0; height: 8px; }
.ground { display: block; height: 8px; }

/* Section shared */
section + section { margin-top: 24px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.section-head p, .topics > p { margin-top: 12px; color: var(--muted); font-size: 18px; max-width: 36em; }
h2 { font-size: clamp(38px, 4vw, 50px); }
.head-art { width: 150px; flex: none; transform: rotate(6deg); }

/* One issue */
.issue { padding-top: 40px; padding-bottom: 24px; }
.issue .section-head { padding-right: 200px; }
.mail { padding: 30px 34px 22px; }
.mail-art { position: absolute; right: 36px; top: -96px; width: 150px; transform: rotate(5deg); }
.mail-top { display: grid; gap: 4px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 2px dashed rgba(27, 35, 64, .3); font-size: 17px; padding-right: 150px; }
.mail-k { display: inline-block; width: 74px; font: 400 19px/1 var(--print); color: var(--soft); }
.mail-top b { font-weight: 600; }
.mail-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.mail-list li { border-bottom: 1px solid rgba(27, 35, 64, .12); }
.mail-list li:nth-last-child(-n + 2):nth-child(odd), .mail-list li:last-child { border-bottom: 0; }
.mail-row {
  display: flex; align-items: center; gap: 16px; width: 100%; padding: 12px 8px; margin: 2px -8px;
  border: 0; background: none; text-align: left; cursor: zoom-in; border-radius: 10px;
  transition: background-color .1s;
}
.mail-row:hover { background: var(--sky); }
.mail-row img { width: 60px; flex: none; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 0 0 1.5px rgba(27, 35, 64, .2); transform: rotate(-2deg); }
.mail-text { display: grid; gap: 3px; min-width: 0; }
.mail-title { font: 400 23px/1.1 var(--hand); }
.mail-row:hover .mail-title { color: var(--blue); }
.mail-meta { font-size: 15px; color: var(--soft); }

/* Topics */
.topics { padding-top: 56px; padding-bottom: 16px; }
.topic-grid { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.topic-link { display: grid; text-decoration: none; padding: 0 0 8px; }
.topic-art { height: 170px; display: flex; align-items: flex-end; justify-content: center; }
.topic-art img { max-height: 160px; width: auto; transition: transform .12s var(--ease); }
.topic-link:hover .topic-art img { transform: translateY(-6px) rotate(-3deg); }
.topic-link .ground { margin: 2px 0 18px; }
.topic-name { font: 400 33px/1.05 var(--hand); }
.topic-link:hover .topic-name { color: var(--blue); }
.topic-line { margin-top: 8px; color: var(--muted); }
.topic-count { justify-self: start; margin-top: 14px; font: 400 21px/1 var(--print); padding-bottom: 6px; }

/* Closing call */
.cta { padding-top: 48px; padding-bottom: 72px; }
.cta-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; padding: 48px 56px; }
.cta-copy p { margin: 12px 0 26px; color: var(--muted); font-size: 18px; }
.cta-art { width: 280px; margin-bottom: -10px; }

/* Footer */
.site-footer { padding-bottom: 40px; }
.footer-inner { display: grid; justify-items: center; gap: 18px; }
.footer-inner .ground { width: 100%; margin-bottom: 10px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font: 400 21px/1 var(--print); }
.footer-nav a { text-decoration: none; padding: 6px 4px; }
.footer-nav a:hover { color: var(--blue); }
.credit { font: 400 22px/1 var(--hand); }
.credit a { text-decoration: none; }
.credit a:hover { color: var(--red); }

/* Archive */
.page-head { padding-top: 40px; }
.archive-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.page-head h1, .about h1, .prose-page h1, .done h1 { font-size: clamp(44px, 5vw, 62px); }
.archive-head .head-art { width: 200px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 46px; }
.board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 52px 34px; }
.pin { position: relative; transform: rotate(var(--tilt)); transition: transform .1s var(--ease); }
.pin[hidden] { display: none; }
.pin:hover { transform: rotate(0) translateY(-4px); }
.pin-btn { display: grid; gap: 6px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; }
.pin-btn img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 0 0 1.5px rgba(27, 35, 64, .18), 3px 4px 0 rgba(27, 35, 64, .12); margin-bottom: 8px; transition: box-shadow .1s; }
.pin:hover .pin-btn img { box-shadow: 0 0 0 1.5px rgba(27, 35, 64, .3), 6px 8px 0 rgba(27, 35, 64, .12); }
.pin-title { font: 400 23px/1.1 var(--hand); }
.pin:hover .pin-title { color: var(--blue); }
.pin-meta { font-size: 15px; color: var(--soft); }
.page-archive .cta { padding-top: 90px; }

/* About, privacy, done */
.about { display: grid; justify-items: center; text-align: center; padding-top: 48px; padding-bottom: 72px; }
.avatar { width: 168px; height: 168px; margin-bottom: 30px; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.prose { margin-top: 22px; display: grid; gap: 16px; font-size: 18.5px; line-height: 1.7; color: #2b3352; text-align: left; }
.prose a { text-decoration-color: var(--blue); text-underline-offset: 3px; }
.profiles { list-style: none; display: flex; gap: 12px; padding: 0; margin: 34px 0 0; }
.profiles .icon { width: 20px; height: 20px; }
.about-signup { margin-top: 64px; width: 100%; display: grid; justify-items: center; gap: 22px; }
.about-signup h2 { font-size: 38px; }
.about-signup .signup-note { text-align: center; }
.prose-page { padding-top: 48px; padding-bottom: 80px; }
.done { display: grid; justify-items: center; text-align: center; padding-top: 56px; padding-bottom: 96px; gap: 8px; }
.done img { width: 190px; margin-bottom: 16px; }
.done .lede { margin: 12px auto 30px; }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1060px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: visible; }
.lightbox::backdrop { background: rgba(255, 255, 255, .94); }
.lightbox[open] { animation: pop .12s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.lightbox-inner { position: relative; display: grid; grid-template-columns: auto 300px; gap: 36px; align-items: center; }
.lightbox-img { height: min(calc(100dvh - 64px), 900px); width: auto; aspect-ratio: 4 / 5; box-shadow: 0 0 0 1.5px rgba(27, 35, 64, .25), 8px 10px 0 rgba(27, 35, 64, .1); background: #fff; }
.lightbox-side { display: grid; gap: 14px; justify-items: start; }
.lightbox-meta { font: 400 20px/1.2 var(--print); color: var(--soft); }
.lightbox-title { font-size: 36px; line-height: 1.08; }
.lightbox-side .btn { margin-top: 10px; font-size: 22px; height: 52px; }
.lightbox-nav { display: flex; gap: 12px; margin-top: 8px; }
.lightbox-close { position: absolute; top: 0; right: 0; }

/* Reveal: hidden before paint by the head script, shown by client.js or the 2s failsafe. */
.js-reveal [data-reveal] { opacity: 0; }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 28px; }
  .hero-copy { max-width: 640px; }
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lightbox-inner { grid-template-columns: 1fr; gap: 18px; justify-items: center; }
  .lightbox-img { height: auto; width: min(100%, calc((100dvh - 230px) * .8)); }
  .lightbox-side { justify-items: center; text-align: center; }
  .lightbox-close { top: -8px; right: -8px; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16.5px; }
  .site-header { padding-top: 10px; }
  .wordmark { font-size: 24px; gap: 8px; }
  .wordmark img { width: 36px; height: 36px; }
  .nav > a:not(.btn) { display: none; }
  .hero h1 { font-size: 44px; }
  .lede { font-size: 17.5px; }
  .signup-row { flex-direction: column; }
  .signup-row .field { flex: none; }
  .signup .btn { width: 100%; }
  .kid { display: none; }
  .fridge { margin-right: 0; }
  .freezer { padding: 0 16px 0 40px; height: 108px; }
  .apple { width: 60px; }
  .fridge-door { padding: 26px 14px 30px 40px; gap: 22px 12px; }
  .hero-ground { left: -6px; right: -6px; }
  .section-head { align-items: flex-start; }
  .issue .section-head { padding-right: 0; margin-bottom: 76px; }
  .head-art { width: 96px; }
  .mail { padding: 22px 18px 14px; }
  .mail-art { width: 92px; top: -64px; right: 14px; }
  .mail-top { padding-right: 0; font-size: 15.5px; }
  .mail-list { grid-template-columns: 1fr; }
  .mail-list li:nth-last-child(-n + 2):nth-child(odd) { border-bottom: 1px solid rgba(27, 35, 64, .12); }
  .mail-list li:last-child { border-bottom: 0; }
  .topic-grid { grid-template-columns: 1fr; gap: 36px; }
  .topic-art { height: 130px; }
  .topic-art img { max-height: 124px; }
  .cta-panel { grid-template-columns: 1fr; padding: 32px 22px; gap: 10px; }
  .cta-art { display: none; }
  .archive-head .head-art { display: none; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 18px; }
  .pin-title { font-size: 20px; }
  .lightbox-title { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
