:root {
  --header-h: 106px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

html[data-theme="dark"] {
  --bg: #060708;
  --text: #f4efe8;
  --muted: rgba(244, 239, 232, 0.76);
  --soft: rgba(244, 239, 232, 0.46);
  --line: rgba(244, 239, 232, 0.14);
  --line-strong: rgba(244, 239, 232, 0.2);
  --accent: #f0cd4a;
  --button-surface: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] {
  --bg: #f6f2eb;
  --text: #1f1b18;
  --muted: rgba(31, 27, 24, 0.74);
  --soft: rgba(31, 27, 24, 0.46);
  --line: rgba(31, 27, 24, 0.12);
  --line-strong: rgba(31, 27, 24, 0.18);
  --accent: #9a7400;
  --button-surface: rgba(255, 255, 255, 0.62);
}

html {
  scroll-behavior: smooth;
}

body.inner-page {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 10%, rgba(130, 166, 255, 0.08), transparent 30%),
    var(--bg);
  font-family: "Manrope", sans-serif;
}

.inner-page .site-header {
  --case-line: var(--line);
  --case-line-strong: var(--line-strong);
  --case-text: var(--text);
  --case-muted: var(--muted);
  --case-ease: var(--ease);
}

.inner-page__main {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 120px) 0 70px;
}

.inner-page__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(32px, 7vw, 110px);
  align-items: end;
  padding-bottom: clamp(52px, 8vw, 110px);
  border-bottom: 1px solid var(--line);
}

.inner-page__eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 700;
}

.inner-page__hero h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3rem, 7.2vw, 8rem);
  font-weight: 430;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.text-accent {
  color: var(--accent);
}

.inner-page__hero > p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.7;
}

.inner-page__section {
  padding-top: clamp(54px, 8vw, 110px);
}

.inner-page__section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 30px;
  margin-bottom: 38px;
}

.inner-page__section h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.4rem);
  font-weight: 450;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.inner-page__section-head p,
.inner-page__text {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.inner-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.inner-page__card {
  min-height: 250px;
  padding: clamp(24px, 3vw, 42px);
  background: var(--bg);
}

.inner-page__card span {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}

.inner-page__card h3 {
  margin: 36px 0 12px;
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  letter-spacing: -0.04em;
}

.inner-page__card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.inner-page .portfolio-grid {
  margin-top: 0;
}

.inner-page .contact-shell {
  margin-top: 0;
}

.inner-page__footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.78rem;
}

.inner-page__footer a {
  color: var(--muted);
}

.nav a[aria-current="page"] {
  color: var(--accent);
}

@media (max-width: 900px) {
  .inner-page__hero,
  .inner-page__section-head {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .inner-page__main {
    width: min(100% - 24px, 1440px);
    padding-top: 42px;
  }

  .inner-page__hero h1 {
    font-size: clamp(2.75rem, 15vw, 4.8rem);
  }

  .inner-page__grid {
    grid-template-columns: 1fr;
  }

  .inner-page__footer {
    display: grid;
  }
}
