:root {
  color-scheme: light;
  color: #292638;
  background: #fbfaff;
  --accent: #7862bd;
  --muted: #777386;
  --line: rgba(56, 47, 83, 0.12);
}

body {
  color: #292638;
  background:
    radial-gradient(ellipse at 76% 12%, rgba(187, 170, 239, 0.15), transparent 36%),
    radial-gradient(ellipse at 5% 78%, rgba(177, 219, 223, 0.12), transparent 32%),
    #fbfaff;
}

body.home-page { background: #fffdf8; }

.news-detail > h1 {
  margin: 12px 0 30px;
  color: var(--ink);
  font-size: clamp(36px, 6vw, 60px);
  letter-spacing: -.06em;
}

.news-article-content {
  padding: clamp(26px, 5vw, 54px);
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: #fff;
  box-shadow: 7px 7px 0 rgba(31, 33, 69, .16);
  color: #3f405d;
  font-size: 15px;
  line-height: 2;
}

.news-article-content > :first-child { margin-top: 0; }
.news-article-content > :last-child { margin-bottom: 0; }
.news-article-content a { color: var(--accent); }
.news-article-content img { max-width: 100%; height: auto; }

body::before {
  background-image:
    linear-gradient(rgba(68, 55, 103, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 55, 103, 0.035) 1px, transparent 1px);
}

.site-header,
.hero,
.intro-section,
.social-intro,
.contact-intro,
.content-heading {
  border-color: rgba(56, 47, 83, 0.12);
}

.brand,
.site-footer .footer-brand {
  color: #302b40;
}

.brand-mark {
  border-color: rgba(120, 98, 189, 0.25);
  background: rgba(120, 98, 189, 0.07);
  color: #7057b4;
}

.brand-dot,
.eyebrow,
.section-number,
.social-platform,
.contact-page-number span {
  color: #777386;
}

.nav-link {
  color: #686477;
}

.nav-link:hover,
.nav-link.is-active {
  border-color: rgba(120, 98, 189, 0.2);
  background: rgba(120, 98, 189, 0.08);
  color: #54418e;
}

.nav-link span,
.text-link,
.social-teaser-link,
.contact-page-number,
.social-page-number,
.hero-index {
  color: #7057b4;
}

.online-indicator {
  background: #39a978;
  box-shadow: 0 0 10px rgba(57, 169, 120, 0.35);
}

.hero h1,
.intro-content h2,
.social-intro h1,
.contact-intro h1 {
  color: #2a2638;
}

.hero h1 span,
.social-intro h1 span,
.contact-intro h1 span {
  color: #7057b4;
}

.hero-description,
.intro-note p,
.teaser-copy > p:not(.eyebrow),
.social-description,
.contact-description {
  color: #6f6b7c;
}

.primary-link {
  border-color: rgba(120, 98, 189, 0.25);
  background: linear-gradient(110deg, rgba(120, 98, 189, 0.12), rgba(120, 98, 189, 0.045));
  color: #51417f;
}

.primary-link:hover {
  border-color: rgba(120, 98, 189, 0.45);
  background: rgba(120, 98, 189, 0.13);
}

.link-icon,
.social-teaser-arrow {
  background: rgba(120, 98, 189, 0.11);
  color: #7057b4;
}

.hero-art {
  border-color: rgba(74, 60, 109, 0.11);
  background:
    radial-gradient(circle at 50% 48%, rgba(177, 157, 235, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(246, 243, 253, 0.95), rgba(239, 237, 249, 0.94));
}

.hero-art::before,
.hero-art::after,
.orbit {
  border-color: rgba(120, 98, 189, 0.18);
}

.hero-monogram {
  color: #54477c;
  text-shadow: 0 0 60px rgba(120, 98, 189, 0.2);
}

.hero-monogram span {
  color: #7862bd;
}

.teaser-tag {
  color: #777386;
}

.section-line {
  background: rgba(120, 98, 189, 0.35);
}

.status-teaser {
  border-color: rgba(120, 98, 189, 0.16);
  background:
    radial-gradient(ellipse at 83% 50%, rgba(177, 157, 235, 0.2), transparent 36%),
    linear-gradient(120deg, rgba(247, 245, 252, 0.98), rgba(239, 237, 248, 0.96));
}

.teaser-orbit {
  border-color: rgba(120, 98, 189, 0.28);
  box-shadow: 0 0 34px rgba(120, 98, 189, 0.09), inset 0 0 32px rgba(120, 98, 189, 0.05);
}

.teaser-orbit::before,
.teaser-orbit::after {
  border-color: rgba(120, 98, 189, 0.16);
}

.teaser-spark {
  color: #7862bd;
  text-shadow: 0 0 28px rgba(120, 98, 189, 0.27);
}

.social-teaser,
.contact-teaser,
.social-card,
.contact-option {
  border-color: rgba(56, 47, 83, 0.11);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 245, 252, 0.94));
  box-shadow: 0 8px 28px rgba(45, 37, 67, 0.04);
}

.social-teaser h2,
.contact-teaser h2,
.teaser-copy h2,
.contact-option-handle,
.social-handle {
  color: #302b40;
}

.social-teaser p,
.contact-teaser p,
.social-footnote,
.contact-note,
.contact-option-note {
  color: #777386;
}

.social-card:hover,
.contact-option:hover {
  border-color: rgba(120, 98, 189, 0.3);
  background: linear-gradient(135deg, #fff, #f3f0fb);
  box-shadow: 0 12px 32px rgba(45, 37, 67, 0.08);
}

.social-card::after {
  border-color: rgba(120, 98, 189, 0.1);
}

.social-icon,
.contact-option-icon {
  border-color: rgba(80, 68, 113, 0.12);
  background: rgba(120, 98, 189, 0.055);
  color: #302b40;
}

.social-icon-instagram,
.contact-option-instagram .contact-option-icon {
  color: #a44789;
}

.social-open,
.contact-option-arrow {
  color: #7b748d;
}

.site-footer {
  border-color: rgba(56, 47, 83, 0.12);
  color: #777386;
}

.site-footer a {
  color: #686477;
}

.theme-toggle,
.nav-toggle {
  border-color: rgba(56, 47, 83, 0.15);
  background: rgba(120, 98, 189, 0.045);
  color: #686477;
}

.theme-toggle:hover,
.nav-toggle:hover {
  border-color: rgba(120, 98, 189, 0.3);
  background: rgba(120, 98, 189, 0.09);
  color: #54418e;
}

.content-heading h1,
.profile-card h2,
.news-item h2,
.news-teaser h2,
.about-teaser h2 {
  color: #2a2638;
}

.content-heading h1 span,
.profile-links a {
  color: #7057b4;
}

.content-description,
.empty-state,
.news-item p,
.profile-card p,
.news-teaser p,
.about-teaser p {
  color: #6f6b7c;
}

.news-error {
  border-color: rgba(158, 61, 61, 0.22);
  background: rgba(190, 94, 94, 0.055);
  color: #8c3d3d;
}

.empty-state,
.news-item,
.profile-card,
.news-teaser,
.about-teaser {
  border-color: rgba(56, 47, 83, 0.12);
  background: rgba(255, 255, 255, 0.58);
}

.profile-label {
  color: #777386;
}

.news-item time {
  color: #777386;
}

.footer-links a,
.footer-socials a {
  color: #686477;
}

.page-heading h1 {
  color: #2a2638;
}

.page-heading h1 span {
  color: #7057b4;
}

.page-description {
  color: #6f6b7c;
}

.page-shell {
  color: #292638;
}

.profile-card {
  border-color: rgba(56, 47, 83, 0.13);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 245, 252, 0.98));
  box-shadow: 0 22px 65px rgba(45, 37, 67, 0.1), inset 0 1px rgba(255, 255, 255, 0.9);
}

.card-glow {
  background: rgba(160, 137, 220, 0.13);
}

.wordmark,
.profile-kicker,
.section-heading h2,
.section-heading h3,
h1 {
  color: #302b40;
}

.wordmark-divider,
.eyebrow,
.activity-type,
.profile-kicker {
  color: #777386;
}

.icon-button {
  border-color: rgba(56, 47, 83, 0.13);
  background: rgba(120, 98, 189, 0.045);
  color: #6c6680;
}

.avatar-wrap {
  border-color: rgba(120, 98, 189, 0.3);
  background: rgba(120, 98, 189, 0.055);
  box-shadow: 0 0 24px rgba(120, 98, 189, 0.08);
}

.avatar-status {
  border-color: #fff;
}

.username,
.updated-at,
.activity-label,
.activity-detail,
.connection-message {
  color: #777386;
}

.presence-row {
  border-color: rgba(56, 47, 83, 0.1);
  background: rgba(120, 98, 189, 0.035);
}

.presence-indicator {
  color: #454052;
}

.divider {
  background: linear-gradient(90deg, transparent, rgba(56, 47, 83, 0.14) 10%, rgba(56, 47, 83, 0.14) 90%, transparent);
}

.activity-type {
  border-color: rgba(120, 98, 189, 0.16);
  background: rgba(120, 98, 189, 0.055);
  color: #655293;
}

.device-chip,
.activity-button-label {
  border-color: rgba(56, 47, 83, 0.1);
  background: rgba(120, 98, 189, 0.045);
  color: #6e687d;
}

.activity-platform {
  border-color: rgba(57, 169, 120, 0.18);
  background: rgba(57, 169, 120, 0.055);
  color: #397a5c;
}

.status-message,
.empty-activity,
.activity-card {
  border-color: rgba(56, 47, 83, 0.11);
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.96), rgba(246, 244, 251, 0.94));
  box-shadow: 0 5px 18px rgba(45, 37, 67, 0.035);
}

.status-message {
  border-color: rgba(120, 98, 189, 0.18);
  background: linear-gradient(110deg, rgba(120, 98, 189, 0.075), rgba(120, 98, 189, 0.025));
}

.status-message.is-empty {
  border-color: rgba(56, 47, 83, 0.1);
  background: rgba(120, 98, 189, 0.03);
}

.status-message p,
.activity-name {
  color: #302b40;
}

.status-message.is-empty p {
  color: #777386;
}

.status-message-emoji,
.empty-icon {
  color: #7862bd;
}

.empty-icon {
  background: rgba(120, 98, 189, 0.09);
}

.activity-image,
.activity-image.is-placeholder {
  background: #efedf6;
  color: #7057b4;
}

.activity-card:hover {
  border-color: rgba(120, 98, 189, 0.22);
  background: linear-gradient(115deg, rgba(120, 98, 189, 0.055), #fff);
}

.activity-timer {
  color: #7057b4;
}

.activity-progress {
  background: rgba(56, 47, 83, 0.12);
}

.activity-progress span {
  background: #8870cd;
}

.activity-link,
.id-button:hover {
  color: #7057b4;
}

.connection-message[data-state="connected"] {
  color: #397a5c;
}

.connection-message[data-state="error"] {
  color: #b74e5b;
}

.id-button {
  color: #514b62;
}

.powered-by {
  color: #777386;
}

.powered-by a {
  color: #686477;
}

@media (max-width: 430px) {
  .nav-link {
    padding-right: 6px;
    padding-left: 6px;
    font-size: 9px;
  }
}

/* Colourful editorial theme ------------------------------------------------ */
:root {
  --accent: #6046c8;
  --ink: #1f2145;
  --sun: #ffc928;
  --coral: #ff6c67;
  --mint: #63d8b2;
  --sky: #7bc8ff;
  background: #fffdf8;
  color: var(--ink);
}

body {
  background:
    radial-gradient(circle at 4% 11%, rgba(255, 201, 40, .28), transparent 17rem),
    radial-gradient(circle at 95% 8%, rgba(123, 200, 255, .25), transparent 21rem),
    radial-gradient(circle at 88% 82%, rgba(99, 216, 178, .18), transparent 23rem),
    #fffdf8;
}

body::before { background-image: none; }

.site-shell { width: min(100% - 64px, 1180px); }

.site-header {
  min-height: 96px;
  border-color: rgba(31, 33, 69, .13);
}

.brand { color: var(--ink); font-size: 11px; }
.brand-mark {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  background: var(--sun);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.brand-dot { color: var(--coral); }
.nav-link { color: #565779; font-weight: 600; }
.nav-link:hover, .nav-link.is-active {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}
.nav-link.is-active { box-shadow: 3px 3px 0 var(--sun); }
.nav-link span { color: inherit; }
.theme-toggle, .nav-toggle {
  border-color: var(--ink);
  background: #fff;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.hero {
  grid-template-columns: .85fr 1.15fr;
  min-height: 610px;
  gap: 58px;
  padding: 58px 0 82px;
  border: 0;
}
.eyebrow { color: #676885; font-weight: 500; }
.online-indicator { background: var(--coral); box-shadow: 0 0 0 3px rgba(255,108,103,.2); }
.hero h1 { color: var(--ink); font-size: clamp(48px, 6vw, 78px); line-height: 1.13; }
.hero h1 span { color: var(--coral); position: relative; z-index: 0; }
.hero h1 span::after {
  position: absolute; right: -5px; bottom: 3px; left: -3px; z-index: -1;
  height: 12px; border-radius: 99px; background: var(--sun); content: "";
}
.hero-description { color: #5d5f7b; font-size: 15px; }
.primary-link {
  border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff;
  box-shadow: 5px 5px 0 var(--coral);
}
.primary-link:hover { border-color: var(--ink); background: var(--coral); box-shadow: 7px 7px 0 var(--sun); }
.link-icon { background: var(--sun); color: var(--ink); }

.hero-art {
  min-height: 460px;
  overflow: visible;
  border: 2px solid var(--ink);
  border-radius: 48% 48% 28% 28% / 28% 28% 20% 20%;
  background: #b8a3ff;
  box-shadow: 10px 11px 0 var(--ink);
}
.hero-art::before { width: 340px; height: 340px; border-color: rgba(255,255,255,.55); }
.hero-art::after { width: 250px; height: 250px; border-color: rgba(31,33,69,.25); }
.orbit { border-color: rgba(255,255,255,.7); }
.hero-monogram { color: #fffdf8; font-size: clamp(132px, 20vw, 220px); text-shadow: 5px 5px 0 var(--ink); }
.hero-monogram span { color: var(--sun); }
.hero-avatar { border: 3px solid #fffdf8; box-shadow: 6px 6px 0 var(--ink); }
.hero-index { right: 10px; bottom: 12px; color: var(--ink); }

.intro-section { padding: 86px 0; border-color: rgba(31,33,69,.13); }
.section-line { background: var(--coral); height: 2px; }
.intro-content h2 { color: var(--ink); font-weight: 700; }
.intro-note p, .teaser-copy > p:not(.eyebrow) { color: #60617b; }
.text-link, .social-teaser-link { color: var(--accent); }

.status-teaser, .social-teaser, .contact-teaser, .news-teaser, .about-teaser {
  border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--ink);
}
.status-teaser {
  margin: 62px 0 76px; border-radius: 28px; background: linear-gradient(105deg, #fff4bd, #ffccb0 56%, #ffa4bd);
}
.teaser-copy h2, .social-teaser h2, .contact-teaser h2, .news-teaser h2, .about-teaser h2 { color: var(--ink); }
.teaser-orbit { border-color: var(--ink); box-shadow: none; }
.teaser-orbit::before, .teaser-orbit::after { border-color: rgba(31,33,69,.32); }
.teaser-spark { color: var(--coral); text-shadow: 2px 2px 0 var(--ink); }
.social-teaser, .contact-teaser, .news-teaser, .about-teaser { border-radius: 22px; background: #fff; }
.social-teaser { border-left: 12px solid var(--sky); }
.contact-teaser { border-left: 12px solid var(--mint); }
.news-teaser { border-left: 12px solid var(--sun); }
.about-teaser { border-left: 12px solid var(--coral); }
.social-teaser-arrow { border-color: var(--ink); background: var(--sun); color: var(--ink); }

.content-heading { border-color: rgba(31,33,69,.13); }
.content-heading h1, .page-heading h1 { color: var(--ink); }
.content-heading h1 span, .page-heading h1 span { color: var(--coral); }
.content-description, .page-description { color: #60617b; }
.profile-card, .empty-state, .news-item {
  border: 2px solid var(--ink); background: #fff; box-shadow: 5px 5px 0 rgba(31,33,69,.16);
}
.profile-card:nth-child(1) { background: #fff6be; }
.profile-card:nth-child(2) { background: #c7f4e4; }
.profile-card:nth-child(3) { background: #dceeff; }
.profile-card h2, .news-item h2 { color: var(--ink); }
.profile-card p, .news-item p { color: #575974; }
.profile-links a { color: #42309e; font-weight: 700; }
.news-item { margin-bottom: 15px; padding: 24px; border-radius: 18px; }
.news-item time { color: #686a84; }

.site-footer { border-color: rgba(31,33,69,.2); color: #676885; }
.site-footer .footer-brand { color: var(--ink); }
.site-footer a, .footer-links a, .footer-socials a { color: #555673; }

@media (max-width: 760px) {
  .site-shell { width: min(100% - 38px, 600px); }
  .site-header { min-height: 0; }
  .hero { grid-template-columns: 1fr; gap: 45px; padding-top: 50px; }
  .hero-art { min-height: 370px; margin: 0 15px; }
}

@media (max-width: 430px) {
  .site-shell { width: min(100% - 30px, 560px); }
  .orbit-one { width: min(290px, calc(100vw - 100px)); }
  .orbit-two { width: min(310px, calc(100vw - 100px)); }
  .hero-art { min-height: 300px; margin: 0 8px; box-shadow: 6px 7px 0 var(--ink); }
  .hero-monogram { font-size: 145px; }
  .status-teaser, .social-teaser, .contact-teaser, .news-teaser, .about-teaser { box-shadow: 4px 4px 0 var(--ink); }
}

@media (max-width: 520px) {
  .page-shell > .site-footer {
    width: 100%;
    margin-left: 0;
    border-radius: 24px;
  }
}

/* Gentle motion ----------------------------------------------------------- */
@keyframes mikan-rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mikan-orbit {
  from { transform: rotate(-26deg); }
  to { transform: rotate(334deg); }
}

@keyframes mikan-orbit-reverse {
  from { transform: rotate(44deg); }
  to { transform: rotate(-316deg); }
}

@keyframes mikan-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.13); }
}

.hero-copy { animation: mikan-rise-in .65s ease-out both; }
.hero-art { animation: mikan-rise-in .75s .12s ease-out both; }
.hero-art::before { animation: mikan-pulse 5s ease-in-out infinite; }
.orbit-one { animation: mikan-orbit 22s linear infinite; }
.orbit-two { animation: mikan-orbit-reverse 30s linear infinite; }

.intro-section,
.status-teaser,
.news-teaser,
.about-teaser,
.social-teaser,
.contact-teaser {
  animation: mikan-rise-in .55s ease-out both;
}

.status-teaser { animation-delay: .05s; }
.news-teaser { animation-delay: .1s; }
.about-teaser { animation-delay: .15s; }
.social-teaser { animation-delay: .2s; }
.contact-teaser { animation-delay: .25s; }

.profile-card,
.news-item,
.social-teaser,
.contact-teaser,
.news-teaser,
.about-teaser {
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.profile-card:hover,
.news-item:hover,
.social-teaser:hover,
.contact-teaser:hover,
.news-teaser:hover,
.about-teaser:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-art,
  .hero-art::before,
  .orbit-one,
  .orbit-two,
  .intro-section,
  .status-teaser,
  .news-teaser,
  .about-teaser,
  .social-teaser,
  .contact-teaser {
    animation: none !important;
  }
}

html.theme-light {
  color-scheme: light;
  color: #292638;
  background: #f4f3f7;
  --accent: #4f9e70;
  --ink: #292638;
  --muted: #777386;
  --line: rgba(56, 47, 83, 0.12);
}

html.theme-light body,
html.theme-light body.home-page {
  color: #292638;
  background:
    radial-gradient(ellipse at 76% 12%, rgba(187, 170, 239, 0.12), transparent 36%),
    #f4f3f7;
}

html.theme-light body::before {
  background-image:
    linear-gradient(rgba(68, 55, 103, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 55, 103, 0.025) 1px, transparent 1px);
}

html.theme-light .site-header,
html.theme-light .hero,
html.theme-light .intro-section,
html.theme-light .social-intro,
html.theme-light .contact-intro,
html.theme-light .content-heading,
html.theme-light .site-footer {
  border-color: rgba(56, 47, 83, 0.12);
}

html.theme-light .brand,
html.theme-light .site-footer .footer-brand,
html.theme-light .wordmark,
html.theme-light .hero h1,
html.theme-light .intro-content h2,
html.theme-light .social-intro h1,
html.theme-light .contact-intro h1,
html.theme-light .content-heading h1,
html.theme-light .profile-card h2,
html.theme-light .news-item h2,
html.theme-light .news-teaser h2,
html.theme-light .about-teaser h2,
html.theme-light .page-heading h1,
html.theme-light .section-heading h2,
html.theme-light .section-heading h3,
html.theme-light .status-message p,
html.theme-light .activity-name,
html.theme-light .social-handle,
html.theme-light .contact-option-handle {
  color: #302b40;
}

html.theme-light .brand-mark,
html.theme-light .theme-switch,
html.theme-light .nav-toggle,
html.theme-light .icon-button {
  border-color: rgba(56, 47, 83, 0.15);
  background: #eeeccf;
  color: #686477;
  box-shadow: none;
}

html.theme-light .theme-choice {
  color: #4c4b4a;
}

html.theme-light .theme-choice[aria-pressed="true"] {
  background: #fff;
  color: #292638;
  box-shadow: 0 1px 4px rgba(65, 57, 43, 0.12);
}

html.theme-light .theme-choice:focus-visible {
  outline-color: #4f9e70;
}

html.theme-light .brand-dot,
html.theme-light .eyebrow,
html.theme-light .section-number,
html.theme-light .social-platform,
html.theme-light .profile-label,
html.theme-light .wordmark-divider,
html.theme-light .profile-kicker,
html.theme-light .activity-type,
html.theme-light .contact-page-number span {
  color: #777386;
}

html.theme-light .nav-link,
html.theme-light .footer-links a,
html.theme-light .footer-socials a,
html.theme-light .site-footer a {
  color: #686477;
}

html.theme-light .nav-link:hover,
html.theme-light .nav-link.is-active {
  border-color: rgba(120, 98, 189, 0.2);
  background: rgba(120, 98, 189, 0.08);
  color: #54418e;
}

html.theme-light .hero h1 span,
html.theme-light .social-intro h1 span,
html.theme-light .contact-intro h1 span,
html.theme-light .content-heading h1 span,
html.theme-light .page-heading h1 span,
html.theme-light .profile-links a,
html.theme-light .text-link,
html.theme-light .social-teaser-link,
html.theme-light .contact-page-number,
html.theme-light .social-page-number,
html.theme-light .hero-index {
  color: #7057b4;
}

html.theme-light .hero-description,
html.theme-light .intro-note p,
html.theme-light .teaser-copy > p:not(.eyebrow),
html.theme-light .social-description,
html.theme-light .contact-description,
html.theme-light .content-description,
html.theme-light .empty-state,
html.theme-light .news-item p,
html.theme-light .profile-card p,
html.theme-light .news-teaser p,
html.theme-light .about-teaser p,
html.theme-light .social-teaser p,
html.theme-light .contact-teaser p,
html.theme-light .social-footnote,
html.theme-light .contact-note,
html.theme-light .contact-option-note,
html.theme-light .page-description,
html.theme-light .username,
html.theme-light .updated-at,
html.theme-light .activity-label,
html.theme-light .activity-detail,
html.theme-light .connection-message {
  color: #6f6b7c;
}

html.theme-light .status-teaser,
html.theme-light .news-teaser,
html.theme-light .about-teaser,
html.theme-light .social-teaser,
html.theme-light .contact-teaser,
html.theme-light .news-item,
html.theme-light .profile-card,
html.theme-light .news-article-content,
html.theme-light .social-card,
html.theme-light .contact-option,
html.theme-light .presence-row,
html.theme-light .status-message,
html.theme-light .empty-activity,
html.theme-light .activity-card,
html.theme-light .empty-state {
  border-color: rgba(56, 47, 83, 0.12);
  background: linear-gradient(145deg, #fff, #f7f5fc);
  box-shadow: 0 10px 28px rgba(45, 37, 67, 0.07);
}

html.theme-light .status-teaser { border-left: 3px solid #39a978; }
html.theme-light .news-teaser { border-left: 3px solid #63bf87; }
html.theme-light .about-teaser { border-left: 3px solid #a99aff; }
html.theme-light .social-teaser { border-left: 3px solid #80bde8; }
html.theme-light .contact-teaser { border-left: 3px solid #e7a17a; }

html.theme-light .hero-art {
  border-color: rgba(56, 47, 83, 0.12);
  background:
    radial-gradient(circle at 50% 48%, rgba(177, 157, 235, 0.2), transparent 36%),
    linear-gradient(145deg, #fff, #f0edf8);
  box-shadow: 0 12px 32px rgba(45, 37, 67, 0.1);
}

html.theme-light .hero-art::before,
html.theme-light .hero-art::after,
html.theme-light .hero-art .orbit {
  border-color: rgba(120, 98, 189, 0.2);
}

html.theme-light .news-item time,
html.theme-light .profile-label,
html.theme-light .news-article-content {
  color: #777386;
}

html.theme-light .news-article-content a,
html.theme-light .news-continue-link {
  color: #7057b4;
}

html.theme-light .social-card:hover,
html.theme-light .contact-option:hover,
html.theme-light .activity-card:hover,
html.theme-light .profile-card:hover,
html.theme-light .news-item:hover,
html.theme-light .social-teaser:hover,
html.theme-light .contact-teaser:hover,
html.theme-light .news-teaser:hover,
html.theme-light .about-teaser:hover {
  border-color: rgba(120, 98, 189, 0.3);
  background: linear-gradient(145deg, #fff, #f3f0fb);
  box-shadow: 0 14px 32px rgba(45, 37, 67, 0.1);
}

html.theme-light .social-icon,
html.theme-light .contact-option-icon,
html.theme-light .avatar-wrap,
html.theme-light .device-chip,
html.theme-light .activity-button-label,
html.theme-light .activity-platform,
html.theme-light .activity-type,
html.theme-light .status-message,
html.theme-light .empty-activity,
html.theme-light .activity-card,
html.theme-light .presence-row {
  border-color: rgba(56, 47, 83, 0.11);
  background: rgba(120, 98, 189, 0.045);
}

html.theme-light .social-icon,
html.theme-light .contact-option-icon,
html.theme-light .presence-indicator,
html.theme-light .status-message p,
html.theme-light .activity-name {
  color: #302b40;
}

html.theme-light .social-icon-instagram,
html.theme-light .contact-option-instagram .contact-option-icon {
  color: #a44789;
}

html.theme-light .social-open,
html.theme-light .contact-option-arrow,
html.theme-light .powered-by,
html.theme-light .powered-by a,
html.theme-light .id-button {
  color: #777386;
}

html.theme-light .card-glow {
  background: rgba(160, 137, 220, 0.13);
}

html.theme-light .avatar-status {
  border-color: #fff;
}

html.theme-light .status-message.is-empty {
  background: rgba(120, 98, 189, 0.03);
}

html.theme-light .activity-image,
html.theme-light .activity-image.is-placeholder {
  background: #efedf6;
  color: #7057b4;
}

html.theme-light .activity-timer,
html.theme-light .activity-link,
html.theme-light .id-button:hover {
  color: #7057b4;
}

html.theme-light .activity-progress {
  background: rgba(56, 47, 83, 0.12);
}

html.theme-light .activity-progress span {
  background: #8870cd;
}

html.theme-light .connection-message[data-state="connected"] {
  color: #397a5c;
}

@supports (corner-shape: squircle) {
  * {
    corner-shape: squircle;
  }

  .online-indicator,
  .live-dot,
  .presence-dot,
  .avatar,
  .avatar-status,
  .hero-art::before,
  .hero-art::after,
  .orbit,
  .teaser-orbit,
  .activity-small-image,
  .activity-progress span {
    corner-shape: round;
  }
}

/* Unified dark cards ------------------------------------------------------ */
:root {
  color-scheme: dark;
  color: #f0eff4;
  background: #141416;
  --accent: #64d995;
  --ink: #f0eff4;
  --muted: #a4a4ad;
  --line: rgba(255, 255, 255, 0.1);
}

body,
body.home-page {
  color: #f0eff4;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(100, 217, 149, 0.07), transparent 42%),
    #141416;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
}

.site-header,
.hero,
.intro-section,
.social-intro,
.contact-intro,
.content-heading,
.site-footer {
  border-color: rgba(255, 255, 255, 0.1);
}

.brand,
.site-footer .footer-brand,
.wordmark,
.hero h1,
.intro-content h2,
.social-intro h1,
.contact-intro h1,
.content-heading h1,
.profile-card h2,
.news-item h2,
.news-teaser h2,
.about-teaser h2,
.page-heading h1,
.section-heading h2,
.section-heading h3,
.status-message p,
.activity-name,
.social-handle,
.contact-option-handle {
  color: #f0eff4;
}

.brand-mark,
.theme-toggle,
.nav-toggle,
.icon-button {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: #e7e5ed;
  box-shadow: none;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: #242428;
}

.theme-choice {
  min-width: 58px;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #b4b3bc;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}

.theme-choice[aria-pressed="true"] {
  background: #f0f0ed;
  color: #27272b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.theme-choice:focus-visible {
  outline: 2px solid #64d995;
  outline-offset: 2px;
}

.brand-dot,
.eyebrow,
.section-number,
.social-platform,
.profile-label,
.wordmark-divider,
.profile-kicker,
.activity-type,
.contact-page-number span {
  color: #a4a4ad;
}

.nav-link,
.footer-links a,
.footer-socials a,
.site-footer a {
  color: #c1c0c8;
}

.nav-link:hover,
.nav-link.is-active {
  border-color: rgba(100, 217, 149, 0.22);
  background: rgba(100, 217, 149, 0.1);
  color: #a7f0c0;
  box-shadow: none;
}

.hero h1 span,
.social-intro h1 span,
.contact-intro h1 span,
.content-heading h1 span,
.page-heading h1 span,
.profile-links a,
.text-link,
.social-teaser-link,
.contact-page-number,
.social-page-number,
.hero-index {
  color: #8be8ad;
}

.hero-description,
.intro-note p,
.teaser-copy > p:not(.eyebrow),
.social-description,
.contact-description,
.content-description,
.empty-state,
.news-item p,
.profile-card p,
.news-teaser p,
.about-teaser p,
.social-teaser p,
.contact-teaser p,
.social-footnote,
.contact-note,
.contact-option-note,
.page-description,
.username,
.updated-at,
.activity-label,
.activity-detail,
.connection-message {
  color: #b4b3bc;
}

.primary-link {
  border-color: rgba(100, 217, 149, 0.4);
  background: rgba(100, 217, 149, 0.12);
  color: #a7f0c0;
  box-shadow: none;
}

.primary-link:hover {
  border-color: #64d995;
  background: rgba(100, 217, 149, 0.2);
  box-shadow: none;
}

.hero-art {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 50% 48%, rgba(100, 217, 149, 0.1), transparent 36%),
    linear-gradient(145deg, #252529, #1f1f23);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.hero-art::before,
.hero-art::after,
.hero-art .orbit {
  border-color: rgba(255, 255, 255, 0.16);
}

.link-icon,
.social-teaser-arrow {
  background: rgba(100, 217, 149, 0.14);
  color: #a7f0c0;
}

.status-teaser,
.news-teaser,
.about-teaser,
.social-teaser,
.contact-teaser,
.news-item,
.profile-card,
.profile-card:nth-child(n),
.news-article-content,
.social-card,
.contact-option,
.presence-row,
.status-message,
.empty-activity,
.activity-card,
.empty-state {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: linear-gradient(145deg, #252529, #1f1f23);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.status-teaser,
.news-teaser,
.about-teaser,
.social-teaser,
.contact-teaser {
  padding: clamp(22px, 4vw, 34px);
}

.status-teaser {
  border-left: 3px solid #64d995;
}

.news-teaser {
  border-left: 3px solid #8be8ad;
}

.about-teaser {
  border-left: 3px solid #a99aff;
}

.social-teaser {
  border-left: 3px solid #80c9ff;
}

.contact-teaser {
  border-left: 3px solid #f2ae83;
}

.news-item {
  margin-bottom: 14px;
  padding: 24px;
}

.news-item time,
.profile-label {
  color: #a4a4ad;
}

.profile-card:nth-child(1),
.profile-card:nth-child(2),
.profile-card:nth-child(3) {
  background: linear-gradient(145deg, #252529, #1f1f23);
}

.news-article-content {
  color: #d4d3da;
}

.news-article-content a,
.news-continue-link {
  color: #8be8ad;
}

.social-card:hover,
.contact-option:hover,
.activity-card:hover,
.profile-card:hover,
.news-item:hover,
.social-teaser:hover,
.contact-teaser:hover,
.news-teaser:hover,
.about-teaser:hover {
  border-color: rgba(100, 217, 149, 0.38);
  background: linear-gradient(145deg, #2b2b30, #232328);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.social-icon,
.contact-option-icon,
.avatar-wrap,
.device-chip,
.activity-button-label,
.activity-platform,
.activity-type,
.status-message,
.empty-activity,
.activity-card,
.presence-row {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.045);
}

.social-icon,
.contact-option-icon {
  color: #e7e5ed;
}

.social-icon-instagram,
.contact-option-instagram .contact-option-icon {
  color: #e9b8df;
}

.social-open,
.contact-option-arrow {
  color: #b4b3bc;
}

.news-error {
  border-color: rgba(239, 104, 116, 0.28);
  background: rgba(239, 104, 116, 0.08);
  color: #ffb0b6;
}

.profile-card {
  color: #f0eff4;
}

.card-glow {
  background: rgba(100, 217, 149, 0.08);
}

.avatar-wrap {
  box-shadow: 0 0 24px rgba(100, 217, 149, 0.08);
}

.avatar-status {
  border-color: #252529;
}

.presence-indicator,
.status-message p,
.activity-name {
  color: #f0eff4;
}

.status-message.is-empty,
.activity-card:hover {
  background: rgba(255, 255, 255, 0.055);
}

.activity-type {
  color: #a7f0c0;
}

.activity-platform {
  color: #a7e6bf;
}

.activity-image,
.activity-image.is-placeholder {
  background: #303036;
  color: #a7f0c0;
}

.activity-timer,
.activity-link,
.id-button:hover {
  color: #8be8ad;
}

.activity-progress {
  background: rgba(255, 255, 255, 0.14);
}

.activity-progress span {
  background: #64d995;
}

.powered-by,
.powered-by a,
.id-button {
  color: #b4b3bc;
}

.connection-message[data-state="connected"] {
  color: #8be8ad;
}

@media (prefers-reduced-motion: reduce) {
  .profile-card,
  .news-item,
  .social-teaser,
  .contact-teaser,
  .news-teaser,
  .about-teaser {
    transition: none;
  }
}

/* Apply the light palette after the dark card defaults. */
html.theme-light {
  color-scheme: light;
  color: #242630;
  background: #f4f5f7;
  --accent: #286b49;
  --ink: #242630;
  --muted: #555966;
  --line: rgba(36, 38, 48, 0.14);
}

html.theme-light body,
html.theme-light body.home-page {
  color: #242630;
  background:
    radial-gradient(ellipse at 76% 12%, rgba(164, 148, 218, 0.1), transparent 36%),
    #f4f5f7;
}

html.theme-light body::before {
  background-image:
    linear-gradient(rgba(36, 38, 48, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 38, 48, 0.025) 1px, transparent 1px);
}

html.theme-light :is(
  .brand,
  .footer-brand,
  .wordmark,
  .hero h1,
  .intro-content h2,
  .social-intro h1,
  .contact-intro h1,
  .content-heading h1,
  .page-heading h1,
  .profile-card h2,
  .news-item h2,
  .news-teaser h2,
  .about-teaser h2,
  .section-heading h2,
  .status-message p,
  .activity-name,
  .social-handle,
  .contact-option-handle,
  .presence-indicator
) {
  color: #242630;
}

html.theme-light :is(
  .hero-description,
  .intro-note p,
  .teaser-copy > p:not(.eyebrow),
  .social-description,
  .contact-description,
  .content-description,
  .news-item p,
  .profile-card p,
  .news-teaser p,
  .about-teaser p,
  .social-teaser p,
  .contact-teaser p,
  .social-footnote,
  .contact-note,
  .contact-option-note,
  .contact-option-label,
  .social-hint,
  .page-description,
  .username,
  .updated-at,
  .activity-label,
  .activity-detail,
  .connection-message,
  .powered-by,
  .powered-by a,
  .id-button
) {
  color: #555966;
}

html.theme-light :is(
  .eyebrow,
  .profile-label,
  .profile-kicker,
  .social-platform,
  .wordmark-divider,
  .brand-dot,
  .section-number,
  .news-item time,
  .contact-page-number span
) {
  color: #626675;
}

html.theme-light :is(
  .hero h1 span,
  .social-intro h1 span,
  .contact-intro h1 span,
  .content-heading h1 span,
  .page-heading h1 span,
  .profile-links a,
  .text-link,
  .social-teaser-link,
  .contact-page-number,
  .social-page-number,
  .hero-index,
  .news-article-content a,
  .news-continue-link,
  .activity-link,
  .activity-timer
) {
  color: #286b49;
}

html.theme-light :is(
  .site-header,
  .hero,
  .intro-section,
  .social-intro,
  .contact-intro,
  .content-heading,
  .site-footer
) {
  border-color: rgba(36, 38, 48, 0.14);
}

html.theme-light :is(
  .status-teaser,
  .news-teaser,
  .about-teaser,
  .social-teaser,
  .contact-teaser,
  .news-item,
  .profile-card,
  .news-article-content,
  .social-card,
  .contact-option,
  .presence-row,
  .status-message,
  .empty-activity,
  .activity-card,
  .empty-state
) {
  border-color: rgba(36, 38, 48, 0.13);
  background: #fff;
  box-shadow: 0 8px 24px rgba(35, 38, 48, 0.07);
}

html.theme-light .hero-art {
  border-color: rgba(36, 38, 48, 0.14);
  background:
    radial-gradient(circle at 50% 48%, rgba(164, 148, 218, 0.18), transparent 36%),
    linear-gradient(145deg, #fff, #eceaf3);
}

html.theme-light :is(.status-teaser, .news-teaser, .about-teaser, .social-teaser, .contact-teaser) {
  border-left-width: 3px;
  background: #fff;
}

html.theme-light :is(
  .brand-mark,
  .nav-toggle,
  .icon-button,
  .social-icon,
  .contact-option-icon,
  .device-chip,
  .activity-button-label,
  .activity-platform,
  .activity-type,
  .status-message,
  .presence-row
) {
  border-color: rgba(36, 38, 48, 0.13);
  background: #f1f1f5;
  color: #343743;
}

html.theme-light .theme-switch {
  border-color: rgba(52, 55, 66, 0.08);
  background: #eeedce;
  box-shadow: inset 0 1px 2px rgba(60, 58, 38, 0.08);
}

html.theme-light .theme-choice {
  color: #42434a;
}

html.theme-light .theme-choice[aria-pressed="true"] {
  background: #fff;
  color: #202126;
  box-shadow: 0 1px 4px rgba(48, 48, 39, 0.16);
}

html.theme-light .theme-choice:focus-visible {
  outline-color: #286b49;
}

html.theme-light .nav-link {
  color: #454854;
}

html.theme-light .nav-link:hover,
html.theme-light .nav-link.is-active {
  border-color: rgba(40, 107, 73, 0.18);
  background: rgba(40, 107, 73, 0.09);
  color: #205b3b;
}

html.theme-light .primary-link {
  border-color: rgba(40, 107, 73, 0.3);
  background: rgba(40, 107, 73, 0.09);
  color: #205b3b;
}

html.theme-light .primary-link:hover {
  border-color: #286b49;
  background: rgba(40, 107, 73, 0.15);
}

html.theme-light .link-icon,
html.theme-light .social-teaser-arrow {
  background: rgba(40, 107, 73, 0.1);
  color: #205b3b;
}

html.theme-light .news-error {
  border-color: rgba(164, 49, 60, 0.24);
  background: #fff1f1;
  color: #842a33;
}

html.theme-light .social-icon-instagram,
html.theme-light .contact-option-instagram .contact-option-icon {
  color: #883b73;
}

html.theme-light .connection-message[data-state="connected"] {
  color: #286b49;
}

@media (max-width: 760px) {
  .site-footer .theme-switch {
    order: 4;
  }

  .site-footer .footer-socials {
    order: 5;
  }
}

@media (max-width: 520px) {
  .site-footer .theme-switch {
    margin-right: auto;
  }
}

.site-shell > .site-footer,
.page-shell > .site-footer {
  box-sizing: border-box;
  display: block;
  width: 100vw;
  max-width: none;
  margin-top: clamp(64px, 8vw, 112px);
  margin-left: calc((100% - 100vw) / 2);
  padding: clamp(34px, 5vw, 56px) max(24px, calc((100vw - 1180px) / 2)) 18px;
  border: 0;
  border-radius: 32px 32px 0 0;
  background: #252529;
  color: #f0eff4;
  font-family: "DM Sans", "Noto Sans JP", sans-serif;
  font-size: 13px;
  letter-spacing: normal;
}

.footer-main {
  width: min(100%, 1180px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: clamp(28px, 6vw, 100px);
  margin: 0 auto;
  padding-bottom: clamp(30px, 5vw, 54px);
}

.footer-powered {
  width: min(100%, 1180px);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 auto;
  padding-bottom: 18px;
  color: #aaa8ae;
  font-size: 11px;
}

.footer-powered-label {
  flex: 0 0 auto;
  color: #aaa8ae;
  font-weight: 600;
}

.footer-powered-links {
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px 0;
}

.footer-powered-links a {
  padding: 0 5px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  color: #d0ced4;
  font-size: 11px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-powered-links a:first-child {
  padding-left: 0;
  border-left: 0;
}

.footer-powered-links a:hover {
  color: #a7e7bb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-brand-group {
  display: grid;
  justify-items: start;
  gap: 34px;
}

.site-footer .footer-brand {
  color: #f5f3eb;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.06em;
}

.site-footer .footer-brand span {
  color: #a7e7bb;
}

.footer-column h2 {
  margin: 0 0 15px;
  color: #f5f3eb;
  font-size: 14px;
  font-weight: 600;
}

.site-footer .footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(72px, auto));
  justify-content: start;
  gap: 10px 24px;
}

.site-footer .footer-socials {
  display: flex;
  justify-content: flex-start;
  gap: 10px 18px;
}

.site-footer .footer-links a,
.site-footer .footer-socials a {
  color: #c5c3ca;
  font-size: 13px;
  letter-spacing: normal;
  text-decoration: none;
}

.site-footer .footer-links a:hover,
.site-footer .footer-socials a:hover {
  color: #a7e7bb;
}

.site-footer .theme-switch {
  border-color: rgba(255, 255, 255, 0.08);
  background: #343438;
}

.site-footer .theme-choice {
  min-width: 60px;
  color: #d3d1d8;
}

.site-footer .theme-choice[aria-pressed="true"] {
  background: #f2f1ed;
  color: #26262a;
}

.footer-bottom {
  width: min(100%, 1180px);
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom small {
  color: #aaa8ae;
  font-size: 11px;
}

.site-footer .back-to-top {
  width: 48px;
  height: 48px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f3eb;
  font-size: 25px;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.site-footer .back-to-top:hover {
  transform: translateY(-2px);
  background: rgba(167, 231, 187, 0.18);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer .footer-meta .powered-by,
.site-footer .footer-meta .powered-by a,
.site-footer .footer-meta .id-button {
  margin: 0;
  color: #aaa8ae;
  font-size: 10px;
}

.site-footer .footer-meta .id-button {
  gap: 6px;
}

.site-footer .footer-meta .id-button svg {
  width: 12px;
  height: 12px;
}

html.theme-light .site-shell > .site-footer,
html.theme-light .page-shell > .site-footer {
  background: #f1efa8;
  color: #292a22;
}

html.theme-light .site-footer .footer-brand,
html.theme-light .site-footer .footer-brand span,
html.theme-light .site-footer .footer-column h2 {
  color: #28291f;
}

html.theme-light .site-footer .footer-links a,
html.theme-light .site-footer .footer-socials a {
  color: #444538;
}

html.theme-light .site-footer .footer-links a:hover,
html.theme-light .site-footer .footer-socials a:hover {
  color: #205b3b;
}

html.theme-light .site-footer .theme-switch {
  border-color: rgba(52, 55, 66, 0.08);
  background: #e5e2a1;
}

html.theme-light .site-footer .theme-choice {
  color: #42434a;
}

html.theme-light .site-footer .theme-choice[aria-pressed="true"] {
  background: #fff;
  color: #202126;
}

html.theme-light .footer-bottom {
  border-color: rgba(41, 42, 34, 0.2);
}

html.theme-light .footer-bottom small,
html.theme-light .site-footer .footer-meta .powered-by,
html.theme-light .site-footer .footer-meta .powered-by a,
html.theme-light .site-footer .footer-meta .id-button {
  color: #626354;
}

html.theme-light .footer-powered,
html.theme-light .footer-powered-label {
  color: #626354;
}

html.theme-light .footer-powered-links a {
  border-color: rgba(41, 42, 34, 0.24);
  color: #444538;
}

html.theme-light .footer-powered-links a:hover {
  color: #205b3b;
}

html.theme-light .site-footer .back-to-top {
  border-color: rgba(41, 42, 34, 0.12);
  background: rgba(255, 255, 255, 0.3);
  color: #292a22;
}

@media (max-width: 760px) {
  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 34px 24px;
  }

  .footer-brand-group {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
  }

  .site-footer .footer-links {
    grid-template-columns: repeat(2, minmax(68px, auto));
    gap: 10px 16px;
  }

  .site-footer .footer-socials {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-meta {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 430px) {
  .site-shell > .site-footer,
  .page-shell > .site-footer {
    padding-right: 22px;
    padding-left: 22px;
    border-radius: 24px 24px 0 0;
  }

  .footer-main {
    gap: 28px 16px;
  }

  .footer-brand-group {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-column h2 {
    margin-bottom: 12px;
  }

  .site-footer .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 14px;
  }

  .footer-bottom {
    align-items: flex-end;
  }

  .footer-bottom small {
    max-width: 190px;
    line-height: 1.6;
  }

  .footer-meta {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  html.theme-light .site-header .nav-toggle {
    border-color: rgba(55, 48, 34, 0.18);
    border-radius: 16px;
    background: #d8ca82;
    color: #27271f;
    box-shadow: 0 3px 0 rgba(70, 62, 37, 0.14);
  }

  html.theme-light .site-header .nav-toggle:hover {
    border-color: rgba(55, 48, 34, 0.3);
    background: #e2d696;
    color: #202019;
  }

  html:not(.theme-light) .site-header .nav-toggle {
    border-color: rgba(255, 255, 255, 0.12);
    background: #343438;
    color: #f0eff4;
    box-shadow: none;
  }

  html:not(.theme-light) .site-header .nav-toggle:hover {
    border-color: rgba(167, 231, 187, 0.35);
    background: #414146;
    color: #a7e7bb;
  }
}

@media (max-width: 520px) {
  .page-shell > .site-footer {
    width: 100%;
    margin-left: 0;
  }
}
