:root {
  color-scheme: light;
  --bg: #eef7f8;
  --ink: #3f3c3f;
  --muted: #6f7478;
  --panel: #ffffff;
  --line: #d8ecef;
  --accent: #5aaeb4;
  --accent-strong: #357f87;
  --green: #afd36f;
  --green-strong: #92bd4d;
  --red: #e84a5f;
  --yellow: #f8d856;
  --orange: #f29a38;
  --soft: #f7fbfb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent-strong);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 14px clamp(22px, 5vw, 96px);
  border-bottom: 1px solid #edf0f0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: 92px;
  height: auto;
}

.page-shell {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.magnet-hero {
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: clamp(42px, 8vw, 86px) 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.2)),
    linear-gradient(135deg, #d9f0f2 0%, #f4fbfb 48%, #e7f5f6 100%);
}

.hero-band {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(980px, 100%);
  padding: clamp(42px, 6vw, 70px) clamp(22px, 5vw, 70px);
  border-top: 10px solid var(--green);
  background: var(--accent);
  color: #ffffff;
  text-align: center;
}

.eyebrow,
.updated {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-band .eyebrow {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.2rem, 4.9vw, 4.1rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.lede {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.lede.compact {
  max-width: 680px;
  margin-top: 14px;
  color: var(--ink);
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.content-band,
.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding: 40px 0;
}

.content-band h2,
.document h2,
.intro-grid h2,
.section-heading h2,
.rules-band h2,
.avoid-section h2,
.practice-section h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.content-band p,
.document p,
.intro-grid p {
  margin: 0 0 24px;
  color: var(--muted);
}

.phrase-section,
.rules-band,
.avoid-section,
.practice-section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 24px;
}

.phrase-group {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr) minmax(260px, 0.95fr);
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.phrase-group:first-of-type {
  border-top: 0;
}

.group-copy h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.group-copy p {
  margin: 0;
  color: var(--muted);
}

.tag {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.phrase-list,
.practice-list,
.check-list {
  margin: 0;
  padding-left: 22px;
}

.phrase-list li {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 700;
}

.example {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(53, 127, 135, 0.08);
}

.example p {
  margin: 0;
  color: var(--muted);
}

.example .question {
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 700;
}

.rules-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: start;
}

.rules-band p {
  margin: 0;
  color: var(--muted);
}

.check-list {
  padding: 22px 22px 22px 42px;
  border-radius: 8px;
  background: #eef8db;
  border: 1px solid #d9eeb5;
}

.check-list li,
.practice-list li {
  margin-bottom: 10px;
}

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

.avoid-grid p {
  margin: 0;
  padding: 18px;
  border-left: 4px solid var(--red);
  background: var(--panel);
  color: var(--muted);
}

.practice-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: 32px;
}

.practice-section p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  gap: 18px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.document {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.document h1 {
  margin: 16px 0 10px;
  font-size: clamp(2rem, 6vw, 3.75rem);
}

.back-link {
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: center;
    min-height: 0;
    padding: 12px 18px;
  }

  .brand img {
    width: 78px;
  }

  .page-shell {
    padding: 32px 0;
  }

  .hero {
    padding: 0;
  }

  .magnet-hero {
    min-height: 0;
    padding: 28px 16px;
  }

  .hero-band {
    padding: 38px 20px 46px;
    border-top-width: 8px;
  }

  .content-band,
  .intro-grid,
  .phrase-group,
  .rules-band,
  .avoid-grid,
  .practice-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .phrase-group {
    padding: 24px 0;
  }

  .avoid-grid p,
  .example {
    padding: 16px;
  }
}
