/* home.css — robrighter.com homepage */

:root {
  color-scheme: light;
  --bg:            #f3f6fb;
  --bg-soft:       #f8fafd;
  --bg-strong:     #e6ebf4;
  --panel:         #ffffff;
  --panel-muted:   #f0f3f9;
  --border:        rgba(14, 22, 54, 0.08);
  --border-strong: rgba(14, 22, 54, 0.15);
  --ink:           #0d1526;
  --ink-soft:      #425069;
  --ink-muted:     #8b97b0;
  --accent:        #1a4480;
  --accent-strong: #112e57;
  --accent-wash:   rgba(26, 68, 128, 0.07);
  --sky:           #0284c7;
  --teal:          #0d9488;
  --amber:         #b45309;
  --nav-text:      #1e2d45;
  --shadow:        0 8px 28px rgba(14, 22, 54, 0.08);
  --shadow-lg:     0 24px 64px rgba(14, 22, 54, 0.13);
  --radius-lg:     14px;
  --radius-md:     10px;
  --radius-sm:     7px;
  --font-ui:   system-ui, 'Segoe UI', -apple-system, 'Helvetica Neue', sans-serif;
  --font-copy: 'Georgia', 'Cambria', 'Times New Roman', serif;
  --font-mono: 'SF Mono', 'Menlo', 'Consolas', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover { color: var(--accent-strong); text-decoration: underline; }

/* ─── Nav ─── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(14, 22, 54, 0.06);
}

.site-nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--nav-text);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand:hover { color: var(--accent); text-decoration: none; }

.brand__mark {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 7px;
  color: #ffffff;
  font-family: var(--font-copy);
  font-style: italic;
  font-weight: 900;
  font-size: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 1px 4px rgba(14, 22, 54, 0.20);
  flex: 0 0 30px;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.site-nav__links a {
  color: var(--ink-soft);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 120ms ease;
  white-space: nowrap;
}
.site-nav__links a:hover {
  background: var(--panel-muted);
  border-color: var(--border);
  color: var(--accent);
  text-decoration: none;
}

.site-nav__github {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
}
.site-nav__github svg { width: 14px; height: 14px; }

/* ─── Hero ─── */

.hero {
  padding: 100px 0 88px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(860px 300px at 50% -60px, rgba(26, 68, 128, 0.07), transparent 70%),
    radial-gradient(500px 400px at 94% 55%, rgba(13, 148, 136, 0.05), transparent 70%),
    radial-gradient(420px 320px at 3% 85%, rgba(2, 132, 199, 0.05), transparent 70%);
}

.hero__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
  flex: 0 0 6px;
}

.hero__eyebrow-sep {
  width: 1px;
  height: 11px;
  background: var(--border-strong);
  flex: 0 0 1px;
}

.hero h1 {
  font-family: var(--font-copy);
  font-size: clamp(3.2rem, 7.5vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--ink);
}

.hero__bio {
  font-family: var(--font-copy);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 620px;
  text-align: center;
}

.hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

/* ─── Buttons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 68, 128, 0.25);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #1e50a0, #112e57);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(26, 68, 128, 0.34);
}

.btn--ghost {
  background: var(--panel);
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--panel-muted);
  color: var(--ink);
  border-color: var(--accent);
}

.btn__icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

/* ─── Shared layout ─── */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-head h2 {
  font-family: var(--font-copy);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-head p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-family: var(--font-copy);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ─── Projects ─── */

.section--projects {
  padding: 88px 0;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 840px;
  margin: 0 auto;
}

.project-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.project-card:visited { color: var(--ink); }
.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
}

.project-card__logo {
  width: 50px;
  height: 50px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: 0 0 50px;
}

.project-card__logo svg {
  width: 100%;
  height: 100%;
}

.project-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.project-card__domain {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-top: -6px;
}

.project-card__desc {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.62;
  flex: 1 1 auto;
}

.project-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}
.project-card__cta svg {
  width: 12px;
  height: 12px;
  transition: transform 120ms ease;
}
.project-card:hover .project-card__cta svg {
  transform: translate(2px, -2px);
}

/* ─── Curiosities ─── */

.section--curiosities {
  padding: 88px 0;
  background: var(--panel);
  border-top: 1px solid var(--border);
}

.curiosities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.curiosity-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.curiosity-card:visited { color: var(--ink); }
.curiosity-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
}

.curiosity-card__icon {
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
}

.curiosity-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.curiosity-card__desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ─── Footer ─── */

.site-foot {
  border-top: 1px solid var(--border);
  background: var(--panel);
  padding: 36px 0;
}

.site-foot__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--ink-muted);
  font-size: 13px;
}

.site-foot a { color: var(--ink-soft); }
.site-foot a:hover { color: var(--accent); text-decoration: none; }

.site-foot__links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ─── Responsive ─── */

@media (max-width: 760px) {
  .hero { padding: 72px 0 60px; }

  .site-nav__links {
    gap: 1px;
  }
  .site-nav__links a {
    font-size: 12px;
    padding: 4px 7px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .curiosities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hero h1 { letter-spacing: -0.02em; }
  .curiosities-grid { grid-template-columns: 1fr; }

  .site-nav__inner { flex-wrap: wrap; gap: 8px 12px; padding: 8px 16px 10px; background: var(--panel); }
  .site-nav__links { width: 100%; margin-left: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .site-nav__links a { display: inline-flex; justify-content: center; font-size: 11.5px; padding: 5px 4px; }
}
