@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;700&family=Noto+Sans+KR:wght@400;500;700&display=swap");

:root {
  color-scheme: light;
  --bg-top: #f5f9ff;
  --bg-mid: #eef5ff;
  --bg-bottom: #edf6f2;
  --ink: #0f1c35;
  --ink-soft: #314262;
  --muted: #5c6f8f;
  --line: rgba(16, 35, 74, 0.12);
  --line-strong: rgba(33, 94, 197, 0.22);
  --card: rgba(255, 255, 255, 0.92);
  --primary: #1765da;
  --primary-dark: #114ba3;
  --pill-bg: rgba(27, 88, 184, 0.08);
  --pill-text: #1f4f97;
  --shadow: 0 24px 60px -32px rgba(10, 33, 76, 0.42);
  --shadow-soft: 0 12px 30px -20px rgba(10, 33, 76, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Noto Sans KR", "Noto Sans JP", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 7%, rgba(33, 136, 255, 0.17), transparent 34%),
    radial-gradient(circle at 86% 6%, rgba(10, 101, 202, 0.15), transparent 30%),
    linear-gradient(165deg, var(--bg-top) 0%, var(--bg-mid) 46%, var(--bg-bottom) 100%);
  -webkit-font-smoothing: antialiased;
  line-height: 1.75;
}

.page {
  width: min(980px, 100% - 2rem);
  margin: 0 auto;
  padding: 38px 0 86px;
}

.header {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #162746;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  width: 31px;
  height: 31px;
  border-radius: 11px;
  border: 1px solid rgba(19, 82, 170, 0.28);
  box-shadow: 0 12px 28px -16px rgba(19, 82, 170, 0.66);
  background:
    radial-gradient(circle at 28% 24%, rgba(95, 186, 255, 0.9), transparent 50%),
    linear-gradient(140deg, rgba(16, 71, 160, 0.98), rgba(14, 132, 157, 0.78));
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}

.brand-mark::before {
  width: 13px;
  height: 2px;
  left: 9px;
  top: 9px;
}

.brand-mark::after {
  width: 2px;
  height: 13px;
  left: 15px;
  top: 4px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.home-link,
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: #143768;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 0 13px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.home-link:hover,
.lang-switch a:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 101, 216, 0.34);
  box-shadow: 0 12px 24px -18px rgba(22, 101, 216, 0.7);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(22, 101, 216, 0.2);
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 12px;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
}

.lang-switch a.active {
  color: #ffffff;
  background: linear-gradient(135deg, #1765da, #0c7aaf);
  border-color: transparent;
  box-shadow: 0 16px 30px -18px rgba(22, 101, 216, 0.8);
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: clamp(1.05rem, 1.2rem + 0.7vw, 1.85rem);
  box-shadow: var(--shadow);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 0%, rgba(22, 101, 218, 0.08), transparent 28%),
    radial-gradient(circle at 4% 100%, rgba(14, 132, 157, 0.07), transparent 32%);
}

.card > * {
  position: relative;
  z-index: 1;
}

h1,
h2 {
  margin: 0;
  color: #112447;
  font-family: "Fraunces", "Times New Roman", serif;
  letter-spacing: -0.018em;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(1.75rem, 1.42rem + 1.2vw, 2.35rem);
  line-height: 1.24;
}

h2 {
  margin-top: clamp(1.25rem, 1rem + 0.8vw, 1.8rem);
  margin-bottom: 8px;
  font-size: clamp(1.06rem, 1rem + 0.24vw, 1.22rem);
}

p,
li {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.8;
}

p + p {
  margin-top: 8px;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

ul li + li {
  margin-top: 5px;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.meta + .meta {
  margin-top: 4px;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--primary-dark);
}

.mail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(22, 101, 216, 0.2);
  background: linear-gradient(135deg, rgba(23, 101, 218, 0.09), rgba(12, 122, 175, 0.12));
  color: #11407e;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0 14px;
}

.mail-link:hover {
  background: linear-gradient(135deg, rgba(23, 101, 218, 0.16), rgba(12, 122, 175, 0.16));
}

.details {
  margin-top: 8px;
  border-radius: 14px;
  border: 1px solid rgba(22, 101, 216, 0.14);
  background: rgba(22, 101, 216, 0.04);
  padding: 12px 14px;
}

@media (max-width: 860px) {
  .page {
    width: min(960px, 100% - 1.2rem);
    padding-top: 16px;
  }

  .header {
    position: static;
  }

  .header-right {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(960px, 100% - 0.8rem);
    padding-bottom: 58px;
  }

  .header {
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 14px;
  }

  .brand {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .badge {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .lang-switch {
    width: 100%;
  }

  .lang-switch a {
    flex: 1 1 auto;
  }

  .home-link {
    flex: 1 1 auto;
  }

  p,
  li {
    font-size: 0.94rem;
  }
}
