:root {
  --bg: #f8e6d0;
  --surface: rgba(255, 249, 241, 0.86);
  --surface-strong: rgba(255, 246, 236, 0.98);
  --text: #21160d;
  --muted: #735744;
  --line: rgba(82, 43, 10, 0.11);
  --accent: #f26a21;
  --accent-bright: #ff9436;
  --accent-deep: #c44709;
  --accent-glow: rgba(242, 106, 33, 0.2);
  --shadow: 0 24px 70px rgba(92, 45, 6, 0.13);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 148, 54, 0.28), transparent 26%),
    radial-gradient(circle at 88% 14%, rgba(242, 106, 33, 0.2), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(196, 71, 9, 0.12), transparent 30%),
    linear-gradient(180deg, #fff1df 0%, var(--bg) 54%, #f2dcc3 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(48, 24, 7, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 24, 7, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 82%);
}

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

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(89, 45, 8, 0.08);
  position: sticky;
  top: 18px;
  z-index: 10;
}

.wordmark,
.topnav a,
.footer-link {
  color: inherit;
  text-decoration: none;
}

.wordmark {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.topnav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.topnav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.topnav a:hover,
.wordmark:hover,
.footer-link:hover,
.button:hover,
.social-link:hover,
.project-card:hover {
  transform: translateY(-2px);
}

.hero-stage {
  position: relative;
  margin-bottom: 28px;
}

.hero-photo-card,
.hero-intro-card,
.card,
.project-card,
.footer {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-photo-card {
  position: relative;
  overflow: hidden;
  min-height: 72vh;
  border-radius: 42px;
  background: #d9c2a3;
}

.hero-photo-card img {
  width: 100%;
  height: 72vh;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(1.03) contrast(1.02);
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 11, 6, 0.08) 0%, rgba(17, 11, 6, 0.14) 48%, rgba(17, 11, 6, 0.42) 100%),
    radial-gradient(circle at 78% 18%, rgba(255, 148, 54, 0.18), transparent 24%);
}

.hero-intro-card {
  position: relative;
  width: min(760px, 100%);
  margin: 22px auto 0;
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius-xl);
  background: rgba(255, 246, 236, 0.9);
}

.eyebrow,
.section-tag,
.project-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
}

.hero-intro-card h1 {
  margin: 16px 0 16px;
  font-family: "Instrument Serif", serif;
  font-size: clamp(3.3rem, 8vw, 6rem);
  line-height: 0.94;
  font-weight: 400;
}

.hero-intro-card h1 span {
  display: block;
  margin-top: 18px;
  max-width: 13ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.02rem, 2.1vw, 1.45rem);
  line-height: 1.28;
  font-weight: 500;
  color: var(--muted);
}

.hero-text,
.narrative-card p,
.social-copy small,
.project-card p,
.footer p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button,
.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff7f0;
  box-shadow: 0 12px 28px rgba(242, 106, 33, 0.26);
}

.button-secondary {
  border-color: rgba(82, 43, 10, 0.12);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 24px;
  margin-bottom: 28px;
}

.card {
  border-radius: var(--radius-lg);
  padding: 28px;
}

.narrative-card h2,
.section-heading h2 {
  margin: 12px 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  font-weight: 400;
}

.links-panel {
  background:
    radial-gradient(circle at top right, rgba(255, 148, 54, 0.18), transparent 30%),
    var(--surface-strong);
}

.compact-heading {
  margin-bottom: 18px;
}

.links-stack {
  display: grid;
  gap: 14px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(82, 43, 10, 0.1);
  background: rgba(255, 255, 255, 0.54);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.social-link:hover {
  border-color: rgba(196, 71, 9, 0.24);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 34px rgba(196, 71, 9, 0.12);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(242, 106, 33, 0.16), rgba(255, 255, 255, 0.92));
  color: var(--accent-deep);
  flex: 0 0 auto;
}

.social-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.social-copy strong {
  font-size: 1rem;
}

.social-copy small {
  font-size: 0.92rem;
}

.projects-section {
  margin-bottom: 28px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.project-card {
  display: block;
  padding: 28px;
  border-radius: var(--radius-lg);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.featured-project {
  background:
    radial-gradient(circle at top right, rgba(255, 148, 54, 0.16), transparent 28%),
    var(--surface-strong);
}

.project-card:hover {
  border-color: rgba(196, 71, 9, 0.24);
  box-shadow: 0 20px 40px rgba(196, 71, 9, 0.12);
}

.project-card h3 {
  margin: 12px 0 10px;
  font-size: 1.35rem;
}

.project-link-text {
  display: inline-flex;
  margin-top: 10px;
  font-weight: 600;
  color: var(--accent-deep);
}

.project-placeholder {
  background: rgba(255, 252, 247, 0.72);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 24px;
}

.footer-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  font: inherit;
}

.footer-link.copied {
  background: rgba(242, 106, 33, 0.12);
  border-color: rgba(196, 71, 9, 0.24);
}

@media (max-width: 980px) {
  .content-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .section-heading,
  .footer {
    align-items: start;
    flex-direction: column;
  }

  .hero-photo-card,
  .hero-photo-card img {
    min-height: 58vh;
    height: 58vh;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 18px, 100%);
    padding-top: 14px;
  }

  .topbar {
    position: static;
    border-radius: 24px;
    padding: 16px;
  }

  .hero-photo-card {
    min-height: 50vh;
    border-radius: 30px;
  }

  .hero-photo-card img {
    height: 50vh;
  }

  .hero-intro-card {
    width: 100%;
    margin-top: 18px;
    border-radius: 28px;
  }

  .hero-intro-card h1 {
    font-size: clamp(2.8rem, 15vw, 4.4rem);
  }

  .card,
  .project-card {
    padding: 22px;
    border-radius: 24px;
  }

  .social-link {
    padding: 14px 16px;
  }
}
