/* Base reset-ish */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

/* Theme tokens */
:root {
  --bg: #faf8f5;
  --text: #2d2824;
  --muted: #8b7f78;
  --card: #ffffff;
  --border: #e5e0da;
  --brand: #9b6b4d;
  --brand-contrast: #f5ede6;
  --shadow: 0 8px 24px rgba(61, 54, 51, 0.06);
  --radius: 12px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2a2622;
    --text: #f0ebe5;
    --muted: #a89e96;
    --card: #36312d;
    --border: #4a433e;
    --brand: #c8a789;
    --brand-contrast: #443c36;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
}

.container {
  max-width: 960px;
  padding: 0 20px;
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: var(--brand);
  color: white;
  border-radius: 6px;
}

.site-header {
  padding: 40px 0 40px;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 32px;
  align-items: center;
}

.intro .name {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.intro .tagline {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
}
.intro .summary-list { 
  margin: 0 0 20px;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  list-style: disc;
}
.intro .summary-list li {
  margin: 6px 0;
}
.intro .summary-list a {
  color: var(--brand);
  text-decoration: none;
}
.intro .summary-list a:hover {
  text-decoration: underline;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  font-size: 15px;
  transition: all 0.2s ease;
}
.button:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: transparent;
}
.button--primary {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.button--primary:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.avatar-wrap { justify-self: end; }
.avatar {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: none;
}

main { padding: 24px 0 64px; }

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  padding-top: 20px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.tab-button {
  background: transparent;
  border: none;
  padding: 12px 20px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  position: relative;
  bottom: -1px;
}

.tab-button:hover {
  color: var(--text);
}

.tab-button.active {
  color: var(--text);
  border-bottom-color: var(--brand);
}

.experience-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.experience-content.active {
  display: block;
}

.site-header.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: none;
}
.card h2 { 
  margin-top: 0; 
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em; 
  color: var(--text);
}

.meta-list { color: var(--muted); padding-left: 18px; }
.meta-list li { margin: 4px 0; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tag {
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-contrast);
  color: var(--text);
  border: 1px solid var(--border);
}

.item { margin: 20px 0; }
.item:first-child { margin-top: 0; }
.item-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.item-title { margin: 0; font-size: 17px; font-weight: 500; }
.item-meta { color: var(--muted); white-space: nowrap; font-size: 14px; }
.item ul { margin: 4px 0; }

.link-list { padding-left: 18px; }
.link-list li { margin: 12px 0; }
.link-list a { color: var(--brand); text-decoration: none; font-weight: 500; }
.link-list a:hover { text-decoration: underline; }
.item ul a { color: var(--brand); text-decoration: none; }
.item ul a:hover { text-decoration: underline; }

/* Contact section links */
.card p a { 
  color: var(--brand); 
  text-decoration: none;
}
.card p a:hover { 
  text-decoration: underline;
}

.site-footer { color: var(--muted); padding-bottom: 48px; }
.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 720px) {
  .header-inner { grid-template-columns: 1fr; }
  .avatar-wrap { justify-self: start; }
  .intro .name { font-size: 32px; }
}


