/* ----------------------------------------
   Active Theme
   To switch: change data-theme="navy" on
   the <html> tag in index.html.
   Options: navy | parchment | fog | charcoal | forest
---------------------------------------- */

[data-theme="navy"] {
  --text:        #f1f5f9;
  --muted:       #94a3b8;
  --bg:          #0f172a;
  --accent:      #38bdf8;
  --border:      #1e293b;
  --footer-bg:   #020617;
  --footer-text: #f1f5f9;
}

/* ----------------------------------------
   Theme Archive
   Uncomment any block + set data-theme
   on <html> to preview.
---------------------------------------- */

/*
[data-theme="parchment"] {
  --text:        #1a1409;
  --muted:       #78614a;
  --bg:          #faf6ef;
  --accent:      #c2410c;
  --border:      #e5d9c8;
  --footer-bg:   #1a1409;
  --footer-text: #faf6ef;
}

[data-theme="fog"] {
  --text:        #1e2d3d;
  --muted:       #5c7a96;
  --bg:          #eef1f6;
  --accent:      #0e7490;
  --border:      #d0dae6;
  --footer-bg:   #1e2d3d;
  --footer-text: #eef1f6;
}

[data-theme="charcoal"] {
  --text:        #fafaf9;
  --muted:       #a8a29e;
  --bg:          #1c1917;
  --accent:      #fbbf24;
  --border:      #292524;
  --footer-bg:   #0c0a09;
  --footer-text: #fafaf9;
}

[data-theme="forest"] {
  --text:        #ecfdf5;
  --muted:       #86b3a0;
  --bg:          #0d1f14;
  --accent:      #34d399;
  --border:      #1a3328;
  --footer-bg:   #060f0a;
  --footer-text: #ecfdf5;
}
*/

/* ----------------------------------------
   Base
---------------------------------------- */

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

:root {
  --max-w: 680px;
}

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.65;
  padding: 4rem 1.5rem 6rem;
}

main {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ----------------------------------------
   Links
---------------------------------------- */

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s;
}

a:hover {
  opacity: 0.7;
}

/* ----------------------------------------
   Header
---------------------------------------- */

header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 2rem;
  border-bottom: 3px solid var(--text);
}

.avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 55% 10%;
  flex-shrink: 0;
  background: var(--border);
}

.header-text h1 {
  font-size: clamp(2.6rem, 8vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.tagline a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-weight: 500;
}

.tagline a:hover {
  opacity: 0.7;
}

/* ----------------------------------------
   About
---------------------------------------- */

.about {
  margin-bottom: 3rem;
}

.about p {
  margin-bottom: 1rem;
}

.about p:last-child {
  margin-bottom: 0;
}

/* ----------------------------------------
   Sections
---------------------------------------- */

section {
  margin-bottom: 3rem;
}

h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--accent);
}

/* ----------------------------------------
   Work list
---------------------------------------- */

.work-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.work-list li:first-child {
  border-top: 1px solid var(--border);
}

.work-list a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.work-list a:hover {
  color: var(--accent);
  opacity: 1;
}

.work-list span {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
}

.work-list .press {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
}

.work-list .press a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.work-list .press a:hover {
  color: var(--accent);
  opacity: 1;
}

/* ----------------------------------------
   Footer
---------------------------------------- */

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 1rem;
  background: var(--footer-bg);
  padding: 1.5rem;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
}

footer a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--footer-text);
  letter-spacing: 0.02em;
  padding: 0.35rem 1rem 0.35rem 0;
  opacity: 0.85;
  transition: opacity 0.15s;
}

footer a:hover {
  opacity: 1;
}

/* ----------------------------------------
   Responsive
---------------------------------------- */

@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  body {
    padding: 2.5rem 1.25rem 4rem;
  }

  footer {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
  }
}
