:root {
  color-scheme: light;
  --paper: #f6f2ea;
  --ink: #171514;
  --muted: #6b635c;
  --line: #d8d0c7;
  --clay: #9e6d57;
  --moss: #596554;
  --deep: #202326;
  --white: #fffaf3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 22px clamp(20px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand,
.site-nav a {
  color: var(--white);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.34);
}

.brand {
  display: block;
  flex-shrink: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.2;
  white-space: nowrap;
}

h1 [lang="zh"] {
  font-family: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.site-nav a {
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: currentColor;
}

.hero {
  isolation: isolate;
  min-height: 88svh;
  overflow: hidden;
  position: relative;
}

.hero-image,
.hero-shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  z-index: -3;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(19, 17, 15, 0.64), rgba(19, 17, 15, 0.24) 42%, rgba(19, 17, 15, 0.08)),
    linear-gradient(0deg, rgba(19, 17, 15, 0.38), rgba(19, 17, 15, 0.04) 38%);
  z-index: -2;
}

.hero-content {
  color: var(--white);
  display: grid;
  min-height: 88svh;
  padding: clamp(112px, 14vw, 172px) clamp(20px, 7vw, 96px) clamp(44px, 8vw, 84px);
  place-content: end start;
  width: min(100%, 920px);
}

.eyebrow,
.section-kicker {
  font-size: 0.76rem;
  font-weight: 650;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.eyebrow {
  color: rgba(255, 250, 243, 0.82);
}

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

h1 {
  display: grid;
  gap: 0.16em;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 6rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 24px;
  min-width: 0;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h1 [lang="zh"] {
  font-size: 0.875em;
  line-height: 1.12;
}

h1 [lang="en"] {
  font-size: 0.875em;
  line-height: 1.12;
}

.intro {
  color: rgba(255, 250, 243, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  max-width: 34rem;
}

.archive-preview,
.contact {
  padding: clamp(48px, 8vw, 104px) clamp(20px, 6vw, 80px);
}

.section-kicker {
  color: var(--clay);
}

.archive-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  outline: 1px solid var(--line);
}

.archive-grid article {
  background: rgba(255, 250, 243, 0.44);
  min-height: 220px;
  padding: clamp(22px, 3vw, 36px);
}

.archive-grid h2,
.contact h2 {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 18px;
}

.archive-grid p,
.contact p {
  color: var(--muted);
  margin-bottom: 0;
  max-width: 22rem;
}

.contact {
  align-items: end;
  background: var(--deep);
  color: var(--white);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.contact .section-kicker {
  color: #c99b82;
}

.contact p {
  color: rgba(255, 250, 243, 0.72);
}

.site-footer {
  align-items: center;
  background: var(--deep);
  border-top: 1px solid rgba(255, 250, 243, 0.18);
  color: rgba(255, 250, 243, 0.72);
  display: flex;
  font-size: 0.86rem;
  gap: 16px;
  justify-content: space-between;
  padding: 22px clamp(20px, 6vw, 80px);
}

@media (max-width: 820px) {
  h1 {
    font-size: 4.75rem;
  }

  .site-header {
    align-items: flex-start;
    padding-top: 18px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .archive-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .archive-grid article {
    min-height: 180px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    position: absolute;
  }

  .hero,
  .hero-content {
    min-height: 86svh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(19, 17, 15, 0.72), rgba(19, 17, 15, 0.38)),
      linear-gradient(0deg, rgba(19, 17, 15, 0.36), rgba(19, 17, 15, 0.08));
  }

  h1 {
    font-size: 3.5rem;
  }

  .brand {
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 3rem;
  }
}
