/*
 * The public site's look: cream paper, masking tape and polaroids (docs/ART_STYLE.md §7), warm
 * wood and rose, the clover's greens, and a navy rainy night for the alley.
 * Fonts: Jua (headings), Gowun Dodum (text), Gowun Batang + Cormorant Garamond (the title logo).
 */
:root {
  --paper: #fbf6ee;
  --paper-2: #f3e6d2;
  --card: #fffdf9;
  --ink: #3a2e2a;
  --soft: #7b6a62;
  --faint: #a8978c;
  --line: #eadfd0;
  --leaf: #7cc36b;
  --green: #3f8a3a;
  --green-ink: #ffffff;
  --mint: #eaf4e4;
  --rose: #e58c8a;
  --blush: #f8dcd5;
  --mustard: #e7b455;
  --lamp: #ffd48a;
  --navy: #2c3553;
  --navy-2: #222943;
  --tape: rgba(231, 180, 85, 0.5);
  --tape-2: rgba(157, 186, 138, 0.55);
  --code: #f3ecdf;
  --shadow: 0 10px 30px rgba(88, 60, 40, 0.1);
  --shadow-sm: 0 4px 14px rgba(88, 60, 40, 0.08);
  --radius: 22px;
  --title: "Gowun Batang", serif;
  --round: Jua, "Gowun Dodum", sans-serif;
  --text: "Gowun Dodum", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1f1a18;
    --paper-2: #2a221f;
    --card: #2b2421;
    --ink: #f3e9df;
    --soft: #c3b2a6;
    --faint: #8f7f75;
    --line: #40352f;
    --green: #9bd68c;
    --green-ink: #13210f;
    --mint: #233025;
    --blush: #3a2826;
    --code: #342b27;
    --tape: rgba(231, 180, 85, 0.35);
    --tape-2: rgba(157, 186, 138, 0.35);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: hidden;
}
a {
  color: var(--green);
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  font-family: var(--round);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 2px;
  border-radius: 6px;
}
.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}
.narrow {
  width: min(760px, 100% - 32px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 8px;
  z-index: 99;
  background: var(--card);
  padding: 6px 12px;
}

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--title);
  font-weight: 700;
  font-size: 21px;
  white-space: nowrap;
}
.brand small {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  color: var(--soft);
}
.top nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.top nav a {
  color: var(--soft);
  text-decoration: none;
  font-family: var(--round);
  font-size: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.top nav a:hover,
.top nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--paper-2);
}
.top nav .nav-cafe {
  background: var(--green);
  color: var(--green-ink);
  padding: 6px 14px;
}
.top nav .nav-cafe:hover,
.top nav .nav-cafe[aria-current="page"] {
  background: var(--green);
  color: var(--green-ink);
  filter: brightness(1.06);
}
.top nav .lang {
  font-family: var(--text);
  font-size: 14px;
  border: 1px solid var(--line);
}
@media (max-width: 720px) {
  .top nav .nav-hide {
    display: none;
  }
  .brand small {
    display: none;
  }
}

/* ---------- buttons, chips, tape ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-family: var(--round);
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn:active {
  transform: translateY(0);
}
.btn-main {
  background: var(--green);
  border-color: var(--green);
  color: var(--green-ink);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--green) 55%, #1d3b1a);
}
.btn-main:hover {
  box-shadow: 0 8px 0 color-mix(in srgb, var(--green) 55%, #1d3b1a);
}
.btn-rose {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}
.btn-lamp {
  background: var(--lamp);
  border-color: var(--lamp);
  color: #3a2e2a;
}
.btn-ghost {
  background: transparent;
}
.btn-small {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 15px;
}
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tape {
  position: relative;
}
.tape::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 96px;
  height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: var(--tape);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  z-index: 2;
}
.tape-green::before {
  background: var(--tape-2);
  transform: translateX(-50%) rotate(2deg);
}
.kicker {
  display: inline-block;
  font-family: var(--round);
  font-size: 15px;
  color: var(--green);
  background: var(--mint);
  padding: 2px 12px;
  border-radius: 999px;
  margin: 0 0 10px;
}
.chip {
  display: inline-block;
  font-family: var(--round);
  font-size: 13px;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--soft);
  white-space: nowrap;
}
.chip-cats,
.chip-tips {
  background: #fbe8c8;
  color: #8a5e1c;
}
.chip-devlog,
.chip-dev {
  background: var(--mint);
  color: var(--green);
}
.chip-notice {
  background: var(--blush);
  color: #b0504e;
}
.chip-free {
  background: #e3ecf6;
  color: #3d5f86;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chip-cats,
  :root:not([data-theme="light"]) .chip-tips {
    background: #4a3a1f;
    color: #f3d28f;
  }
  :root:not([data-theme="light"]) .chip-notice {
    color: #f5b3ae;
  }
  :root:not([data-theme="light"]) .chip-free {
    background: #26324a;
    color: #a9c3e6;
  }
}

/* ---------- sections ---------- */
.section {
  padding: 84px 0;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.section-head h2 {
  font-size: clamp(28px, 4.4vw, 40px);
  margin: 0 0 10px;
}
.section-head p {
  color: var(--soft);
  margin: 0;
}

/* ---------- hero ---------- */
.hero {
  padding: 28px 0 40px;
}
.hero-stage {
  position: relative;
}
.hero-art {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 2;
  max-height: 640px;
  width: 100%;
  background: var(--paper-2);
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  display: block;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(251, 246, 238, 0.55) 0%, rgba(251, 246, 238, 0) 42%);
  pointer-events: none;
}
.sparkles span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6d8 0%, rgba(255, 212, 138, 0) 70%);
  opacity: 0;
}
.hero-note {
  position: absolute;
  left: 40px;
  bottom: 40px;
  width: min(460px, 46%);
  background: var(--card);
  border-radius: var(--radius);
  padding: 34px 34px 30px;
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}
.hero-note .studio {
  margin: 0 0 6px;
  color: var(--soft);
  font-size: 15px;
}
.logo {
  margin: 0;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-ko {
  align-self: flex-start;
  font-family: var(--title);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 76px);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}
.logo-ko .ear {
  position: absolute;
  top: -0.32em;
  right: -0.1em;
  width: 0.5em;
  height: 0.38em;
}
.logo-en {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: 0.22em;
  color: var(--soft);
  margin-top: 10px;
}
.hero-lead {
  font-family: var(--round);
  font-size: clamp(19px, 2.2vw, 23px);
  margin: 18px 0 6px;
  line-height: 1.45;
}
.hero-text {
  color: var(--soft);
  margin: 0 0 16px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.badges li {
  font-family: var(--round);
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--paper-2);
}
.badges li:first-child {
  background: #fbe8c8;
  color: #7a4f14;
}
@media (max-width: 860px) {
  .hero-art {
    aspect-ratio: 4 / 3;
    border-radius: 24px;
  }
  .hero-art::after {
    display: none;
  }
  .hero-note {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    margin: -48px 12px 0;
    padding: 28px 22px 24px;
    transform: rotate(-0.6deg);
  }
}

/* ---------- story (three steps, zigzag) ---------- */
.story {
  display: grid;
  gap: 72px;
}
.step {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.step:nth-child(even) .polaroid {
  order: 2;
  transform: rotate(1.6deg);
}
.polaroid {
  background: #fffdf9;
  padding: 14px 14px 18px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  transform: rotate(-1.6deg);
  margin: 0;
}
.polaroid img {
  display: block;
  width: 100%;
  border-radius: 3px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.polaroid figcaption {
  font-family: var(--round);
  color: #7b6a62;
  text-align: center;
  font-size: 15px;
  margin-top: 10px;
}
.step-no {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-family: var(--round);
  font-size: 20px;
  margin-bottom: 10px;
}
.step:nth-child(2) .step-no {
  background: var(--mustard);
}
.step:nth-child(3) .step-no {
  background: var(--navy);
}
.step h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 10px;
}
.step p {
  color: var(--soft);
  margin: 0;
  font-size: 18px;
}
@media (max-width: 860px) {
  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .step:nth-child(even) .polaroid {
    order: 0;
  }
}

/* ---------- features ---------- */
.feat-bg {
  background: var(--paper-2);
  border-radius: 40px;
  margin-inline: 12px;
}
.feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.feats li {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.feats li:hover {
  transform: translateY(-4px) rotate(-0.4deg);
}
.feat-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  font-size: 27px;
  background: var(--mint);
  margin-bottom: 12px;
}
.feats li:nth-child(3n + 2) .feat-icon {
  background: #fbe8c8;
}
.feats li:nth-child(3n) .feat-icon {
  background: var(--blush);
}
.feats h3 {
  font-size: 21px;
  margin: 0 0 6px;
}
.feats p {
  margin: 0;
  color: var(--soft);
  font-size: 16px;
}
@media (max-width: 860px) {
  .feats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .feats {
    grid-template-columns: 1fr;
  }
  .feat-bg {
    margin-inline: 0;
    border-radius: 28px;
  }
}

/* ---------- cats (polaroid row) ---------- */
.cats-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 18px 16px 30px;
  margin: 0 -16px;
  scrollbar-width: thin;
}
.cat-card {
  flex: 0 0 230px;
  scroll-snap-align: center;
  background: #fffdf9;
  color: #3a2e2a;
  border-radius: 6px;
  padding: 12px 12px 16px;
  box-shadow: var(--shadow);
  margin: 0;
}
.cat-card:nth-child(odd) {
  transform: rotate(-1.4deg);
}
.cat-card:nth-child(even) {
  transform: rotate(1.2deg);
}
.cat-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 3px;
  background: #f3e6d2;
}
.cat-card h3 {
  margin: 12px 0 0;
  font-size: 22px;
}
.cat-card .breed {
  margin: 0;
  font-size: 13px;
  color: #a8978c;
}
.cat-card .hook {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: #7b6a62;
}
@media (min-width: 1000px) {
  .cats-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 30px 22px;
    overflow: visible;
    margin: 0;
    padding: 10px 0 30px;
  }
  .cat-card:nth-child(3n) {
    transform: rotate(0.6deg) translateY(8px);
  }
}
.cats-note {
  text-align: center;
  color: var(--faint);
  font-size: 14px;
  margin: 4px 0 0;
}

/* ---------- fan cafe teaser ---------- */
.cafe-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  background: var(--mint);
  border-radius: 40px;
  padding: 48px;
}
.cafe-teaser .polaroid {
  transform: rotate(-2deg);
}
.cafe-teaser h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 8px;
}
.cafe-teaser > div > p {
  color: var(--soft);
  margin: 0 0 18px;
}
.live {
  background: var(--card);
  border-radius: 18px;
  padding: 16px 18px;
  margin: 0 0 22px;
  box-shadow: var(--shadow-sm);
}
.live-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--round);
  margin: 0 0 6px;
}
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--leaf) 25%, transparent);
}
.live ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.live li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px dashed var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}
.live li:first-child a {
  border-top: 0;
}
.live li a span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live li a small {
  color: var(--faint);
  white-space: nowrap;
}
.live .empty {
  color: var(--soft);
  font-size: 15px;
  margin: 4px 0 0;
}
.boards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.boards li {
  background: var(--card);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 14px;
  font-family: var(--round);
}
@media (max-width: 860px) {
  .cafe-teaser {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 20px;
    border-radius: 28px;
  }
}

/* ---------- roadmap ---------- */
.road {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.road::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 6%;
  right: 6%;
  border-top: 3px dashed var(--line);
}
.road li {
  position: relative;
  text-align: center;
  padding-top: 44px;
}
.road li::before {
  content: "🐾";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--line);
  font-size: 15px;
}
.road li.done::before {
  border-color: var(--leaf);
  background: var(--mint);
}
.road li.now::before {
  border-color: var(--mustard);
  background: #fbe8c8;
  animation: bob 2.4s ease-in-out infinite;
}
.road time {
  font-family: var(--round);
  font-size: 18px;
}
.road p {
  margin: 4px 0 0;
  color: var(--soft);
  font-size: 15px;
}
@media (max-width: 720px) {
  .road {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .road::before {
    top: 10px;
    bottom: 10px;
    left: 16px;
    right: auto;
    border-top: 0;
    border-left: 3px dashed var(--line);
  }
  .road li {
    text-align: left;
    padding: 4px 0 22px 54px;
  }
  .road li::before {
    left: 0;
    transform: none;
  }
}

/* ---------- posts (cards) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 22px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}
.card-text {
  padding: 16px 18px 20px;
}
.card h3 {
  margin: 6px 0 4px;
  font-size: 19px;
}
.card p {
  margin: 0;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.6;
}
.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  color: var(--faint);
}
.more {
  text-align: center;
  margin: 28px 0 0;
}
.more a {
  font-family: var(--round);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--card);
  border-radius: 18px;
  padding: 4px 22px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--round);
  font-size: 18px;
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--green);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0 0 16px;
  color: var(--soft);
}

/* ---------- night (closing call) ---------- */
.night {
  position: relative;
  margin: 40px 12px 0;
  border-radius: 40px;
  overflow: hidden;
  color: #f6eee4;
  background: var(--navy);
  isolation: isolate;
}
.night > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.55;
}
.night::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(34, 41, 67, 0.35), rgba(34, 41, 67, 0.88));
}
.night-in {
  padding: 110px 24px 96px;
  text-align: center;
}
.night h2 {
  font-size: clamp(28px, 4.6vw, 44px);
  margin: 0 0 10px;
  color: #fff6e2;
  text-shadow: 0 0 24px rgba(255, 212, 138, 0.45);
}
.night p {
  margin: 0 auto 26px;
  max-width: 520px;
  color: #dcd3e6;
}
.night .btns {
  justify-content: center;
}
.night .btn-ghost {
  color: #fff6e2;
  border-color: rgba(255, 246, 226, 0.4);
}
.rain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(1px 14px at 50% 50%, rgba(225, 233, 255, 0.55), transparent), radial-gradient(1px 10px at 50% 50%, rgba(225, 233, 255, 0.4), transparent);
  background-size: 47px 83px, 71px 59px;
  background-position: 0 0, 23px 31px;
  mask-image: linear-gradient(180deg, #000, transparent 95%);
}
@media (max-width: 540px) {
  .night {
    margin-inline: 0;
    border-radius: 28px;
  }
  .night-in {
    padding: 72px 18px 64px;
  }
}

/* ---------- footer ---------- */
.foot {
  padding: 48px 0 56px;
  color: var(--soft);
  font-size: 15px;
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.foot-links a {
  color: var(--soft);
  text-decoration: none;
}
.foot-links a:hover {
  color: var(--ink);
}
.foot p {
  margin: 0;
}

/* ---------- blog pages ---------- */
.page-title {
  font-size: clamp(30px, 5vw, 42px);
  margin: 44px 0 6px;
}
.page-sub {
  color: var(--soft);
  margin: 0 0 28px;
}
.post {
  padding: 36px 0 8px;
}
.post h1 {
  font-size: clamp(28px, 5vw, 38px);
  margin: 10px 0 8px;
}
.post .lead {
  font-size: 19px;
  color: var(--soft);
  margin: 0 0 26px;
}
.post h2 {
  font-size: 26px;
  margin: 40px 0 10px;
}
.post h3 {
  font-size: 21px;
  margin: 28px 0 8px;
}
.post p {
  margin: 0 0 18px;
}
.post ul,
.post ol {
  margin: 0 0 18px;
  padding-left: 24px;
}
.post li {
  margin: 4px 0;
}
.post figure {
  margin: 26px 0;
}
.post figure img {
  display: block;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.post figcaption {
  text-align: center;
  font-size: 14px;
  color: var(--soft);
  margin-top: 8px;
}
.post blockquote {
  margin: 20px 0;
  padding: 10px 18px;
  border-left: 4px solid var(--leaf);
  background: var(--mint);
  border-radius: 0 12px 12px 0;
}
.post blockquote p {
  margin: 0;
}
.post code {
  background: var(--code);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
}
.post pre {
  background: var(--code);
  border-radius: 12px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}
.post pre code {
  background: none;
  padding: 0;
}
.table {
  overflow-x: auto;
  margin: 0 0 18px;
}
.table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}
.table th {
  font-family: var(--round);
  font-weight: 400;
}
.cta {
  background: var(--card);
  border-radius: 28px;
  padding: 34px 26px;
  margin: 40px 0;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.cta-title {
  font-family: var(--round);
  font-size: 24px;
  margin: 0;
}
.cta-launch {
  color: var(--soft);
  margin: 6px 0 20px;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 40px;
}
.pager a {
  display: flex;
  gap: 8px;
  max-width: 48%;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}
.pager span {
  color: var(--green);
}
.pager .next {
  text-align: right;
  margin-left: auto;
}
.not-found {
  text-align: center;
  padding: 100px 0;
}
.not-found h1 {
  font-size: 64px;
  margin: 0;
}

/* ---------- motion ---------- */
@keyframes bob {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -4px);
  }
}
@keyframes drift {
  0% {
    transform: scale(1.04) translate(0, 0);
  }
  100% {
    transform: scale(1.08) translate(-1.2%, -1%);
  }
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0) scale(0.6);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-18px) scale(1);
  }
}
@keyframes rain {
  to {
    background-position: -8px 332px, 15px 267px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art img {
    animation: drift 24s ease-in-out infinite alternate;
  }
  .sparkles span {
    animation: twinkle 5s ease-in-out infinite;
  }
  .rain {
    animation: rain 1.1s linear infinite;
  }
  .js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 720px) {
  .road li.now::before {
    animation: none;
  }
}
