/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #FAFAF8;
  --bg-alt: #F2F1EE;
  --bg-dark: #111827;
  --text: #1A1A1A;
  --text-muted: #6B7280;
  --accent: #1D4ED8;
  --accent-hover: #1E40AF;
  --border: #E5E5E2;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 720px;
}

html {
  scroll-behavior: smooth;
}

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

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

a:hover {
  text-decoration: underline;
}

/* ===========================
   NAV
=========================== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.15s !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
}

/* ===========================
   HERO
=========================== */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
}

.hero-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ===========================
   BUTTONS
=========================== */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 7px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn-secondary {
  display: inline-block;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  padding: 0.65rem 0.25rem;
  border-bottom: 1.5px solid var(--text);
  transition: opacity 0.15s;
}

.btn-secondary:hover {
  opacity: 0.65;
  text-decoration: none;
}

/* ===========================
   SECTIONS
=========================== */
.section {
  padding: 4rem 2rem;
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 540px;
}

/* ===========================
   PROSE
=========================== */
.prose p {
  margin-bottom: 1.1rem;
  color: #374151;
  line-height: 1.75;
}

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

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* ===========================
   FACTS ROW
=========================== */
.fact-row {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.fact {
  display: flex;
  flex-direction: column;
}

.fact-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.fact-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===========================
   CARD (MAIDLINK)
=========================== */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.card-header {
  margin-bottom: 1.25rem;
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #059669;
  background: #ECFDF5;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

.card-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.card-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.card-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
  align-items: center;
}

.link-arrow {
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

.link-muted {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
}

.link-muted:hover {
  color: var(--text);
  text-decoration: none;
}

.build-log-note {
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: #EFF6FF;
  border-radius: 0 6px 6px 0;
}

.build-log-note p {
  font-size: 14px;
  color: #374151;
  margin-bottom: 0.5rem;
}

/* ===========================
   SKILLS ROW
=========================== */
.skills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.skill-group h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.skill-group ul {
  list-style: none;
  padding: 0;
}

.skill-group li {
  font-size: 14px;
  color: #374151;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
}

.skill-group li:last-child {
  border-bottom: none;
}

/* ===========================
   WRITING
=========================== */
.writing-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.writing-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.writing-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.07);
  text-decoration: none;
}

.writing-platform {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  min-width: 72px;
}

.writing-desc {
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
}

.link-arrow-sm {
  color: var(--text-muted);
  font-size: 16px;
  transition: transform 0.15s;
}

.writing-card:hover .link-arrow-sm {
  transform: translateX(3px);
}

/* ===========================
   CONNECT
=========================== */
.section-connect {
  background: var(--bg-dark);
  color: #F9FAFB;
}

.section-connect h2 {
  color: #F9FAFB;
}

.section-connect .section-intro {
  color: #9CA3AF;
  max-width: 500px;
}

.section-connect .section-intro strong {
  color: #F9FAFB;
}

.connect-links {
  margin-bottom: 1.5rem;
}

.connect-note {
  font-size: 14px;
  color: #6B7280;
}

.connect-note a {
  color: #93C5FD;
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: var(--bg-dark);
  border-top: 1px solid #1F2937;
  padding: 1.5rem 2rem;
  text-align: center;
}

footer p {
  font-size: 13px;
  color: #6B7280;
}

footer a {
  color: #9CA3AF;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 640px) {
  nav {
    padding: 0 1.25rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 3rem 1.25rem 2.5rem;
  }

  .section {
    padding: 3rem 1.25rem;
  }

  .skills-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .fact-row {
    gap: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .card {
    padding: 1.25rem;
  }
}
