/* ============================================================
   Gabriel Pedde — HPC portfolio
   Editorial · minimal · warm paper
   ============================================================ */

:root {
  --bg:           #f5f1e8;
  --bg-elev:      #faf7ef;
  --bg-card:      #ffffff;
  --bg-soft:      #ebe6d8;
  --border:       rgba(28, 24, 20, 0.10);
  --border-soft:  rgba(28, 24, 20, 0.06);
  --text:         #1c1814;
  --text-dim:     #5a5550;
  --text-faint:   #8b8479;
  --accent:       #8b5a3c;
  --accent-soft:  rgba(139, 90, 60, 0.12);
  --green:        #5a7a4a;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max:    1080px;
  --pad:    clamp(1.25rem, 5vw, 3rem);
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(28, 24, 20, 0.04);
  --shadow:    0 8px 28px -14px rgba(28, 24, 20, 0.18);
  --shadow-lg: 0 22px 56px -22px rgba(28, 24, 20, 0.22);
}

/* dark theme */
body.dark {
  --bg:           #1a1715;
  --bg-elev:      #221e1a;
  --bg-card:      #1f1c18;
  --bg-soft:      #2a2622;
  --border:       rgba(240, 235, 224, 0.10);
  --border-soft:  rgba(240, 235, 224, 0.05);
  --text:         #f0ebe0;
  --text-dim:     #a8a098;
  --text-faint:   #6e6862;
  --accent:       #d4a574;
  --accent-soft:  rgba(212, 165, 116, 0.14);
  --green:        #8aa67a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow:    0 10px 32px -16px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 64px -24px rgba(0, 0, 0, 0.7);
}

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

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

a { color: inherit; text-decoration: none; }
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text);
}
strong { color: var(--text); font-weight: 600; }
code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.08em 0.4em;
  background: var(--bg-soft);
  border-radius: 3px;
  color: var(--text);
}

/* ============================================================
   nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--pad);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-logo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.005em;
  color: var(--text);
}
.nav-logo .logo-text { font-style: normal; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.nav-links a {
  color: var(--text-dim);
  transition: color 0.2s;
  position: relative;
  padding: 0.25rem 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.nav-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.nav-toggle .icon-sun { display: none; }
body.dark .nav-toggle .icon-moon { display: none; }
body.dark .nav-toggle .icon-sun  { display: inline-block; }

@media (max-width: 600px) {
  .nav-links { display: none; }
}

/* ============================================================
   hero
   ============================================================ */

.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(3rem, 8vh, 5rem) var(--pad) 5rem;
  position: relative;
  text-align: center;
}

.hero-inner {
  max-width: 780px;
  width: 100%;
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 11vw, 7rem);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin-bottom: 1.75rem;
  color: var(--text);
  font-variation-settings: "opsz" 144;
}
.title-line {
  display: block;
}
.title-line.italic {
  font-style: italic;
  font-weight: 400;
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: clamp(0.82rem, 1.5vw, 0.94rem);
  color: var(--text-dim);
  margin-bottom: 2rem;
  min-height: 1.6rem;
  letter-spacing: 0.01em;
}
.prompt {
  color: var(--accent);
  font-weight: 500;
}
#typewriter { color: var(--text); }
.caret {
  color: var(--accent);
<<<<<<< HEAD
  animation: blink 3s step-end infinite;
=======
  animation: blink 1.7s step-end infinite;
>>>>>>> 0282653 (minor quality of life)
  font-weight: 300;
  margin-left: -2px;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-bio {
  max-width: 580px;
  margin: 0 auto 2.75rem;
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

/* hero stats */
.hero-stats {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
}
.stat {
  text-align: center;
  padding: 0 1.75rem;
}
.stat-num {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}
.stat-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.55rem;
}
.stat-divider {
  width: 1px;
  background: var(--border);
}

@media (max-width: 540px) {
  .hero-stats { flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
  .stat { padding: 0.5rem 1rem; }
  .stat-divider { display: none; }
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-faint);
  transition: color 0.2s;
}
.scroll-hint:hover { color: var(--accent); }

/* ============================================================
   sections — shared
   ============================================================ */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem var(--pad) 1rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
.section-num {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  letter-spacing: -0.015em;
  color: var(--text);
}
.section-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
  align-self: center;
}

/* ============================================================
   about
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.about-text p {
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
  line-height: 1.75;
}
.about-text p:last-child { margin-bottom: 0; }

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--mono);
  box-shadow: var(--shadow-sm);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-soft);
}
.card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 500;
}
.card-title {
  font-size: 0.74rem;
  color: var(--text-faint);
}
.card-body {
  padding: 1.4rem 1.5rem;
  font-size: 0.84rem;
  line-height: 1.95;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.c-prompt { color: var(--accent); user-select: none; }
.c-out    { color: var(--text-dim); }

/* ============================================================
   stack
   ============================================================ */

.stack-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
}
@media (max-width: 720px) {
  .stack-groups { grid-template-columns: 1fr; gap: 1.5rem; }
}

.stack-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-bottom: 1rem;
  font-weight: 500;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text);
  transition: all 0.2s ease;
  cursor: default;
}
.chip:hover {
  border-color: var(--text-dim);
  background: var(--bg-soft);
}
.chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.85;
}

.hpc-badge {
  margin-top: 3rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.hpc-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-right: 0.5rem;
  font-weight: 500;
}
.hpc-pill {
  font-family: var(--mono);
  font-size: 0.74rem;
  padding: 0.32rem 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
}

/* ============================================================
   projects
   ============================================================ */

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.project {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.project:hover {
  transform: translateY(-3px);
  border-color: var(--text-dim);
  box-shadow: var(--shadow);
}

.project-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
}
.project-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 500;
}
.project-id {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.project-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.project-desc {
  color: var(--text-dim);
  font-size: 0.94rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
  flex: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}
.project-tech span {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.24rem 0.6rem;
  background: var(--bg-soft);
  border-radius: 3px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.project-link {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text);
  align-self: flex-start;
  letter-spacing: 0.01em;
  transition: color 0.2s, border-color 0.2s;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}
.project-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================================================
   currently / contact
   ============================================================ */

.section-contact { padding-bottom: 3rem; }

.now-list {
  list-style: none;
  margin-bottom: 3.5rem;
}
.now-list li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-dim);
  font-size: 1rem;
}
.now-list li:last-child { border-bottom: 0; }
.now-mark {
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 500;
  flex-shrink: 0;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.contact-text h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 1.95rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.contact-text p {
  color: var(--text-dim);
  font-size: 0.95rem;
}
.contact-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

/* ============================================================
   footer
   ============================================================ */

.footer {
  border-top: 1px solid var(--border-soft);
  padding: 2.5rem var(--pad);
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-mono {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--text-faint);
  letter-spacing: 0.03em;
}

/* ============================================================
   scroll-reveal
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* selection */
::selection {
  background: var(--accent-soft);
  color: var(--text);
}

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }
