:root {
  color-scheme: dark;
  --bg: #073f39;
  --text: #f3ead7;
  --muted: #b9c9c1;
  --accent: #ff8a65;
  --rule: rgba(243, 234, 215, 0.18);
  --sans: "Space Grotesk", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { min-height: 100vh; margin: 0; color: var(--text); background: var(--bg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.home { width: calc(100% - 3rem); max-width: 1120px; margin: 0 auto; padding: 5rem 0; }
.home > h1, .page-header h1 { margin: 0; color: var(--text); font-size: clamp(4rem, 11vw, 8.5rem); font-weight: 600; letter-spacing: -0.075em; line-height: 0.85; }
.home > h1 { margin-bottom: 4rem; }
.home-grid { display: grid; grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.35fr); gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.profile { position: sticky; top: 3rem; }
.profile img { width: 100%; max-width: 340px; aspect-ratio: 4 / 3; margin-bottom: 1.8rem; object-fit: cover; object-position: center 28%; }
.profile p { margin: 0 0 1rem; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.profile .pitch { color: var(--text); font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }
.links { display: flex; flex-wrap: wrap; margin: 1.5rem 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 0.78rem; }
.links li:not(:last-child)::after { content: " / "; color: var(--muted); white-space: pre; }
.content section + section, .cv section + section { margin-top: 3.5rem; }
section > h2 { margin: 0 0 1.4rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
section > h2::before { content: "// "; color: var(--accent); }
.entries { display: flex; flex-direction: column; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.entries li { margin: 0; padding: 0 0 1.75rem; border-bottom: 1px solid var(--rule); }
.entry-head { display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline; }
.entry-head h2, .entry-head h3 { margin: 0; color: var(--text); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.entry-head h2 a, .entry-head h3 a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 138, 101, 0.7); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.entry-head span, .entries small { flex: 0 0 auto; color: var(--accent); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; }
.entries p { margin: 0.55rem 0 0.45rem; color: var(--muted); font-size: 0.93rem; line-height: 1.55; }
.detail-list { margin: 0.8rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: 0.93rem; line-height: 1.55; }
.detail-list li { margin: 0.45rem 0; padding: 0; border: 0; }
.more, .download { display: inline-block; margin-top: 1.4rem; font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; }
.page { width: calc(100% - 3rem); max-width: 760px; margin: 0 auto; padding: 4rem 0 6rem; }
.page-nav { display: flex; gap: 1.2rem; margin-bottom: 5rem; font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; }
.page-header { margin-bottom: 4rem; }
.page-header h1 { margin-bottom: 1.4rem; }
.page-header p { max-width: 38rem; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.publication-list { gap: 0; }
.publication-list li { padding: 1.8rem 0; }
.publication-list .entry-head h2 { font-size: 1.35rem; }
.skill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); }
.skill-grid p { margin: 0; padding: 1.3rem; color: var(--muted); background: var(--bg); line-height: 1.55; }
.skill-grid strong { color: var(--text); }
@media (max-width: 760px) {
  .home, .page { width: calc(100% - 2.5rem); padding: 3rem 0; }
  .home > h1 { margin-bottom: 2.5rem; }
  .home-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .profile { position: static; }
  .profile img { max-width: none; aspect-ratio: 3 / 2; }
  .page-nav { margin-bottom: 3.5rem; }
  .page-header { margin-bottom: 2.5rem; }
}
@media (max-width: 440px) {
  .entry-head { flex-direction: column; gap: 0.35rem; }
  .skill-grid { grid-template-columns: 1fr; }
}
