:root {
  --ink: #111111;
  --muted: #5f6572;
  --paper: #ffffff;
  --cream: #fff5df;
  --yellow: #ffe681;
  --cyan: #9ee7f6;
  --purple: #c8b5ff;
  --orange: #ffbd84;
  --pink: #ffaccf;
  --lime: #d8f99a;
  --blue: #8ea7ff;
  --line: #111111;
  --soft-line: rgba(17, 17, 17, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(158, 231, 246, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(255, 172, 207, 0.1) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  font-family: "Noto Sans JP", "Inter", sans-serif;
  line-height: 1.75;
  isolation: isolate;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
  font-family: "Inter", sans-serif;
  font-weight: 900;
  line-height: 1;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.site-nav a:hover {
  color: var(--ink);
}

main {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  column-gap: clamp(28px, 5vw, 70px);
  row-gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  min-height: calc(100vh - 74px);
  padding: clamp(30px, 5vw, 72px) clamp(18px, 5vw, 76px) 22px;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 230, 129, 0.36), transparent 24%),
    radial-gradient(circle at 86% 24%, rgba(158, 231, 246, 0.28), transparent 25%),
    radial-gradient(circle at 74% 82%, rgba(255, 172, 207, 0.24), transparent 22%),
    rgba(255, 255, 255, 0.82);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-column: 1 / -1;
  padding-bottom: clamp(2px, 1vw, 10px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
}

h1 {
  display: inline-block;
  width: 0;
  max-width: none;
  margin-bottom: 20px;
  padding-bottom: 0.08em;
  overflow: hidden;
  border-right: 0.08em solid var(--ink);
  font-size: clamp(3rem, 6.5vw, 7.8rem);
  line-height: 1.12;
  white-space: nowrap;
  animation:
    hero-typewriter 1.8s steps(25) 0.25s forwards,
    hero-cursor-blink 720ms step-end infinite;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5.8vw, 6rem);
}

.hero-copy > p:not(.eyebrow) {
  width: 100%;
  max-width: none;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 500;
}

.hero-board {
  grid-column: 1 / -1;
}

.hero-search {
  align-self: stretch;
  width: 100%;
  margin: 0;
  padding: clamp(18px, 2.6vw, 24px);
  border: 0;
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 230, 129, 0.55), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 252, 255, 0.9));
  box-shadow:
    0 22px 42px rgba(42, 49, 56, 0.16),
    0 10px 0 rgba(158, 231, 246, 0.6);
}

.hero-search label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.84rem;
  font-weight: 900;
}

.hero-search div {
  display: flex;
  border: 2px solid var(--line);
  background: var(--paper);
}

.hero-search input,
.hero-search button,
.ask-form input,
.ask-form textarea,
.ask-form button {
  border: 0;
  outline: 0;
}

.hero-search input {
  min-width: 0;
  flex: 1;
  min-height: 58px;
  padding: 0 18px;
  background: transparent;
}

.hero-search button,
.ask-form button {
  min-width: 116px;
  padding: 0 22px;
  border-left: 2px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-weight: 900;
}

.hero-board {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr;
  grid-template-rows: clamp(205px, 18vw, 258px) clamp(360px, 29vw, 430px);
  gap: 16px;
  min-height: 0;
}

.hero-panels {
  display: contents;
}

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  margin: 0;
  padding: 24px;
  border: 2px solid var(--line);
  background: var(--paper);
  box-shadow: 8px 8px 0 rgba(17, 17, 17, 0.18);
  transform:
    translate(
      calc(var(--tilt-x, 0) * 1px),
      calc(var(--tilt-y, 0) * 1px)
    );
  transition:
    transform 260ms ease,
    box-shadow 260ms ease;
}

.panel:hover {
  box-shadow: 10px 10px 0 rgba(17, 17, 17, 0.15);
}

.panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.panel.has-image {
  background: var(--paper);
}

.panel.has-caption {
  background: #fffdf8;
}

.panel.has-caption img {
  transform: translateY(58px) scale(0.86);
  transform-origin: center bottom;
}

.panel-caption {
  position: absolute;
  top: clamp(22px, 3vw, 34px);
  left: clamp(22px, 3vw, 34px);
  z-index: 2;
  width: min(15.5em, calc(100% - 44px));
  color: var(--ink);
  font-size: clamp(1.35rem, 2.7vw, 3rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
}

.panel span,
.panel small {
  color: currentColor;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel strong {
  display: block;
  max-width: 10ch;
  margin-top: auto;
  font-family: "Inter", sans-serif;
  font-size: clamp(2rem, 4.2vw, 4.6rem);
  font-weight: 900;
  line-height: 0.95;
}

.panel small {
  max-width: 24ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.panel-yellow {
  grid-column: 1;
  grid-row: 1 / 3;
  height: 100%;
  min-height: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, var(--yellow), var(--lime));
}

.panel-ink {
  grid-column: 2;
  grid-row: 1;
  isolation: isolate;
  justify-content: center;
  background:
    radial-gradient(circle at 74% 24%, rgba(255, 231, 143, 0.5), transparent 22%),
    radial-gradient(circle at 24% 82%, rgba(204, 185, 238, 0.42), transparent 24%),
    linear-gradient(135deg, #f4fbff, #fff7fb 58%, #fff7d8);
  color: var(--ink);
}

.panel-ink strong {
  position: relative;
  z-index: 2;
  max-width: none;
  margin-top: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(1.45rem, 2.8vw, 3.1rem);
  line-height: 1.08;
  white-space: nowrap;
}

.panel-ink > span {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  color: #6a5ccf;
}

.panel-ink small {
  position: relative;
  z-index: 2;
  max-width: 25em;
  color: #33424a;
  font-family: "Noto Sans JP", sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.motion-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  filter: blur(0.35px);
  pointer-events: none;
}

.floating-question {
  position: absolute;
  display: block;
  color: rgba(17, 17, 17, 0.11);
  font-size: clamp(0.82rem, 1.45vw, 1.25rem);
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.72);
  animation: question-rise 12s ease-in-out infinite;
}

.floating-question:nth-child(1) {
  top: 9%;
  left: 50%;
  rotate: -5deg;
  animation-delay: -1s;
}

.floating-question:nth-child(2) {
  top: 22%;
  left: 4%;
  rotate: 4deg;
  animation-delay: -7s;
}

.floating-question:nth-child(3) {
  top: 24%;
  left: 72%;
  rotate: 2deg;
  animation-delay: -4s;
}

.floating-question:nth-child(4) {
  top: 74%;
  left: 5%;
  rotate: -3deg;
  animation-delay: -9s;
}

.floating-question:nth-child(5) {
  top: 84%;
  left: 44%;
  rotate: 5deg;
  animation-delay: -2.5s;
}

.floating-question:nth-child(6) {
  top: 6%;
  left: 12%;
  rotate: 3deg;
  animation-delay: -5.5s;
}

.floating-question:nth-child(7) {
  top: 68%;
  left: 74%;
  rotate: -4deg;
  animation-delay: -8s;
}

.floating-question:nth-child(8) {
  top: 88%;
  left: 18%;
  rotate: -1deg;
  animation-delay: -3.5s;
}

.panel-pink {
  grid-column: 2;
  grid-row: 2;
  justify-content: flex-end;
  height: 100%;
  min-height: 0;
  background:
    linear-gradient(135deg, var(--pink), var(--purple));
  color: var(--ink);
}

.panel-pink img {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: calc(100% - 132px);
}

.panel-pink .hero-search {
  margin-top: 10px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.panel-pink .hero-search label {
  display: none;
}

.panel-pink .hero-search div {
  min-height: 46px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 12px 26px rgba(42, 49, 56, 0.13),
    0 5px 0 rgba(158, 231, 246, 0.45);
}

.panel-pink .hero-search input {
  min-height: 46px;
}

.panel-footer-caption {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(1.28rem, 2.1vw, 2.35rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.ticker {
  overflow: hidden;
  border-bottom: 2px solid var(--line);
  background: #eff3ff;
  color: var(--ink);
}

.hero-copy .ticker {
  width: 100vw;
  max-width: 100vw;
  margin-top: clamp(16px, 2vw, 24px);
  margin-left: 50%;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  box-shadow: 0 7px 0 rgba(158, 231, 246, 0.52);
  transform: translateX(-50%);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-slide 38s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-question {
  flex: 0 0 auto;
  padding: 14px 28px;
  border: 0;
  border-right: 2px solid rgba(17, 17, 17, 0.42);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.ticker-question:hover,
.ticker-question:focus-visible {
  background: rgba(255, 230, 129, 0.44);
}

.ticker-question:focus-visible {
  outline: 2px solid var(--line);
  outline-offset: -4px;
}

.ticker-question::before {
  content: "Q.";
  margin-right: 8px;
  color: #d9a300;
  font-family: "Inter", sans-serif;
}

@keyframes ticker-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes hero-typewriter {
  from {
    width: 0;
  }

  to {
    width: 13em;
  }
}

@keyframes hero-cursor-blink {
  50% {
    border-color: transparent;
  }
}

@keyframes theme-preview-float {
  0%,
  100% {
    transform: translateY(4px) rotate(var(--preview-rotate, -2deg));
  }

  50% {
    transform: translateY(-8px) rotate(var(--preview-rotate, -2deg));
  }
}

.themes-section,
.questions-section,
.ask-section,
.reader-section {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 124px) 0 0;
}

.themes-section {
  padding-top: clamp(46px, 7vw, 84px);
}

.themes-section,
.questions-section,
.reader-section,
.ask-section {
  position: relative;
}

.themes-section::before,
.questions-section::before,
.reader-section::before {
  position: absolute;
  top: clamp(40px, 6vw, 78px);
  right: min(-34px, -2vw);
  z-index: -1;
  width: clamp(120px, 18vw, 240px);
  height: clamp(120px, 18vw, 240px);
  content: "";
  border: 2px solid var(--line);
  background: var(--lime);
  transform: rotate(8deg);
  opacity: 0.56;
  animation: drift-block 14s ease-in-out infinite;
}

.questions-section::before {
  left: min(-34px, -2vw);
  right: auto;
  background: var(--pink);
  transform: rotate(-8deg);
}

.reader-section::before {
  background: var(--cyan);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -4px;
}

.result-count {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 900;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 2px solid var(--line);
  border-left: 2px solid var(--line);
  overflow: visible;
}

.theme-card {
  position: relative;
  display: grid;
  min-height: 178px;
  padding: 18px;
  border: 0;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  overflow: visible;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.theme-card:nth-child(2) {
  background: var(--cyan);
}

.theme-card:nth-child(3) {
  background: var(--lime);
}

.theme-card:nth-child(4) {
  background: var(--orange);
}

.theme-card:nth-child(5) {
  background: var(--pink);
}

.theme-card.is-active {
  background: var(--ink);
  color: var(--paper);
}

.theme-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--ink);
}

.theme-card span {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
}

.theme-card strong {
  align-self: end;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
}

.theme-card small {
  color: currentColor;
  font-weight: 800;
}

.theme-preview {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.theme-preview span {
  position: absolute;
  display: block;
  max-width: min(24ch, 88vw);
  padding: 8px 10px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 4px 4px 0 rgba(17, 17, 17, 0.14);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(0.72rem, 1vw, 0.86rem);
  font-weight: 900;
  line-height: 1.35;
  white-space: normal;
  transform: translateY(8px) rotate(var(--preview-rotate, -2deg));
}

.theme-preview span:nth-child(1) {
  top: -28px;
  left: 10%;
  --preview-rotate: -2deg;
  transition-delay: 0ms;
}

.theme-preview span:nth-child(2) {
  top: 24%;
  right: -24px;
  --preview-rotate: 2.5deg;
  transition-delay: 45ms;
}

.theme-preview span:nth-child(3) {
  bottom: -26px;
  left: 16%;
  --preview-rotate: 1deg;
  transition-delay: 90ms;
}

.theme-preview span:nth-child(4) {
  top: 52%;
  left: -22px;
  --preview-rotate: -3deg;
  transition-delay: 135ms;
}

.theme-preview span:nth-child(5) {
  right: 12%;
  bottom: 20px;
  --preview-rotate: -1deg;
  transition-delay: 180ms;
}

.theme-card:hover .theme-preview,
.theme-card:focus-visible .theme-preview {
  opacity: 1;
}

.theme-card:hover .theme-preview span,
.theme-card:focus-visible .theme-preview span {
  animation: theme-preview-float 2200ms ease-in-out infinite;
}

.theme-card:hover .theme-preview span:nth-child(2),
.theme-card:focus-visible .theme-preview span:nth-child(2) {
  animation-delay: -620ms;
}

.theme-card:hover .theme-preview span:nth-child(3),
.theme-card:focus-visible .theme-preview span:nth-child(3) {
  animation-delay: -980ms;
}

.theme-card:hover .theme-preview span:nth-child(4),
.theme-card:focus-visible .theme-preview span:nth-child(4) {
  animation-delay: -340ms;
}

.theme-card:hover .theme-preview span:nth-child(5),
.theme-card:focus-visible .theme-preview span:nth-child(5) {
  animation-delay: -1260ms;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
}

.faq-category {
  display: block;
  width: fit-content;
  min-width: 4.6em;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 6px 6px 0 rgba(17, 17, 17, 0.1);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.faq-item.is-selected {
  background:
    linear-gradient(90deg, var(--yellow), var(--lime));
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 7px 9px 0 rgba(17, 17, 17, 0.12);
}

.faq-question {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(12px, 2vw, 24px);
  align-items: center;
  width: 100%;
  min-height: 74px;
  padding: 14px clamp(14px, 2.4vw, 24px);
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.faq-question strong {
  font-size: clamp(1rem, 1.85vw, 1.55rem);
  font-weight: 900;
  line-height: 1.25;
}

.faq-icon {
  display: grid;
  min-width: 56px;
  height: 36px;
  place-items: center;
  border: 2px solid var(--line);
  background: var(--paper);
  font-family: "Inter", sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
}

.empty-state {
  padding: 30px;
  border: 2px dashed var(--line);
  background: var(--cream);
  font-weight: 900;
}

.reader-section {
  padding-top: clamp(42px, 7vw, 82px);
}

.reader-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  border: 2px solid var(--line);
  background: var(--paper);
  box-shadow: 10px 10px 0 rgba(255, 172, 207, 0.86);
}

.reader-article {
  padding: clamp(22px, 4vw, 42px);
}

.reader-article h2 {
  margin-bottom: 28px;
  font-size: clamp(1.7rem, 3.2vw, 3.8rem);
  line-height: 1.16;
}

.reader-body {
  display: grid;
  gap: 20px;
}

.reader-body h3 {
  margin-bottom: 8px;
  font-size: clamp(1.06rem, 1.8vw, 1.45rem);
  font-weight: 900;
}

.reader-body p {
  margin-bottom: 0;
  color: #243436;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.9;
}

.back-to-questions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 13px 18px;
  border: 2px solid var(--line);
  background: var(--yellow);
  box-shadow: 5px 5px 0 rgba(17, 17, 17, 0.18);
  font-weight: 900;
  line-height: 1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.back-to-questions::before {
  content: "↑";
  font-family: "Inter", sans-serif;
  font-size: 1.1em;
  line-height: 1;
}

.back-to-questions:hover,
.back-to-questions:focus-visible {
  background: var(--lime);
  box-shadow: 5px 9px 0 rgba(17, 17, 17, 0.13);
  transform: translateY(-6px);
}

.back-to-questions:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.scripture-column {
  border-left: 2px solid var(--line);
  background: #eef2ff;
  color: var(--ink);
}

.scripture-heading {
  padding: 22px;
  border-bottom: 2px solid var(--line);
}

.scripture-heading span {
  display: block;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scripture-heading strong {
  display: block;
  margin-top: 6px;
  font-size: 1.45rem;
  font-weight: 900;
}

.scripture-list {
  display: grid;
  gap: 0;
}

.scripture-list article {
  padding: 20px 22px;
  border-bottom: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
}

.scripture-list strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.scripture-list p {
  margin-bottom: 0;
  color: #29313d;
  font-size: 0.9rem;
  line-height: 1.8;
}

.ask-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding-bottom: clamp(72px, 10vw, 124px);
}

.ask-section > div p {
  color: var(--muted);
}

.ask-form {
  display: grid;
  gap: 14px;
  border: 2px solid var(--line);
  background:
    linear-gradient(135deg, var(--pink), var(--orange));
  padding: 18px;
  box-shadow: 8px 8px 0 rgba(17, 17, 17, 0.72);
}

@keyframes drift-block {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 10px 14px;
  }
}

@keyframes question-rise {
  0%,
  100% {
    opacity: 0;
    translate: 0 14px;
    transform: scale(0.96);
  }

  18%,
  72% {
    opacity: 0.9;
  }

  50% {
    translate: 0 -10px;
    transform: scale(1);
  }
}

.ask-form label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

.ask-form input,
.ask-form textarea {
  width: 100%;
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.ask-form input {
  min-height: 52px;
  padding: 0 14px;
}

.ask-form textarea {
  resize: vertical;
  padding: 12px 14px;
}

.ask-form button {
  min-height: 54px;
  border: 2px solid var(--line);
}

.form-note {
  min-height: 1.6em;
  margin: 0;
  font-weight: 900;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px clamp(18px, 4vw, 54px);
  border-top: 2px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.site-footer strong {
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .hero,
  .ask-section,
  .reader-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-board {
    grid-template-columns: 1fr;
    grid-template-rows: 340px 240px minmax(360px, auto);
    min-height: auto;
  }

  .panel-yellow {
    grid-column: auto;
    grid-row: auto;
  }

  .panel-ink,
  .panel-pink {
    grid-column: auto;
    grid-row: auto;
  }

  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scripture-column {
    border-top: 2px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    padding: 28px 14px 16px;
  }

  .hero-copy .ticker {
    margin-top: 14px;
  }

  h1 {
    font-size: clamp(2rem, 7.4vw, 3.05rem);
    line-height: 1.16;
    white-space: nowrap;
  }

  .hero-search div {
    display: grid;
  }

  .hero-search button {
    min-height: 50px;
    border-top: 2px solid var(--line);
    border-left: 0;
  }

  .hero-board {
    grid-template-rows: 320px 220px minmax(350px, auto);
  }

  .panel.has-caption {
    display: block;
    min-height: 320px;
    padding: 22px;
  }

  .panel.has-caption img {
    position: absolute;
    right: -18px;
    bottom: -8px;
    width: 58%;
    height: 92%;
    object-position: right bottom;
    transform: none;
  }

  .panel-caption {
    top: 22px;
    left: 22px;
    width: min(54%, 14em);
    font-size: clamp(1.45rem, 6.7vw, 2.15rem);
    line-height: 1.05;
    text-wrap: balance;
  }

  .panel-pink img {
    max-height: 210px;
  }

  .panel-footer-caption {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .themes-section,
  .questions-section,
  .ask-section,
  .reader-section {
    width: min(100% - 28px, 1240px);
  }

  .theme-grid {
    grid-template-columns: 1fr;
  }

  .theme-card {
    min-height: 132px;
  }

  .theme-preview {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .result-count {
    margin-bottom: 0;
  }

  .faq-question {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 86px;
  }

  .faq-category {
    grid-column: 1;
    grid-row: 1;
  }

  .faq-question strong {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .faq-icon {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .ask-section {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
