:root { color-scheme: light; --navy: #142a42; --ink: #0b2039; --muted: #415973; --blue: #155c9e; --line: #dce4ed; --paper: #f8f9fb; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }
input { font: inherit; }
:focus-visible { outline: 3px solid #65b4ef; outline-offset: 3px; }
::selection { background: #c0e6ff; color: var(--ink); }

.site-header { --header-height: 76px; --title-size: clamp(1.7rem, 3vw, 2.3rem); position: relative; z-index: 10; height: var(--header-height); display: grid; place-items: center; background: var(--navy); color: white; text-align: center; isolation: isolate; }
.site-title { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; padding: 10px 20px; color: inherit; font: 700 var(--title-size)/1.1 Georgia, 'Times New Roman', serif; letter-spacing: -.035em; text-decoration: none; }
.title-copy { display: block; max-width: 100%; text-wrap: balance; }
.title-word { position: relative; display: inline-block; }
.title-word-ink { display: none; position: absolute; inset: 0; color: #f79435; pointer-events: none; }
.title-word-line { position: absolute; right: -.02em; bottom: -.12em; left: -.02em; height: .105em; min-height: 2px; background: #f79435; border-radius: 55% 45% 48% 52% / 80% 65% 85% 70%; transform: rotate(-1deg); pointer-events: none; }
.title-melt-drops { display: none; position: absolute; inset: 0; pointer-events: none; }
.title-melt-drops i { position: absolute; top: 63%; left: var(--x); width: var(--w); height: .6em; background: #f79435; border-radius: 45% 45% 55% 55% / 18% 18% 82% 82%; transform-origin: center top; opacity: 0; }
.title-melt-drops i:nth-child(1) { --x: 8%; --w: .13em; --fall: .62em; --lag: 0s; }
.title-melt-drops i:nth-child(2) { --x: 25%; --w: .1em; --fall: .86em; --lag: .09s; }
.title-melt-drops i:nth-child(3) { --x: 42%; --w: .16em; --fall: .49em; --lag: .04s; }
.title-melt-drops i:nth-child(4) { --x: 59%; --w: .11em; --fall: .74em; --lag: .15s; }
.title-melt-drops i:nth-child(5) { --x: 75%; --w: .14em; --fall: .54em; --lag: .07s; }
.title-melt-drops i:nth-child(6) { --x: 92%; --w: .09em; --fall: .95em; --lag: .12s; }
.header-blob-trail { position: fixed; inset: 0; z-index: 9; pointer-events: none; }
.header-blob-trail i { position: absolute; width: var(--size); height: var(--size); background: var(--navy); border-radius: 48% 52% 60% 40% / 42% 57% 43% 58%; opacity: 1; transform: translate(-50%, -50%) scale(1); animation: blob-stay 1.4s linear forwards; }
.site-title:hover .title-word-line { background: #ffb165; }

/* The page starts behind this full-height header. Its lower edge ripples as it settles. */
.header-intro .site-header { animation: header-settle 2.65s cubic-bezier(.62, 0, .2, 1) both; }
.header-intro .site-title { animation: title-settle 2.65s cubic-bezier(.62, 0, .2, 1) both; }
.header-intro .title-word-ink { display: block; animation: word-melt 2.65s linear both; }
.header-intro .title-word-line { animation: underline-form 2.65s ease-in-out both; }
.header-intro .title-melt-drops { display: block; }
.header-intro .title-melt-drops i { animation: melt-drop 2.65s cubic-bezier(.35, 0, .65, 1) var(--lag) both; }
.header-intro .site-header::after { content: ''; position: absolute; top: calc(100% - 1px); right: 0; left: 0; height: clamp(40px, 5vw, 64px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23142a42' d='M0 0H1440V32C1360 48 1300 17 1220 37S1070 57 990 34 820 20 750 45 570 56 490 33 320 19 250 45 90 54 0 34Z'/%3E%3C/svg%3E") center top / 100% 100% no-repeat; pointer-events: none; transform-origin: top; animation: edge-settle 2.65s ease-in-out both; }
@keyframes header-settle { 0%, 51% { height: 100svh; } 100% { height: var(--header-height); } }
@keyframes title-settle { 0%, 53% { font-size: clamp(2.35rem, 5.4vw, 5.25rem); } 100% { font-size: var(--title-size); } }
@keyframes title-settle-mobile { 0%, 53% { font-size: clamp(1.35rem, 7vw, 2.3rem); } 100% { font-size: var(--title-size); } }
@keyframes word-melt {
  0%, 27% { clip-path: polygon(0 0, 12% 0, 24% 0, 36% 0, 47% 0, 59% 0, 72% 0, 85% 0, 100% 0, 100% 100%, 0 100%); opacity: 1; }
  38% { clip-path: polygon(0 32%, 12% 45%, 24% 26%, 36% 52%, 47% 34%, 59% 55%, 72% 30%, 85% 51%, 100% 36%, 100% 100%, 0 100%); opacity: 1; }
  49% { clip-path: polygon(0 69%, 12% 78%, 24% 61%, 36% 87%, 47% 70%, 59% 92%, 72% 65%, 85% 83%, 100% 72%, 100% 100%, 0 100%); opacity: 1; }
  59% { clip-path: polygon(0 91%, 12% 97%, 24% 89%, 36% 100%, 47% 94%, 59% 100%, 72% 91%, 85% 100%, 100% 95%, 100% 100%, 0 100%); opacity: 1; }
  66%, 100% { clip-path: polygon(0 100%, 12% 100%, 24% 100%, 36% 100%, 47% 100%, 59% 100%, 72% 100%, 85% 100%, 100% 100%, 100% 100%, 0 100%); opacity: 0; }
}
@keyframes melt-drop { 0%, 31% { opacity: 0; transform: translateY(0) scale(.5, .1); } 39% { opacity: 1; transform: translateY(0) scale(1, .35); } 50% { opacity: 1; transform: translateY(.13em) scale(.9, 1.15); } 60% { opacity: 1; transform: translateY(var(--fall)) scale(.75, .48); } 68%, 100% { opacity: 0; transform: translateY(var(--fall)) scale(1.45, .05); } }
@keyframes underline-form { 0%, 37% { opacity: 0; transform: rotate(-1deg) scaleX(.1); } 56% { opacity: .65; transform: rotate(1deg) scaleX(.72); } 70%, 100% { opacity: 1; transform: rotate(-1deg) scaleX(1); } }
@keyframes edge-settle { 0%, 50% { transform: translateY(-14px) scaleY(.1); } 62% { transform: translateY(0) scaleY(.7); } 72% { transform: translateY(0) scaleY(1); } 84% { transform: translateY(-3px) scaleY(.55); } 100% { transform: translateY(-8px) scaleY(0); } }
@keyframes blob-stay { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-50%, -50%) scale(0); } }

.hero { background: #bfe4fc url('/assets/hero-debate.jpg') center center / cover no-repeat; }
.home-hero { min-height: clamp(310px, 31vw, 435px); text-align: center; border-bottom: 1px solid #bdd9e7; }
.hero-inner { width: min(100% - 40px, 1100px); margin: auto; padding: clamp(24px, 3vw, 44px) 0 0; }
.home-hero h1 { margin: 0 auto; max-width: 820px; color: #061a32; font: 700 clamp(2.5rem, 4.5vw, 4.4rem)/1.04 Georgia, 'Times New Roman', serif; letter-spacing: -.055em; text-shadow: 0 2px 12px #e4f6ff9c; text-wrap: balance; }

.section-wrap { width: min(100% - 40px, 1240px); margin-inline: auto; }
.catalog { padding-top: 36px; }
.catalog-heading { max-width: 900px; margin: 0 auto; text-align: center; }
.catalog-heading h2 { margin: 0; font: 700 clamp(2.4rem, 4vw, 3.6rem)/1.05 Georgia, 'Times New Roman', serif; letter-spacing: -.055em; }
.catalog-intro { margin: 12px auto 0; color: var(--muted); font-size: 1.08rem; line-height: 1.5; }
.search-row { display: flex; align-items: center; gap: 20px; margin: 26px 0 22px; }
.search-box { display: flex; align-items: center; gap: 12px; width: min(100%, 600px); height: 52px; padding: 0 16px; background: white; border: 1px solid #cbd7e4; border-radius: 8px; }
.search-box:focus-within { border-color: #347cb8; box-shadow: 0 0 0 3px #3c91d323; }
.search-box svg { width: 21px; height: 21px; flex: none; fill: none; stroke: #54718e; stroke-width: 1.8; stroke-linecap: round; }
.search-box input { width: 100%; min-width: 0; padding: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 1rem; }
.search-box input::placeholder { color: #6c8195; opacity: 1; }
.result-count { margin: 0; color: #536c83; font-size: .91rem; white-space: nowrap; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.fallacy-card { min-width: 0; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 3px 12px #1434540b; transition: transform .17s ease, box-shadow .17s ease; }
.fallacy-card:hover, .fallacy-card:focus-within { transform: translateY(-3px); box-shadow: 0 10px 24px #1434541c; }
.fallacy-card[hidden] { display: none; }
html:not([data-beta="true"]) .fallacy-card[data-beta-entry],
html[data-beta-entry]:not([data-beta="true"]) body { display: none; }
.fallacy-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-image { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; background: #d9eaf9; }
.card-content { display: flex; flex-direction: column; flex: 1; min-height: 178px; padding: 17px 19px 18px; }
.card-title { display: block; margin: 0 0 8px; font: 700 clamp(1.42rem, 2vw, 1.8rem)/1.12 Georgia, 'Times New Roman', serif; letter-spacing: -.035em; }
.card-definition { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; color: #344e69; font-size: 1rem; line-height: 1.42; }
.card-bottom { display: block; margin-top: auto; padding-top: 16px; color: #0963a7; font-size: .94rem; font-weight: 700; }
.card-bottom span { padding-left: 4px; font-size: 1.1rem; }
.no-results { padding: 34px; color: var(--muted); text-align: center; border: 1px dashed #aebdca; border-radius: 8px; }

.site-footer { margin-top: 64px; padding-top: 28px; padding-bottom: 36px; border-top: 1px solid var(--line); text-align: center; font-size: 1rem; line-height: 1.6; }
.footer-warning { margin: 0; color: var(--muted); }
.footer-credit, .footer-disclosure { margin: 8px 0 0; color: var(--muted); }
.footer-credit a { color: var(--blue); text-underline-offset: 3px; white-space: nowrap; }
.footer-x { font-size: 1.1em; }
.detail-page .site-footer { margin-top: 0; }

.detail-page { background: #fffdfa; }
.entry-masthead { padding: clamp(32px, 5vw, 68px) 20px 82px; text-align: center; background: radial-gradient(ellipse at 50% 105%, #fffdf9 0, #fffdf9 19%, transparent 54%), linear-gradient(180deg, #d8f0ff 0%, #eaf7ff 68%, #f6fbfc 100%); border-bottom: 1px solid #d6e5ea; }
.entry-masthead-inner { width: min(100%, 1040px); margin: auto; }
.entry-masthead h1 { margin: 0; font: 700 clamp(2.8rem, 5vw, 4.75rem)/1.02 Georgia, 'Times New Roman', serif; letter-spacing: -.055em; text-wrap: balance; }
.entry-claim { max-width: 880px; margin: 18px auto 0; color: #183f60; font: 500 clamp(1.25rem, 2.15vw, 1.7rem)/1.35 Georgia, 'Times New Roman', serif; text-wrap: balance; }
.detail-image-wrap { width: min(100% - 40px, 980px); margin: -48px auto 0; overflow: hidden; position: relative; border: 8px solid #fffdfa; border-radius: 16px; box-shadow: 0 12px 32px #193b581e; }
.detail-image { display: block; width: 100%; height: auto; background: #d9eaf9; }
.entry { padding-top: 64px; padding-bottom: 100px; }
.entry-body { max-width: 850px; margin-inline: auto; }
.entry-body section { margin: 0 0 46px; }
.entry-body h2 { margin: 0 0 18px; font: 700 1.72rem/1.15 Georgia, 'Times New Roman', serif; letter-spacing: -.035em; }
.prose, .underlying-panel p { color: #2f455e; font-size: 1.08rem; line-height: 1.72; }
.prose p, .underlying-panel p { margin: 0 0 1em; }
.example-panel { padding: 30px 34px 18px; background: #eaf3fb; border-left: 4px solid #3983ba; border-radius: 0 10px 10px 0; }
blockquote { margin: 1.2em 0; padding: 4px 0 4px 20px; border-left: 2px solid #7fb4db; font-style: italic; }
blockquote p { margin: 0 0 .7em !important; }
blockquote p:last-child { margin-bottom: 0 !important; }
.underlying-panel { padding-top: 26px; border-top: 1px solid var(--line); }
.underlying-panel p span { color: var(--blue); font-weight: 700; }
.back-link { display: block; width: fit-content; margin: 8px auto 0; padding: 12px 18px; color: var(--blue); border: 1px solid #80add0; border-radius: 7px; text-decoration: none; font-size: .94rem; font-weight: 700; }
.back-link:hover { background: #e5f1fa; }

@media (max-width: 850px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero { min-height: 330px; }
  .home-hero h1 { max-width: 630px; }
}
@media (max-width: 620px) {
  .site-header { --header-height: 62px; --title-size: clamp(1.35rem, 6vw, 1.65rem); }
  .site-title { padding: 9px 14px; }
  .title-copy { white-space: nowrap; text-wrap: nowrap; }
  .header-intro .site-title { animation-name: title-settle-mobile; }
  .section-wrap, .detail-image-wrap { width: min(100% - 32px, 1240px); }
  .home-hero { min-height: 330px; background-size: auto 210px; background-position: center bottom; }
  .hero-inner { width: min(100% - 32px, 1100px); padding-top: 22px; }
  .home-hero h1 { max-width: 360px; font-size: clamp(2.15rem, 9vw, 3rem); line-height: 1.05; }
  .catalog { padding-top: 30px; }
  .catalog-heading h2 { font-size: 2.45rem; }
  .catalog-intro { font-size: 1rem; }
  .search-row { margin: 21px 0 17px; }
  .search-box { width: 100%; }
  .result-count { display: none; }
  .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-content { min-height: 155px; }
  .site-footer { margin-top: 44px; padding-bottom: 28px; }
  .entry-masthead { padding: 35px 16px 58px; }
  .entry-masthead h1 { font-size: clamp(2.45rem, 10vw, 3.25rem); }
  .entry-claim { margin-top: 15px; font-size: 1.18rem; }
  .detail-image-wrap { margin-top: -28px; border-width: 5px; border-radius: 11px; }
  .entry { padding-top: 46px; }
  .entry-body section { margin-bottom: 36px; }
  .example-panel { padding: 24px 21px 12px; }
  .prose, .underlying-panel p { font-size: 1.04rem; }
}
/* The title intro plays regardless of motion preference, as part of the site's design. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .fallacy-card { transition: none; } }
