:root {
  color-scheme: dark;
  --page: #07131b;
  --surface: #0d1d27;
  --ink: #f1eee6;
  --heading: #f0d38f;
  --navy: #0a2d47;
  --muted: #a8b5ba;
  --line: rgb(204 221 226 / 20%);
  --accent: #80c5c4;
  --gold: #d8b36b;
  --gold-bright: #f0d594;
  --hero-bg: #0b2a42;
  --hero-ink: #f7f2e8;
  --hero-muted: #c4d2d9;
  --footer-bg: #040b10;
  --footer-muted: #a6b1b8;
  --footer-line: #354047;
  --menu-shadow: rgb(0 0 0 / 32%);
  --action-bg: var(--gold);
  --action-fg: #09141c;
  --action-hover: var(--gold-bright);
  --page-width: 1160px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #ffffff;
  --surface: #f5f8f8;
  --ink: #102e43;
  --heading: #866021;
  --navy: #082d4b;
  --muted: #62707a;
  --line: #dce2e6;
  --accent: #216e73;
  --gold: #866021;
  --gold-bright: #96681f;
  --hero-bg: #eaf2f2;
  --hero-ink: #102e43;
  --hero-muted: #526b78;
  --footer-bg: #e8f0ef;
  --footer-muted: #5d707a;
  --footer-line: #c5d1d3;
  --menu-shadow: rgb(8 45 75 / 12%);
  --action-bg: var(--navy);
  --action-fg: #ffffff;
  --action-hover: #185477;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.8;
  transition: background-color 220ms ease, color 220ms ease;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 6px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
}

.page-width {
  width: min(var(--page-width), calc(100% - 96px));
  margin-inline: auto;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 8px 16px;
  color: var(--ink);
  background: var(--surface);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--page);
  border-bottom: 1px solid var(--line);
  transition: background-color 220ms ease, border-color 220ms ease;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  color: var(--gold);
}

.brand-mark {
  width: 42px;
  height: 42px;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 400;
  letter-spacing: -1.2px;
  line-height: 1;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 14px;
  letter-spacing: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.desktop-nav > a:not(.login-link),
.footer-bottom a {
  transition: color 160ms ease;
}

.desktop-nav > a:not(.login-link):hover {
  color: var(--gold-bright);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.theme-toggle:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: rgb(216 179 107 / 10%);
}

.theme-icon {
  width: 18px;
  height: 18px;
}

.theme-icon-moon {
  display: none;
}

:root[data-theme="light"] .theme-icon-sun {
  display: none;
}

:root[data-theme="light"] .theme-icon-moon {
  display: block;
}

.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  min-width: 105px;
  padding: 9px 20px;
  color: var(--action-fg);
  background: var(--action-bg);
  transition: background 160ms ease;
}

.login-link:hover {
  background: var(--action-hover);
}

.mobile-nav {
  display: none;
}

.hero {
  background: var(--hero-bg);
  color: var(--hero-ink);
  text-align: center;
  transition: background-color 220ms ease, color 220ms ease;
}

.hero-inner {
  padding-block: 88px;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2.8px;
}

.hero h1 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 400;
  letter-spacing: 4px;
  line-height: 1.42;
}

.hero-description {
  margin: 26px 0 0;
  color: var(--hero-muted);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 2;
}

.text-link,
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  font-size: 13px;
  letter-spacing: 1px;
}

.footer-cta:hover {
  color: var(--accent);
}

.text-link span,
.footer-cta span {
  font-size: 19px;
  line-height: 1;
  transition: transform 160ms ease;
}

.text-link:hover span,
.footer-cta:hover span {
  transform: translate(2px, -2px);
}

.about {
  padding-top: 66px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  color: var(--heading);
  letter-spacing: 1px;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  padding-block: 38px 54px;
}

.column-number {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 1.8px;
}

.about-column h3 {
  margin: 13px 0 20px;
  color: var(--heading);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 1px;
}

.about-column p {
  max-width: 470px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2.05;
}

.text-link {
  margin-top: 13px;
  padding-bottom: 3px;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}

.text-link:hover {
  color: var(--gold-bright);
}

.data-universe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
}

.data-universe ul {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
  margin: 0;
  padding: 0;
  color: var(--heading);
  list-style: none;
}

.site-footer {
  margin-top: 30px;
  padding-block: 54px 26px;
  background: var(--footer-bg);
  color: var(--ink);
  transition: background-color 220ms ease, color 220ms ease;
}

.footer-top {
  padding-bottom: 48px;
}

.footer-eyebrow {
  color: var(--footer-muted);
  font-size: 11px;
  letter-spacing: 1.8px;
}

.footer-statement {
  margin: 15px 0 21px;
  color: var(--heading);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1.5;
}

.footer-cta {
  padding-bottom: 5px;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}

.footer-signature {
  display: flex;
  justify-content: flex-end;
  padding-top: 28px;
}

.footer-brand .brand-mark {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 23px;
  border-top: 1px solid var(--footer-line);
  color: var(--footer-muted);
  font-size: 11px;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a:hover {
  color: var(--heading);
}

@media (min-width: 1600px) {
  .hero-inner {
    padding-block: 108px;
  }
}

@media (max-width: 900px) {
  .page-width {
    width: calc(100% - 64px);
  }

  .desktop-nav {
    gap: 28px;
  }

  .about-columns {
    gap: 52px;
  }

  .data-universe ul {
    gap: 22px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
  }

  .page-width {
    width: calc(100% - 44px);
  }

  .header-inner {
    height: 76px;
  }

  .brand {
    gap: 6px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

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

  .desktop-nav {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .mobile-nav {
    display: block;
  }

  .mobile-nav summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 42px;
    cursor: pointer;
    list-style: none;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .menu-lines,
  .menu-lines::after {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--ink);
  }

  .menu-lines {
    position: relative;
    transform: translateY(-4px);
  }

  .menu-lines::after {
    position: absolute;
    top: 8px;
    content: "";
  }

  .mobile-nav[open] .menu-lines {
    transform: rotate(45deg);
  }

  .mobile-nav[open] .menu-lines::after {
    top: 0;
    transform: rotate(-90deg);
  }

  .mobile-nav nav {
    position: absolute;
    top: 75px;
    right: -22px;
    left: -22px;
    display: flex;
    flex-direction: column;
    padding: 12px 22px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--page);
    color: var(--ink);
    box-shadow: 0 16px 24px var(--menu-shadow);
  }

  .mobile-nav nav a {
    display: flex;
    justify-content: space-between;
    padding: 12px 8px;
  }

  .hero-inner {
    padding-block: 64px;
  }

  .hero h1 {
    font-size: clamp(28px, 7.6vw, 46px);
    letter-spacing: 1px;
    line-height: 1.6;
  }

  .hero-description {
    max-width: 360px;
    margin: 24px auto 0;
    font-size: 12px;
    letter-spacing: 0.3px;
    line-height: 2.1;
  }

  .desktop-break {
    display: none;
  }

  .about {
    padding-top: 36px;
  }

  .section-heading {
    padding-bottom: 19px;
  }

  .section-heading h2 {
    font-size: 11px;
  }

  .section-heading > p {
    display: none;
  }

  .about-columns {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 26px 34px;
  }

  .about-column + .about-column {
    padding-top: 30px;
    border-top: 1px solid var(--line);
  }

  .about-column h3 {
    margin-block: 10px 15px;
    font-size: 25px;
  }

  .about-column p {
    max-width: none;
    font-size: 13px;
  }

  .data-universe {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    padding-block: 23px;
  }

  .data-universe ul {
    column-gap: 24px;
    row-gap: 8px;
  }

  .site-footer {
    margin-top: 12px;
    padding-block: 37px 24px;
  }

  .footer-top {
    padding-bottom: 29px;
  }

  .footer-statement {
    font-size: 29px;
  }

  .footer-bottom nav {
    gap: 20px;
  }

  .footer-bottom {
    font-size: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
