/* alpgures.me – dark editorial portfolio (Slate & Bone) */

:root {
  --paper: #141518;
  --ink: #e7e4db;
  --muted: #97938a;
  --line: #26282e;
  --accent: #93a0b4;
  --accent-soft: #232b38;
  --surface: #1b1d22;
  --soft: #c9c5ba;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: rgba(20, 21, 24, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-name {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
}
.nav-name:hover { text-decoration: none; color: var(--accent); }

.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

.nav-resume {
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 5px 14px;
  color: var(--accent) !important;
}
.nav-resume:hover { background: var(--accent); color: #141518 !important; }

/* Layout */

main {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 56px 0 8px; }
section h2 {
  font-size: 30px;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 32px 0 32vh;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
/* Mesh-gradient sky: Lovable-style color blending, kept to the cool
   Slate & Bone palette (no warm/orange tones). */
.mesh { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.mesh .blob { position: absolute; border-radius: 50%; filter: blur(70px); mix-blend-mode: screen; }
.blob.b1 {
  width: 52vw; height: 52vh; left: -10vw; top: -16vh;
  background: radial-gradient(ellipse at center, rgba(139,147,196,0.55), transparent 70%);
  animation: blob-drift 95s ease-in-out infinite alternate;
}
.blob.b2 {
  width: 46vw; height: 48vh; right: -8vw; top: -10vh;
  background: radial-gradient(ellipse at center, rgba(154,143,192,0.5), transparent 70%);
  animation: blob-drift 120s ease-in-out infinite alternate-reverse;
}
.blob.b3 {
  width: 60vw; height: 40vh; left: 18vw; top: -6vh;
  background: radial-gradient(ellipse at center, rgba(125,143,192,0.42), transparent 70%);
  animation: blob-drift 80s ease-in-out infinite alternate;
}
.blob.b4 {
  width: 44vw; height: 30vh; left: 28vw; top: 30vh;
  background: radial-gradient(ellipse at center, rgba(231,228,219,0.13), transparent 70%);
  animation: blob-drift 105s ease-in-out infinite alternate-reverse;
}
.blob.b5 {
  width: 40vw; height: 34vh; left: -6vw; top: 26vh;
  background: radial-gradient(ellipse at center, rgba(91,107,132,0.55), transparent 70%);
  animation: blob-drift 90s ease-in-out infinite alternate;
}
@keyframes blob-drift {
  from { transform: translate3d(-3vw, -1vh, 0) scale(1); }
  to { transform: translate3d(3vw, 2vh, 0) scale(1.1); }
}
.stars { position: absolute; left: 0; top: 0; width: 100%; height: 58%; z-index: 0; }
.stars circle.tw { animation: twinkle 7s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.14; } 50% { opacity: 0.55; } }
.taurus { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 58vh; z-index: 1; }
.chips { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.chips .chip { pointer-events: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.chip-x { position: absolute; left: 0; top: 0; will-change: transform; }

.chip-w { position: absolute; left: 0; top: 0; will-change: transform; }

.chips .chip {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(27, 29, 34, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
  animation: chip-bob ease-in-out infinite;
}
@keyframes chip-bob {
  0%, 100% { transform: translateY(-5px); }
  50% { transform: translateY(5px); }
}
.hero-inner { position: relative; z-index: 3; width: 100%; max-width: 740px; margin: 0 auto; padding: 0 28px; transform: translateY(-28px); }

.hero-greeting {
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}
.greet-box {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
  vertical-align: -0.12em;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.04em 0.3em;
  transition: width 0.55s cubic-bezier(0.22,1,0.36,1);
}
.greet-word { color: var(--accent); white-space: nowrap; flex-shrink: 0; }
.greet-bang { color: var(--accent); white-space: nowrap; flex-shrink: 0; }
.greet-rest { white-space: nowrap; position: relative; top: 0.05em; }
.love-box > span { flex-shrink: 0; line-height: 1; }
.hero-love {
  font-size: clamp(24px, 6vw, 52px) !important;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
  text-align: left;
  margin: 0 0 10px;
}
.love-box {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  padding: 0.22em 0.32em 0.06em;
  overflow: hidden;
  vertical-align: baseline;
  line-height: 1;
  transition: width 0.55s cubic-bezier(0.22,1,0.36,1);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
}
.love-dot { white-space: nowrap; }
.rot-word { display: inline-block; }
.rot-word.word-out { animation: word-out 0.38s cubic-bezier(0.22,1,0.36,1) forwards; }
.rot-word.word-in { animation: word-in 0.45s cubic-bezier(0.22,1,0.36,1); }
@keyframes word-out { to { transform: translateY(-55%); opacity: 0; } }
@keyframes word-in { from { transform: translateY(55%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.hero-kicker {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(44px, 8vw, 68px);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-sub {
  font-family: "Newsreader", Georgia, serif;
  font-size: 22px;
  line-height: 1.45;
  margin: 0 0 8px;
  color: var(--soft);
  max-width: 34em;
}

.hero-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.hero-meta {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 8px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #141518;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 26px;
  border-radius: 999px;
}
.btn:hover { text-decoration: none; background: #7d8ca3; color: #141518; }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }

/* Entries */

.entry { margin-bottom: 34px; }

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.entry h3 { font-size: 21px; margin-bottom: 2px; }

.entry-date {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.entry-org {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 8px;
}

.entry ul { padding-left: 20px; margin-top: 6px; }
.entry li { margin-bottom: 6px; }
.entry li::marker { color: var(--accent); }

/* Experience page */
.page { max-width: 740px; margin: 0 auto; padding: 110px 28px 70px; }
.page-head h1 { font-size: 44px; margin-bottom: 8px; }
.page-sub { color: var(--muted); font-size: 17px; margin-bottom: 8px; }
.nav-links a.active { color: var(--ink); }
.xp { padding: 30px 0; border-top: 1px solid var(--line); }
.xp:last-child { border-bottom: 1px solid var(--line); }
.xp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.xp-top h3 { font-size: 23px; margin-bottom: 2px; }
.xp-date { color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
.xp-role { font-size: 16px; font-weight: 600; margin-top: 2px; }
.xp-place { color: var(--muted); font-weight: 400; }
.xp-sum { color: var(--soft); margin-top: 8px; }
.xp ul { padding-left: 20px; margin-top: 10px; }
.xp li { margin-bottom: 6px; }
.xp li::marker { color: var(--accent); }
.xp-link { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--accent); text-decoration: none; }
.xp-link:hover { text-decoration: underline; }
.edu { margin-top: 56px; }
.edu h2 { font-size: 30px; margin-bottom: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

#projects .entry p { color: var(--soft); }

/* Skills */

.skills-grid {
  display: grid;
  gap: 26px;
}
.skills-grid h3 {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 6px;
}

/* Contact */

.contact-link { display: inline-flex; align-items: center; gap: 8px; }
.contact-link svg { flex-shrink: 0; }
.contact-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 18px;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 18px;
}

/* Footer */

footer {
  max-width: 740px;
  margin: 64px auto 0;
  padding: 24px 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* Mobile */

@media (max-width: 600px) {
  .nav-links a:not(.nav-resume) { display: none; }
  .hero { padding: 56px 0 28px; }
  .hero-inner { max-width: 400px; padding: 0 20px; }
  .hero-love { font-size: min(8vw, 31px) !important; }
  .taurus { height: 68vh; }
  section { padding: 40px 0 6px; }
}

/* Project cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }

.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-img-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
}
.card-img-empty span {
  font-family: "Newsreader", Georgia, serif;
  font-size: 64px;
  font-weight: 600;
  color: var(--accent);
}

.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 22px; }
.card-body p { font-size: 15px; color: var(--muted); flex: 1; }
.card-cta { font-size: 15px; font-weight: 600; color: var(--accent); }

/* Project detail page */

.crumb { margin: 28px 0 6px; font-size: 15px; font-weight: 500; }

.proj-hero { padding: 12px 0 8px; }
.proj-hero h1 { font-size: clamp(40px, 7vw, 60px); font-weight: 600; margin-bottom: 14px; }
.proj-links { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

.proj-gallery { display: grid; gap: 18px; margin: 34px 0 8px; }
.proj-gallery figure {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.proj-gallery img { width: 100%; display: block; }

.proj-story p { margin-bottom: 1.1em; font-size: 18px; }

.fact-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact-grid > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.fact-grid dt { font-weight: 600; font-size: 15px; color: var(--muted); }
.fact-grid dd { font-size: 15px; }

.proj-next {
  margin: 48px 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: "Newsreader", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}

@media (max-width: 600px) {
  .fact-grid > div { grid-template-columns: 1fr; gap: 2px; }
}
