:root {
  color-scheme: light;
  --bg: #f6f3ed;
  --surface: #fffaf0;
  --text: #171717;
  --muted: #5f625f;
  --line: #d9d1c4;
  --accent: #d59a00;
  --accent-strong: #805a00;
  --link: #155e75;
  --shadow: 0 20px 70px rgb(31 28 24 / 14%);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #111416;
  --surface: #181c1f;
  --text: #f4f1eb;
  --muted: #a9aca8;
  --line: #343a3f;
  --accent: #f0b429;
  --accent-strong: #ffd56a;
  --link: #8fd7ee;
  --shadow: 0 22px 76px rgb(0 0 0 / 42%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #111416;
    --surface: #181c1f;
    --text: #f4f1eb;
    --muted: #a9aca8;
    --line: #343a3f;
    --accent: #f0b429;
    --accent-strong: #ffd56a;
    --link: #8fd7ee;
    --shadow: 0 22px 76px rgb(0 0 0 / 42%);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'Noto Sans KR', sans-serif;
  letter-spacing: 0;
}

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

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.card {
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.portrait {
  width: 100%;
  aspect-ratio: 880 / 1168;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

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

.portrait-dark,
:root[data-theme='dark'] .portrait-light {
  display: none;
}

:root[data-theme='dark'] .portrait-dark {
  display: block;
}

.copy {
  min-width: 0;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.topline p {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-toggle {
  min-width: 68px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--accent);
  outline: none;
}

h1 {
  margin: 0;
  font-size: 2.45rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 600;
}

.role {
  margin: 22px 0 0;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 700;
}

.bio {
  max-width: 33rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  word-break: keep-all;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--link);
  font-size: 0.94rem;
  font-weight: 700;
}

.links a:hover,
.links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent-strong);
  outline: none;
}

@media (max-width: 760px) {
  .page {
    align-items: start;
    padding: 18px;
  }

  .card {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 20px;
  }

  .portrait {
    max-width: 310px;
    margin: 0 auto;
  }

  .topline {
    margin-bottom: 20px;
  }

  h1 {
    font-size: 2rem;
  }

  .links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .links a {
    justify-content: center;
  }
}
