* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0a;
  --fg: #e9e5de;
  --muted: #a6a19a;
  --soft: #7f7a74;
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.02);
  --link: #e9e5de;
  --link-hover: #ffffff;
}

body.light {
  --bg: #faf9f6;
  --fg: #171717;
  --muted: #4f4a43;
  --soft: #75706a;
  --line: rgba(0, 0, 0, 0.1);
  --card: rgba(0, 0, 0, 0.015);
  --link: #171717;
  --link-hover: #000000;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  transition: background 0.2s ease, color 0.2s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.03), transparent 35%);
  opacity: 0.35;
}

.container {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 56px;
}

.theme-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  text-transform: lowercase;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.hero {
  margin-bottom: 44px;
}

.eyebrow {
  color: var(--soft);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: inline-block;
  text-decoration: none;
}

.eyebrow:hover {
  color: var(--fg);
}

h1 {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(2.5rem, 8vw, 4.8rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.intro{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:12px;

    max-width:44rem;
    color:var(--muted);
    font-size:16px;
    margin-bottom:20px;
}

.intro span{
    display:flex;
    align-items:center;
}

.intro span:not(:last-child)::after{
    content:"·";
    margin-left:12px;
    color:var(--soft);
}

.meta,
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.meta {
  color: var(--soft);
  font-size: 12px;
  margin-bottom: 16px;
}

.meta span:not(:last-child)::after {
  content: "·";
  margin-left: 14px;
  color: var(--soft);
}

.meta-separator {
  color: var(--soft);
}

.lastfm-now-playing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  font-size: 12px;
  white-space: nowrap;
}

.spotify-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    background: transparent;
    color: var(--fg);
}

.spotify-icon{
    width:16px;
    height:16px;
    fill:currentColor;
}

.socials a,
.item-header a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.socials a:hover,
.item-header a:hover {
  color: var(--link-hover);
  border-color: currentColor;
}

.socials {
  gap: 16px;
  margin-top: 8px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-bottom: none;
  padding-bottom: 0;
}

.socials svg,
.item-header svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.item-header svg {
  width: 16px;
  height: 16px;
}

section {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  margin-bottom: 18px;
}

.body-copy {
  max-width: 42rem;
  color: var(--muted);
}

.list-item,
.project {
  padding: 2px 0 16px;
}

.item-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 6px;
}

.item-header h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.item-header span {
  color: var(--soft);
  font-size: 12px;
  white-space: nowrap;
}

.list-item p,
.project li,
.achievement-list li {
  color: var(--muted);
  font-size: 14px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}

.stack-grid h3 {
  font-size: 13px;
  margin-bottom: 4px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.stack-grid p {
  color: var(--muted);
  font-size: 14px;
}

.project ul,
.achievement-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.project li,
.achievement-list li {
  position: relative;
  padding-left: 14px;
}

.project li::before,
.achievement-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--soft);
}

.project {
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .container {
    width: min(100%, calc(100% - 28px));
    padding-top: 64px;
  }

  .theme-toggle {
    top: 18px;
    right: 18px;
  }

  .item-header {
    flex-direction: column;
    gap: 2px;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }
}
