:root {
  color-scheme: dark;
  --background: #000000;
  --foreground: #ffffff;
  --rule: #2c2c2c;
  --title-shadow: 0 1px 16px rgba(0, 0, 0, 0.9);
  --header-height: 50px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #000000;
  --rule: #e7e7e7;
  --title-shadow: 0 1px 15px rgba(255, 255, 255, 0.85);
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  height: var(--header-height);
  padding: 0 clamp(18px, 2.5vw, 42px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  background: var(--background);
}

.brand-mark {
  flex: 0 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.11em;
  line-height: 1;
  text-decoration: none;
  transform: translateY(-1px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.3vw, 35px);
}

.site-nav a,
.theme-toggle {
  padding: 7px 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.site-nav a {
  font-family: "KaiTi", "Kaiti SC", "STKaiti", serif;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: currentColor; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 24px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.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; }

.theme-toggle:hover { opacity: 0.55; }

.site-header a:focus-visible,
.theme-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.home-main { height: calc(100vh - var(--header-height)); height: calc(100svh - var(--header-height)); }

.hero {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0;
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(3rem, 8.2vw, 8.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.065em;
  text-align: center;
  text-shadow: var(--title-shadow);
  transform: translate(-50%, -50%) skewX(-5deg);
}

.inner-main {
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  padding: clamp(90px, 17vh, 180px) clamp(24px, 8vw, 130px) 72px;
}

.inner-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.about-text {
  max-width: 28em;
  margin: 55px 0 0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.8;
}

@media (max-width: 700px) {
  .site-header { padding: 0 18px; }
  .site-nav { gap: 16px; }
  .site-nav a, .theme-toggle { font-size: 12px; }
  .hero-image { object-position: 32% center; }
  .hero-title { font-size: clamp(3rem, 10vw, 4.5rem); }
  .about-text { margin-top: 38px; }
}
