:root {
  --paper: #fffaf2;
  --surface: #ffffff;
  --ink: #252525;
  --soft-ink: #64605a;
  --line: #eadfce;
  --teal: #2f7f83;
  --teal-dark: #1f5f63;
  --rose: #c96d7b;
  --gold: #d69b35;
  --lavender: #8d79b8;
  --shadow: 0 18px 42px rgba(62, 50, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 5vw, 70px);
  background: rgba(255, 250, 242, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-title {
  font-weight: 800;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--soft-ink);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--teal-dark);
}

.hero {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.hero h1,
.page-hero h1,
.section-heading h2,
.essay-header h1 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 6.4rem);
  max-width: 9ch;
}

.intro {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--soft-ink);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
}

.hero-art {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.hero-art img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section,
.page-hero,
.content-page,
.essay-page {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: clamp(44px, 7vw, 74px) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2,
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card,
.feature-item,
.gallery-card,
.essay-link {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(62, 50, 35, 0.07);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover,
.card:focus-visible,
.feature-item:hover,
.feature-item:focus-visible,
.gallery-card:hover,
.gallery-card:focus-visible,
.essay-link:hover,
.essay-link:focus-visible {
  border-color: rgba(47, 127, 131, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card {
  min-height: 180px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card span,
.essay-link strong,
.feature-item strong {
  font-size: 1.2rem;
}

.card p,
.feature-label,
.page-hero p,
.essay-link p,
.empty-note,
.gallery-card p,
.essay-header p,
.essay-body p,
.comments li {
  color: var(--soft-ink);
}

.card p {
  margin: 18px 0 0;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-item {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.feature-label {
  font-size: 0.9rem;
}

.site-footer {
  margin-top: 42px;
  padding: 28px clamp(18px, 5vw, 70px);
  background: #2d2a26;
  color: #fff7eb;
}

.site-footer p {
  margin: 0;
}

.page-hero {
  padding: clamp(42px, 7vw, 78px) 0 30px;
}

.page-hero p {
  max-width: 650px;
  margin: 14px 0 0;
  font-size: 1.15rem;
}

.content-page {
  padding: 18px 0 74px;
}

.essay-list,
.gallery-grid {
  display: grid;
  gap: 16px;
}

.essay-link {
  display: block;
  padding: 24px;
}

.essay-link p {
  margin: 10px 0 0;
}

.gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery-card div {
  padding: 18px;
}

.gallery-card h2 {
  margin: 0;
  font-size: 1.3rem;
}

.gallery-card p,
.empty-note {
  margin: 8px 0 0;
}

.empty-note {
  max-width: 680px;
  padding: 24px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 18px;
}

.essay-page {
  max-width: 820px;
  padding: clamp(42px, 7vw, 78px) 0;
}

.essay-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.essay-header h1 {
  font-size: clamp(2.4rem, 7vw, 4.8rem);
}

.essay-header p {
  margin: 16px 0 0;
  font-size: 1.12rem;
}

.pdf-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--teal-dark);
  font-weight: 700;
}

.essay-body {
  padding-top: 28px;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2vw, 1.22rem);
}

.essay-body p {
  margin: 0 0 1.15em;
}

.comments {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.comments h2 {
  margin: 0 0 12px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 1.4rem;
}

.comments ul {
  margin: 0;
  padding-left: 22px;
}

.comments li + li {
  margin-top: 10px;
}

@media (max-width: 860px) {
  .hero,
  .card-grid,
  .feature-list,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    transform: none;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }
}
