:root {
  --bg: #f3f0ea;
  --surface: #fffcf7;
  --card: #f7f4ee;
  --ink: #2c2a26;
  --muted: #6f6a63;
  --line: #e4dfd6;
  --accent: #3d5c4a;
  --accent-hover: #314b3c;
  --accent-soft: #e7efe9;
  --teal: #2a7a78;
  --teal-soft: #e4f0ef;
  --shadow: 0 12px 32px rgba(44, 42, 38, 0.06);
  --sans: "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
  --page-padding: clamp(1.25rem, 4vw, 2.5rem);
  --max-width: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: radial-gradient(circle at top, #faf7f1 0%, var(--bg) 52%);
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.page {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 1.25rem var(--page-padding) 3rem;
}

/* ── Header ── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  margin-bottom: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  text-decoration: none;
  color: var(--accent);
}

.brand-link:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 10px;
}

.brand-logo {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.brand-title,
.header-tagline {
  margin: 0;
  font-size: clamp(0.82rem, 2vw, 0.95rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.brand-title {
  overflow-wrap: anywhere;
}

.header-tagline {
  flex: 0 0 auto;
  color: var(--teal);
  white-space: nowrap;
}

/* ── Intro card ── */

.intro-card {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}

.intro-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
}

.profile-frame {
  width: min(100%, 180px);
  aspect-ratio: 145 / 205;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-role {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--accent);
  line-height: 1.35;
}

.intro-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: transparent;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.intro-link-btn:hover {
  background: var(--accent-soft);
}

.intro-link-btn:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.intro-right {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.intro-main-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--accent);
  overflow-wrap: anywhere;
}

@media (min-width: 600px) {
  .intro-main-title {
    white-space: nowrap;
  }
}

.intro-tagline {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  font-weight: 650;
  line-height: 1.55;
  color: var(--ink);
}

.intro-bio {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.intro-bio em {
  font-style: italic;
}

.career-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.career-badges li {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

/* ── Topics ── */

.topics-section {
  margin-bottom: 2.5rem;
}

.topics-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

.topics-lead {
  margin: 0 auto 1.5rem;
  max-width: 42rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 700;
  line-height: 1.55;
  color: var(--accent);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.topics-image {
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 12px;
}

/* ── Content cards ── */

.content-cards-section {
  margin-bottom: 2rem;
}

.content-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.content-card-thumb {
  flex: 0 0 auto;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #efeae2;
  border: 1px solid var(--line);
}

.content-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.35rem;
  padding-top: 0.75rem;
  min-width: 0;
}

.content-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.content-card-desc {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.content-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.content-card-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.content-card-btn:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

/* ── Footer ── */

.site-footer {
  padding-top: 1rem;
}

/* ── Utilities ── */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Tablet / mobile ── */

@media (max-width: 860px) {
  .content-cards {
    grid-template-columns: 1fr;
  }

  .content-card {
    max-width: 28rem;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .header-tagline {
    display: none;
  }

  .intro-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .intro-main-title {
    white-space: normal;
    text-align: left;
  }

  .intro-left {
    align-items: center;
  }

  .intro-right {
    text-align: left;
  }
}

@media (max-width: 390px) {
  .page {
    padding-inline: 1rem;
  }

  .intro-link-btn,
  .content-card-btn {
    font-size: 0.85rem;
    white-space: normal;
  }

  .career-badges li {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
