:root {
  color-scheme: light;
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #161616;
  --muted: #6f6f6a;
  --soft: #8f8f88;
  --border: rgba(22, 22, 22, 0.12);
  --border-strong: rgba(22, 22, 22, 0.18);
  --link: #161616;
  --link-hover: #4d4d48;
  --hover: rgba(22, 22, 22, 0.032);
  --shadow: 0 18px 44px rgba(22, 22, 22, 0.06);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0d;
  --surface: #141414;
  --text: #f4f4ef;
  --muted: #b0b0aa;
  --soft: #8b8b84;
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.18);
  --link: #f4f4ef;
  --link-hover: #d6d6cf;
  --hover: rgba(255, 255, 255, 0.045);
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.62;
  letter-spacing: -0.01em;
  transition: background-color 180ms ease, color 180ms ease;
}

body > .site-header,
body > .page-content {
  width: min(100%, 760px);
  margin-inline: auto;
  padding-inline: 24px;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 140ms ease, opacity 140ms ease, background-color 140ms ease;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

.inline-link {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  border-bottom: 1px solid var(--border);
}

.header-right,
.social-links {
  display: flex;
  align-items: center;
}

.header-right {
  gap: 16px;
}

.site-logo,
.theme-toggle {
  font-size: 0.95rem;
}

.site-logo {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  color: var(--text);
}


.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background-color 140ms ease;
}

.theme-divider {
  width: 1px;
  height: 12px;
  background: var(--border);
  transform: rotate(15deg);
}

.icon-svg {
  width: 1em;
  height: 1em;
  display: block;
}

.sun-icon,
.moon-icon {
  position: relative;
  font-size: 0.9rem;
  transition: opacity 140ms ease, color 140ms ease;
}

:root[data-theme="light"] .sun-icon,
:root:not([data-theme="dark"]) .sun-icon {
  color: var(--text);
  opacity: 1;
}

:root[data-theme="light"] .moon-icon,
:root:not([data-theme="dark"]) .moon-icon {
  color: var(--soft);
  opacity: 0.4;
}

:root[data-theme="dark"] .sun-icon {
  color: var(--soft);
  opacity: 0.4;
}

:root[data-theme="dark"] .moon-icon {
  color: var(--text);
  opacity: 1;
}

.page-content {
  padding-top: 54px;
  padding-bottom: 72px;
}

.profile-section {
  margin-bottom: 40px;
}

.profile-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.profile-avatar-link {
  display: block;
}

.profile-avatar {
  display: block;
  width: 150px;
  height: 150px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: 18px;
  object-fit: cover;
  object-position: center 0%;
  background: var(--surface);
}

.profile-copy {
  min-width: 0;
}

.profile-heading {
  margin: 0 0 10px;
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 700;
}

.profile-role,
.profile-bio {
  max-width: 40rem;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.social-links {
  gap: 10px;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--text);
  background: var(--hover);
}

.social-icon {
  font-size: 1rem;
}

.content-table-wrapper {
  padding-top: 14px;
}

.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;
}

.post-list {
  width: 100%;
  border-collapse: collapse;
}

.post-list thead th {
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border);
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.post-list tbody tr {
  transition: background-color 140ms ease;
}

.post-list tbody tr:hover {
  background: var(--hover);
}

.post-list td {
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.col-date,
.post-date {
  width: 112px;
  text-align: left;
}

.col-icon,
.post-icon {
  width: 44px;
  text-align: center;
}

.post-date,
.post-icon {
  color: var(--muted);
  font-size: 0.84rem;
}

.post-title a,
.post-icon a {
  display: inline-flex;
  align-items: center;
}

.post-title a {
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.35;
}

.icon-link {
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  body > .site-header,
  body > .page-content {
    padding-inline: 18px;
  }

  .header-container {
    min-height: 68px;
    gap: 12px;
  }

  .page-content {
    padding-top: 28px;
    padding-bottom: 56px;
  }

  .profile-section {
    margin-bottom: 26px;
  }

  .profile-card {
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: center;
    text-align: center;
    padding: 26px 18px 22px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: color-mix(in srgb, var(--surface) 94%, var(--bg) 6%);
    box-shadow: 0 12px 28px rgba(22, 22, 22, 0.04);
  }

  .profile-avatar {
    width: 122px;
    height: 122px;
    border-radius: 999px;
  }

  .profile-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .profile-heading {
    margin-bottom: 8px;
    font-size: clamp(2rem, 7vw, 2.65rem);
    line-height: 1;
  }

  .profile-role,
  .profile-bio {
    max-width: 26rem;
    margin-bottom: 10px;
    font-size: 0.94rem;
    line-height: 1.46;
  }

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

  .post-list thead {
    display: none;
  }

  .post-list,
  .post-list tbody,
  .post-list tr {
    display: block;
    width: 100%;
  }

  .post-list tr {
    display: grid;
    grid-template-columns: 84px 24px 1fr;
    gap: 8px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .post-list td {
    display: block;
    padding: 0;
    border: 0;
  }

  .post-date,
  .post-title,
  .post-icon {
    margin: 0;
    text-align: left;
  }

  .post-date {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .post-title a {
    display: block;
    font-size: 0.96rem;
    line-height: 1.4;
  }

  .post-icon {
    text-align: center;
    padding-top: 2px;
  }
}

@media (max-width: 560px) {
  .header-container {
    align-items: center;
    min-height: 62px;
  }

  .header-right {
    align-items: center;
    margin-left: auto;
  }

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

  .profile-avatar {
    width: 112px;
    height: 112px;
  }

  .profile-heading {
    font-size: clamp(1.9rem, 8vw, 2.25rem);
  }

  .profile-role,
  .profile-bio {
    max-width: 22rem;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .social-links {
    gap: 8px;
  }

  .social-links a {
    width: 32px;
    height: 32px;
  }

  .theme-toggle {
    height: 32px;
    padding: 0 10px;
  }

  .post-list tr {
    grid-template-columns: 78px 22px 1fr;
    gap: 8px;
  }
}
