:root {
  color-scheme: light;
  --paper: #f3f0e8;
  --ink: #26302a;
  --muted: #5d685f;
  --line: #c9cec7;
  --accent: #667b6b;
  --selection: #cbd7cc;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scrollbar-color: var(--accent) var(--paper);
}

body {
  min-width: 18rem;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}

::selection {
  color: #18201b;
  background: var(--selection);
}

a {
  color: inherit;
  text-decoration-color: var(--line);
  text-underline-offset: 0.28em;
  transition: color 160ms ease-out, text-decoration-color 160ms ease-out;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 2px;
}

main {
  width: min(100% - 3rem, 64rem);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2.2rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.site-name {
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-note {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

article {
  align-self: center;
  max-width: 48rem;
  padding: clamp(4.5rem, 11vh, 8rem) 0;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 11em;
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  font-size: clamp(2.45rem, 6.5vw, 4.9rem);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lead {
  max-width: 37rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.4rem;
  margin-top: 2.4rem;
}

.services a {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.2rem 0;
  text-decoration-thickness: 1px;
}

.services span {
  font-weight: 600;
}

.services small {
  color: var(--muted);
  font-size: 0.78rem;
}

.wind {
  width: min(100%, 32.5rem);
  margin: 3.5rem 0 3.7rem;
  color: var(--accent);
}

.wind svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.wind path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  opacity: 0.72;
  stroke-dasharray: 580;
  stroke-dashoffset: 580;
  animation: draw-wind 1100ms cubic-bezier(.16, 1, .3, 1) 160ms forwards;
}

.wind path + path {
  animation-delay: 280ms;
}

section {
  max-width: 39rem;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

section p {
  color: var(--muted);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

@keyframes draw-wind {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 40rem) {
  main {
    width: min(100% - 2rem, 64rem);
  }

  .site-header {
    padding-top: 1.5rem;
  }

  article {
    padding: 4.5rem 0 5rem;
  }

  .lead {
    margin-top: 1.5rem;
  }

  .services {
    display: grid;
    gap: 0.6rem;
    margin-top: 2rem;
  }

  .wind {
    margin: 2.8rem 0 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .wind path {
    stroke-dashoffset: 0;
  }
}
