/* 字体随网站保存在本地，离线打开时也能保持一致的排版。 */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("./fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

/* 浅色主题。修改这些颜色即可调整配色。 */
:root {
  --background: #eff4f0;
  --ink: #2e493e;
  --soft-ink: #4c6a5a;
  --accent: #7b9887;
  --line: rgba(91, 127, 106, 0.24);
  --glow: rgba(201, 224, 210, 0.55);
  --selection: #d0e3d6;
}

/* 自动跟随系统深浅色模式，不显示切换开关。 */
@media (prefers-color-scheme: dark) {
  :root {
    --background: #11241f;
    --ink: #e5eee6;
    --soft-ink: #bfd7c8;
    --accent: #a4c7b2;
    --line: rgba(164, 199, 178, 0.2);
    --glow: rgba(60, 111, 82, 0.2);
    --selection: #365b49;
  }
}

* { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--selection); color: var(--ink); }

.page {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 56px clamp(28px, 7vw, 112px);
  background:
    radial-gradient(ellipse at 50% 40%, var(--glow), transparent 65%),
    var(--background);
}

/* 柔和弧线围绕内容，形成安静、包容的视觉空间。 */
.page::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(78vw, 1050px);
  height: min(74vh, 610px);
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0.35;
  pointer-events: none;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 430px;
  padding: 48px 0;
  text-align: center;
}

.emblem {
  display: block;
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  margin-bottom: 37px;
}

h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(58px, 7.2vw, 108px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.title-line { display: block; }
.council { color: var(--soft-ink); }

.resting-line {
  width: 54px;
  height: 1px;
  margin-top: 38px;
  background: var(--accent);
  opacity: 0.65;
}

@media (min-width: 1600px) {
  .emblem { width: 108px; height: 108px; margin-bottom: 44px; }
  .resting-line { margin-top: 44px; }
}

@media (max-width: 900px) {
  .page { padding: 44px 38px; }
  .page::before { width: 88vw; height: min(72vh, 560px); }
  h1 { font-size: clamp(48px, 7.7vw, 69px); }
}

@media (max-width: 600px) {
  .page { padding: 32px 27px; }
  .page::before { width: 90vw; height: min(70vh, 520px); }
  .hero { min-height: 380px; padding: 40px 0; }
  .emblem { width: 82px; height: 82px; margin-bottom: 31px; }
  h1 { font-size: clamp(34px, 9.8vw, 54px); line-height: 1.12; letter-spacing: -0.025em; }
  .resting-line { width: 42px; margin-top: 30px; }
}
