:root {
  color-scheme: light;
  --cream: #faf8f4;
  --paper: #ffffff;
  --paper-soft: #f5f1ed;
  --ink: #242124;
  --muted: #6f6b70;
  --line: rgba(42, 36, 40, 0.12);
  --accent: #8a7898;
  --accent-dark: #51435d;
  --rose: #d7aaa7;
  --sage: #9eafa2;
  --sky: #9cafbd;
  --honey: #c7b786;
  --wash: #f3f0f4;
  --blush: #f7eeef;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Nunito", "Noto Sans SC", ui-sans-serif, system-ui, sans-serif;
  --font-title-cn: "Noto Serif SC", "Songti SC", "STSong", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.logo {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  color: #5c585e;
  font-size: 0.88rem;
  font-weight: 620;
}

.nav-links a:hover {
  color: var(--accent-dark);
}

.nav-cta {
  padding: 8px 16px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff !important;
  box-shadow: none;
  white-space: nowrap;
}

main {
  overflow: hidden;
}

.hero,
.profile-section,
.section,
.newsletter,
.site-footer {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: clamp(44px, 6vw, 84px);
  align-items: center;
  padding: clamp(76px, 8vw, 108px) 0 64px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 0 0 18px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

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

h1,
h2,
.article-card h3,
.topic-card strong {
  letter-spacing: 0;
}

h1 {
  font-family: var(--font-title-cn);
  max-width: 660px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(2.28rem, 4vw, 3.65rem);
  line-height: 1.2;
  font-weight: 700;
}

.hero-desc {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 680;
}

.btn.primary {
  padding: 0 20px;
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.btn.primary:hover {
  background: var(--accent-dark);
}

.btn.text {
  color: var(--accent-dark);
}

.btn.text:hover span {
  transform: translateX(3px);
}

.btn.text span {
  transition: transform 160ms ease;
}

.hero-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.topic-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(var(--card-rgb), 0.08), rgba(255, 255, 255, 0) 54%),
    var(--paper);
  color: var(--ink);
  overflow: hidden;
  box-shadow: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.topic-art {
  height: 96px;
  display: grid;
  place-items: center;
  margin: -2px 0 18px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 58%),
    rgba(var(--card-rgb), 0.09);
  color: var(--card-accent);
}

.topic-art svg {
  width: min(76%, 210px);
  height: 82px;
}

.topic-art rect,
.topic-art circle,
.topic-art path {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.58;
}

.topic-art rect,
.topic-art circle:first-child,
.topic-art path:first-child {
  fill: rgba(var(--card-rgb), 0.11);
}

.topic-card:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 33, 36, 0.22);
  box-shadow: 0 14px 30px rgba(36, 33, 36, 0.06);
}

.topic-card:focus-visible {
  outline: 3px solid rgba(155, 134, 168, 0.38);
  outline-offset: 4px;
}

.topic-card span {
  display: block;
  width: fit-content;
  margin-bottom: 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--card-accent);
  text-transform: uppercase;
}

.topic-card strong {
  font-family: var(--font-title-cn);
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
  line-height: 1.28;
  font-weight: 650;
}

.topic-card em {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-style: normal;
  line-height: 1.62;
}

.topic-card.english {
  --card-accent: var(--accent);
  --card-rgb: 155, 134, 168;
  border-color: rgba(138, 120, 152, 0.2);
  box-shadow: none;
}

.topic-card.english strong {
  font-size: 1.2rem;
}

.topic-card.japanese {
  --card-accent: var(--rose);
  --card-rgb: 207, 168, 162;
}

.topic-card.korean {
  --card-accent: var(--sage);
  --card-rgb: 143, 163, 147;
}

.topic-card.ai {
  --card-accent: var(--honey);
  --card-rgb: 185, 167, 122;
}

.profile-section {
  padding: 18px 0 52px;
}

.profile-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(30px, 5vw, 64px);
  padding: clamp(34px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: none;
}

.profile-intro h2 {
  font-family: var(--font-title-cn);
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.18;
  font-weight: 650;
}

.profile-intro p:not(.pill) {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.profile-notes {
  display: grid;
  gap: 12px;
}

.note-pill {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.note-pill strong {
  color: var(--accent-dark);
  font-size: 0.95rem;
  line-height: 1.4;
}

.note-pill span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 68px 0;
  border-top: 1px solid var(--line);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-header h2,
.newsletter h2 {
  font-family: var(--font-title-cn);
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.12;
  font-weight: 700;
}

.section-header a {
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 680;
  white-space: nowrap;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.article-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 33, 36, 0.22);
  box-shadow: 0 18px 36px rgba(36, 33, 36, 0.06);
}

.article-thumb {
  height: 184px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--thumb-ink);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0) 58%),
    var(--thumb-bg);
}

.article-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cover-svg {
  width: min(76%, 260px);
  height: auto;
}

.cover-svg .line-art {
  fill: none;
  stroke: var(--thumb-ink);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.78;
}

.cover-svg .paper-shape {
  fill: rgba(255, 253, 248, 0.76);
  stroke: var(--thumb-ink);
  stroke-width: 3;
  opacity: 0.72;
}

.cover-svg .accent-fill {
  fill: var(--thumb-ink);
  opacity: 0.22;
}

.cover-svg .soft-dot {
  fill: var(--thumb-ink);
  opacity: 0.18;
}

.thumb-sage {
  --thumb-bg: #eef3ef;
  --thumb-ink: #7e9685;
}

.thumb-sand {
  --thumb-bg: #f3eedc;
  --thumb-ink: #9f8954;
}

.thumb-coral {
  --thumb-bg: #f7e7e7;
  --thumb-ink: #b08682;
}

.thumb-blue {
  --thumb-bg: #eaeef3;
  --thumb-ink: #8299aa;
}

.thumb-mint {
  --thumb-bg: #e9f1eb;
  --thumb-ink: #789486;
}

.thumb-lilac {
  --thumb-bg: #f0eaf3;
  --thumb-ink: #9889a7;
}

.article-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.article-tag {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.article-card h3 {
  font-family: var(--font-title-cn);
  margin-bottom: 9px;
  font-size: 1.12rem;
  line-height: 1.38;
  font-weight: 650;
}

.article-card p:not(.article-tag) {
  color: var(--muted);
  font-size: 0.92rem;
}

.article-card em {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #9a9288;
  font-size: 0.78rem;
  font-style: normal;
}

.path-list {
  border-top: 1px solid var(--line);
}

.path-list a {
  display: grid;
  grid-template-columns: 72px minmax(180px, 0.7fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.path-list span {
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
}

.path-list strong {
  font-family: var(--font-title-cn);
  font-size: 1.16rem;
  line-height: 1.3;
  font-weight: 650;
}

.path-list em {
  color: var(--muted);
  font-size: 0.94rem;
  font-style: normal;
}

.path-list a:hover strong {
  color: var(--accent-dark);
}

.newsletter {
  max-width: 760px;
  margin-top: 26px;
  margin-bottom: 72px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  text-align: center;
  box-shadow: none;
}

.newsletter .pill {
  margin-inline: auto;
}

.newsletter h2 {
  margin-bottom: 12px;
}

.newsletter p:not(.pill) {
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a:hover {
  color: var(--accent-dark);
}

@media (max-width: 860px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

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

  .profile-card,
  .path-list a {
    grid-template-columns: 1fr;
  }

  .path-list a {
    gap: 6px;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: auto;
    min-height: 62px;
    padding-block: 12px;
  }

  .nav-cta {
    padding: 7px 12px;
  }

  .hero,
  .profile-section,
  .section,
  .newsletter,
  .site-footer {
    width: min(100% - 32px, 1100px);
  }

  .hero-visual {
    grid-template-columns: 1fr;
  }

  .topic-card {
    min-height: 246px;
  }

  .topic-card.english {
    min-height: 246px;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.2rem);
  }

  .profile-card {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .profile-intro h2 {
    font-size: clamp(1.55rem, 7vw, 2.2rem);
  }

  .note-pill {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hero-actions,
  .section-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .btn.primary {
    width: 100%;
  }

  .newsletter {
    padding: 32px 22px;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}
