:root {
  --bg: #f5f1eb;
  --bg-deep: #ece4d8;
  --surface: rgba(255, 252, 247, 0.86);
  --surface-strong: #fffdf9;
  --text: #1d1a16;
  --muted: #6b645b;
  --line: rgba(78, 66, 53, 0.14);
  --accent: #23323d;
  --accent-soft: #dfe8ed;
  --shadow: 0 18px 42px rgba(38, 28, 15, 0.08);
  --shadow-soft: 0 10px 28px rgba(38, 28, 15, 0.06);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(35, 50, 61, 0.08), transparent 34%),
    radial-gradient(circle at bottom right, rgba(172, 137, 95, 0.08), transparent 30%),
    linear-gradient(180deg, #fbf8f3 0%, var(--bg) 100%);
  line-height: 1.65;
}

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

a {
  color: inherit;
}

p,
h1,
h2,
h3,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.site-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 34px 0 44px;
}

.hero,
.about,
.projects,
.site-footer {
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.9fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
  min-height: min(100svh - 56px, 47rem);
  padding: clamp(32px, 7vw, 72px) 0 clamp(28px, 5vw, 48px);
}

.hero-copy {
  max-width: 44rem;
}

.eyebrow,
.project-index,
.panel-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Newsreader", serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 0.95;
  margin-top: 14px;
}

.hero-title {
  margin-top: 12px;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--accent);
  font-weight: 700;
}

.hero-text {
  max-width: 38rem;
  margin-top: 24px;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--muted);
}

.hero-actions,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 28px;
}

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

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #fbfaf7;
  box-shadow: var(--shadow-soft);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 14px 24px rgba(35, 50, 61, 0.18);
}

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

.hero-panel {
  align-self: start;
  padding: 26px;
  border-radius: var(--radius-lg);
}

.highlight-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.highlight-list li {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.highlight-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.highlight-list strong {
  font-size: 1rem;
}

.highlight-link {
  display: grid;
  gap: 4px;
  position: relative;
  padding-right: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, color 180ms ease;
}

.highlight-link::after {
  content: ">";
  position: absolute;
  top: 0;
  right: 0;
  color: rgba(35, 50, 61, 0.5);
  transition: transform 180ms ease, color 180ms ease;
}

.highlight-link:hover,
.highlight-link:focus-visible {
  transform: translateX(3px);
  color: var(--text);
}

.highlight-link:hover::after,
.highlight-link:focus-visible::after {
  transform: translateX(2px);
  color: var(--accent);
}

.highlight-list span,
.panel-note,
.section-copy,
.about-copy,
.project-description,
.feature-list li {
  color: var(--muted);
}

.panel-note {
  margin-top: 24px;
}

.about,
.projects {
  padding: clamp(24px, 3vw, 32px) 0 0;
}

.section-heading {
  display: grid;
  gap: 16px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
}

.section-heading-wide {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: end;
  gap: 24px;
}

.about-copy {
  max-width: 52rem;
  margin-top: 20px;
  font-size: 1.04rem;
}

.projects {
  scroll-margin-top: clamp(16px, 3vw, 32px);
}

.projects-copy {
  max-width: 52rem;
  margin-top: 20px;
  font-size: 1.04rem;
  color: var(--muted);
}

.project-stack {
  display: grid;
  gap: 28px;
  margin-top: 34px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(22px, 4vw, 40px);
  align-items: center;
  padding: clamp(20px, 3vw, 30px);
  border-radius: clamp(24px, 3vw, 32px);
  scroll-margin-top: 28px;
}

.project-card:nth-child(even) .project-media {
  order: 2;
}

.project-card:nth-child(even) .project-content {
  order: 1;
}

.project-media {
  padding: clamp(14px, 2vw, 18px);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(238, 229, 216, 0.75)),
    var(--bg-deep);
  border: 1px solid rgba(78, 66, 53, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.project-shot {
  aspect-ratio: 7 / 5;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(248, 243, 236, 0.92);
  box-shadow: 0 20px 32px rgba(29, 26, 22, 0.12);
}

.project-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 20px 32px rgba(29, 26, 22, 0.12);
}

.project-content {
  display: grid;
  gap: 18px;
}

.project-content h3 {
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  line-height: 1;
}

.project-description {
  font-size: 1rem;
}

.feature-list {
  display: grid;
  gap: 10px;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(35, 50, 61, 0.72);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list li {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(223, 232, 237, 0.55);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(40px, 7vw, 72px);
  padding: 8px 0 6px;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

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

  .hero {
    min-height: auto;
    padding-top: 20px;
  }

  .hero-panel {
    max-width: 42rem;
  }

  .project-card:nth-child(even) .project-media,
  .project-card:nth-child(even) .project-content {
    order: initial;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 24px), var(--max-width));
    padding-top: 22px;
  }

  .hero {
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 36px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.2rem);
  }

  .hero-text,
  .about-copy,
  .projects-copy,
  .project-description,
  .section-copy,
  .feature-list li,
  .panel-note {
    font-size: 0.98rem;
  }

  .hero-panel,
  .project-card {
    border-radius: 24px;
  }

  .project-card {
    gap: 20px;
    padding: 18px;
  }

  .project-media {
    padding: 12px;
  }

  .project-content {
    gap: 16px;
  }

  .project-actions,
  .hero-actions {
    gap: 12px;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    margin-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
