@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&display=swap');

:root {
  --bg:       #FAFAF7;
  --bg2:      #F2F1EC;
  --bg3:      #E8E7E2;
  --border:   #DDDCD6;
  --gold:     #2B4C3F;
  --gold-dim: #8C8B85;
  --cream:    #1C1C1A;
  --muted:    #5C5B56;
  --text:     #1C1C1A;
  --accent:   #2B4C3F;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.25;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--cream); }

h1, h2, h3, h4, h5 {
  font-family: 'Source Serif 4', serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--cream);
}
p { margin-bottom: 1.2em; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,250,247,0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: 'Source Serif 4', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.nav-logo:hover { color: var(--cream); }

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--muted);
  transition: all 0.3s;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(250,250,247,0.98);
    flex-direction: column;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 2.5rem; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-hamburger { display: flex; }
}

/* LAYOUT */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 2.5rem 5rem;
}

.page-wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 2.5rem 5rem;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--gold-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.06;
  margin-bottom: 0.3rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.35s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: var(--muted);
  font-style: italic;
  margin: 1.2rem 0 2.5rem;
  max-width: 580px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-bio {
  max-width: 600px;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 2.8rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.65s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.3rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: all 0.2s;
  display: inline-block;
}
.btn:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }

.btn-ghost {
  border-color: var(--border);
  color: var(--muted);
}
.btn-ghost:hover { background: var(--border); color: var(--cream); border-color: var(--border); }

/* SECTION LABEL */
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  color: var(--gold-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* HOME PREVIEW SECTIONS */
.home-section { margin-bottom: 5.5rem; }
.home-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.8rem;
}
.home-section-header h2 {
  font-size: 1.8rem;
  font-weight: 400;
}
.home-section-header a {
  font-family: 'Inter', sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-section-header a:hover { color: var(--gold); }

/* CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
}

.card {
  background: var(--bg2);
  padding: 1.8rem;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-right: 1px solid var(--border);
}
.card:hover { background: var(--bg3); }

.card-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  color: var(--gold-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.25;
}

.card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 0;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  color: var(--muted);
}

/* PAGE HEADER */
.page-header {
  margin-bottom: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 300;
  margin-bottom: 0.8rem;
}
.page-header p {
  color: var(--muted);
  font-style: italic;
  font-size: 1.05rem;
  max-width: 580px;
  margin-bottom: 0;
}

/* ENTRY LIST */
.entry-list { display: flex; flex-direction: column; }

.entry {
  display: grid;
  grid-template-columns: 2.5rem 1fr 6rem;
  gap: 1.5rem;
  align-items: start;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
}
.entry:first-child { border-top: 1px solid var(--border); }

.entry-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  color: var(--gold-dim);
  padding-top: 0.4rem;
  letter-spacing: 0.06em;
}

.entry-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  color: var(--gold-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.entry h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.4rem;
  line-height: 1.2;
  transition: color 0.2s;
}
.entry:hover h3 { color: var(--gold); }

.entry p {
  font-size: 0.93rem;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.6;
}

.entry-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  color: var(--muted);
  text-align: right;
  padding-top: 0.4rem;
  letter-spacing: 0.04em;
}

/* ARTICLE PAGE */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--gold); }

.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.article-header .article-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  color: var(--gold-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}
.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 1.2rem;
  line-height: 1.1;
}
.article-meta {
  display: flex;
  gap: 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
}

.article-body {
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--text);
}
.article-body h2 {
  font-size: 1.55rem;
  margin: 2.5rem 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.article-body h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.5rem;
  color: var(--gold);
}
.article-body blockquote {
  border-left: 2px solid var(--gold-dim);
  padding: 0.4rem 0 0.4rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted);
}

/* TIMELINE */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6rem; bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.55rem;
  width: 7px; height: 7px;
  background: var(--gold-dim);
  border-radius: 50%;
  transform: translateX(-3px);
}

.timeline-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  color: var(--gold-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.timeline-item h3 {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.15rem;
}

.timeline-item h4 {
  font-size: 0.97rem;
  font-weight: 300;
  color: var(--muted);
  font-style: italic;
  font-family: 'Source Serif 4', serif;
  margin-bottom: 0.8rem;
}

.timeline-item ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.5rem;
}
.timeline-item ul li {
  font-size: 0.97rem;
  color: var(--text);
  padding-left: 1.3rem;
  position: relative;
}
.timeline-item ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold-dim);
}

/* TAGS */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}
.tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.18rem 0.45rem;
  opacity: 0.8;
}

/* PAPER CARDS */
.paper-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 1px;
  transition: border-color 0.2s;
}
.paper-card:hover { border-color: var(--gold); }
.paper-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.paper-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.paper-status {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border: 1px solid;
}
.status-accepted { color: #2B4C3F; border-color: #2B4C3F; }
.status-submitted { color: #2B4C3F; border-color: #2B4C3F; }
.status-working   { color: var(--gold-dim); border-color: var(--gold-dim); opacity: 0.8; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 4rem;
}
.footer-name {
  font-family: 'Source Serif 4', serif;
  font-size: 1.1rem;
  color: var(--gold);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-links a:hover { color: var(--gold); }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .page-wrap, .page-wrap-narrow { padding: 85px 1.2rem 4rem; }
  .hero { padding: 0 1.2rem; }
  nav { padding: 0 1.2rem; }
  .entry { grid-template-columns: 1fr; }
  .entry-num, .entry-date { display: none; }
  footer { padding: 2rem 1.2rem; }
  .card-grid { grid-template-columns: 1fr; }
}
