/* ─────────────────────────────────────────────
   UncasualThoughts — shared styles
   ───────────────────────────────────────────── */

:root {
  --bg: #0C0D10;
  --bg-elevated: #14161c;
  --border: #23252e;
  --text: #ECE8DB;
  --text-muted: #8B8E96;
  --text-dim: #5a5d65;
  --accent: #B6F04D;
  --amber: #F4A261;
  --display: 'Fraunces', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-weight: 350;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-variation-settings: "opsz" 14, "SOFT" 50;
}

/* Subtle paper grain — replaced with images/texture.jpg if you drop one in */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

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

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

/* ─────────────────────────────────────────────
   HEADER (used on both pages)
   ───────────────────────────────────────────── */

header {
  padding: 28px 0;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.brand-link:hover { color: var(--accent); }
.brand-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
}

/* ─────────────────────────────────────────────
   FOOTER (used on both pages)
   ───────────────────────────────────────────── */

footer {
  padding: 32px 0 40px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-align: center;
}
footer a { transition: color 0.2s; }
footer a:hover { color: var(--accent); }

/* ─────────────────────────────────────────────
   HOME — UncasualThoughts imprint
   ───────────────────────────────────────────── */

.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 32px 120px;
}

.home-mark {
  width: 36px; height: 36px;
  margin-bottom: 40px;
  opacity: 0.85;
}

.home-name {
  font-family: var(--display);
  font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(54px, 11vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}
.home-name em {
  font-style: italic;
  font-weight: 300;
}

.home-tagline {
  font-family: var(--display);
  font-weight: 350;
  font-style: italic;
  font-variation-settings: "opsz" 24;
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--text-muted);
  max-width: 38ch;
  line-height: 1.45;
  margin-bottom: 80px;
}

.home-section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.home-section-label::before,
.home-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 60px;
}

.author-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.author-list a {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 96;
  font-size: clamp(28px, 3.5vw, 38px);
  letter-spacing: -0.015em;
  color: var(--text);
  display: inline-block;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s, transform 0.2s;
}
.author-list a::after {
  content: '→';
  font-size: 0.7em;
  margin-left: 14px;
  display: inline-block;
  transition: transform 0.2s;
  color: var(--accent);
  vertical-align: middle;
}
.author-list a:hover { color: var(--accent); }
.author-list a:hover::after { transform: translateX(4px); }

/* ─────────────────────────────────────────────
   AUTHOR PAGE — Fun
   ───────────────────────────────────────────── */

.author-hero {
  padding: 80px 0 60px;
  text-align: center;
}

.author-name {
  font-family: var(--display);
  font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(120px, 24vw, 280px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--text);
  margin-bottom: 28px;
}
.author-name em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.author-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.author-meta::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--text-dim);
  vertical-align: middle;
  margin-right: 14px;
}
.author-meta::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--text-dim);
  vertical-align: middle;
  margin-left: 14px;
}

/* Thesis list */

.thesis-section {
  padding: 80px 0 60px;
}

.thesis-list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.thesis {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  align-items: start;
}

.thesis-status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
}
.thesis-status svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.thesis-status.published svg { color: var(--text); }
.thesis-status.in-progress svg { color: var(--accent); }
.thesis-status.in-progress { color: var(--accent); }

.thesis-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.thesis-title {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 72;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.thesis-subtitle {
  font-family: var(--display);
  font-weight: 350;
  font-style: italic;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 60ch;
}

.thesis-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.thesis-links a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.thesis-links a:hover { opacity: 0.7; }
.thesis-links a .arrow { transition: transform 0.2s; display: inline-block; }
.thesis-links a:hover .arrow { transform: translateX(3px); }
.thesis-links a.muted {
  color: var(--text-dim);
  border-bottom-color: var(--border);
  cursor: default;
  pointer-events: none;
}
.thesis-links a.muted::after {
  content: 'soon';
  font-size: 9px;
  letter-spacing: 0.1em;
  margin-left: 6px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 2px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */

@media (max-width: 700px) {
  .container { padding: 0 22px; }
  .home { padding: 40px 22px 80px; }
  .home-tagline { margin-bottom: 60px; }
  .author-hero { padding: 40px 0 40px; }
  .thesis {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 36px 0;
  }
  .thesis-status { padding-top: 0; }
  .thesis-links { gap: 18px; flex-direction: column; }
  .thesis-section { padding: 40px 0 40px; }
}

/* ─────────────────────────────────────────────
   ENTRANCE
   ───────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.home > * { animation: fadeUp 0.8s ease backwards; }
.home-mark { animation-delay: 0.05s; }
.home-name { animation-delay: 0.15s; }
.home-tagline { animation-delay: 0.3s; }
.home-section-label { animation-delay: 0.45s; }
.author-list { animation-delay: 0.55s; }

.author-hero > * { animation: fadeUp 0.8s ease backwards; }
.author-name { animation-delay: 0.1s; }
.author-meta { animation-delay: 0.3s; }
.thesis { animation: fadeUp 0.8s ease backwards; animation-delay: 0.5s; }
