html {
  font-size: 87.5%;
}

:root {
  --color-ink: 95 61 38;
  --color-mist: 255 255 255;
  --color-coral: 139 95 61;
  --color-pine: 163 112 76;
  --color-sand: 229 200 167;
  --color-cloud: 222 184 141;
  --color-panel: 248 241 233;
  --line-dark: rgba(var(--color-ink), 0.18);
  --line-mid: rgba(var(--color-ink), 0.12);
  --line-light: rgba(255, 255, 255, 0.6);
}

body {
  background-color: rgb(var(--color-mist));
  background-image: none;
  color: rgb(var(--color-ink));
}

body.mobile-nav-open {
  overflow: hidden;
}

a {
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

h1,
h2,
h3,
.display-title,
.home-hero-title,
.feed-title,
.soft-stat strong {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 40, "WONK" 0;
}

main > section + section {
  position: relative;
}

main > section + section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(var(--color-ink), 0),
    rgba(var(--color-ink), 0.16) 18%,
    rgba(255, 255, 255, 0.72) 50%,
    rgba(var(--color-ink), 0.16) 82%,
    rgba(var(--color-ink), 0)
  );
}

.text-sm.leading-7 {
  font-size: 0.98rem;
  line-height: 1.75rem;
}

.nav-pill {
  border-radius: 9999px;
  padding: 0.7rem 1rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--color-ink), 0.66);
  border: 1px solid transparent;
  transition: 150ms ease;
}

.nav-pill:hover,
.nav-pill.active {
  background: rgba(var(--color-panel), 0.92);
  border-color: rgba(var(--color-ink), 0.14);
  color: rgb(var(--color-ink));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 16px rgba(var(--color-ink), 0.06);
}

.mobile-nav {
  position: relative;
  flex-shrink: 0;
  z-index: 40;
}

.mobile-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(var(--color-ink), 0.16);
  border-radius: 9999px;
  background: rgba(var(--color-panel), 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 24px rgba(var(--color-ink), 0.08);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  z-index: 42;
}

.mobile-nav__backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(248, 241, 233, 0.84);
  backdrop-filter: blur(6px);
  z-index: 39;
}

.mobile-nav__toggle-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 0.26rem;
  width: 1.1rem;
}

.mobile-nav__toggle-lines span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 9999px;
  background: rgb(var(--color-ink));
  transition: transform 150ms ease, opacity 150ms ease;
  transform-origin: center;
}

.mobile-nav.is-open .mobile-nav__toggle-lines span:nth-child(1) {
  transform: translateY(0.4rem) rotate(45deg);
}

.mobile-nav.is-open .mobile-nav__toggle-lines span:nth-child(2) {
  opacity: 0;
}

.mobile-nav.is-open .mobile-nav__toggle-lines span:nth-child(3) {
  transform: translateY(-0.4rem) rotate(-45deg);
}

.mobile-nav__panel {
  position: fixed;
  right: 1rem;
  top: calc(env(safe-area-inset-top, 0px) + 5.35rem);
  width: min(22rem, calc(100vw - 2rem));
  max-height: calc(100vh - 6.5rem);
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid rgba(var(--color-ink), 0.1);
  border-top: 4px solid rgba(var(--color-coral), 0.86);
  border-radius: 1.2rem;
  background: #fffdfa;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 24px 52px rgba(73, 45, 27, 0.14);
  z-index: 41;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  width: 100%;
}

.mobile-nav__link {
  display: block;
  width: 100%;
  border-radius: 0.95rem;
  border: 1px solid rgba(var(--color-ink), 0.08);
  background: #fffdfa;
  padding: 0.95rem 1rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(var(--color-ink), 0.72);
}

.mobile-nav__link.active,
.mobile-nav__link:hover {
  border-color: rgba(var(--color-ink), 0.14);
  background: rgba(var(--color-panel), 0.92);
  color: rgb(var(--color-ink));
}

.mobile-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(var(--color-ink), 0.1);
}

.mobile-nav__user {
  border-radius: 0.95rem;
  background: rgba(var(--color-panel), 0.92);
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(var(--color-ink), 0.82);
  overflow-wrap: anywhere;
}

.section-kicker {
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(var(--color-coral), 0.94);
}

.display-title {
  font-size: clamp(3.1rem, 5vw, 4.45rem);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.home-hero-title {
  font-size: clamp(2.4rem, 4.8vw, 3.9rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.category-tone {
  --tone-rgb: var(--color-coral);
  --tone-soft-rgb: var(--color-sand);
  --tone-deep-rgb: var(--color-ink);
}

.category-tone--money {
  --tone-rgb: 193 120 34;
  --tone-soft-rgb: 241 217 159;
  --tone-deep-rgb: 116 74 20;
}

.category-tone--career {
  --tone-rgb: 189 87 64;
  --tone-soft-rgb: 243 201 186;
  --tone-deep-rgb: 122 55 44;
}

.category-tone--relationships {
  --tone-rgb: 182 97 124;
  --tone-soft-rgb: 241 211 222;
  --tone-deep-rgb: 111 52 77;
}

.category-tone--love-dating {
  --tone-rgb: 210 117 98;
  --tone-soft-rgb: 248 215 204;
  --tone-deep-rgb: 126 67 54;
}

.category-tone--health-fitness {
  --tone-rgb: 98 151 116;
  --tone-soft-rgb: 207 234 214;
  --tone-deep-rgb: 54 101 69;
}

.category-tone--mental-health {
  --tone-rgb: 103 125 173;
  --tone-soft-rgb: 214 222 243;
  --tone-deep-rgb: 57 71 110;
}

.category-tone--friendships {
  --tone-rgb: 80 148 152;
  --tone-soft-rgb: 202 234 236;
  --tone-deep-rgb: 48 96 100;
}

.category-tone--family {
  --tone-rgb: 154 103 76;
  --tone-soft-rgb: 231 209 194;
  --tone-deep-rgb: 98 63 43;
}

.category-tone--personal-growth {
  --tone-rgb: 147 98 182;
  --tone-soft-rgb: 227 213 241;
  --tone-deep-rgb: 90 58 112;
}

.category-tone--time-productivity {
  --tone-rgb: 214 123 59;
  --tone-soft-rgb: 247 219 197;
  --tone-deep-rgb: 130 74 34;
}

.category-tone--failure-risk {
  --tone-rgb: 205 100 86;
  --tone-soft-rgb: 246 212 207;
  --tone-deep-rgb: 128 56 47;
}

.category-tone--self-worth-confidence {
  --tone-rgb: 146 113 196;
  --tone-soft-rgb: 228 219 244;
  --tone-deep-rgb: 90 68 119;
}

.surface-panel {
  border: 1px solid rgba(var(--color-ink), 0.11);
  border-top: 4px solid rgba(var(--tone-rgb), 0.92);
  background: linear-gradient(180deg, rgba(var(--tone-soft-rgb), 0.14), rgba(255, 255, 255, 0) 4rem), #fffdfa;
  border-radius: 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 10px 30px rgba(73, 45, 27, 0.07);
  backdrop-filter: blur(8px);
}

.subtle-panel {
  border: 1px solid rgba(var(--color-ink), 0.1);
  border-top: 3px solid rgba(var(--tone-rgb), 0.85);
  background: linear-gradient(180deg, rgba(var(--tone-soft-rgb), 0.18), rgba(255, 255, 255, 0) 4rem), #fffdfa;
  border-radius: 0.9rem;
  box-shadow: 0 8px 24px rgba(73, 45, 27, 0.05);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--color-ink), 0.12);
  border-top: 5px solid rgba(var(--color-coral), 0.92);
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(var(--color-panel), 0.38), rgba(255, 255, 255, 0.92)), #fffdfa;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 16px 42px rgba(73, 45, 27, 0.08);
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  filter: blur(4px);
}

.hero-panel::before {
  width: 24rem;
  height: 24rem;
  top: -10rem;
  left: -6rem;
  background: rgba(var(--color-cloud), 0.14);
}

.hero-panel::after {
  width: 28rem;
  height: 28rem;
  top: -12rem;
  right: -8rem;
  background: rgba(var(--color-sand), 0.12);
}

.hero-panel--home {
  border-color: rgba(31, 23, 18, 0.65);
  border-top-color: #d1a257;
  background:
    radial-gradient(circle at top center, rgba(220, 164, 84, 0.16), transparent 20rem),
    repeating-linear-gradient(-35deg, rgba(255, 255, 255, 0.02) 0 16px, rgba(0, 0, 0, 0.05) 16px 32px),
    linear-gradient(180deg, #211713, #2b1d17 48%, #37241c);
  box-shadow: 0 24px 60px rgba(35, 22, 13, 0.16);
}

.hero-panel--home::before,
.hero-panel--home::after {
  display: none;
}

.hero-panel--home .section-kicker {
  color: rgba(225, 185, 118, 0.88);
}

.hero-panel--home .home-hero-title,
.hero-panel--home .text-ink {
  color: #fff5e6;
}

.hero-panel--home .text-pine,
.hero-panel--home p.text-lg {
  color: rgba(246, 232, 214, 0.76);
}

.hero-panel--home .surface-panel {
  background: linear-gradient(180deg, rgba(255, 248, 239, 0.96), rgba(255, 252, 247, 0.94));
}

.hero-panel--home .ghost-button {
  background: rgba(255, 248, 239, 0.12);
  color: #fff5e6;
  border-color: rgba(255, 241, 222, 0.22);
  box-shadow: none;
}

.hero-panel--home .ghost-button:hover {
  background: rgba(255, 248, 239, 0.2);
}

.home-hero-support {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
}

.home-hero-support__summary {
  border: 1px solid rgba(255, 241, 222, 0.14);
  border-left: 4px solid rgba(225, 185, 118, 0.88);
  border-radius: 0.95rem;
  background: rgba(255, 248, 239, 0.08);
  padding: 1.1rem 1.15rem 1.15rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.home-hero-support__label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(225, 185, 118, 0.88);
}

.home-hero-support__summary h2 {
  margin-top: 0.55rem;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  line-height: 1.02;
  color: #fff7ed;
}

.home-hero-support__summary p:last-child {
  margin-top: 0.65rem;
  max-width: 34rem;
  font-size: 0.96rem;
  line-height: 1.7;
  color: rgba(255, 240, 221, 0.76);
}

.home-hero-support__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.category-chip {
  --tone-rgb: var(--color-coral);
  --tone-soft-rgb: var(--color-sand);
  --tone-deep-rgb: var(--color-ink);
  background: rgba(var(--tone-rgb), 0.12) !important;
  color: rgb(var(--tone-deep-rgb)) !important;
  border-color: rgba(var(--tone-rgb), 0.16) !important;
}

.why-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.why-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  border-radius: 1.3rem;
  background: linear-gradient(135deg, rgba(var(--tone-soft-rgb), 0.42), rgba(var(--tone-rgb), 0.12));
  color: rgb(var(--tone-deep-rgb));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.why-card__icon svg {
  width: 2rem;
  height: 2rem;
}

.accent-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.82rem 1.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(var(--color-ink), 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 16px rgba(var(--color-ink), 0.08);
}

.accent-button {
  background: linear-gradient(135deg, rgb(var(--color-coral)), rgb(var(--color-pine)));
  color: white;
  border-color: rgba(var(--color-ink), 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 30px rgba(var(--color-coral), 0.26);
}

.accent-button:hover {
  background: linear-gradient(135deg, #744d31, #8e6242);
}

.category-tone .accent-button {
  background: linear-gradient(135deg, rgb(var(--tone-rgb)), rgb(var(--tone-deep-rgb)));
  border-color: rgba(var(--tone-deep-rgb), 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 24px rgba(var(--tone-rgb), 0.22);
}

.category-tone .accent-button:hover {
  filter: brightness(0.96);
}

.ghost-button {
  border: 1px solid rgba(var(--color-ink), 0.16);
  background: rgba(var(--color-panel), 0.8);
  color: rgb(var(--color-ink));
}

.category-tone .ghost-button {
  border-color: rgba(var(--tone-rgb), 0.16);
  background: rgba(var(--tone-soft-rgb), 0.2);
  color: rgb(var(--tone-deep-rgb));
}

.ghost-button:hover {
  background: rgba(var(--color-panel), 0.96);
  border-color: rgba(var(--color-ink), 0.22);
}

.auth-google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3.5rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid rgba(95, 61, 38, 0.18);
  border-radius: 9999px;
  background: #ffffff;
  color: #3c4043;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 20px rgba(60, 64, 67, 0.08);
}

.auth-google-button:hover {
  background: #f8fafc;
  border-color: rgba(95, 61, 38, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 24px rgba(60, 64, 67, 0.12);
}

.auth-google-button:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 4px rgba(66, 133, 244, 0.18),
    0 10px 24px rgba(60, 64, 67, 0.12);
}

.auth-google-button__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.segment-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border: 1px solid rgba(var(--color-ink), 0.16);
  border-radius: 9999px;
  background: rgba(var(--color-panel), 0.76);
  padding: 0.45rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.segment-link {
  border-radius: 9999px;
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(var(--color-ink), 0.64);
}

.segment-link.active,
.segment-link:hover {
  background: rgb(var(--color-panel));
  color: rgb(var(--color-ink));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 18px rgba(var(--color-ink), 0.08);
}

.category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(var(--color-ink), 0.08);
  border-left: 4px solid rgba(var(--tone-rgb), 0.92);
  border-radius: 0.8rem;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(var(--color-ink), 0.72);
  transition: 150ms ease;
  background: linear-gradient(180deg, rgba(var(--tone-soft-rgb), 0.18), rgba(255, 255, 255, 0) 3.5rem), #fffdfa;
}

.category-link:hover,
.category-link.active {
  border-color: rgba(var(--tone-rgb), 0.2);
  background: linear-gradient(180deg, rgba(var(--tone-soft-rgb), 0.24), rgba(255, 255, 255, 0) 3.5rem), #fffdfa;
  color: rgb(var(--color-ink));
}

.feed-shell {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .feed-shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

.feed-sidebar,
.feed-main {
  border: 1px solid rgba(var(--color-ink), 0.1);
  background: #fffdfa;
  border-radius: 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 34px rgba(73, 45, 27, 0.06);
  backdrop-filter: blur(16px);
}

.feed-sidebar {
  padding: 1.35rem;
}

.feed-main {
  overflow: hidden;
}

.feed-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid rgba(var(--color-ink), 0.16);
  padding: 1.75rem 1.75rem 1.5rem;
}

@media (min-width: 768px) {
  .feed-toolbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
  }
}

.feed-list {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
}

@media (min-width: 1024px) {
  .feed-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .feed-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.feed-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: 1.5rem;
  min-height: 100%;
  /* Match the full card outline to the category tone used by the primary CTA. */
  border: 2px solid rgb(var(--tone-rgb));
  border-top: 4px solid rgb(var(--tone-rgb));
  border-radius: 0.75rem;
  background: linear-gradient(180deg, rgba(var(--tone-soft-rgb), 0.22), rgba(255, 255, 255, 0) 4rem), #fffdfa;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    0 12px 32px rgba(73, 45, 27, 0.06);
}

.feed-vote {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(var(--tone-rgb), 0.18);
  border-radius: 9999px;
  background: rgba(var(--tone-soft-rgb), 0.34);
  color: rgb(var(--tone-deep-rgb));
}

.feed-vote strong {
  font-size: 0.9rem;
  line-height: 1;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
}

.feed-vote span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--tone-deep-rgb), 0.76);
}

.feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: center;
  margin-bottom: 0;
}

.feed-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(var(--tone-rgb), 0.14);
  background: rgba(var(--tone-soft-rgb), 0.38);
  color: rgb(var(--tone-deep-rgb));
  padding: 0.32rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feed-muted {
  font-size: 0.76rem;
  color: rgba(var(--color-ink), 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feed-title {
  font-size: clamp(1.7rem, 2vw, 2.05rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.feed-summary {
  margin-top: 0;
  max-width: none;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(var(--color-ink), 0.76);
}

.feed-learning {
  margin-top: 0;
  padding-left: 0.8rem;
  border-left: 3px solid rgba(var(--tone-rgb), 0.26);
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgb(var(--tone-deep-rgb));
}

.feed-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.3rem;
}

.feed-actions .spacer {
  flex: 1 1 auto;
}

.feed-note {
  margin-top: 0.15rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(var(--tone-rgb), 0.16);
  font-size: 0.83rem;
  line-height: 1.65;
  color: rgba(var(--color-ink), 0.62);
}

.feed-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feed-card--compact .feed-title {
  font-size: clamp(1.35rem, 2vw, 1.55rem);
}

.feed-card--compact .feed-summary {
  font-size: 0.9rem;
  line-height: 1.65;
}

.feed-card--compact .feed-note {
  margin-top: 0;
}

.feed-inline-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(var(--tone-rgb));
}

.feed-inline-link:hover {
  color: rgb(var(--tone-deep-rgb));
}

.soft-stat {
  border: 1px solid rgba(var(--color-ink), 0.1);
  border-top: 4px solid rgba(var(--color-coral), 0.85);
  border-radius: 0.85rem;
  background: linear-gradient(180deg, rgba(var(--color-sand), 0.18), rgba(255, 255, 255, 0) 4rem), #fffdfa;
  padding: 1.1rem 1.15rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56), 0 10px 26px rgba(var(--color-ink), 0.05);
}

.soft-stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.soft-stat span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: rgba(var(--color-ink), 0.58);
}

/* Group the discover counters into a single bordered panel without changing layout. */
.discover-stats {
  margin: 0.85rem 1.5rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(var(--color-coral), 0.42);
  border-radius: 0.9rem;
  background: rgba(255, 253, 250, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(var(--color-coral), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.discover-stats + .feed-list {
  padding-top: 1rem;
}

.detail-block {
  border-top: 1px solid rgba(var(--color-ink), 0.16);
  padding-top: 1.75rem;
}

.story-prose {
  max-width: none;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(0.93rem, 1.05vw, 1.1rem);
  line-height: 1.8;
  font-weight: 400;
  color: rgba(var(--tone-deep-rgb), 0.88);
}

.story-prose p + p {
  margin-top: 0.85rem;
}

.learning-callout {
  position: relative;
  max-width: 32rem;
  margin-top: 0.75rem;
  padding: 1rem 1.15rem 1rem 1.25rem;
  border-left: 4px solid rgba(var(--tone-rgb), 0.82);
  background: linear-gradient(180deg, rgba(var(--tone-soft-rgb), 0.32), rgba(var(--tone-soft-rgb), 0.18));
}

.learning-callout__label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--tone-rgb), 0.9);
}

.learning-callout__body {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.16rem, 1.65vw, 1.42rem);
  line-height: 1.8;
  font-style: italic;
  color: rgba(var(--tone-deep-rgb), 0.96);
}

.learning-callout__body p + p {
  margin-top: 0.9rem;
}

.story-panel {
  background: linear-gradient(180deg, rgba(var(--tone-soft-rgb), 0.18), rgba(255, 255, 255, 0) 5rem), #fffdfa;
}

.story-panel .feed-tag,
.story-panel .feed-vote {
  align-self: flex-start;
}

.story-toggle {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(var(--tone-rgb));
  cursor: pointer;
}

.story-toggle:hover {
  color: rgb(var(--tone-deep-rgb));
}

.editorial-mini-card {
  background: linear-gradient(180deg, rgba(var(--tone-soft-rgb), 0.22), rgba(255, 255, 255, 0) 4rem), #fffdfa;
}

.detail-block:first-child {
  border-top: 0;
  padding-top: 0;
}

.message-toast {
  border: 1px solid rgba(var(--color-ink), 0.16);
  background: rgba(var(--color-panel), 0.94);
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 14px 34px rgba(var(--color-ink), 0.1);
}

label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--color-ink), 0.5);
}

input,
select,
textarea {
  width: 100%;
  border-radius: 0.8rem;
  border: 1px solid rgba(var(--color-ink), 0.18);
  background: rgba(var(--color-panel), 0.9);
  padding: 0.95rem 1rem;
  color: rgb(var(--color-ink));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(var(--color-coral), 0.35);
  box-shadow: 0 0 0 4px rgba(var(--color-coral), 0.14);
  outline: none;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  border: 1px solid rgba(var(--color-ink), 0.34);
  background: #fffdfa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.auth-form input:hover,
.auth-form select:hover,
.auth-form textarea:hover {
  border-color: rgba(var(--color-ink), 0.34);
}

.auth-form input::placeholder,
.auth-form textarea::placeholder {
  color: rgba(var(--color-ink), 0.48);
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: rgba(var(--color-coral), 0.5);
  box-shadow: 0 0 0 4px rgba(var(--color-coral), 0.12);
}

.discover-filters label {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
}

/* Override the shared form control styling so the discover filters always use the brown outline. */
.discover-filters #discover-q,
.discover-filters #discover-category {
  border: 1px solid rgb(var(--color-coral)) !important;
  background: #fffdfa !important;
  box-shadow: inset 0 0 0 1px rgba(var(--color-coral), 0.08) !important;
}

.story-content--collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.admin-nav {
  background: transparent;
}

.admin-nav:hover,
.admin-nav.active {
  background: rgb(var(--color-ink));
  color: #fff;
}

.admin-shell {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .admin-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

.admin-sidebar {
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .admin-sidebar {
    position: sticky;
    top: 1.5rem;
  }
}

.admin-sidebar__nav {
  display: grid;
  gap: 0.55rem;
}

.admin-sidebar__link {
  display: block;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.95rem 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 245, 230, 0.74);
  transition: 150ms ease;
}

.admin-sidebar__link:hover,
.admin-sidebar__link.active {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 248, 239, 0.12);
  color: #fff7ed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.16);
}

.admin-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(var(--color-ink), 0.14);
  padding: 1rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--color-ink), 0.58);
}

.admin-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 1.25rem;
  padding: 0.85rem 1rem;
  transition: 150ms ease;
}

.admin-list-row:hover {
  background: rgba(var(--color-sand), 0.38);
}

.shadow-soft {
  border: 1px solid rgba(var(--color-ink), 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    0 12px 34px rgba(73, 45, 27, 0.06);
}

.shadow-panel {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 10px 24px rgba(var(--color-ink), 0.12);
}

.bg-ink.shadow-soft,
.bg-ink.shadow-panel {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 44px rgba(50, 28, 12, 0.26);
}

.info-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-card-list li {
  position: relative;
  padding-left: 1.35rem;
}

.info-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: rgb(var(--color-coral));
}

.legal-copy p + p,
.legal-copy ul + p,
.legal-copy h2 + p,
.legal-copy h3 + p {
  margin-top: 1rem;
}

.footer-copy {
  font-size: 1rem;
  line-height: 1.7rem;
}

@media (max-width: 767px) {
  header .accent-button,
  header .ghost-button {
    min-height: 3.2rem;
  }

  .feed-toolbar {
    gap: 0.85rem;
    padding: 1.2rem 1rem 1rem;
  }

  .discover-title {
    font-size: 2.15rem;
    line-height: 0.98;
  }

  .discover-summary {
    margin-top: 0.55rem;
    font-size: 0.93rem;
    line-height: 1.6;
  }

  .discover-filters {
    gap: 0.8rem;
  }

  .discover-filters label {
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
  }

  .discover-filters #discover-q,
  .discover-filters #discover-category {
    min-height: 3rem;
    border: 1px solid rgb(var(--color-coral)) !important;
    background: #fffdfa !important;
    box-shadow:
      inset 0 0 0 1px rgba(var(--color-coral), 0.08) !important,
      inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  }

  .discover-filters .accent-button {
    min-height: 3rem;
  }

  .discover-stats {
    gap: 0.75rem;
    margin: 0.75rem 1rem 0;
    padding: 0.8rem;
  }

  .discover-stats + .feed-list {
    padding-top: 0.85rem;
  }

  .discover-stats .soft-stat {
    padding: 0.85rem 0.9rem;
  }

  .discover-stats .soft-stat strong {
    font-size: 1.7rem;
  }

  .discover-stats .soft-stat span {
    margin-top: 0.25rem;
    font-size: 0.73rem;
    line-height: 1.35;
  }

  .home-hero-support__summary h2 {
    font-size: 1.55rem;
  }

  .why-card {
    grid-template-columns: 1fr;
  }

  main {
    padding-top: 1.25rem;
  }
}
