/* ── ANTHROPIC PRESS — SHARED STYLES ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: inherit; font-size: inherit; }

:root {
  --ink: #1a1a18;
  --cream: #FAF8F3;
  --paper: #f0ede6;
  --gold: #f59e0b;
  --gold-dark: #92400e;
  --rule: #d4d0c8;
  --mid: #4a4540;
  --light: #736b60;
}

html, body {
  width: 100%; min-height: 100%;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
}

body {
  font-family: 'Source Serif 4', Georgia, serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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.03'/%3E%3C/svg%3E");
}

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

/* ── PAGE CONTAINER ── */
.page {
  position: relative; z-index: 1;
  width: 100%; max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: fadeUp 0.8s ease forwards;
}

/* ── MASTHEAD / NAV ── */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  animation: fadeUp 0.8s ease 0.1s both;
}

.press-name {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--light);
  text-transform: uppercase;
}

.press-name a {
  color: inherit;
  text-decoration: none;
}

.press-name a:hover {
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
}

.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--light);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a.active {
  color: var(--gold-dark);
  border-bottom: 1px solid var(--gold);
}

/* ── FOOTER ── */
.site-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  animation: fadeUp 0.8s ease 0.6s both;
}

.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: var(--light);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: var(--light);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.footer-links a:hover {
  color: var(--gold-dark);
}

/* ── BLOG INDEX ── */
.blog-header {
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease 0.2s both;
}

.blog-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.blog-subtitle {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.5;
  font-style: italic;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-card {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--rule);
  animation: fadeUp 0.8s ease 0.3s both;
}

.article-card:last-child {
  border-bottom: none;
}

.article-card-date {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.article-card-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.article-card-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}

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

.article-card-excerpt {
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.6;
}

.article-card-read {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
  transition: color 0.2s;
}

.article-card-read:hover {
  color: var(--gold);
}

/* ── ARTICLE PAGE ── */
.article-header {
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease 0.2s both;
}

.article-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.article-meta a {
  color: var(--gold-dark);
  text-decoration: none;
}

.article-meta a:hover {
  color: var(--gold);
}

.article-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.article-subtitle {
  font-size: 1rem;
  color: var(--mid);
  font-style: italic;
  line-height: 1.5;
}

.article-body {
  animation: fadeUp 0.8s ease 0.35s both;
}

.article-body p {
  font-size: clamp(0.88rem, 1.5vw, 0.96rem);
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

.article-body h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--ink);
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--ink);
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

.article-body a {
  color: var(--gold-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  transition: color 0.2s;
}

.article-body a:hover {
  color: var(--gold);
}

.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.8rem 1.2rem;
  margin: 1.5rem 0;
  background: var(--paper);
  border-radius: 0 6px 6px 0;
}

.article-body blockquote p {
  font-style: italic;
  color: var(--mid);
  margin-bottom: 0;
}

.article-body ul, .article-body ol {
  padding-left: 1.2rem;
  margin-bottom: 1.2rem;
}

.article-body li {
  font-size: clamp(0.88rem, 1.5vw, 0.96rem);
  line-height: 1.75;
  margin-bottom: 0.4rem;
}

.article-body strong {
  font-weight: 600;
}

.article-body em {
  font-style: italic;
}

.article-body hr {
  border: none;
  height: 1px;
  background: var(--rule);
  margin: 2rem 0;
}

/* ── BOOK CALLOUT (reusable in articles) ── */
.book-entry {
  padding: 1.2rem 0;
  border-bottom: 1px dashed var(--rule);
}

.book-entry:last-child {
  border-bottom: none;
}

.book-entry-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.book-entry-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.book-entry-author {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--light);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.book-entry-body {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--mid);
}

.book-entry-body strong {
  color: var(--ink);
  font-weight: 600;
}

.book-entry-highlight {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.4rem 1.6rem;
  margin: 0.5rem 0;
}

.book-entry-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
}

.book-entry-link:hover {
  color: var(--gold);
}

/* ── ABOUT PAGE ── */
.about-header {
  animation: fadeUp 0.8s ease 0.2s both;
  margin-bottom: 2rem;
}

.about-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.about-role {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-body {
  animation: fadeUp 0.8s ease 0.35s both;
}

.about-body p {
  font-size: clamp(0.88rem, 1.5vw, 0.96rem);
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

.about-body a {
  color: var(--gold-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.about-body a:hover {
  color: var(--gold);
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  body { padding: 1.2rem; padding-top: 1.5rem; }
  .masthead { flex-direction: column; gap: 0.5rem; }
  .nav-links { gap: 0.8rem; }
  .site-footer { flex-direction: column; gap: 0.3rem; }
}
