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

:root {
  --bg: #f8f6f3;
  --bg-white: #ffffff;
  --bg-warm: #f2efe9;
  --text: #2c2c2c;
  --text-muted: #6b6b6b;
  --accent: #c2703e;
  --accent-hover: #a85c30;
  --accent-light: rgba(194, 112, 62, 0.08);
  --border: #e0dbd4;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent-hover);
}

/* ── Nav ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(248, 246, 243, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.nav-name:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.nav-active {
  color: var(--accent);
  font-weight: 600;
}

/* ── Hero ── */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 7rem 2rem 5rem;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.hero-content {
  text-align: center;
  max-width: 600px;
}

.hero-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 4px solid var(--bg-warm);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Sections ── */

.about,
.work,
.elsewhere,
.life,
.tinkering,
.outside,
.contact {
  max-width: 720px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
}

h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.75rem;
}

/* ── About ── */

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

.about-content p {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.about-content a {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(194, 112, 62, 0.3);
  text-underline-offset: 3px;
}

.about-content a:hover {
  text-decoration-color: var(--accent);
}

/* ── Work ── */

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

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.work-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.work-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.work-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.work-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:first-child {
  background: var(--accent);
  color: #fff;
}

.btn:first-child:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(194, 112, 62, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* ── Elsewhere ── */

.links-list {
  display: flex;
  flex-direction: column;
}

.links-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: padding-left 0.2s;
}

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

.links-list a:hover {
  padding-left: 0.5rem;
  color: var(--accent);
}

.link-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.link-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Personal Page Sections ── */

.life,
.tinkering,
.outside {
  border-bottom: 1px solid var(--border);
}

.life-content p,
.tinkering-content p,
.outside-content p {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.tinkering-content a,
.life-content a,
.outside-content a {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(194, 112, 62, 0.3);
  text-underline-offset: 3px;
}

.tinkering-content a:hover,
.life-content a:hover,
.outside-content a:hover {
  text-decoration-color: var(--accent);
}

/* ── Contact ── */

.contact {
  text-align: center;
}

.contact p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.contact a:not(.btn) {
  font-weight: 500;
}

.contact-cta {
  margin-top: 2rem;
}

/* ── Footer ── */

.footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.footer a {
  font-weight: 500;
}

.footer-sub {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #999;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .nav {
    padding: 0.75rem 1.25rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .hero {
    min-height: 60vh;
    padding: 6rem 1.25rem 3.5rem;
  }

  .hero-photo {
    width: 110px;
    height: 110px;
  }

  .about,
  .work,
  .elsewhere,
  .life,
  .tinkering,
  .outside,
  .contact {
    padding: 3rem 1.25rem;
  }

  .link-desc {
    display: none;
  }
}
