:root {
  --navy: #163a5f;
  --blue: #2b6ea8;
  --sky: #4f8ec0;
  --ice: #e7f0f8;
  --mist: #f4f8fc;
  --paper: #ffffff;
  --ink: #1c3349;
  --muted: #5b7388;
  --line: rgba(43, 110, 168, 0.16);
  --shadow: 0 18px 40px rgba(22, 58, 95, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(79, 142, 192, 0.18), transparent 32%),
    linear-gradient(180deg, #f7fbfe 0%, var(--mist) 100%);
  min-height: 100vh;
  line-height: 1.65;
}

.bg-glow {
  position: fixed;
  inset: auto auto 8% -8%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(43, 110, 168, 0.12);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: rgba(244, 248, 252, 0.86);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--blue), var(--navy));
  color: white;
  font-family: Outfit, sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.nav a:hover {
  color: var(--navy);
}

.header-actions {
  display: flex;
  gap: 8px;
}

.edit-btn,
.ghost-btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.edit-btn {
  background: var(--navy);
  color: white;
}

.edit-btn[aria-pressed="true"] {
  background: #1f7a4d;
}

.ghost-btn {
  background: var(--ice);
  color: var(--navy);
}

.edit-banner {
  background: #e8f6ee;
  color: #1f5c3a;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  border-bottom: 1px solid #cdeadb;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

section {
  scroll-margin-top: 92px;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 36px;
}

.hero-copy,
.portrait-card,
.panel,
.course-card,
.email-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 48px 44px;
}

.eyebrow {
  display: inline-block;
  color: var(--blue);
  background: var(--ice);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

h1 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.name-ko,
.name-en {
  display: block;
}

.name-ko {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.name-en {
  font-family: Outfit, sans-serif;
  font-size: 20px;
  color: var(--sky);
  font-weight: 600;
}

.tagline {
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 28px;
}

.meta {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.meta dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.meta dd {
  font-size: 16px;
  font-weight: 500;
}

.portrait-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 24px;
  background:
    radial-gradient(circle at 50% 18%, rgba(79, 142, 192, 0.22), transparent 42%),
    var(--paper);
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(160deg, #6aa8d4, var(--navy));
  color: white;
  font-size: 42px;
  font-weight: 700;
  box-shadow: 0 0 0 10px rgba(79, 142, 192, 0.14);
}

.portrait-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}

.portrait-en {
  font-family: Outfit, sans-serif;
  color: var(--sky);
  margin-bottom: 10px;
}

.portrait-role {
  color: var(--muted);
}

.panel {
  padding: 36px;
  margin-bottom: 24px;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 8px;
}

.section-head p,
.interest-grid p,
.course-card p {
  color: var(--muted);
}

.interest-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.interest-grid li {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  min-height: 170px;
}

.interest-icon {
  display: inline-block;
  font-family: Outfit, sans-serif;
  font-size: 13px;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 14px;
}

.interest-grid h3 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 8px;
}

.course-panel {
  background:
    linear-gradient(135deg, rgba(22, 58, 95, 0.94), rgba(43, 110, 168, 0.92)),
    var(--navy);
  color: white;
}

.course-panel .section-head h2,
.course-panel .section-head p {
  color: white;
}

.course-panel .section-head p {
  opacity: 0.86;
}

.course-card {
  padding: 24px;
  max-width: 420px;
}

.course-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}

.course-card h3 {
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 6px;
}

.email-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  max-width: 520px;
}

.email-card:hover {
  border-color: var(--blue);
}

.email-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.email-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--blue);
}

.site-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 48px;
  color: var(--muted);
  font-size: 14px;
}

body.editing .editable {
  outline: 1px dashed rgba(43, 110, 168, 0.45);
  outline-offset: 4px;
  border-radius: 6px;
  cursor: text;
}

.editable[contenteditable="true"]:focus {
  outline: 2px solid var(--blue);
  background: rgba(231, 240, 248, 0.7);
}

@media (max-width: 860px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 16px;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    flex-wrap: wrap;
  }

  .hero,
  .interest-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .panel {
    padding: 28px 22px;
  }

  .edit-btn,
  .ghost-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
}
