/* simplymyok public site */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f4f5f7;
  --surface-strong: #e9ebef;
  --text: #111318;
  --text-soft: #626874;
  --line: #d8dce3;
  --line-strong: #b7bdc7;
  --accent: #f0523a;
  --accent-strong: color-mix(in srgb, var(--accent) 82%, #000000);
  --blue: #3157d5;
  --blue-strong: #2244b2;
  --focus: rgba(49, 87, 213, 0.28);
  --shadow: 0 18px 45px rgba(17, 19, 24, 0.12);
  --code-bg: #f0f2f5;
  --blockquote: #f7f8fa;
  --nav-h: 72px;
  --content: 1280px;
}

html.dark {
  color-scheme: dark;
  --bg: #0e1014;
  --surface: #171a20;
  --surface-strong: #20242b;
  --text: #f4f5f7;
  --text-soft: #a7adb7;
  --line: #30343c;
  --line-strong: #4a505b;
  --accent: #ff674f;
  --accent-strong: color-mix(in srgb, var(--accent) 80%, #ffffff);
  --blue: #5f7ff0;
  --blue-strong: #7893f5;
  --focus: rgba(95, 127, 240, 0.36);
  --shadow: 0 20px 52px rgba(0, 0, 0, 0.34);
  --code-bg: #191d23;
  --blockquote: #151920;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  transition: background-color 180ms ease, color 180ms ease;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--blue);
  color: #ffffff;
}

.gradient-text {
  background: none;
  color: var(--accent);
  -webkit-text-fill-color: currentColor;
}

.arrow-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  width: min(var(--content), 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.brand {
  margin-right: auto;
}

.brand-code {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 17px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition: color 160ms ease;
}

.nav-link::after {
  position: absolute;
  right: 13px;
  bottom: 5px;
  left: 13px;
  height: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-search,
.theme-toggle,
.menu-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: border-color 160ms ease, background-color 160ms ease, width 200ms ease;
}

.nav-search:hover,
.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--line);
  background: var(--surface);
}

.nav-search {
  overflow: hidden;
}

.nav-search.open {
  width: 220px;
  border-color: var(--line-strong);
  background: var(--bg);
}

.nav-search-icon {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.nav-search-input {
  position: absolute;
  left: -9999px;
  width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  opacity: 0;
}

.nav-search-submit {
  display: none;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  margin-right: 4px;
  border-radius: 3px;
  color: var(--blue);
}

.nav-search-submit:hover {
  background: var(--surface);
}

.nav-search-submit .arrow-icon {
  width: 18px;
  height: 18px;
}

.nav-search.open .nav-search-input {
  position: static;
  width: 100%;
  height: 100%;
  padding: 0 12px 0 40px;
  opacity: 1;
}

.nav-search.open .nav-search-submit {
  display: grid;
}

.theme-toggle svg,
.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-moon,
.menu-toggle .icon-close {
  display: none;
}

html.dark .theme-toggle .icon-sun {
  display: none;
}

html.dark .theme-toggle .icon-moon,
.nav-open .menu-toggle .icon-close {
  display: block;
}

.nav-open .menu-toggle .icon-menu {
  display: none;
}

.menu-toggle,
.tabbar {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 540px;
  height: min(720px, calc(100svh - var(--nav-h) - 88px));
  border-bottom: 1px solid var(--line);
  background-color: #ffffff;
  background-image: url("/assets/images/hero-studio-v2.webp");
  background-position: center center;
  background-size: cover;
  color: #111318;
}

.hero-inner {
  width: min(var(--content), 100%);
  margin: 0 auto;
  padding: 44px 32px 56px;
}

.hero .hero-inner {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.hero-title {
  max-width: 650px;
  color: inherit;
  font-size: 84px;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.03;
}

.hero-period {
  color: var(--accent);
}

.hero-sub {
  max-width: 590px;
  margin-top: 26px;
  color: #343942;
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn-primary,
.btn-secondary,
.btn-light,
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 180px;
  min-height: 54px;
  gap: 24px;
  padding: 0 20px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn-primary {
  background: var(--accent);
  box-shadow: 4px 4px 0 var(--blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-strong);
  box-shadow: 2px 2px 0 var(--blue);
  transform: translate(2px, 2px);
}

.btn-secondary {
  border: 1px solid #111318;
  background: rgba(255, 255, 255, 0.82);
  color: #111318;
}

.btn-secondary:hover {
  background: #111318;
  color: #ffffff;
}

.hero-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero > .hero-inner > .hero-social {
  margin-top: 28px;
}

.social-btn {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: currentColor;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.social-btn svg {
  width: 19px;
  height: 19px;
}

.social-btn:hover {
  background: currentColor;
  color: var(--bg);
  transform: translateY(-2px);
}

.hero .social-btn {
  color: #111318;
}

.hero .social-btn:hover {
  color: #ffffff;
  background: #111318;
}

/* Shared sections */
.section {
  padding: 112px 32px;
}

.section-inner,
.footer-inner {
  width: min(var(--content), 100%);
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 48px;
}

.section-index {
  padding-bottom: 9px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px;
  font-weight: 800;
}

.section-title,
.page-title {
  font-size: 48px;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.1;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
}

.section-link:hover .arrow-icon {
  transform: translateX(4px);
}

.section-link .arrow-icon,
.content-arrow .arrow-icon,
.col-arrow .arrow-icon {
  transition: transform 160ms ease;
}

.section-summary {
  max-width: 360px;
  padding-bottom: 7px;
  color: var(--text-soft);
  font-size: 15px;
}

/* Featured content */
.projects {
  padding-top: 48px;
  background: var(--bg);
}

.content-list {
  border-top: 1px solid var(--line-strong);
}

.content-row {
  display: grid;
  grid-template-columns: minmax(84px, 120px) minmax(0, 1fr) auto 52px;
  align-items: center;
  min-height: 220px;
  border-bottom: 1px solid var(--line);
  transition: background-color 180ms ease;
}

.content-row:hover {
  background: var(--surface);
}

.content-number {
  align-self: stretch;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 58px;
  font-weight: 400;
  line-height: 1;
}

.card-body {
  min-width: 0;
  padding: 32px 42px;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.badge {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.card-date {
  color: var(--text-soft);
  font-size: 12px;
}

.card-title {
  font-size: 28px;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.3;
}

.card-desc {
  display: -webkit-box;
  max-width: 720px;
  margin-top: 10px;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 15px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.chip {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.chip::before {
  content: "#";
}

.card-cover {
  width: 188px;
  height: 124px;
  border-radius: 4px;
  object-fit: cover;
}

.content-arrow,
.col-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text);
}

.content-arrow {
  margin-left: 24px;
}

.content-row:hover .content-arrow,
.col-card:hover .col-arrow {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.content-row:hover .content-arrow .arrow-icon,
.col-card:hover .col-arrow .arrow-icon {
  transform: translateX(3px);
}

/* About */
.about {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.8fr);
  gap: 80px;
}

.about-intro {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  justify-content: space-between;
}

.about-text {
  max-width: 680px;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.55;
}

.about-code {
  overflow: hidden;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 150px;
  font-weight: 800;
  line-height: 0.8;
  white-space: nowrap;
}

.about-points {
  list-style: none;
  border-top: 1px solid var(--line-strong);
  counter-reset: about-point;
}

.about-points li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  min-height: 98px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
  counter-increment: about-point;
}

.about-points li::before {
  color: var(--accent);
  content: "0" counter(about-point);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 20px;
  font-weight: 800;
}

/* Columns */
.columns {
  background: var(--bg);
}

.col-grid {
  border-top: 1px solid var(--line-strong);
}

.col-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto 48px;
  align-items: center;
  min-height: 130px;
  border-bottom: 1px solid var(--line);
  transition: padding 160ms ease, background-color 160ms ease;
}

.col-card:hover {
  padding-right: 12px;
  padding-left: 12px;
  background: var(--surface);
}

.col-number {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 42px;
  font-weight: 700;
}

.col-name {
  font-size: 32px;
  font-weight: 780;
}

.col-emoji {
  margin-right: 36px;
  color: var(--text-soft);
  font-size: 22px;
}

/* Contact */
.contact {
  padding-top: 100px;
  padding-bottom: 100px;
  background: var(--blue);
  color: #ffffff;
}

.contact-title {
  max-width: 900px;
  font-size: 68px;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.08;
}

.contact-text {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.contact .hero-social {
  margin-top: 34px;
}

.contact .social-btn {
  color: #ffffff;
}

.contact .social-btn:hover {
  background: #ffffff;
  color: var(--blue);
}

.btn-light {
  background: #ffffff;
  color: #111318;
}

.btn-light:hover {
  background: #111318;
  color: #ffffff;
}

.btn-ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.74);
  color: #ffffff;
}

.btn-ghost-light:hover {
  background: #ffffff;
  color: var(--blue);
}

/* Footer */
.site-footer {
  padding: 48px 32px 56px;
  border-top: 1px solid var(--line);
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-top {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.footer-top > .hero-social {
  margin: 0;
}

.footer-bottom {
  padding-top: 22px;
  color: var(--text-soft);
  font-size: 13px;
}

.icp:hover {
  color: var(--text);
}

/* Search and content lists */
.search-page {
  min-height: calc(100svh - var(--nav-h));
}

.search-head {
  margin-bottom: 34px;
  text-align: center;
}

.search-form {
  position: relative;
  display: flex;
  width: min(680px, 100%);
  margin: 0 auto;
}

.search-form-icon {
  position: absolute;
  top: 17px;
  left: 18px;
  width: 21px;
  height: 21px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 56px;
  padding: 0 18px 0 52px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  outline: 0;
  background: var(--bg);
  font-size: 16px;
}

.search-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--focus);
}

.search-count,
.search-empty {
  margin: 24px auto 0;
  color: var(--text-soft);
  text-align: center;
}

.search-empty {
  padding: 64px 0;
}

.search-results {
  display: grid;
  width: min(820px, 100%);
  margin: 38px auto 0;
  border-top: 1px solid var(--line-strong);
}

.search-card {
  display: block;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}

.search-card:hover {
  background: var(--surface);
}

.search-card .card-body {
  padding-right: 24px;
  padding-left: 24px;
}

/* Support, category, and article pages */
.support-hero,
.list-hero {
  display: flex;
  min-height: 430px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.support-hero .hero-inner,
.list-hero .hero-inner {
  text-align: center;
}

.support-hero .hero-title,
.list-hero .hero-title {
  max-width: none;
  color: var(--text);
  font-size: 64px;
}

.support-hero .hero-sub,
.list-hero .hero-sub {
  margin-right: auto;
  margin-left: auto;
  color: var(--text-soft);
}

.glass {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.help-card {
  max-width: 650px;
  margin: 0 auto;
  padding: 32px;
  text-align: center;
}

.help-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.help-card p,
.sup-desc {
  color: var(--text-soft);
}

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

.sup-card {
  padding: 28px 22px;
  text-align: center;
}

.sup-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: var(--blue);
  color: #ffffff;
  font-size: 24px;
}

.sup-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sup-name {
  margin-bottom: 6px;
  font-size: 19px;
}

.sup-desc {
  min-height: 48px;
  margin-bottom: 18px;
  font-size: 13px;
}

.qr-btn,
.qr-placeholder {
  width: 132px;
  height: 132px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
}

.qr-btn {
  position: relative;
  display: block;
  overflow: hidden;
}

.qr-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-btn span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: #111318;
  font-size: 10px;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  border-style: dashed;
  color: #707782;
  font-size: 12px;
}

.supporter-list {
  width: min(720px, 100%);
  margin: 0 auto;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.supporter {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.sup-platform {
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.sup-nick {
  font-weight: 650;
}

.sup-amount {
  font-weight: 800;
}

.empty {
  padding: 42px 0;
  color: var(--text-soft);
  text-align: center;
}

.list-hero + .section .card-grid {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.article {
  padding: 84px 32px 112px;
}

.article-inner {
  width: min(820px, 100%);
  margin: 0 auto;
}

.article-head {
  margin-bottom: 38px;
  text-align: center;
}

.article-head .card-meta {
  justify-content: center;
}

.article-title {
  margin-top: 18px;
  font-size: 52px;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.18;
}

.article-excerpt {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 17px;
}

.article-cover {
  width: 100%;
  max-height: 480px;
  margin-bottom: 44px;
  border-radius: 6px;
  object-fit: cover;
}

.article-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 44px;
}

/* Markdown */
.markdown-body {
  font-size: 17px;
  line-height: 1.8;
}

.markdown-body > * {
  margin-bottom: 20px;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  margin-top: 42px;
  margin-bottom: 16px;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.35;
}

.markdown-body h1 { font-size: 32px; }
.markdown-body h2 { font-size: 27px; }
.markdown-body h3 { font-size: 22px; }
.markdown-body h4 { font-size: 18px; }

.markdown-body a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 26px;
}

.markdown-body li {
  margin: 5px 0;
}

.markdown-body code {
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--code-bg);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
}

.markdown-body pre {
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--code-bg);
}

.markdown-body pre code {
  padding: 0;
  background: none;
}

.markdown-body blockquote {
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: var(--blockquote);
  color: var(--text-soft);
}

.markdown-body img {
  margin: 28px 0;
  border-radius: 6px;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
}

.markdown-body th,
.markdown-body td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.markdown-body th {
  background: var(--surface);
}

.markdown-body hr {
  margin: 36px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.video-embed {
  position: relative;
  overflow: hidden;
  margin: 28px 0;
  padding-top: 56.25%;
  border-radius: 6px;
  background: #000000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Feedback and dialog */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 220;
  padding: 11px 16px;
  border-radius: 4px;
  background: var(--text);
  box-shadow: var(--shadow);
  color: var(--bg);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(9, 11, 15, 0.82);
}

.lightbox.show {
  display: grid;
}

.lightbox img {
  width: min(420px, 88vw);
  max-height: 82vh;
  padding: 18px;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--shadow);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 1020px) {
  .hero-title {
    font-size: 64px;
  }

  .about-layout {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .about-code {
    font-size: 110px;
  }
}

@media (max-width: 840px) {
  :root {
    --nav-h: 64px;
  }

  .header-inner {
    padding: 0 20px;
  }

  .brand-name {
    font-size: 17px;
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--nav-h) + 10px);
    right: 16px;
    left: 16px;
    display: flex;
    max-height: calc(100svh - var(--nav-h) - 26px);
    padding: 18px;
    overflow-y: auto;
    visibility: hidden;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--bg);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    min-height: 52px;
    padding: 0 10px;
    border-bottom: 1px solid var(--line);
    font-size: 20px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.active {
    color: var(--accent);
  }

  .nav-search,
  .nav-search.open {
    width: 100%;
    margin-top: 8px;
    justify-content: flex-start;
    border-color: var(--line);
  }

  .nav-search-input,
  .nav-search.open .nav-search-input {
    position: static;
    width: 100%;
    height: 100%;
    padding: 0 12px 0 42px;
    opacity: 1;
  }

  .nav-search-submit,
  .nav-search.open .nav-search-submit {
    display: grid;
  }

  .theme-toggle {
    width: 44px;
    align-self: flex-end;
    justify-content: center;
    padding-left: 0;
    border-color: var(--line);
  }

  .hero {
    min-height: 560px;
    height: calc(100svh - var(--nav-h) - 72px);
    max-height: 700px;
    background-position: 30% center;
    background-size: auto 100%;
  }

  .hero-inner {
    padding: 48px 20px 44px;
  }

  .hero-title {
    max-width: 500px;
    font-size: 52px;
  }

  .hero-sub {
    max-width: 430px;
    margin-top: 22px;
    font-size: 17px;
  }

  .section {
    padding: 78px 20px;
  }

  .projects {
    padding-top: 42px;
  }

  .section-head {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 34px;
  }

  .section-link,
  .section-summary {
    grid-column: 2;
    justify-self: start;
  }

  .section-title,
  .page-title {
    font-size: 38px;
  }

  .content-row {
    grid-template-columns: 64px minmax(0, 1fr) 44px;
    min-height: 190px;
  }

  .content-number {
    font-size: 34px;
  }

  .card-body {
    padding: 28px 22px;
  }

  .card-title {
    font-size: 23px;
  }

  .card-cover {
    grid-column: 2 / 4;
    width: calc(100% - 22px);
    height: 180px;
    margin: 0 0 28px 22px;
  }

  .content-arrow {
    grid-column: 3;
    margin-left: 0;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .about-intro {
    min-height: 270px;
  }

  .about-text {
    font-size: 24px;
  }

  .col-card {
    grid-template-columns: 84px minmax(0, 1fr) auto 44px;
  }

  .col-number {
    font-size: 32px;
  }

  .col-name {
    font-size: 25px;
  }

  .contact-title {
    font-size: 48px;
  }

  .site-footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .support-hero .hero-title,
  .list-hero .hero-title {
    font-size: 50px;
  }
}

@media (max-width: 560px) {
  .hero {
    background-position: 27% center;
  }

  .hero-title {
    font-size: 43px;
  }

  .hero-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-light,
  .btn-ghost-light {
    min-width: 0;
    gap: 10px;
    padding: 0 14px;
  }

  .section-head {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .section-title,
  .page-title {
    font-size: 34px;
  }

  .content-row {
    grid-template-columns: 52px minmax(0, 1fr) 40px;
  }

  .content-number {
    align-items: flex-start;
    padding-top: 34px;
    font-size: 25px;
  }

  .card-body {
    padding: 30px 14px;
  }

  .card-title {
    font-size: 20px;
  }

  .content-arrow,
  .col-arrow {
    width: 38px;
    height: 38px;
  }

  .card-cover {
    margin-left: 14px;
    width: calc(100% - 14px);
    height: 150px;
  }

  .about-text {
    font-size: 21px;
  }

  .about-code {
    font-size: 80px;
  }

  .about-points li {
    grid-template-columns: 52px minmax(0, 1fr);
    font-size: 16px;
  }

  .col-card {
    grid-template-columns: 62px minmax(0, 1fr) 40px;
    min-height: 104px;
  }

  .col-number {
    font-size: 26px;
  }

  .col-name {
    font-size: 22px;
  }

  .col-emoji {
    display: none;
  }

  .contact {
    padding-top: 74px;
    padding-bottom: 74px;
  }

  .contact-title {
    font-size: 40px;
  }

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

  .footer-top,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-hero,
  .list-hero {
    min-height: 360px;
  }

  .support-hero .hero-title,
  .list-hero .hero-title {
    font-size: 42px;
  }

  .article {
    padding: 64px 20px 84px;
  }

  .article-title {
    font-size: 36px;
  }

  .supporter {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
