:root {
  color-scheme: light;
  --ink: #29213d;
  --muted: #716880;
  --paper: #fffdf4;
  --pink: #f66a96;
  --red: #ee554b;
  --blue: #438ce1;
  --yellow: #f9d948;
  --green: #60ad73;
  --purple: #9870d1;
  font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", ui-rounded, system-ui, sans-serif;
  color: var(--ink);
  background: #d7efff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
:root { scrollbar-width: none; }
::-webkit-scrollbar { display: none; }
.scrollbar-rail {
  position: fixed;
  z-index: 1000;
  inset: 0 0 0 auto;
  width: 14px;
  overflow: hidden;
  background: #ef554b;
  pointer-events: none;
}
.scrollbar-squiggle {
  position: absolute;
  inset: 0 0 auto;
  height: 100vh;
  height: 100dvh;
  background: url("/scrollbar-squiggle-thumb.svg") center top / 14px 40px repeat-y;
  transform: translate3d(0, var(--scroll-offset, 0px), 0);
  will-change: transform;
}
body {
  margin: 0;
  min-width: 320px;
  background-color: #d7efff;
  background-image:
    radial-gradient(ellipse at 9% 13%, #ffe67c 0 2px, transparent 3px),
    radial-gradient(ellipse at 84% 37%, #f9a5bd 0 3px, transparent 4px),
    radial-gradient(ellipse at 70% 88%, #9fd9a9 0 2px, transparent 3px),
    radial-gradient(ellipse at 25% 72%, #c4a4ed 0 2px, transparent 3px);
  background-size: 131px 107px, 157px 139px, 113px 151px, 173px 127px;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }

.cloudflare-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-bottom: 3px dashed #e87939;
  background: #fff3d2;
  color: #57402c;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.cloudflare-banner-copy {
  display: flex;
  grid-column: 2;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.banner-account { grid-column: 3; justify-self: end; white-space: nowrap; }
.banner-label {
  padding: 3px 8px;
  transform: rotate(-2deg);
  border: 2px solid #e87533;
  border-radius: 48% 53% 45% 56%;
  color: #b94a0d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}

main, .bottom-brand-rail { width: min(100% - 48px, 1060px); margin-inline: auto; }
.text-button { color: #534778; }
.text-button:hover, .back-link:hover { color: #e64f73; }
.admin-link {
  padding: 7px 11px;
  transform: rotate(2deg);
  border: 2px solid #ed6c84;
  border-radius: 48% 52% 43% 57%;
  background: #ffe3ec;
}
.banner-account.admin-link { font-size: 11px; font-weight: 900; }
.nav-form { margin: 0; }
.text-button {
  padding: 8px 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

main { min-height: calc(100vh - 260px); }
.intro { padding: clamp(62px, 10vw, 112px) 0 72px; }
.eyebrow {
  margin: 0 0 18px;
  color: #51875d;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: .11em;
  line-height: 1.6;
  text-transform: uppercase;
}
.eyebrow-line {
  display: inline-block;
  width: 27px;
  height: 4px;
  margin: 0 8px 3px 0;
  transform: rotate(-7deg);
  border-radius: 50%;
  background: var(--pink);
}
.intro h1, .single-post h1, .auth-card h1, .admin-intro h1, .not-found h1 {
  margin: 0;
  font-size: clamp(43px, 7vw, 78px);
  font-weight: 1000;
  line-height: 1.02;
  letter-spacing: -.06em;
  text-shadow: 2px 2px 0 #fff, 4px 4px 0 #a7d8ff;
}
.intro h1 em { color: #e75376; font-style: normal; }
.intro-copy {
  max-width: 500px;
  margin: 22px 0 0;
  color: #5e5871;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.8;
}

.feed { padding-bottom: 94px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { margin: 0; font-size: 27px; font-weight: 1000; letter-spacing: -.04em; }
.feed-note, .post-count {
  padding: 6px 10px;
  transform: rotate(2deg);
  border: 2px solid #dcb82d;
  border-radius: 45% 52% 48% 50%;
  background: #fff0a5;
  color: #65532b;
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: .08em;
}
.coming-soon {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  transform: rotate(.45deg);
  border: 4px dashed #9374ce;
  border-radius: 18px 24px 16px 27px;
  background: #fffdf4;
  box-shadow: 7px 7px 0 #baa1e8;
  text-align: center;
}
.coming-icon { color: #f0ad26; font-size: 29px; text-shadow: 2px 2px #f8e6a1; }
.coming-soon h3 { margin: 10px 0 6px; color: #604d91; font-size: 27px; font-weight: 1000; }
.coming-soon p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 650; line-height: 1.7; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.post-card { overflow: hidden; transform: rotate(-.35deg); border: 3px solid #5d8ddd; border-radius: 16px 21px 13px 20px; background: var(--paper); box-shadow: 5px 6px 0 #5d8ddd; }
.post-card:nth-child(even) { transform: rotate(.55deg); border-color: #ef748b; box-shadow: 5px 6px 0 #ef748b; }
.post-card-link { display: block; height: 100%; }
.post-card-copy { padding: 22px; }
.post-card-copy .eyebrow { margin-bottom: 8px; font-size: 9px; }
.post-card h3 { margin: 0 0 10px; font-size: 23px; font-weight: 1000; line-height: 1.25; }
.post-card-copy > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; font-weight: 650; line-height: 1.8; }
.read-more { display: inline-block; margin-top: 17px; color: #4879c8; font-size: 12px; font-weight: 1000; }
.read-more span { padding-left: 4px; }
.post-media { overflow: hidden; margin: 0; border: 3px solid #f1c83e; border-radius: 15px; background: #fff3ae; }
.post-media img, .post-media video { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.post-card .post-media img, .post-card .post-media video { height: 230px; }

.single-post { max-width: 760px; margin: 0 auto; padding: 55px 0 96px; }
.back-link { display: inline-block; margin-bottom: 35px; color: #5b65a1; font-size: 13px; font-weight: 900; }
.post-header { margin-bottom: 25px; }
.post-header .eyebrow { margin-bottom: 12px; }
.single-post h1 { font-size: clamp(38px, 6vw, 64px); }
.single-post > .post-media { margin-bottom: 29px; }
.post-copy { color: #494459; font-size: 16px; font-weight: 600; line-height: 1.95; white-space: normal; }

.auth-card {
  width: min(100%, 500px);
  margin: 78px auto 100px;
  padding: 32px;
  transform: rotate(.35deg);
  border: 4px solid #f0748b;
  border-radius: 22px 16px 25px 17px;
  background: #fffdf4;
  box-shadow: 7px 8px 0 #e7a2c2;
}
.auth-card .eyebrow, .admin-intro .eyebrow { margin-bottom: 10px; }
.auth-card h1 { font-size: 36px; }
.auth-card > p:not(.eyebrow) { color: var(--muted); font-size: 13px; font-weight: 650; line-height: 1.75; }
.auth-card code { display: inline; padding: 2px 5px; border-radius: 5px; background: #e5f4ff; color: #34444c; font-size: 11px; overflow-wrap: anywhere; }
.quiet { color: #7a7187 !important; font-size: 11px !important; }
.login-form, .editor-form { display: flex; flex-direction: column; }
.login-form { gap: 9px; margin-top: 22px; }
.login-form label, .editor-form label { margin-top: 9px; color: #504663; font-size: 12px; font-weight: 1000; }
.login-form input, .editor-form input[type="text"], .editor-form textarea, .editor-form input[type="file"] {
  width: 100%;
  padding: 12px 13px;
  border: 3px solid #7ba8e9;
  border-radius: 12px 8px 14px 9px;
  background: #fff;
  color: var(--ink);
}
.login-form input:focus, .editor-form input:focus, .editor-form textarea:focus { outline: 3px dashed #e98bac; outline-offset: 3px; }
.editor-form textarea { resize: vertical; line-height: 1.65; }
.editor-form input[type="file"] { padding: 9px; font-size: 11px; }
.field-help { margin: 6px 0 7px; color: var(--muted); font-size: 10px; }
.label-optional { color: var(--muted); font-weight: 650; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 0 18px;
  transform: rotate(-1deg);
  border: 3px solid #4f8658;
  border-radius: 43% 53% 47% 54%;
  font-size: 12px;
  font-weight: 1000;
  cursor: pointer;
}
.button-primary { background: #8cda8d; color: #263d2b; box-shadow: 3px 4px 0 #55935d; }
.button-primary:hover { transform: rotate(1deg) scale(1.03); background: #a4e7a4; }
.login-form .button { margin-top: 11px; }
.notice { padding: 12px 14px; border: 3px dashed currentColor; border-radius: 11px 15px 10px 14px; font-size: 12px; font-weight: 700; line-height: 1.55; }
.notice-error { background: #fff0ed; color: #9c3d2c; }
.notice-success { background: #effbea; color: #3e6b4d; }

.admin-intro { padding: 58px 0 27px; }
.admin-intro h1 { font-size: clamp(39px, 6vw, 58px); }
.admin-intro > p:last-child { color: var(--muted); font-size: 13px; font-weight: 650; line-height: 1.7; }
.editor-card { max-width: 760px; padding: 25px; border: 4px solid #e9c73d; border-radius: 19px 15px 22px 13px; background: #fffdf4; box-shadow: 6px 7px 0 #e6d476; }
.editor-form { gap: 9px; }
.editor-form .button { align-self: flex-start; margin-top: 10px; }
.manage-posts { padding: 50px 0 90px; }
.manage-posts .section-heading { margin-bottom: 14px; }
.manage-list { margin: 0; padding: 0; border-top: 3px dashed #91a7d0; list-style: none; }
.manage-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px; border-bottom: 3px dashed #91a7d0; }
.manage-list li > a { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.manage-list li strong { overflow: hidden; font-size: 16px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.manage-list li small { color: var(--muted); font-size: 10px; }
.manage-list li form { flex: 0 0 auto; }
.delete-button { padding: 5px 9px; transform: rotate(2deg); border: 2px solid #ed687b; border-radius: 40%; background: #ffe5e8; color: #934047; font-size: 10px; font-weight: 900; cursor: pointer; }
.empty-note { padding: 18px; transform: rotate(-.5deg); border: 3px dashed #92a7d6; border-radius: 13px; background: #fffdf4; color: var(--muted); font-size: 12px; text-align: center; }
.not-found { padding: 90px 0; }
.not-found h1 { font-size: 47px; }
.not-found > p:not(.eyebrow) { margin: 15px 0 23px; color: var(--muted); }
.bottom-brand-rail {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: flex-end;
  padding: 9px 14px;
}
.powered-by-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  transform: rotate(.3deg);
  border: 1px solid #718ac6;
  border-radius: 15px 22px 13px 20px;
  background: #29213d;
}
.powered-by-pill img { display: block; width: 167px; height: auto; }

@media (max-width: 900px) {
  .cloudflare-banner { grid-template-columns: minmax(0, 1fr) auto; }
  .cloudflare-banner-copy { grid-column: 1; }
  .banner-account { grid-column: 2; }
}

@media (max-width: 650px) {
  .cloudflare-banner { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 9px; padding-inline: 10px; font-size: 10px; text-align: left; }
  .cloudflare-banner-copy { grid-column: 1; flex-wrap: wrap; justify-content: flex-start; gap: 4px 7px; }
  .banner-account { grid-column: 2; grid-row: 1; align-self: center; }
  main, .bottom-brand-rail { width: min(100% - 30px, 1060px); }
  .admin-link { padding: 5px 7px; }
  .intro { padding: 67px 0 56px; }
  .intro h1 { font-size: clamp(43px, 13vw, 65px); }
  .intro-copy { font-size: 13px; }
  .post-grid { grid-template-columns: 1fr; gap: 20px; }
  .post-card .post-media img, .post-card .post-media video { height: 210px; }
  .auth-card { margin: 50px auto 76px; padding: 24px 19px; }
  .editor-card { padding: 18px; }
  .feed { padding-bottom: 69px; }
  .bottom-brand-rail { min-height: 72px; justify-content: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .post-card, .button, .banner-account { transition: transform .18s ease, background-color .18s ease; }
  .post-card:hover { transform: rotate(0) translateY(-3px); }
}

@media print {
  .cloudflare-banner, .bottom-brand-rail, .scrollbar-rail { display: none; }
  body { background: #fff; }
  main { width: 100%; }
}
