:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: rgba(255, 255, 255, 0.84);
  --text: #2d2a25;
  --muted: #6f685e;
  --line: #ded8ce;
  --accent: #786a56;
  --shadow: 0 12px 30px rgba(70, 61, 48, 0.075);
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.52;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(232, 223, 210, 0.9), rgba(247, 244, 238, 0) 22rem),
    linear-gradient(180deg, var(--bg), #fbfaf7 58%, #f4f0e8);
}

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

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

.site-header,
.site-footer,
.page-shell {
  width: min(var(--max-width), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0 8px;
  border-bottom: 1px solid rgba(222, 216, 206, 0.76);
}

.brand {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.page-shell {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  grid-template-areas:
    "hero about"
    "hero cards"
    "hero excerpt"
    "hero note";
  gap: 10px 14px;
  align-content: center;
  padding: clamp(12px, 2.2vh, 24px) 0;
}

.hero,
.notice-panel,
.mini-card,
.excerpt-strip,
.site-note {
  border: 1px solid rgba(222, 216, 206, 0.86);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  grid-area: hero;
  min-height: 100%;
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quiet-line {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 5.6vw, 58px);
  line-height: 1.06;
  font-weight: 650;
}

.subtitle {
  margin-bottom: 12px;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.4;
  color: #4d463d;
}

.hero-copy,
.notice-panel p,
.mini-card p,
.excerpt-list p,
.site-note p {
  margin-bottom: 0;
  color: var(--muted);
}

.notice-panel {
  grid-area: about;
  padding: 16px 18px;
  background: var(--surface-strong);
}

.notice-panel h2,
.excerpt-strip h2,
.site-note h2 {
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 620;
}

.notice-panel p + p {
  margin-top: 6px;
}

.content-grid {
  grid-area: cards;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini-card {
  min-height: 88px;
  padding: 14px;
}

.mini-card h3 {
  margin-bottom: 5px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 620;
}

.excerpt-strip {
  grid-area: excerpt;
  padding: 16px 18px;
}

.excerpt-list {
  display: grid;
  gap: 4px;
}

.excerpt-list strong {
  color: #4d463d;
  font-weight: 620;
}

.site-note {
  grid-area: note;
  padding: 15px 18px;
}

.site-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  min-height: 44px;
  padding: 9px 0 12px;
  border-top: 1px solid rgba(222, 216, 206, 0.86);
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  border-bottom: 1px solid rgba(120, 106, 86, 0.38);
}

.site-footer a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

@media (max-height: 760px) and (min-width: 901px) {
  body {
    font-size: 13px;
    line-height: 1.43;
  }

  .page-shell {
    padding: 10px 0;
    gap: 8px 12px;
  }

  .hero {
    padding: 26px 34px;
  }

  h1 {
    font-size: clamp(32px, 5vw, 52px);
  }

  .subtitle {
    font-size: 18px;
  }

  .notice-panel,
  .excerpt-strip,
  .site-note {
    padding: 12px 14px;
  }

  .mini-card {
    min-height: 74px;
    padding: 11px;
  }

  .mini-card h3 {
    font-size: 15px;
  }
}

@media (max-width: 900px) {
  .page-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "about"
      "cards"
      "excerpt"
      "note";
    align-content: start;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header,
  .site-footer,
  .page-shell {
    width: min(100% - 28px, var(--max-width));
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .nav {
    justify-content: flex-start;
    gap: 4px 12px;
  }

  .page-shell {
    padding: 14px 0 16px;
    gap: 9px;
  }

  .hero,
  .notice-panel,
  .mini-card,
  .excerpt-strip,
  .site-note {
    padding: 16px;
  }

  h1 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .subtitle {
    font-size: 16px;
  }
}
