:root {
  color-scheme: light;
  --bg: #fbf4ea;
  --surface: #fffaf2;
  --surface-strong: #f5e6d3;
  --text: #322821;
  --muted: #76695f;
  --accent: #8c4f39;
  --accent-strong: #623526;
  --line: rgba(82, 57, 41, 0.18);
  --shadow: 0 24px 70px rgba(102, 73, 48, 0.12);
  --radius: 8px;
  --page-pad: clamp(20px, 5vw, 64px);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #191716;
  --surface: #231f1c;
  --surface-strong: #302922;
  --text: #f4eadf;
  --muted: #c6b8aa;
  --accent: #e4aa87;
  --accent-strong: #ffd0b3;
  --line: rgba(244, 234, 223, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.58), transparent 32rem),
    linear-gradient(135deg, var(--bg), var(--surface));
  color: var(--text);
  font-family:
    "Segoe UI",
    "Microsoft YaHei",
    "PingFang SC",
    "Hiragino Sans GB",
    Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.75;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 26px var(--page-pad) 0;
}

.signature {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--accent-strong);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(68, 45, 28, 0.07);
}

.theme-toggle:hover {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
}

.theme-toggle:focus-visible,
.signature:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 4px;
}

.theme-toggle__icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--accent-strong);
  font-size: 0.95rem;
}

main {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 0 var(--page-pad) 48px;
}

.hero {
  display: grid;
  align-content: end;
  min-height: clamp(420px, 62vh, 640px);
  padding: clamp(62px, 12vw, 132px) 0 clamp(46px, 8vw, 82px);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  color: var(--text);
  font-size: clamp(3rem, 11vw, 6.7rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  line-height: 1.85;
}

.section {
  padding: clamp(42px, 7vw, 72px) 0;
  border-bottom: 1px solid var(--line);
}

.section h2 {
  margin-bottom: 22px;
  color: var(--accent-strong);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.25;
}

.section p {
  max-width: 720px;
  color: var(--muted);
}

.intro p + p {
  margin-top: 18px;
}

.soft-list {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.soft-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.soft-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.principles article,
.time-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: var(--shadow);
}

.principles article {
  min-height: 168px;
  padding: 24px;
}

.principles h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.35;
}

.principles p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.local-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(22px, 5vw, 54px);
  align-items: center;
}

.local-panel p {
  margin-bottom: 0;
}

.time-card {
  padding: 24px;
}

.time-card__label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

#local-time {
  display: block;
  color: var(--accent-strong);
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.1;
}

.site-footer {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 0 var(--page-pad) 34px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding-top: 18px;
  }

  .theme-toggle__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .theme-toggle {
    width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0;
  }

  .hero {
    min-height: 390px;
  }

  .principles,
  .local-panel {
    grid-template-columns: 1fr;
  }

  .principles article {
    min-height: auto;
  }
}
