:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --ink: #15120d;
  --muted: #5d564c;
  --accent: #2f7a63;
  --accent-2: #f1b743;
  --accent-ink: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2ebe2;
  --border: rgba(21, 18, 13, 0.12);
  --shadow: 0 24px 60px rgba(21, 18, 13, 0.15);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121111;
  --ink: #f4efe7;
  --muted: #c3b9ac;
  --accent: #7fd2b2;
  --accent-2: #f3c86e;
  --accent-ink: #08110d;
  --surface: #1a1716;
  --surface-2: #24201d;
  --border: rgba(244, 239, 231, 0.16);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

:root[data-theme="contrast"] {
  color-scheme: dark;
  --bg: #040404;
  --ink: #ffffff;
  --muted: #f2f2f2;
  --accent: #00d8ff;
  --accent-2: #ffe45c;
  --accent-ink: #001319;
  --surface: #000000;
  --surface-2: #101010;
  --border: rgba(255, 255, 255, 0.45);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Noto Sans TC", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 20%, #f7f2e6 0%, transparent 55%),
    radial-gradient(circle at 80% 10%, #f1f7f4 0%, transparent 50%), var(--bg);
  min-height: 100vh;
}

:root[data-theme="dark"] body {
  background: radial-gradient(circle at 10% 20%, rgba(70, 66, 62, 0.5) 0%, transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(55, 70, 63, 0.45) 0%, transparent 50%), var(--bg);
}

:root[data-theme="contrast"] body {
  background: radial-gradient(circle at 10% 18%, rgba(0, 216, 255, 0.18) 0%, transparent 42%),
    radial-gradient(circle at 82% 12%, rgba(255, 228, 92, 0.12) 0%, transparent 36%), var(--bg);
}

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

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

.bg-orbs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.5;
  mix-blend-mode: multiply;
  animation: float 14s ease-in-out infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #c6efd9 0%, transparent 65%);
  top: -120px;
  left: -100px;
}

.orb-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #ffe1a8 0%, transparent 65%);
  top: 220px;
  right: -120px;
  animation-delay: -4s;
}

.orb-3 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #f0c1c9 0%, transparent 65%);
  bottom: -200px;
  left: 40%;
  animation-delay: -8s;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(16px, 3vw, 24px) 7vw;
  position: sticky;
  top: 0;
  background: rgba(247, 244, 239, 0.75);
  backdrop-filter: blur(12px);
  z-index: 10;
  border-bottom: 1px solid rgba(21, 18, 13, 0.08);
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.header-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(21, 18, 13, 0.12);
}

.logo-lockup:hover,
.logo-lockup:focus-visible {
  color: inherit;
}

.logo {
  width: 64px;
  height: 64px;
  display: block;
  transform: translateY(2px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-weight: 500;
}

.nav-links a,
.nav-links button {
  position: relative;
  padding: 6px 10px;
  border-radius: 999px;
}

.nav-links button {
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.nav-links a::after,
.nav-links button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after,
.nav-links button:hover::after,
.nav-links button:focus-visible::after,
.nav-links button.active::after {
  transform: scaleX(1);
}

.nav-links a.active,
.nav-links button.active {
  background: rgba(47, 122, 99, 0.12);
  color: var(--accent);
}

.nav-links a[aria-current="page"] {
  background: rgba(47, 122, 99, 0.12);
  color: var(--accent);
}

.nav-cta {
  white-space: nowrap;
}

.portal-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(47, 122, 99, 0.14);
  color: var(--accent);
  box-shadow: 0 10px 24px rgba(47, 122, 99, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.portal-cta:hover,
.portal-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(47, 122, 99, 0.25);
}

.lang-toggle {
  display: none;
}

.menu-trigger {
  appearance: none;
  padding: 9px 40px 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(21, 18, 13, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  background-image: url("/assets/chevron-down.svg");
  background-position: calc(100% - 18px) 50%;
  background-size: 14px 10px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.menu-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(21, 18, 13, 0.12);
}

.menu-trigger:focus-visible {
  outline: 2px solid rgba(47, 122, 99, 0.35);
  outline-offset: 2px;
  border-color: rgba(47, 122, 99, 0.6);
  box-shadow: 0 12px 24px rgba(47, 122, 99, 0.2);
}

.settings-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  transition: opacity 200ms ease;
}

.settings-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.settings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 18, 13, 0.25);
  backdrop-filter: blur(4px);
}

.settings-card {
  position: relative;
  z-index: 1;
  width: min(336px, 92vw);
  min-height: 320px;
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 16px 18px 18px;
  display: grid;
  gap: 8px;
}

.settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: -2px;
}

.settings-header h2 {
  margin: 0;
  font-size: 1.32rem;
  font-family: "Fraunces", serif;
}

.settings-header-divider {
  height: 1px;
  width: 100%;
  background: var(--border);
}

.settings-close {
  border: none;
  background: transparent;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 999px;
}

.settings-close:hover,
.settings-close:focus-visible {
  color: var(--accent);
  background: rgba(47, 122, 99, 0.12);
}

.no-scroll {
  overflow: hidden;
}

.settings-row {
  display: grid;
  grid-template-columns: 136px auto 108px;
  gap: 8px;
  align-items: start;
  justify-content: center;
}

.settings-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

@media (max-width: 720px) {
  .settings-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-divider {
    height: 1px;
    width: 100%;
  }
}

.settings-panel {
  min-width: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  justify-items: center;
}

.settings-group {
  display: grid;
  gap: 8px;
}

.settings-group.language-group {
  width: 136px;
  justify-self: start;
}

.settings-group.theme-group {
  width: 108px;
}

.settings-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.settings-select {
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  padding: clamp(48px, 8vw, 72px) 7vw 40px;
  align-items: center;
}

.hero.compact {
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(32px, 6vw, 56px) 7vw 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
}

.hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.8rem, 3.8vw, 4.4rem);
  line-height: 1.05;
  margin: 12px 0 18px;
}

:lang(zh-HK) .hero h1,
:lang(zh-HK) .section-header h2 {
  font-family: "Noto Sans TC", sans-serif;
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
}

.hero-cta {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.button.primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 12px 24px rgba(47, 122, 99, 0.35);
}

.button.primary:hover,
.button.primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(47, 122, 99, 0.35);
}

.button.ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.5);
}

.button.ghost:hover,
.button.ghost:focus-visible {
  transform: translateY(-2px);
}

.button.small {
  padding: 10px 18px;
  font-size: 0.95rem;
}

.button.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

.media-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.media-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(21, 18, 13, 0.08);
  color: var(--ink);
}

.media-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.media-icon-youtube {
  color: #ff0033;
}

.media-icon-instagram {
  color: #d62976;
}

.media-icon-coffee {
  color: #8b5a2b;
}

.media-icon-x {
  color: #15120d;
}

.hero-card {
  background: var(--surface);
  padding: 28px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(21, 18, 13, 0.08);
  display: grid;
  gap: 16px;
  animation: rise 900ms ease;
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(47, 122, 99, 0.12);
  color: var(--accent);
  font-weight: 600;
}

.hero-card h2 {
  margin: 0;
  font-size: 1.4rem;
}

.hero-card-links {
  display: flex;
  gap: 16px;
}

.text-link {
  font-weight: 600;
  color: var(--accent);
}

.section {
  padding: clamp(40px, 6vw, 56px) 7vw;
  scroll-margin-top: 120px;
}

.js .section {
  opacity: 0;
  transform: translateY(-18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.js .section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section.alt {
  background: var(--surface-2);
  border-top: 1px solid rgba(21, 18, 13, 0.06);
  border-bottom: 1px solid rgba(21, 18, 13, 0.06);
}

.content-page .site-header {
  position: sticky;
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 32px;
  padding: clamp(40px, 7vw, 68px) 7vw 28px;
  align-items: center;
}

.article-hero .lede {
  max-width: 62ch;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.article-byline {
  margin: 12px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2500;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 0 auto;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.article-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(47, 122, 99, 0.1);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
}

.article-cover {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 24px;
  padding: 0 7vw 48px;
  align-items: start;
}

.article-body {
  display: grid;
  gap: 22px;
}

.article-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(21, 18, 13, 0.08);
}

.article-section h2 {
  margin: 0 0 12px;
  font-family: "Fraunces", serif;
  font-size: 1.55rem;
}

.article-section p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

.article-section p:last-child {
  margin-bottom: 0;
}

.article-section ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.article-section li + li {
  margin-top: 8px;
}

.article-figure {
  margin: 0;
  display: grid;
  gap: 10px;
}

.article-figure figcaption {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.article-side {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 112px;
}

.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(21, 18, 13, 0.08);
}

.side-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.side-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.guide-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(21, 18, 13, 0.08);
  display: grid;
}

.guide-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.guide-card-body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.guide-card-body h3 {
  margin: 0;
  font-size: 1.2rem;
}

.guide-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.guide-card-body .button {
  justify-self: start;
}

.article-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.article-links a {
  color: var(--accent);
  font-weight: 600;
}

.article-links a:hover,
.article-links a:focus-visible {
  text-decoration: underline;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 0 7vw 48px;
  align-items: start;
}

.story-stack {
  display: grid;
  gap: 22px;
}

.story-quote {
  margin: 0;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(47, 122, 99, 0.08), rgba(241, 183, 67, 0.08));
  border: 1px solid var(--border);
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  line-height: 1.5;
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(21, 18, 13, 0.08);
  display: grid;
  gap: 12px;
}

.profile-card img {
  width: 100%;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.profile-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.profile-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
}

.timeline-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 0 7vw 48px;
  align-items: start;
}

.contact-methods {
  display: grid;
  gap: 14px;
}

.contact-method {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.74);
}

.contact-method h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.contact-method p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-header h2 {
  margin: 0;
  font-size: 2rem;
  font-family: "Fraunces", serif;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 420px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(21, 18, 13, 0.08);
  display: grid;
  gap: 14px;
}

.card h3 {
  margin: 0;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.media-subsection {
  margin: 28px 0 18px;
}

.media-subsection h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-family: "Fraunces", serif;
}

.media-subsection p {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
}

.link-rows {
  display: grid;
  gap: 16px;
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  border: 1px solid var(--border);
}

.link-row .button {
  margin-left: auto;
}

.link-row h3 {
  margin: 0 0 6px;
}

.link-row p {
  margin: 0;
  color: var(--muted);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 26px 28px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-panel .button {
  justify-self: start;
}

.site-footer {
  padding: 28px 7vw 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-weight: 600;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(20px);
  }
}

@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .article-hero,
  .article-layout {
    grid-template-columns: 1fr;
  }

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

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

  .site-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 16px;
  }

}

@media (max-width: 720px) {
  .site-header {
    align-items: stretch;
  }

  .header-right {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .header-divider {
    width: 100%;
    height: 1px;
  }

  .nav-links {
    gap: 12px;
  }

  .section-header {
    align-items: flex-start;
  }

  .article-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 48px;
  }

  .hero-card-links {
    flex-direction: column;
    align-items: flex-start;
  }
}
.settings-stack {
  display: grid;
  width: 100%;
  padding: 8px;
  gap: 0;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 24px rgba(21, 18, 13, 0.08);
}

.card-with-logo {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
}

.card-logo {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  display: block;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(21, 18, 13, 0.18);
  transform: translateY(-6px);
}

.card-body {
  display: grid;
  gap: 12px;
}

.card-body h3,
.card-body p {
  margin: 0;
}

.settings-stack-button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  padding: 12px 15px;
  border-radius: 16px;
  min-width: 0;
  width: 100%;
  text-align: left;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.settings-stack-button + .settings-stack-button {
  border-top: 1px solid var(--border);
}

.settings-stack-button:hover,
.settings-stack-button:focus-visible {
  color: var(--ink);
  transform: translateY(-1px);
}

.settings-stack-button.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 20px rgba(47, 122, 99, 0.35);
}

:root[data-theme="dark"] .settings-stack,
:root[data-theme="dark"] .menu-trigger {
  background-color: var(--surface);
}

:root[data-theme="contrast"] .settings-stack,
:root[data-theme="contrast"] .menu-trigger {
  background-color: var(--surface);
}

:root[data-theme="dark"] .site-header {
  background: rgba(18, 17, 17, 0.72);
  border-bottom-color: rgba(244, 239, 231, 0.12);
}

:root[data-theme="contrast"] .site-header {
  background: rgba(0, 0, 0, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.24);
}

:root[data-theme="dark"] .header-divider,
:root[data-theme="dark"] .settings-divider,
:root[data-theme="dark"] .settings-header-divider {
  background: rgba(244, 239, 231, 0.2);
}

:root[data-theme="contrast"] .header-divider,
:root[data-theme="contrast"] .settings-divider,
:root[data-theme="contrast"] .settings-header-divider {
  background: rgba(255, 255, 255, 0.35);
}

:root[data-theme="dark"] .logo {
  filter: brightness(0) invert(1);
}

:root[data-theme="contrast"] .logo {
  filter: brightness(0) invert(1);
}

:root[data-theme="dark"] .menu-trigger {
  background-image: url("/assets/chevron-down-light.svg");
  background-repeat: no-repeat;
  background-position: calc(100% - 18px) 50%;
  background-size: 14px 10px;
}

:root[data-theme="contrast"] .menu-trigger {
  background-image: url("/assets/chevron-down-light.svg");
  background-repeat: no-repeat;
  background-position: calc(100% - 18px) 50%;
  background-size: 14px 10px;
}

:root[data-theme="dark"] .link-row {
  background: var(--surface-2);
}

:root[data-theme="contrast"] .link-row {
  background: var(--surface-2);
}

:root[data-theme="dark"] .button.ghost {
  background: rgba(26, 23, 22, 0.6);
}

:root[data-theme="contrast"] .button.ghost {
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .portal-cta {
  background: rgba(127, 210, 178, 0.18);
}

:root[data-theme="contrast"] .portal-cta {
  background: rgba(0, 216, 255, 0.18);
}

:root[data-theme="dark"] .settings-backdrop {
  background: rgba(9, 8, 8, 0.45);
}

:root[data-theme="contrast"] .settings-backdrop {
  background: rgba(0, 0, 0, 0.7);
}
