/* base */

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

:root {
  --bg:       #0d0d0d;
  --surface:  #141414;
  --border:   #1f1f1f;
  --accent:   #00ff88;
  --accent2:  #00ccff;
  --muted:    #555;
  --text:     #d4d4d4;
  --heading:  #f0f0f0;
  --mono:     "JetBrains Mono", "Fira Code", "Courier New", monospace;
  --sans:     -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max:      720px;
  --gap:      2rem;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

/* flash */

.flash {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-family: var(--mono);
  text-align: center;
}

.flash--success {
  background: rgba(0, 255, 136, 0.08);
  color: var(--accent);
  border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.flash--error {
  background: rgba(255, 60, 60, 0.08);
  color: #ff6b6b;
  border-bottom: 1px solid rgba(255, 60, 60, 0.2);
}

/* hero */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem 4rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(0, 255, 136, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(0, 204, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.hero__tag {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero__headline {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 580px;
  margin-bottom: 1.25rem;
}

.hero__sub:last-of-type {
  margin-bottom: 2.5rem;
}

/* button */

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--bg);
  background: var(--accent);
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.15s, transform 0.1s;
}

.btn:hover {
  background: #00e07a;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* sections */

section {
  padding: 5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

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

.section-title {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent2);
  letter-spacing: 0.08em;
  margin-bottom: 3rem;
}

/* beliefs */

.belief-grid {
  display: grid;
  gap: 3rem;
}

.belief {
  position: relative;
  padding-left: 3.5rem;
}

.belief__num {
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.belief h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.belief p {
  font-size: 0.975rem;
  color: var(--text);
}

/* work */

.project-list {
  display: grid;
  gap: 2rem;
}

.project {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.75rem;
  transition: border-color 0.15s;
}

.project--link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.project--link:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.project__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.project__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading);
}

.project__status {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--muted);
  color: var(--muted);
  letter-spacing: 0.05em;
}

.project__status--live {
  border-color: var(--accent);
  color: var(--accent);
}

.project__desc {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.project__stack {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* reading */

.reading__intro {
  font-size: 0.975rem;
  margin-bottom: 2rem;
  max-width: 520px;
}

.reading__list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.reading__list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

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

.reading__title {
  font-weight: 600;
  color: var(--heading);
  font-size: 1rem;
}

.reading__author {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* contact */

.contact__intro {
  font-size: 0.975rem;
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
  max-width: 520px;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.form-field input,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--heading);
  font-family: var(--sans);
  font-size: 0.975rem;
  padding: 0.75rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}

/* footer */

.footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* responsive */

@media (max-width: 600px) {
  .hero {
    padding: 4rem 1.25rem 3rem;
  }

  section {
    padding: 3.5rem 1.25rem;
  }

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