/* =========================================================
   Computação Quântica: Menos Física, mais Lógica de Programação
   Estética: papel creme + lápis de cor "pintado fora da linha"
   ========================================================= */

:root {
  --paper:   #f4eedc;
  --paper-2: #fbf7ea;
  --ink:     #2b2722;
  --ink-soft:#5d554b;
  --sage:    #9fc29a;
  --lav:     #c7b3e0;
  --rose:    #eab2ac;
  --tan:     #e2c58f;
  --blue:    #9cc3d9;
  --peach:   #f2c09a;
  --mint:    #b3dcc6;
  --lemon:   #f1df8f;

  --hand: 'Caveat', 'Segoe Print', cursive;
  --ui:   'Patrick Hand', 'Segoe Print', cursive;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* bordas "desenhadas à mão" */
  --rough:  255px 15px 225px 15px / 15px 225px 15px 255px;
  --rough2: 15px 255px 15px 225px / 225px 15px 255px 15px;
  --blob:   46% 54% 42% 58% / 55% 45% 55% 45%;
}

* { box-sizing: border-box; }

:root { color-scheme: only light; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  background-color: var(--paper);
  /* textura de papel */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .42  0 0 0 0 .36  0 0 0 0 .25  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { max-width: 100%; }

::selection { background: var(--tan); }

:focus-visible {
  outline: 2.5px dashed var(--ink);
  outline-offset: 3px;
}

/* ---------- doodles ---------- */
[data-doodle] svg { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- pintura de giz de cera (vaza da margem) ---------- */
.hl {
  position: relative;
  isolation: isolate;
  white-space: nowrap;
}
.hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.12em; right: -.25em;
  top: .32em; bottom: .02em;
  background: var(--paint, var(--tan));
  border-radius: var(--blob);
  transform: rotate(-1.6deg) translate(.08em, .05em);
  filter: url(#crayon);
  opacity: .9;
}

/* ---------- topo ---------- */
.masthead {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 8px;
  display: grid;
  grid-template-columns: 230px 1fr 190px;
  align-items: center;
  gap: 18px;
}

.masthead-art { position: relative; }
.masthead-art.left .curl-down { width: 70px; margin: -6px 0 0 120px; transform: rotate(18deg); }
.masthead-art.right .scribble-label {
  display: block;
  font-family: var(--hand);
  font-size: 1.45rem;
  transform: rotate(-6deg);
  margin: 0 0 -8px -24px;
}

.masthead-title, .sidebar, .layout > * { min-width: 0; }
.brand { text-decoration: none; display: block; }

.masthead h1 {
  margin: 0;
  text-align: center;
  font-family: var(--hand);
  font-weight: 700;
  line-height: 1.02;
}
.masthead .t1 { display: block; font-size: clamp(2.8rem, 6vw, 4.7rem); }
.masthead .t2 { display: block; font-size: clamp(1.6rem, 3.2vw, 2.45rem); font-weight: 600; margin-top: .2em; }
.masthead .t2 .hl { white-space: normal; }

.byline {
  text-align: center;
  margin: .6rem 0 .3rem;
  font-family: var(--ui);
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.topnav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-family: var(--ui);
  font-size: 1.2rem;
}
.topnav a {
  text-decoration: none;
  padding: 0 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='10' viewBox='0 0 120 10' preserveAspectRatio='none'><path d='M2 6 C 20 1, 30 9, 50 5 S 85 2, 118 6' fill='none' stroke='%232b2722' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 8px;
  transition: background-size .25s ease;
}
.topnav a:hover, .topnav a.active { background-size: 100% 8px; }

/* ---------- layout ---------- */
.layout {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: start;
}

main, main:focus, main:focus-visible { min-width: 0; outline: none; }

/* ---------- barra lateral ---------- */
.sidebar { display: flex; flex-direction: column; gap: 30px; }

.widget {
  position: relative;
  isolation: isolate;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: var(--rough);
  padding: 20px 22px 22px;
}
.widget:nth-child(2) { border-radius: var(--rough2); }

.widget h2 {
  font-family: var(--hand);
  font-size: 2rem;
  line-height: 1;
  margin: 0 0 12px;
  display: inline-block;
  padding-bottom: 6px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='10' viewBox='0 0 120 10' preserveAspectRatio='none'><path d='M2 6 C 20 1, 30 9, 50 5 S 85 2, 118 6' fill='none' stroke='%232b2722' stroke-width='2' stroke-linecap='round'/></svg>") no-repeat 0 100% / 100% 8px;
}

.about::before {
  /* mancha de cor escapando do card */
  content: "";
  position: absolute;
  z-index: -1;
  width: 150px; height: 120px;
  top: -18px; right: -16px;
  background: var(--paint);
  border-radius: var(--blob);
  transform: rotate(8deg);
  filter: url(#crayon);
}

.avatar {
  width: 118px;
  margin: -4px auto 6px;
}
.avatar { position: relative; isolation: isolate; }
.avatar:has(img)::before {
  /* giz de cera "pintado fora da linha" atrás da foto */
  content: "";
  position: absolute;
  z-index: -1;
  inset: -9px -13px -5px -7px;
  background: var(--lav);
  border-radius: var(--blob);
  filter: url(#crayon);
  transform: rotate(-7deg);
}
.avatar img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--ink);
}

.about p { font-size: .98rem; margin: 0 0 6px; }

.more {
  font-family: var(--ui);
  font-size: 1.12rem;
  text-decoration: none;
  display: inline-block;
  transition: transform .15s;
}
.more:hover { transform: translateX(4px) rotate(-1deg); text-decoration: underline wavy; }

.social-title {
  font-family: var(--hand);
  font-size: 1.45rem;
  margin: 18px 0 8px;
}

.social { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-social {
  --paint: var(--tan);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px 5px 10px;
  font-family: var(--ui);
  font-size: 1.06rem;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: var(--rough2);
  background: transparent;
  transition: transform .15s ease;
}
.btn-social::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4px -6px -5px 6px;
  background: var(--paint);
  border-radius: var(--blob);
  filter: url(#crayon);
  transform: rotate(-3deg);
}
.btn-social svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.btn-social:hover { transform: rotate(-3deg) scale(1.05); }
.btn-social.instagram { --paint: var(--rose); }
.btn-social.linkedin  { --paint: var(--blue); }
.btn-social.github    { --paint: var(--lav); }
.btn-social.pending   { border-style: dashed; }

/* categorias */
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li + li { margin-top: 4px; }
.cat-list a {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  font-family: var(--ui);
  font-size: 1.2rem;
  line-height: 1.25;
  text-decoration: none;
  border-radius: var(--rough);
  transition: transform .15s;
}
.cat-list a:hover { transform: translateX(3px) rotate(-.6deg); }
.cat-list .swatch {
  position: relative;
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border: 2px solid var(--ink);
  border-radius: 4px 7px 3px 6px;
}
.cat-list .swatch::before {
  content: "";
  position: absolute;
  inset: 3px -6px -5px 4px;
  background: var(--paint);
  border-radius: var(--blob);
  filter: url(#crayon);
  z-index: -1;
}
.cat-list .count {
  margin-left: auto;
  font-size: .95rem;
  color: var(--ink-soft);
}
.cat-list a.active::before {
  content: "";
  position: absolute;
  inset: 2px -4px 0 -2px;
  z-index: -2;
  background: var(--paint);
  opacity: .55;
  border-radius: var(--blob);
  filter: url(#crayon);
  transform: rotate(-1deg);
}

/* tags */
.tag-cloud, .tags { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.tags { list-style: none; margin: 10px 0 0; padding: 0; }
.tag {
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 2px 9px 1px;
  border: 1.6px solid var(--ink);
  border-radius: var(--rough2);
  background: var(--paper);
  transition: background .15s, transform .15s;
}
.tag:hover, .tag.active { background: var(--tan); transform: rotate(-2deg); }
.tag-cloud .tag:nth-child(5n+1):hover { background: var(--sage); }
.tag-cloud .tag:nth-child(5n+2):hover { background: var(--lav); }
.tag-cloud .tag:nth-child(5n+3):hover { background: var(--rose); }
.tag-cloud .tag:nth-child(5n+4):hover { background: var(--blue); }

/* ---------- conteúdo principal ---------- */
.page-head { margin: 0 0 26px; }
.page-head .eyebrow {
  font-family: var(--ui);
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0;
}
.page-head h2 {
  font-family: var(--hand);
  font-size: clamp(2.3rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 6px;
}
.page-head p { margin: 4px 0 0; max-width: 62ch; }

.cat-head {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 20px;
  align-items: center;
}
.cat-head [data-doodle], .cat-head .doodle { width: 150px; }

.section-title {
  font-family: var(--hand);
  font-size: 2.1rem;
  margin: 44px 0 14px;
  line-height: 1;
}

/* caixa estilo "folha" (como o quadro do meio da imagem) */
.paper {
  position: relative;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 3px 6px 4px 5px;
  padding: 30px clamp(18px, 4vw, 44px);
  box-shadow: 4px 5px 0 rgba(43, 39, 34, .12);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 24px;
  align-items: center;
}
.hero h2 {
  font-family: var(--hand);
  font-size: 2.3rem;
  line-height: 1.05;
  margin: 0 0 10px;
}
.hero p { margin: 0 0 10px; }
.hero .hero-doodles { display: grid; gap: 6px; }

/* cards */
.cards { display: grid; gap: 30px; }

.card {
  position: relative;
  isolation: isolate;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: var(--rough);
  padding: 22px 26px 20px;
  transition: transform .18s ease;
}
.card:nth-child(even) { border-radius: var(--rough2); }
.card:hover { transform: rotate(-.4deg) translateY(-2px); }

.card::before {
  /* mancha colorida que "vaza" do canto do card */
  content: "";
  position: absolute;
  z-index: -1;
  width: 130px; height: 100px;
  top: -16px; right: -14px;
  background: var(--paint);
  border-radius: var(--blob);
  filter: url(#crayon);
  transform: rotate(6deg);
}
.card:nth-child(even)::before {
  top: auto; right: auto;
  bottom: -16px; left: -14px;
  transform: rotate(-8deg);
}

.card-icon {
  position: absolute;
  top: 12px; right: 16px;
  width: 74px;
  pointer-events: none;
}

.card-cat {
  font-family: var(--ui);
  font-size: 1.02rem;
  text-decoration: none;
  position: relative;
  isolation: isolate;
  padding: 0 4px;
}
.card-cat::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -2px; right: -6px; top: 35%; bottom: -2px;
  background: var(--paint);
  border-radius: var(--blob);
  filter: url(#crayon);
}

.card h3 {
  font-family: var(--hand);
  font-size: 2.05rem;
  line-height: 1.05;
  margin: 6px 90px 4px 0;
}
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline wavy 1.5px; text-underline-offset: 5px; }

.meta {
  font-family: var(--ui);
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.card p { margin: 0 0 6px; }

/* rascunhos / campos para preencher */
.card.is-draft {
  border-style: dashed;
  background: repeating-linear-gradient(0deg, transparent 0 31px, rgba(156, 195, 217, .22) 31px 32px), var(--paper-2);
}
.stamp {
  display: inline-block;
  font-family: var(--ui);
  font-size: .95rem;
  padding: 0 8px;
  margin-right: 8px;
  border: 1.6px dashed var(--ink);
  border-radius: var(--rough2);
  transform: rotate(-2deg);
}

/* ---------- post ---------- */
.post-head h2 {
  font-family: var(--hand);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.02;
  margin: 8px 0 6px;
}
.breadcrumb {
  font-family: var(--ui);
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.post-body { margin-top: 22px; }
.post-body > :first-child { margin-top: 0; }
.post-body p { margin: 0 0 1.05em; max-width: 68ch; }
.post-body h3 {
  font-family: var(--hand);
  font-size: 2rem;
  line-height: 1.1;
  margin: 1.5em 0 .35em;
}
.post-body ul, .post-body ol { padding-left: 1.3em; max-width: 66ch; }
.post-body li { margin-bottom: .3em; }
.post-body strong { font-weight: 700; }

.post-body blockquote {
  position: relative;
  isolation: isolate;
  margin: 1.6em 0;
  padding: 10px 18px;
  font-family: var(--hand);
  font-size: 2rem;
  line-height: 1.15;
}
.post-body blockquote::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 6% 4px -8px;
  background: var(--paint, var(--lav));
  border-radius: var(--blob);
  filter: url(#crayon);
  transform: rotate(-1deg);
  opacity: .85;
}

.post-body code {
  font-family: 'Cascadia Code', Consolas, 'Courier New', monospace;
  font-size: .9em;
  background: rgba(226, 197, 143, .35);
  padding: 1px 5px;
  border-radius: 4px;
}
.post-body pre {
  background: #2b2722;
  color: #f4eedc;
  padding: 16px 18px;
  border-radius: 6px 10px 5px 9px;
  overflow-x: auto;
  font-size: .92rem;
  line-height: 1.55;
  box-shadow: 4px 5px 0 var(--paint, var(--sage));
}
.post-body pre code { background: none; padding: 0; color: inherit; }

.post-body .ref {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 2px dashed rgba(43, 39, 34, .35);
  font-size: .9rem;
  color: var(--ink-soft);
}

.post-body .ket { font-family: 'Cambria Math', 'STIX Two Math', serif; white-space: nowrap; }

/* fórmula em destaque */
.post-body .formula {
  margin: 1.2em auto;
  padding: 10px 16px;
  max-width: none;
  text-align: center;
  font-family: 'Cambria Math', 'STIX Two Math', 'Times New Roman', serif;
  font-size: 1.45rem;
}

/* figuras e tabelas nos posts */
.post-body figure { margin: 1.4em 0; }
.post-body figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 4px 7px 5px 6px;
  box-shadow: 5px 6px 0 var(--paint, var(--tan));
}
.post-body figcaption {
  margin-top: 10px;
  font-family: var(--ui);
  font-size: 1rem;
  color: var(--ink-soft);
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0 1.2em;
  font-size: .95rem;
}
.post-body th, .post-body td {
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1.5px dashed rgba(43, 39, 34, .3);
}
.post-body thead th {
  font-family: var(--ui);
  font-size: 1.02rem;
  font-weight: 400;
  border-bottom: 2px solid var(--ink);
}
.post-body .table-wrap { overflow-x: auto; }

/* Conversa comigo (formulário) */
.contato-label {
  position: relative;
  isolation: isolate;
  display: inline-block;
  margin-bottom: 14px;
  padding: 0 6px;
  font-family: var(--hand);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.15;
}
.contato-label::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -4px; right: -10px; top: 45%; bottom: -2px;
  background: var(--paint, var(--lemon));
  border-radius: var(--blob);
  filter: url(#crayon);
  transform: rotate(-1deg);
}
.contato textarea {
  display: block;
  width: 100%;
  min-height: 170px;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  background: repeating-linear-gradient(0deg, transparent 0 31px, rgba(156, 195, 217, .25) 31px 32px), #fffdf6;
  border: 2px solid var(--ink);
  border-radius: var(--rough2);
  resize: vertical;
  line-height: 32px;
}
.contato textarea:focus { outline: 2.5px dashed var(--ink); outline-offset: 3px; }
.contato-rodape {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.contador { font-family: var(--ui); font-size: 1.05rem; color: var(--ink-soft); }
.contador.no-limite { color: #b0413e; font-weight: 700; }
.btn-enviar {
  position: relative;
  isolation: isolate;
  padding: 8px 22px 6px;
  font-family: var(--ui);
  font-size: 1.25rem;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: var(--rough);
  cursor: pointer;
  transition: transform .15s;
}
.btn-enviar::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4px -8px -6px 8px;
  background: var(--paint, var(--lemon));
  border-radius: var(--blob);
  filter: url(#crayon);
  transform: rotate(-2deg);
}
.btn-enviar:hover:not(:disabled) { transform: rotate(-2deg) scale(1.04); }
.btn-enviar:disabled { opacity: .5; cursor: not-allowed; }
.contato-status { margin: 12px 0 0; font-family: var(--ui); font-size: 1.1rem; min-height: 1.4em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* dicionário / glossário */
.glossario { margin: 0; }
.glossario dt {
  position: relative;
  isolation: isolate;
  display: inline-block;
  margin: 22px 0 4px;
  padding: 0 6px;
  font-family: var(--hand);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.15;
}
.glossario dt:first-child { margin-top: 0; }
.glossario dt::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -4px; right: -10px; top: 45%; bottom: -2px;
  background: var(--paint, var(--mint));
  border-radius: var(--blob);
  filter: url(#crayon);
  transform: rotate(-1deg);
}
.glossario dd {
  margin: 0 0 6px;
  padding: 0 0 14px 14px;
  border-left: 2px dashed rgba(43, 39, 34, .3);
  border-bottom: 1px dashed rgba(43, 39, 34, .18);
  max-width: 68ch;
}
.glossario dd:last-child { border-bottom: 0; }

/* campo a preencher dentro do post */
.campo {
  margin: 0 0 18px;
  padding: 12px 16px 6px;
  border: 2px dashed rgba(43, 39, 34, .55);
  border-radius: var(--rough2);
  background: rgba(255, 255, 255, .35);
}
.campo > strong {
  display: block;
  font-family: var(--hand);
  font-size: 1.6rem;
  line-height: 1.1;
  margin-bottom: 4px;
}
.campo p { color: var(--ink-soft); font-style: italic; }

.draft-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0 0;
  padding: 12px 16px;
  font-size: .95rem;
  border: 2px solid var(--ink);
  border-radius: var(--rough);
  background: rgba(156, 195, 217, .35);
}
.draft-banner code { font-size: .9em; }

.post-foot {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--ui);
  font-size: 1.15rem;
}
.post-foot a { text-decoration: none; }
.post-foot a:hover { text-decoration: underline wavy; }

/* sobre */
.about-page .avatar { width: 160px; margin: 0 0 10px; }
.about-grid {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  align-items: start;
}

.empty {
  font-family: var(--ui);
  font-size: 1.2rem;
  color: var(--ink-soft);
}

/* ---------- rodapé ---------- */
.site-footer {
  max-width: 1180px;
  margin: 70px auto 0;
  padding: 26px 24px 40px;
  text-align: center;
  border-top: 2px dashed rgba(43, 39, 34, .35);
}
.site-footer [data-doodle] { width: 180px; margin: 0 auto 14px; }
.site-footer .social { justify-content: center; }
#footer-handle {
  font-family: var(--hand);
  font-size: 2rem;
  font-weight: 700;
  margin: 14px 0 0;
}
.site-footer .fine { font-size: .85rem; color: var(--ink-soft); margin: 2px 0 0; }

/* ---------- rabiscos nas margens ---------- */
.gutter {
  display: none;
  position: absolute;
  top: 300px;
  width: 150px;
  flex-direction: column;
  gap: 120px;
  pointer-events: none;
}
.gutter-left  { left: max(10px, calc(50% - 760px)); }
.gutter-right { right: max(10px, calc(50% - 760px)); }
.gutter .small { width: 110px; }
.gutter > :nth-child(odd)  { transform: rotate(-6deg); }
.gutter > :nth-child(even) { transform: rotate(5deg); }

@media (min-width: 1520px) {
  .gutter { display: flex; }
}

/* ---------- responsivo ---------- */
@media (max-width: 980px) {
  .masthead { grid-template-columns: 1fr; padding-top: 18px; }
  .masthead-art.left { order: 2; width: 220px; margin: 0 auto; }
  .masthead-art.left .curl-down { display: none; }
  .masthead-art.right { display: none; }

  .layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .sidebar { order: 2; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .masthead, .layout { padding-left: 16px; padding-right: 16px; }
  .masthead .t2 { font-size: 1.45rem; }
  .hero, .cat-head, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-grid > * { min-width: 0; }
  .hero .hero-doodles, .cat-head [data-doodle] { width: 130px; }
  .card { padding: 18px 18px 16px; }
  .card h3 { margin-right: 0; font-size: 1.8rem; }
  .card-icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
