@import url('https://fonts.googleapis.com/css2?family=Gloock&family=Bricolage+Grotesque:wght@400;700&family=Geist+Mono:wght@400;700&display=swap');

:root {
  --ink: #10141A;
  --ink-2: #171D26;
  --ink-3: #1B2129;
  --paper: #F4EFE4;
  --slate: #C7CDD6;
  --muted: #6B7480;
  --line: #262C36;
  --ember: #E7A83E;
  --ember-2: #F3C267;
  --teal: #3FA79A;
  --purple: #8B5CF6;
  --azure: #3E8EED;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Bricolage Grotesque', 'Helvetica Neue', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* ---------- background texture (shared brand language) ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(63,167,154,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63,167,154,0.05) 1px, transparent 1px);
  background-size: 70px 70px;
  pointer-events: none;
}
.bg-blur {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.14;
  pointer-events: none;
}

/* ---------- nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(16,20,26,0.75);
  border-bottom: 1px solid var(--line);
}
nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-mark {
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--teal);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--paper); }

/* ---------- hero ---------- */
.hero {
  padding-top: 150px;
  padding-bottom: 110px;
}
h1.name {
  font-family: 'Gloock', Georgia, serif;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.04;
  margin: 0 0 32px;
  color: var(--paper);
  letter-spacing: -0.5px;
}
.rule {
  width: 90px;
  height: 5px;
  background: var(--ember);
  margin: 0 0 32px;
}
.headline {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: 0.5px;
  color: var(--slate);
  max-width: 640px;
  margin: 0 0 48px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 10px;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--ember-2), var(--ember));
  color: var(--ink);
  font-weight: 700;
}
.btn-outline {
  border: 1.5px solid var(--line);
  color: var(--slate);
}
.btn-outline:hover { border-color: var(--teal); color: var(--paper); }

/* ---------- outputs (impact, styled as terraform output blocks) ---------- */
.outputs {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 64px;
  padding-bottom: 64px;
}
.outputs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.output-block {
  border-left: 2px solid var(--teal);
  padding-left: 20px;
}
.hcl-line {
  font-family: 'Geist Mono', monospace;
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  white-space: pre;
}
.hcl-value {
  font-family: 'Gloock', Georgia, serif;
  font-size: 30px;
  color: var(--ember-2);
  display: block;
  margin: 6px 0 10px;
}
.output-desc {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  color: var(--slate);
  margin: 0;
  line-height: 1.5;
}

/* ---------- section shell ---------- */
section { padding-top: 96px; padding-bottom: 96px; }
.section-label {
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--teal);
  margin: 0 0 16px;
  text-transform: uppercase;
}
h2.section-title {
  font-family: 'Gloock', Georgia, serif;
  font-size: clamp(30px, 4vw, 44px);
  margin: 0 0 48px;
  color: var(--paper);
}

/* ---------- about ---------- */
.about-text {
  font-size: 18px;
  color: var(--slate);
  max-width: 720px;
}
.about-text p { margin: 0 0 20px; }
.about-text .languages {
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-top: 8px;
}

/* ---------- skills, styled as HCL resource blocks ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px 40px;
}
.resource-block {
  font-family: 'Geist Mono', monospace;
  font-size: 13.5px;
  line-height: 1.85;
}
.resource-header, .resource-footer {
  color: var(--muted);
}
.resource-header .type { color: var(--teal); }
.resource-header .name { color: var(--ember-2); }
.resource-items { padding-left: 22px; }
.resource-items .item { color: var(--slate); }
.resource-items .item::before { content: ""; }

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.stack-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stack-item svg { width: 34px; height: 34px; flex-shrink: 0; }
.stack-item span {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--muted);
}

/* ---------- experience, styled as a terraform plan diff ---------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: 'Geist Mono', monospace;
}
.job {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.job:last-child { border-bottom: 1px solid var(--line); }
.job-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 6px;
}
.job-role {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--paper);
}
.job-role .plan-tick { color: var(--teal); margin-right: 10px; }
.job-dates {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.job-company {
  font-size: 12.5px;
  color: var(--ember-2);
  letter-spacing: 1px;
  margin: 0 0 16px 26px;
}
.job ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--slate);
  font-size: 13.5px;
}
.job li {
  margin-bottom: 8px;
  padding-left: 26px;
  position: relative;
}
.job li::before {
  content: "+";
  position: absolute;
  left: 8px;
  color: var(--teal);
}

/* ---------- education ---------- */
.edu-list {
  display: flex;
  flex-direction: column;
}
.edu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.edu-list .edu-item:last-child { border-bottom: 1px solid var(--line); }
.edu-item .edu-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--paper);
  margin: 0 0 4px;
}
.edu-item .edu-sub {
  font-family: 'Geist Mono', monospace;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.edu-item .edu-dates {
  font-family: 'Geist Mono', monospace;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.honor-badge {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 20px 26px;
  border: 1.5px solid var(--ember);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(231,168,62,0.12), rgba(231,168,62,0.02));
}
.honor-badge-icon {
  font-size: 28px;
  color: var(--ember-2);
  line-height: 1;
}
.honor-badge-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--paper);
  margin: 0 0 4px;
}
.honor-badge-sub {
  font-family: 'Geist Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin: 0;
}

/* ---------- contact ---------- */
.contact {
  text-align: left;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .hero { padding-top: 120px; padding-bottom: 80px; }
  section { padding-top: 72px; padding-bottom: 72px; }
  .outputs { padding-top: 48px; padding-bottom: 48px; }
}

@media (max-width: 720px) {
  nav .wrap {
    flex-wrap: wrap;
    height: auto;
    padding: 16px 24px;
    row-gap: 12px;
  }
  .nav-links { gap: 16px; flex-wrap: wrap; }
  .job-company { margin-left: 0; }
  .outputs-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-row, .contact-links { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .resource-grid { grid-template-columns: 1fr; gap: 32px; }
  footer .wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 480px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .hero { padding-top: 100px; padding-bottom: 64px; }
  section { padding-top: 56px; padding-bottom: 56px; }
  h1.name { font-size: 42px; }
  .headline { font-size: 17px; }
  .rule { margin-bottom: 26px; }
  .nav-mark { font-size: 12px; letter-spacing: 2px; }
  .nav-links a { font-size: 11.5px; }
  h2.section-title { font-size: 28px; margin-bottom: 32px; }
  .about-text { font-size: 16px; }
  .stack-row { gap: 24px; margin-top: 40px; padding-top: 32px; }
  .job-role { font-size: 17px; }
  .job li { font-size: 13px; }
  .btn { padding: 13px 20px; font-size: 12px; }
}
