:root {
  color-scheme: light dark;
  --background: #f5f5f4;
  --surface: #ffffff;
  --text: #171717;
  --muted: #666666;
  --accent: #343434;
  --accent-soft: #eeeeec;
  --border: #dededb;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  border-radius: 3px;
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 3px;
}

.page-shell {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 36px;
}

.profile {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-photo {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 5;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(145deg, transparent 35%, rgba(0, 0, 0, 0.035)),
    var(--background);
  color: var(--muted);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.headline {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 1.12rem;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  font-style: normal;
}

.contact-item {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    color 150ms ease,
    background-color 150ms ease;
}

a.contact-item:hover {
  border-color: var(--muted);
  background: var(--accent-soft);
  color: var(--text);
  text-decoration: none;
}

.contact-item svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.contact-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-item--static {
  cursor: default;
}

.section-list {
  margin-top: 72px;
}

.content-section {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 42px;
  padding: 44px 0;
  border-top: 1px solid var(--border);
}

.content-section h2 {
  margin-bottom: 0;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entries {
  display: grid;
  gap: 32px;
}

.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
}

.entry h3 {
  margin-bottom: 2px;
  font-size: 1.05rem;
  line-height: 1.45;
}

.entry p {
  margin-bottom: 0;
  color: var(--muted);
}

.entry-note {
  margin-top: 4px;
  font-size: 0.93rem;
}

.entry-date {
  white-space: nowrap;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-list li {
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

footer {
  padding-top: 30px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 28px, 560px);
    padding-top: 24px;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 26px;
  }

  .profile-photo {
    width: min(145px, 48vw);
  }

  .section-list {
    margin-top: 44px;
  }

  .content-section {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 36px 0;
  }

  .entry {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .entry-date {
    grid-row: 1;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #101010;
    --surface: #171717;
    --text: #f1f1f1;
    --muted: #a3a3a3;
    --accent: #dedede;
    --accent-soft: #222222;
    --border: #303030;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  }
}

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