/* ─── Variables ─── */
:root {
  --black: #0e0e0e;
  --white: #f7f5f2;
  --grey-light: #e8e5e0;
  --grey-mid: #999490;
  --grey-dark: #3a3835;
  --accent: #b8a98a;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'DM Mono', monospace;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--white);
  color: var(--black);
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ─── Header ─── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-light);
  padding: 0 2.5rem;
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.name-first {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

.name-last {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--black);
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-mid);
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

nav a:hover,
nav a.active {
  color: var(--black);
  border-bottom-color: var(--black);
}

/* ─── Hero ─── */
.hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 7rem 2.5rem 5rem;
  animation: fadeUp 0.8s ease both;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.8rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 2rem;
}

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

.hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--grey-mid);
  max-width: 520px;
  line-height: 1.8;
}

/* ─── Articles section ─── */
.articles {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2.5rem 6rem;
  animation: fadeUp 0.8s 0.15s ease both;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 2.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--grey-light);
}

.article-card {
  border-bottom: 1px solid var(--grey-light);
  padding: 2.4rem 0;
  transition: background 0.2s;
}

.article-card a {
  display: block;
}

.article-card:hover .article-title {
  color: var(--grey-dark);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.article-date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--grey-mid);
  letter-spacing: 0.08em;
}

.article-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--grey-dark);
  padding: 0.2em 0.7em;
  border-radius: 2px;
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--black);
  margin-bottom: 0.9rem;
  transition: color 0.2s;
}

.article-excerpt {
  font-size: 1rem;
  color: var(--grey-mid);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 1.2rem;
}

.read-more {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.article-card:hover .read-more {
  color: var(--accent);
  border-color: var(--accent);
}

/* ─── Footer ─── */
footer {
  margin-top: auto;
  border-top: 1px solid var(--grey-light);
  padding: 1.8rem 2.5rem;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer span,
footer a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--grey-mid);
}

footer a:hover { color: var(--black); }

/* ─── Article page ─── */
.article-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 5rem 2.5rem 6rem;
  animation: fadeUp 0.7s ease both;
}

.article-page .back-link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--grey-mid);
  display: inline-block;
  margin-bottom: 3rem;
  transition: color 0.2s;
}

.article-page .back-link:hover { color: var(--black); }

.article-page .article-meta {
  margin-bottom: 1.5rem;
}

.article-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 1rem;
}

.article-page .article-intro {
  font-size: 1.2rem;
  color: var(--grey-mid);
  line-height: 1.8;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--grey-light);
}

.article-content p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--grey-dark);
  margin-bottom: 1.6rem;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--black);
  margin: 2.8rem 0 1rem;
}

.article-content blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--grey-dark);
}

/* ─── About page ─── */
.about-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 5rem 2.5rem 6rem;
  animation: fadeUp 0.7s ease both;
}

.about-page .back-link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--grey-mid);
  display: inline-block;
  margin-bottom: 3rem;
  transition: color 0.2s;
}

.about-page .back-link:hover { color: var(--black); }

.about-page h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 2.5rem;
}

.about-page h1 em { font-style: italic; color: var(--grey-dark); }

.about-page p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--grey-dark);
  margin-bottom: 1.5rem;
}

.about-page .contact-line {
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--grey-mid);
}

.about-page .contact-line a {
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 1px;
}

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  header { padding: 0 1.2rem; }
  .hero, .articles { padding-left: 1.2rem; padding-right: 1.2rem; }
  .hero { padding-top: 4rem; }
  .article-page, .about-page { padding: 3rem 1.2rem 5rem; }
  .footer-inner { flex-direction: column; gap: 0.6rem; text-align: center; }
}
