:root {
  --blue: #3777c8;
  --green: #c8d69f;
  --vanilla: #f6e6a5;
  --ivory: #f7fbff;
  --brown: #343b1f;
  --text: #273243;
  --muted: #6b7280;
  --card: #ffffff;
  --soft-blue: #d8c8ff;
  --line: rgba(52, 59, 31, 0.13);
  --radius: 30px;
  --shadow: 0 18px 40px rgba(55, 119, 200, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(135, 205, 255, 0.24), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(165, 225, 255, 0.20), transparent 30%),
    radial-gradient(circle at 28% 78%, rgba(198, 220, 170, 0.16), transparent 30%),
    radial-gradient(circle at 75% 82%, rgba(170, 210, 165, 0.12), transparent 26%),
    var(--ivory);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  padding: 22px 0;
  position: relative;
  z-index: 100;
}

.nav {
  min-height: 64px;
  position: relative;
  z-index: 100;
  padding: 12px 24px;
  border-radius: 22px;
  background: rgba(255, 253, 244, 0.86);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(52, 59, 31, 0.06);
}

.logo {
  font-family: 'Comfortaa', sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: var(--blue);
  letter-spacing: -0.04em;
  -webkit-text-stroke: 0.4px var(--blue);
  text-shadow: 0 0 0.3px var(--blue);
}

.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  opacity: 0.82;
  margin: 0 auto;
  flex-wrap: nowrap;
  white-space: nowrap;
  grid-column: 2;
}

.menu a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(55, 119, 200, 0.10);
  background: rgba(255,255,255,0.55);
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s ease;
}

.menu a:hover {
  background: rgba(55, 119, 200, 0.08);
  border-color: rgba(55, 119, 200, 0.18);
}

.visual-journal-link {
  position: relative;
}

.hero {
  padding: 12px 0 30px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 22px;
  align-items: stretch;
}

.hero-main {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 38px;
  padding: 46px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: visible;
}

.eyebrow {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--vanilla);
  color: var(--brown);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 20px;
}

h1 {
  font-family: 'Comfortaa', sans-serif;
  font-size: clamp(42px, 7vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.08em;
  color: var(--blue);
  margin-bottom: 18px;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.lead-accent {
  display: block;
  font-family: 'Comfortaa', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.4;
  margin-bottom: 18px;
}

.actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(55, 119, 200, 0.18);
}

.btn.primary {
  background: var(--blue);
  color: var(--ivory);
  border-color: var(--blue);
}

.btn.primary:hover {
  background: #2f68b0;
  border-color: #2f68b0;
}

.btn.secondary {
  background: var(--green);
  color: var(--brown);
}

.btn.secondary:hover {
  background: #b7c98d;
}

.hero-side {
  display: grid;
  gap: 18px;
}

.brand-card {
  border-radius: 34px;
  padding: 26px;
  min-height: 180px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(55, 119, 200, 0.20);
  filter: saturate(1.04);
}

.brand-card:active {
  transform: translateY(-2px);
}

.brand-card.blue {
  background: var(--blue);
  color: var(--ivory);
}

.brand-card.green {
  background: var(--green);
  color: var(--brown);
}

.brand-card.vanilla {
  background: var(--vanilla);
  color: var(--brown);
}

.brand-card.soft-blue {
  background: var(--soft-blue);
  color: var(--brown);
  border-color: rgba(55, 119, 200, 0.18);
}

.brand-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  min-height: 40px;
}

.brand-card-title img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-card h3 {
  font-family: 'Comfortaa', sans-serif;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.03em;
  -webkit-text-stroke: 0.3px currentColor;
  margin: 0;
  line-height: 1;
}

.section {
  padding: 18px 0 34px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  font-family: 'Comfortaa', sans-serif;
  font-size: 34px;
  color: var(--brown);
}

.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.post {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 26px 26px 48px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
  min-height: 250px;
  height: 100%;
  position: relative;
}

.post-meta {
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.post-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.post-link .post {
  cursor: pointer;
}

.post:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(55, 119, 200, 0.16);
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.tag {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border: 1px solid transparent;
}

.tag.blue {
  background: rgba(55, 119, 200, 0.11);
  color: var(--blue);
  border-color: rgba(55, 119, 200, 0.18);
}

.tag.green {
  background: rgba(200, 214, 159, 0.28);
  color: var(--brown);
  border-color: rgba(200, 214, 159, 0.45);
}

.tag.vanilla {
  background: rgba(246, 230, 165, 0.45);
  color: var(--brown);
  border-color: rgba(246, 230, 165, 0.60);
}

.tag.soft-blue {
  background: color-mix(in srgb, var(--soft-blue) 35%, white);
  color: #5f46a8;
  border-color: color-mix(in srgb, var(--soft-blue) 55%, white);
}

.tag.dark {
  background: rgba(39, 50, 67, 0.08);
  color: var(--text);
  border-color: rgba(39, 50, 67, 0.14);
}

.tag.accent {
  background: rgba(122, 92, 207, 0.12);
  color: #7a5ccf;
  border-color: rgba(122, 92, 207, 0.20);
}

.tag.red {
  background: rgba(255, 110, 110, 0.14);
  color: #c94a4a;
  border-color: rgba(255, 110, 110, 0.28);
}

.tag.rainbow {
  background: linear-gradient(
    90deg,
    rgba(255, 110, 110, 0.18),
    rgba(246, 230, 165, 0.42),
    rgba(200, 214, 159, 0.34),
    rgba(55, 119, 200, 0.16),
    rgba(216, 200, 255, 0.36)
  );
  color: var(--brown);
  border-color: rgba(122, 92, 207, 0.22);
}

.post .tag {
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.post .tag:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

.post h3 {
  font-family: 'Comfortaa', sans-serif;
  font-size: 24px;
  margin-bottom: 12px;
}

.post p {
  padding-bottom: 14px;
}

.mobile-menu {
  display: none;
  position: relative;
  grid-column: 2;
  justify-self: center;
}

.menu-button {
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
  color: var(--brown);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-menu-list {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  min-width: 190px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 253, 244, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 999;
}

.mobile-menu-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brown);
}

.mobile-menu-list a:hover {
  background: rgba(55, 119, 200, 0.08);
}

.mobile-menu:hover .mobile-menu-list,
.mobile-menu:focus-within .mobile-menu-list {
  display: block;
}

.search-box input {
  height: 42px;
  width: 160px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
  padding: 0 18px;
  font-size: 14px;
  outline: none;
  color: var(--text);
}

.search-results-mode .hero {
  display: none;
}

.search-results-mode .section {
  padding-top: 12px;
}

.search-query-title {
  display: none;
  margin-bottom: 18px;
  font-family: 'Comfortaa', sans-serif;
  font-size: 34px;
  color: var(--brown);
}

.search-query-word {
  color: var(--blue);
  background: rgba(55, 119, 200, 0.08);
  border-radius: 999px;
  padding: 6px 16px;
  font-family: 'Comfortaa', sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
}

.search-results-mode .search-query-title {
  display: block;
}

.search-toolbar {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.search-results-mode .search-toolbar {
  display: flex;
}

.search-results-mode .search-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-back-button {
  display: none;
  height: 44px;
  margin-top: 22px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(55, 119, 200, 0.18);
  background: var(--blue);
  color: var(--ivory);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.search-back-button:hover {
  transform: translateY(-1px);
  background: #4b86d2;
  box-shadow: 0 10px 24px rgba(55, 119, 200, 0.18);
}

.search-results-mode .section-head {
  display: none;
}

.search-highlight {
  background: rgba(246, 230, 165, 0.72);
  color: var(--brown);
  border-radius: 8px;
  padding: 1px 5px;
  font-weight: 700;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.donate-wrap {
  position: relative;
  display: inline-flex;
}

.donate-toast {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(8px) scale(0.98);
  color: #7a5ccf;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
  z-index: 9999;
}

.donate-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.search-empty {
  display: none;
  margin-top: 22px;
  padding: 22px 26px;
  border-radius: 24px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255, 110, 110, 0.18);
  color: #b14d4d;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 10px 24px rgba(255, 110, 110, 0.08);
}

.coming-soon-toast {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px) scale(0.96);
  min-width: max-content;
  padding: 8px 13px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.72);

  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);

  color: #7a5ccf;
  font-family: 'Comfortaa', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-align: left;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);

  box-shadow:
    0 16px 36px rgba(122, 92, 207, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);

  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
  z-index: 99999;
  will-change: opacity, transform, filter;
}

.coming-soon-toast.show {
  animation: comingSoonIn 0.58s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.coming-soon-toast.hide {
  animation: comingSoonOut 0.38s ease forwards;
}

@keyframes comingSoonIn {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(-50%) translateX(-12px) scale(0.92);
  }

  65% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-50%) translateX(3px) scale(1.03);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-50%) translateX(0) scale(1);
  }
}

@keyframes comingSoonOut {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-50%) translateX(0) scale(1);
  }

  100% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(-50%) translateX(-8px) scale(0.96);
  }
}

@keyframes comingSoonIn {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(-50%) translateX(-12px) scale(0.92);
  }

  65% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-50%) translateX(3px) scale(1.03);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-50%) translateX(0) scale(1);
  }
}

@keyframes comingSoonOut {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-50%) translateX(0) scale(1);
  }

  100% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(-50%) translateX(-8px) scale(0.96);
  }
}

footer {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 960px) {
  .hero,
  .posts {
    grid-template-columns: 1fr;
  }

  .menu a {
    font-size: 13px;
    padding: 6px 10px;
  }

  .search-box input {
    width: clamp(80px, 18vw, 120px);
  }

  .logo {
    font-size: 26px;
  }
}

@media (max-width: 820px) {
  .menu {
    display: none;
  }

  .nav {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .mobile-menu {
    display: block;
    grid-column: 2;
    justify-self: center;
  }

  .search-box {
    grid-column: 3;
    justify-self: end;
  }

  .coming-soon-toast {
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%) translateY(-6px) scale(0.96);
    font-size: 16px;
    text-align: center;
  }

  @keyframes comingSoonIn {
    0% {
      opacity: 0;
      filter: blur(12px);
      transform: translateX(-50%) translateY(-10px) scale(0.92);
    }

    65% {
      opacity: 1;
      filter: blur(0);
      transform: translateX(-50%) translateY(2px) scale(1.03);
    }

    100% {
      opacity: 1;
      filter: blur(0);
      transform: translateX(-50%) translateY(0) scale(1);
    }
  }

  @keyframes comingSoonOut {
    0% {
      opacity: 1;
      filter: blur(0);
      transform: translateX(-50%) translateY(0) scale(1);
    }

    100% {
      opacity: 0;
      filter: blur(8px);
      transform: translateX(-50%) translateY(-8px) scale(0.96);
    }
  }
}

@media (max-width: 720px) {
  .logo {
    font-size: 22px;
  }
}

@media (max-width: 600px) {
  .search-box input {
    width: 96px;
    padding: 0 12px;
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .nav {
    gap: 10px;
    padding: 10px 14px;
  }

  .search-box input {
    width: 82px;
    padding: 0 10px;
  }
}