/* ═══════════════════════════════════════════════
   Flynn Lachendro — Personal Site
   Cream / Orange / Brown · Monospace · Geometric
   ═══════════════════════════════════════════════ */

:root {
  --bg: #F5F0E8;
  --text: #3B2F2F;
  --text-muted: #7A6A5E;
  --accent: #D4622B;
  --accent-hover: #B8501F;
  --brown: #5C3D2E;
  --border: #D4C9B8;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
}

/* ── Reset & Base ──────────────────────────────── */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Container ─────────────────────────────────── */

.container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 3rem 3rem 2rem;
}

/* ── Header ────────────────────────────────────── */

header {
  margin-bottom: 1.5rem;
}

.hero-line {
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.name-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  fill: var(--text);
}

.tagline {
  color: var(--accent);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ── Dividers (full-width hr) ──────────────────── */

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
  width: 100%;
}

/* ── Scattered geometric elements ──────────────── */

.scatter {
  display: block;
  height: auto;
  overflow: visible;
  margin: 1rem 0;
}

.scatter-1 {
  width: 160px;
  margin-left: auto;
}

.scatter-2 {
  width: 140px;
  margin: 0.75rem 0;
}

.scatter-3 {
  width: 150px;
  margin-left: auto;
  margin-right: 1rem;
}

.scatter-4 {
  width: 120px;
  margin: 1rem 0;
}

/* ── Sections ──────────────────────────────────── */

section {
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* ── About ─────────────────────────────────────── */

.about p {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  margin: 0;
}

.about a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.about a:hover {
  border-bottom-color: var(--accent);
}

.thesis-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.thesis-link:hover {
  color: var(--accent);
}

/* ── Projects ──────────────────────────────────── */

.project {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.project:last-child {
  border-bottom: none;
}

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

.project-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

.project-tag {
  font-size: 0.65rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.project-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.project-link:hover {
  color: var(--accent-hover);
}

/* ── Open Source ────────────────────────────────── */

.github-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Links ─────────────────────────────────────── */

.link-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  width: fit-content;
}

.social-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Selection ─────────────────────────────────── */

::selection {
  background-color: var(--accent);
  color: var(--bg);
}

/* ── Responsive ────────────────────────────────── */

@media (max-width: 600px) {
  .container {
    padding: 2rem 1rem 1.5rem;
  }

  h1 {
    font-size: 1.25rem;
  }

  .scatter {
    display: none;
  }
}
