:root {
  color-scheme: light;
  --ink: #101315;
  --muted: #6d6f73;
  --paper: #f7f4ef;
  --paper-alt: #fffaf4;
  --accent: #c55b2a;
  --accent-2: #2f6f6b;
  --border: rgba(16, 19, 21, 0.12);
  --shadow: 0 24px 60px rgba(16, 19, 21, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, rgba(197, 91, 42, 0.12), transparent 55%),
    radial-gradient(circle at 15% 30%, rgba(47, 111, 107, 0.18), transparent 45%),
    linear-gradient(140deg, #f7f4ef, #f3ede4 50%, #fdf8f2);
}

img {
  max-width: 100%;
  display: block;
}

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

p {
  line-height: 1.6;
  color: var(--ink);
}

ul {
  padding-left: 1.1rem;
  margin: 0;
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.skip-link:focus {
  left: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(247, 244, 239, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo {
  font-family: "Fraunces", "Georgia", serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.95rem;
}

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

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

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(2.6rem, 4vw, 4rem);
  margin: 0.2rem 0 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent-2);
  margin: 0;
}

.hero-card {
  background: var(--paper-alt);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-card img {
  height: 260px;
  object-fit: cover;
}

.hero-card-caption {
  padding: 1rem 1.2rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.hero-card-caption a {
  color: var(--accent);
  font-weight: 600;
}

.section {
  margin-top: 4rem;
}

.section-heading h2,
.section-heading h1 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 0.4rem;
}

.section-heading p {
  color: var(--muted);
}

.article-layout {
  max-width: 760px;
  margin: 0 auto;
}

.article-body h2 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  margin-top: 2.5rem;
}

.article-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.article-card .text-link {
  color: var(--accent);
  font-weight: 600;
}

.article-card h3 a {
  color: var(--ink);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.info-card,
.project-card,
.writing-card,
.video-card {
  background: var(--paper-alt);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 12px 24px rgba(16, 19, 21, 0.08);
}

.info-card h3,
.project-card h3,
.writing-card h3 {
  font-family: "Fraunces", "Georgia", serif;
  margin-top: 0;
}

.project-card a {
  color: var(--accent);
  font-weight: 600;
}

.writing-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(197, 91, 42, 0.25);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.button.ghost:hover {
  box-shadow: 0 8px 16px rgba(16, 19, 21, 0.12);
}

.project-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.meta-list {
  list-style: none;
  padding-left: 0;
}

.meta-list li {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.video {
  position: relative;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.page {
  padding-top: 2rem;
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

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

.muted {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-card img {
    height: 220px;
  }

  .writing-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .button {
    transition: none;
  }
}
