:root {
  --bg: #f7f4ee;
  --surface: #fbfaf7;
  --text: #1d1a17;
  --muted: #645d57;
  --line: #d8d1c8;
  --accent: #2d3e4f;
  --accent-soft: #e9eef2;
  --max-width: 1160px;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 10px 30px rgba(20, 16, 10, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(247, 244, 238, 0.88);
  border-bottom: 1px solid rgba(216, 209, 200, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.96rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.button {
  background: var(--accent);
  color: #fff;
}

.button:hover { transform: translateY(-1px); }

.button-secondary {
  color: var(--accent);
  background: transparent;
}

.hero {
  padding: 6.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2rem;
  align-items: end;
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  margin-bottom: 1rem;
}

.hero h1,
.page-hero h1,
.project-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.hero h1 { font-size: clamp(2.8rem, 7vw, 5.7rem); }
.page-hero h1,
.project-hero h1 { font-size: clamp(2.4rem, 6vw, 4.3rem); }

.hero-copy {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-card,
.panel,
.project-cover,
.entry-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.6rem;
}

.hero-card .kicker {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.75rem;
  margin: 0.5rem 0 0.75rem;
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
}

.section {
  padding: 2rem 0 4rem;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  margin: 0;
}

.section-intro {
  max-width: 44rem;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.project-card,
.entry-card,
.panel {
  padding: 1.25rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
}

.project-thumb {
  aspect-ratio: 1 / 1.25;
  border-radius: 18px;
  background: linear-gradient(145deg, #e4ddd2 0%, #d0c7ba 100%);
  position: relative;
  overflow: hidden;
}

.project-thumb.dark {
  background: linear-gradient(145deg, #1a2128 0%, #465765 100%);
  color: #fff;
}

.project-thumb.wine {
  background: linear-gradient(145deg, #6c463d 0%, #cab39f 100%);
  color: #fff;
}

.thumb-inner {
  position: absolute;
  inset: 0;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.thumb-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

.thumb-title {
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1;
  max-width: 8ch;
}

.project-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
}

.project-card h3,
.entry-card h3,
.panel h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
}

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

.link-row {
  margin-top: auto;
  color: var(--accent);
  font-size: 0.95rem;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
}

.page-hero,
.project-hero {
  padding: 4.5rem 0 2rem;
}

.page-hero-copy {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 46rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.info-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
}

.info-item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.project-cover {
  overflow: hidden;
}

.project-cover .project-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 0;
}

.entry-list {
  display: grid;
  gap: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.contact-card {
  padding: 1.5rem;
}

.site-footer {
  padding: 2.2rem 0 3rem;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
}

.footer-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.footer-links a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.small {
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .contact-grid,
  .footer-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    right: 1rem;
    top: 72px;
    width: min(280px, calc(100% - 2rem));
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  .hero { padding-top: 5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button, .button-secondary { width: 100%; }
}
