@import "brand.css";
@import "projects.css";

html {
  scroll-behavior: smooth;
  font-size: clamp(16px, 9.28px + 0.35vw, 20px);
}

body.page-home #projects,
body.page-home #about {
  scroll-margin-top: var(--home-anchor-top, 10rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--kin-bg);
  font-family: var(--kin-font-sans);
  color: var(--kin-text);
  line-height: 1.6;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, var(--kin-backdrop-glow), transparent 58%),
    radial-gradient(ellipse 40% 30% at 100% 20%, var(--kin-backdrop-orb-1), transparent),
    radial-gradient(ellipse 35% 25% at 0% 80%, var(--kin-backdrop-orb-2), transparent),
    var(--kin-bg);
}

.logo-container {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--kin-card-bg);
  border: 1px solid var(--kin-card-border);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.logo-container:hover {
  border-color: var(--kin-accent);
  box-shadow: var(--kin-shadow);
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.logo-cycle {
  position: relative;
  display: block;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.logo-cycle__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  will-change: opacity;
}

.logo-cycle__img.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .logo-cycle__img {
    transition: none;
  }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--kin-card-bg);
  border: 1px solid var(--kin-card-border);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--kin-text-muted);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  outline: none;
  color: var(--kin-accent-hover);
  border-color: var(--kin-accent);
  transform: translateY(-2px);
}

.theme-toggle__icon {
  display: block;
  flex-shrink: 0;
}

.theme-toggle__icon--sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--sun {
  display: block;
}

.visually-hidden {
  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: 1rem;
}

.nav-links a {
  padding: 10px 20px;
  background: var(--kin-card-bg);
  border: 1px solid var(--kin-card-border);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--kin-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  outline: none;
  color: var(--kin-accent-hover);
  border-color: var(--kin-accent);
  transform: translateY(-2px);
}

.content-wrapper {
  position: relative;
  z-index: 5;
  max-width: min(1720px, max(900px, calc(900px + (100vw - 1920px) * 0.4271)));
  margin: 0 auto;
  padding: 25vh 5% max(12vh, 5.5rem);
}

body.page-home .content-wrapper {
  padding-top: min(14vh, 5.5rem);
  padding-left: clamp(1.25rem, 2.4vw, 2.75rem);
  padding-right: clamp(1.25rem, 2.4vw, 2.75rem);
  /* Home is a bit wider than the 900px reading column — not full-bleed. */
  max-width: 1200px;
}

.hero {
  text-align: center;
  margin-bottom: 4rem;
}

.hero--with-site-top {
  margin-bottom: 4rem;
}

.hero h1,
.hero .hero__title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
  color: var(--kin-text);
}

.hero .hero__tagline.tagline {
  margin-bottom: 2rem;
}

body.page-home:not(.page-home--header-brand) .site-top__page-intro--dockable {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

body.page-home.page-home--header-brand .site-top__page-intro--dockable {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.hero__brand {
  transition: opacity 0.22s ease, visibility 0.22s ease, max-height 0.32s ease, margin-bottom 0.32s ease;
  overflow: hidden;
  max-height: 12em;
}

body.page-home.page-home--hero-collapsed .hero__brand {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  margin-bottom: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__brand,
  body.page-home .site-top__page-intro--dockable {
    transition: none;
  }
}

body.page-home--suppress-anchor-transition .hero__brand,
body.page-home--suppress-anchor-transition .site-top__page-intro--dockable {
  transition: none !important;
}

.tagline {
  font-size: 1.05rem;
  color: var(--kin-accent);
  margin-bottom: 2rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bio-short {
  max-width: min(46rem, max(600px, calc(600px + (100vw - 1920px) * 0.208333)));
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--kin-text-muted);
  font-weight: 300;
}

/* Hero: a little life — soft entrance, a quiet "what's new" chip, a slowly breathing glow. */
.hero__chip-slot {
  margin-top: 1.75rem;
  min-height: 2.4rem;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--kin-text-muted);
  background: var(--kin-card-bg);
  border: 1px solid color-mix(in srgb, var(--kin-accent) 40%, var(--kin-card-border));
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.hero__chip strong {
  color: var(--kin-text);
  font-weight: 600;
}

.hero__chip:hover,
.hero__chip:focus-visible {
  outline: none;
  border-color: var(--kin-accent);
  color: var(--kin-text);
  transform: translateY(-1px);
}

.hero__chip-dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--kin-accent);
  flex-shrink: 0;
}

@keyframes kin-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes kin-dot-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--kin-accent) 55%, transparent);
  }

  70%,
  100% {
    box-shadow: 0 0 0 0.5rem transparent;
  }
}

@keyframes kin-breathe {
  from {
    opacity: 0.35;
  }

  to {
    opacity: 1;
  }
}

body.page-home .hero__title,
body.page-home .hero__tagline,
body.page-home .bio-short,
body.page-home .hero__chip {
  animation: kin-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

body.page-home .hero__tagline {
  animation-delay: 0.1s;
}

body.page-home .bio-short {
  animation-delay: 0.22s;
}

body.page-home .hero__chip {
  animation-delay: 0.4s;
}

.hero__chip-dot {
  animation: kin-dot-pulse 2.6s ease-out infinite;
}

body.page-home .page-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 45% 30% at 50% 14%, var(--kin-backdrop-glow), transparent 72%);
  animation: kin-breathe 9s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .hero__title,
  body.page-home .hero__tagline,
  body.page-home .bio-short,
  body.page-home .hero__chip,
  .hero__chip-dot,
  body.page-home .page-backdrop::before {
    animation: none;
  }
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2rem, 1.35rem + 0.45vw, 2.35rem);
  margin-top: 5rem;
}

.section-grid--home-projects {
  margin-top: 4rem;
}

.home-preview-slot {
  min-width: 0;
}

.home-featured {
  margin-top: 4rem;
}

.home-featured:has(#home-featured:empty) {
  display: none;
}

.home-featured + .section-grid--home-projects {
  margin-top: 2rem;
}

.home-featured-card {
  border-color: color-mix(in srgb, var(--kin-accent) 40%, var(--kin-card-border));
}

.home-featured-card:hover {
  transform: none;
}

.home-featured-card__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem 2.75rem;
}

.home-featured-card__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.home-featured-card__text {
  min-width: 0;
}

/* Phone screenshots: cropped, softly faded at the bottom, lift a little on hover. */
.home-featured-card__shots {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  justify-self: end;
  height: 18rem;
  overflow: hidden;
  padding: 0.5rem 1.25rem 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}

.home-featured-card__shot {
  display: block;
  width: 8.4rem;
  height: auto;
  margin: 0 -0.5rem;
  border-radius: 1.1rem 1.1rem 0 0;
  border: 1px solid var(--kin-card-border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.home-featured-card__shot:nth-child(2) {
  position: relative;
  z-index: 1;
  margin-top: 0.9rem;
}

.home-featured-card__shot:nth-child(1) {
  transform: rotate(-3deg);
  transform-origin: bottom right;
}

.home-featured-card__shot:nth-child(3) {
  transform: rotate(3deg);
  transform-origin: bottom left;
}

.home-featured-card:hover .home-featured-card__shot:nth-child(1) {
  transform: rotate(-5deg) translate(-0.4rem, -0.3rem);
}

.home-featured-card:hover .home-featured-card__shot:nth-child(2) {
  transform: translateY(-0.5rem);
}

.home-featured-card:hover .home-featured-card__shot:nth-child(3) {
  transform: rotate(5deg) translate(0.4rem, -0.3rem);
}

@media (max-width: 900px) {
  .home-featured-card__main {
    grid-template-columns: 1fr;
  }

  .home-featured-card__shots {
    justify-self: center;
    height: 14rem;
  }

  .home-featured-card__shot {
    width: 6.6rem;
  }
}

@media (max-width: 640px) {
  .home-featured-card__shots {
    height: 13rem;
  }

  .home-featured-card__shot {
    width: 6.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-featured-card__shot {
    transition: none;
  }
}

.home-featured-card__text .home-preview-card__title-row {
  flex-wrap: wrap;
}

.home-featured-card__text p {
  margin: 0;
}

.home-featured-card__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

/* The badge artwork has built-in clear space — pull it back so it lines up with the text edge. */
.home-featured-card__actions .project-tile__badge {
  margin-left: -0.65rem;
}

.home-featured-card__actions .home-featured-card__more {
  margin-top: 0;
  white-space: nowrap;
  text-decoration: none;
}

.home-featured-card__actions .home-featured-card__more:hover {
  color: var(--kin-accent-hover);
}

.home-preview-card {
  height: 100%;
}

.home-preview-card__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--kin-accent);
}

.home-preview-card__title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  min-width: 0;
}

.home-preview-card__title-row .project-tile__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

a.card--link:hover .home-preview-card__title-row .project-tile__icon,
.home-featured-card:hover .home-preview-card__title-row .project-tile__icon {
  transform: scale(1.08) rotate(-3deg);
}

a.card--link .card--link__hint {
  transition: transform 0.3s ease, color 0.3s ease;
}

a.card--link:hover .card--link__hint {
  transform: translateX(4px);
  color: var(--kin-accent-hover);
}

.home-preview-card__title-row h3 {
  margin: 0;
  min-width: 0;
}

.home-preview-card h3 {
  margin-bottom: 0.85rem;
}

.home-preview-card__title-row + p {
  margin-top: 0;
}

.card {
  background: var(--kin-card-bg);
  border: 1px solid var(--kin-card-border);
  padding: 2rem;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--kin-shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--kin-accent);
}

.card h3 {
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--kin-text);
}

.card p {
  font-size: 0.95rem;
  color: var(--kin-text-muted);
}

a.card--link {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.card--link:hover {
  transform: translateY(-5px);
  border-color: var(--kin-accent);
}

.card--link__hint {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--kin-accent);
  font-weight: 600;
}

.site-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  padding: 0;
}

.site-top__inner {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem 1rem;
  width: 100%;
  padding: 25px clamp(20px, 5vw, 50px);
  box-sizing: border-box;
  background: var(--kin-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--kin-glass-border);
}

.site-top .site-top__logo.logo-container {
  padding: 10px 20px;
}

.site-top__logo {
  justify-self: start;
  grid-column: 1;
}

.site-top__page-intro {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  min-width: 0;
  max-width: min(90vw, 28rem);
}

.site-top__page-title {
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.1;
  color: var(--kin-text);
}

.site-top__page-tagline {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--kin-accent);
}

.site-top__nav-main {
  grid-column: 3;
  justify-self: end;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.site-top .site-top__nav-main a {
  padding: 10px 20px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

body.page-home .main-scroll {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  box-sizing: border-box;
  padding-bottom: 4.5rem;
}

body.page-home .main-scroll {
  padding-top: 8.5rem;
}

body.page-catalog .main-scroll {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  box-sizing: border-box;
  padding-top: 10.25rem;
  padding-bottom: 4.5rem;
}

.site-top--with-subbar .site-top__inner {
  border-bottom: none;
}

.site-top__subbar {
  margin: 0;
  padding: 0.35rem clamp(20px, 5vw, 50px) 0;
  background: var(--kin-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--kin-glass-border);
}

.site-top__subbar-inner {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.site-top__back {
  grid-column: 3;
  justify-self: end;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--kin-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-top__back:hover,
.site-top__back:focus-visible {
  outline: none;
  color: var(--kin-accent-hover);
}

.content-wrapper--subpage {
  padding-top: 0.35rem;
}

.subpage-lede {
  margin: 0 auto 1.5rem;
  max-width: min(58ch, 100%);
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--kin-text-muted);
}

.privacy-doc {
  max-width: min(100%, max(720px, calc(720px + (100vw - 1920px) * 0.35)));
  margin: 0 auto 2rem;
  padding: 2rem 2.5rem;
  background: var(--kin-card-bg);
  border: 1px solid var(--kin-card-border);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--kin-shadow);
  text-align: left;
}

.privacy-doc__title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--kin-text);
}

.privacy-doc p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--kin-text-muted);
}

.privacy-doc p:last-child {
  margin-bottom: 0;
}

.privacy-doc a {
  color: var(--kin-accent);
  text-decoration: none;
}

.privacy-doc a:hover,
.privacy-doc a:focus-visible {
  outline: none;
  color: var(--kin-accent-hover);
  text-decoration: underline;
}

.privacy-doc__meta {
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.65rem;
}

.privacy-doc__meta div {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) 1fr;
  gap: 0.5rem 1rem;
  align-items: baseline;
}

.privacy-doc__meta dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--kin-accent);
}

.privacy-doc__meta dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--kin-text);
}

.privacy-doc__toc {
  margin: 1.75rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--kin-card-border);
  border-radius: 8px;
  background: var(--kin-surface);
}

.privacy-doc__toc-title {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--kin-accent);
}

.privacy-doc__toc ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--kin-text-muted);
  font-size: 0.95rem;
}

.privacy-doc__toc li {
  margin-bottom: 0.35rem;
}

.privacy-doc__toc li:last-child {
  margin-bottom: 0;
}

.privacy-doc__product,
.privacy-doc__contact {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--kin-card-border);
  scroll-margin-top: 11rem;
}

.privacy-doc__product h3,
.privacy-doc__contact h3 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--kin-text);
}

.privacy-doc__product h4 {
  margin: 1.15rem 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--kin-accent);
}

.site-footer__note a {
  color: var(--kin-text-faint);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.site-footer__sep {
  color: var(--kin-text-faint);
  font-size: 0.72rem;
  line-height: 1;
  margin: 0 0.15rem;
}

.site-footer__note a:hover,
.site-footer__note a:focus-visible {
  outline: none;
  color: var(--kin-accent-hover);
}

.site-footer__discord,
.site-footer__kofi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.site-footer__discord .icon-discord {
  width: 1.28rem;
  height: 1.28rem;
}

.site-footer__kofi .icon-kofi {
  width: 1.22rem;
  height: 1.4rem;
}

.icon-kofi {
  display: block;
  width: 1.22rem;
  height: 1.4rem;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.78;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

[data-theme="dark"] .icon-kofi {
  filter: invert(1);
}

.site-footer__kofi:hover .icon-kofi,
.site-footer__kofi:focus-visible .icon-kofi {
  opacity: 1;
}

.icon-discord {
  display: block;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  fill: currentColor;
}

.about-section {
  padding: 5vh 0;
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

body.page-home .about-section {
  padding-top: 0;
}

.about-content {
  max-width: min(100%, max(850px, calc(850px + (100vw - 1920px) * 0.453125)));
  background: var(--kin-card-bg);
  border: 1px solid var(--kin-card-border);
  padding: 2rem 3.5rem;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--kin-shadow);
}

.about-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--kin-text);
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--kin-text-muted);
  font-size: 0.98rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text__closing {
  margin-top: 1.25rem !important;
  font-weight: 600;
  color: var(--kin-text) !important;
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.55rem clamp(20px, 5vw, 50px);
  background: var(--kin-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--kin-glass-border);
}

.site-footer__note {
  justify-self: start;
  display: flex;
  align-items: center; /* horizontális középvonal: szöveg + ikon egy vonalban */
  flex-wrap: wrap;
  max-width: min(26rem, 100%);
  margin: 0;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1;
  color: var(--kin-text-faint);
}

.site-footer__copy {
  justify-self: center;
  align-self: center;
  text-align: center;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--kin-text-muted);
}

.site-footer__motto {
  justify-self: end;
  align-self: center;
  text-align: right;
  margin: 0;
  max-width: min(16rem, 42vw);
  font-size: 0.68rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  color: var(--kin-accent);
}

@media (max-width: 640px) {
  .site-top__inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .site-top__logo {
    grid-column: 1;
    grid-row: 1;
  }

  .site-top__nav-main {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  .site-top__page-intro {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    max-width: 100%;
  }

  body.page-home .main-scroll {
    padding-top: 10.5rem;
  }

  body.page-catalog .main-scroll {
    padding-top: 11.75rem;
  }

  .site-top__subbar-inner {
    grid-template-columns: 1fr;
    justify-items: end;
  }

  .about-content {
    padding: 1.5rem 1.25rem;
  }

  .privacy-doc {
    padding: 1.5rem 1.25rem;
  }

  .privacy-doc__meta div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .nav-links a {
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer__note {
    justify-self: center;
    order: 1;
  }

  .site-footer__copy {
    order: 2;
  }

  .site-footer__motto {
    justify-self: center;
    text-align: center;
    max-width: 20rem;
    order: 3;
  }
}
