/* ---------- Base ---------- */
:root {
  --bg: #fafaf8;
  --text: #23241f;
  --muted: #6b6b63;
  --accent: #a8542e;
  --border: #e5e3dc;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

header.site-header {
  border-bottom: 1px solid var(--border);
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-mark {
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 2px;
}

.brand:hover {
  text-decoration: none;
}

.brand:hover .brand-mark {
  color: var(--accent);
}

nav.site-nav a {
  margin-left: 28px;
  color: var(--muted);
  font-size: 15px;
}

nav.site-nav a:hover,
nav.site-nav a.active {
  color: var(--text);
  text-decoration: none;
}

main {
  padding: 64px 0 96px;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Hero ---------- */
.hero {
  margin-bottom: 56px;
}

.hero .accent-bar {
  width: 36px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 36px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.hero .tagline {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 40px;
}

/* ---------- Sections ---------- */
section {
  margin-bottom: 48px;
}

section h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 600;
}

section p {
  margin: 0 0 16px;
}

.placeholder {
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 16px 18px;
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
  background: rgba(0,0,0,0.015);
}

/* ---------- Page intro ---------- */
.page-intro .accent-bar {
  width: 36px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 20px;
}

.page-intro h1 {
  font-size: 30px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.page-intro p {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 40px;
}

/* ---------- Tag list (hobbies/interests) ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tag {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- Contact card ---------- */
.contact-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 26px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}

.contact-row + .contact-row {
  border-top: 1px solid var(--border);
}

.contact-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  min-width: 80px;
}

/* ---------- Resume ---------- */
.resume-download {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  margin-bottom: 24px;
}

.resume-download:hover {
  text-decoration: none;
  opacity: 0.9;
}

.resume-viewer {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  height: 80vh;
}

/* ---------- Project cards ---------- */
.project-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 26px;
  margin-bottom: 20px;
  transition: border-color 0.15s ease;
}

.project-card:not(.empty):hover {
  border-color: var(--accent);
}

.project-card h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.project-status {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(168, 84, 46, 0.08);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 12px;
}

.project-card p {
  color: var(--text);
  margin: 0;
}

.project-card.empty {
  color: var(--muted);
  font-style: italic;
  text-align: center;
  border-style: dashed;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  header.site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  nav.site-nav a {
    margin-left: 0;
    margin-right: 20px;
  }

  .hero h1, .page-intro h1 {
    font-size: 28px;
  }

  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
