/* port0.in — Solarized Light/Dark, dbalan-inspired typography */

:root,
:root[data-theme="light"] {
  --bg:        #fdf6e3;
  --bg-alt:    #eee8d5;
  --fg:        #586e75;
  --fg-emph:   #073642;
  --fg-muted:  #93a1a1;
  --accent:    #268bd2;
  --accent-hover: #cb4b16;
  --rule:      #eee8d5;
}

:root[data-theme="dark"] {
  --bg:        #002b36;
  --bg-alt:    #073642;
  --fg:        #93a1a1;
  --fg-emph:   #fdf6e3;
  --fg-muted:  #586e75;
  --accent:    #268bd2;
  --accent-hover: #cb4b16;
  --rule:      #073642;
}

:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
               Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-serif: Charter, "Bitstream Charter", "Sitka Text", Cambria,
                "Iowan Old Style", "Apple Garamond", Palatino,
                "Times New Roman", Times, serif;
  --max-width: 880px;
}

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

html { font-size: 18px; line-height: 1.6; }

body {
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  text-align: left;
}

a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

h1, h2, h3, strong { color: var(--fg-emph); }

h1 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 0.75rem;
}

h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.4rem 0 0.5rem;
}

/* Theme toggle (top-right) */
.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--fg-emph);
  border: 1px solid var(--rule);
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
}
.theme-toggle:hover { color: var(--accent-hover); }

/* Header */
header {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.profile-photo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-alt);
  flex-shrink: 0;
}

.header-text .role {
  font-size: 1.05rem;
  color: var(--fg-muted);
  margin-top: 0.3rem;
}

.social-icons {
  display: flex;
  gap: 0.85rem;
  list-style: none;
  padding: 0;
  margin: 0.55rem 0 0;
}
.social-icons li { padding: 0; border: none; }
.social-icons a {
  display: inline-flex;
  color: var(--fg-muted);
  text-decoration: none;
}
.social-icons a:hover { color: var(--accent-hover); }
.social-icons svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}

/* Divider */
hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

/* Sections */
section { margin-bottom: 2rem; }
section:last-child { margin-bottom: 0; }

section p {
  margin-bottom: 0.9rem;
}
section p:last-child { margin-bottom: 0; }

/* List (open source) */
section ul {
  list-style: none;
  padding: 0;
}

section ul li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}

section ul li:last-child { border-bottom: none; }

/* Bio bullets — plain dotted, no separators */
section ul.bio-list {
  list-style: disc;
  padding-left: 1.2rem;
}
section ul.bio-list li {
  padding: 0.2rem 0;
  border-bottom: none;
}
/* Nested sub-lists in any section list — circle bullets, no borders */
section li ul {
  list-style: circle;
  padding-left: 1.2rem;
  margin-top: 0.2rem;
}
section li ul li {
  padding: 0.1rem 0;
  border-bottom: none;
}

/* Links list */
ul.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  list-style: none;
  padding: 0;
}

ul.links li { border: none; padding: 0; }

/* Responsive */
@media (max-width: 640px) {
  html { font-size: 17px; }
  body { padding: 2rem 1.1rem 2.5rem; }
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .profile-photo { width: 180px; height: 180px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .theme-toggle { top: 0.6rem; right: 0.6rem; }
}

@media (max-width: 400px) {
  html { font-size: 16px; }
  .profile-photo { width: 150px; height: 150px; }
  h1 { font-size: 1.75rem; }
}
