﻿:root {
  --bg: #f2efe9;
  --surface: #ffffff;
  --surface-soft: #f8f6f2;
  --text: #111111;
  --text-soft: rgba(17, 17, 17, 0.72);
  --border: rgba(17, 17, 17, 0.12);
  --accent: #0f1216;
  --accent-soft: #262c33;
  --line: #e5e1d8;
  --shadow-soft: 0 24px 60px -44px rgba(17, 17, 17, 0.5);
  --radius-lg: 28px;
  --radius-md: 16px;
  --container: min(1140px, 92vw);
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  background: var(--bg);
  color: var(--text);
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
ul {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 1rem;
}

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-height);
  z-index: 30;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

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

.site-nav a {
  position: relative;
  padding: 0.35rem 0;
  font-weight: 600;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -3px);
}

.hero {
  min-height: clamp(500px, 88vh, 900px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: #fff;
  margin-top: var(--header-height);
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  isolation: isolate;
  background-image:
    linear-gradient(140deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.35)),
    url('/painting/IMG_20240916_231826.jpg');
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.12), transparent 42%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  gap: 1rem;
  max-width: 680px;
}

.hero-eyebrow {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.8);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.5rem);
}

h3 {
  font-size: 1.18rem;
}

.hero-text {
  max-width: 60ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  background: #fff;
  color: var(--accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -24px rgba(0, 0, 0, 0.45);
}

.button--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.button--wide {
  width: 100%;
  text-align: center;
}

.section {
  padding: clamp(3.6rem, 8vw, 5.5rem) 0;
}

.section-muted {
  background: var(--surface-soft);
}

.section-head {
  max-width: 780px;
  margin-bottom: 2rem;
}

.section-kicker {
  margin: 0;
  text-transform: uppercase;
  color: var(--text-soft);
  letter-spacing: 0.16em;
  font-size: 0.8rem;
}

.section-head p {
  color: var(--text-soft);
  margin-top: 0.6rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.work-card:hover,
.work-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 26px 58px -35px rgba(17, 17, 17, 0.6);
}

.work-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.work-card__body {
  padding: 1rem;
}

.work-card__body p {
  margin: 0.55rem 0 0;
  color: var(--text-soft);
}

.section-foot {
  margin-top: 1.8rem;
}

.contacts-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.contact-link img {
  width: 24px;
  height: 24px;
}

.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-2px);
  color: var(--accent-soft);
  box-shadow: 0 16px 34px -28px rgba(17, 17, 17, 0.65);
}

.section,
.hero,
.site-footer,
.site-header {
  position: relative;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 1.3rem 0;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.site-footer .container {
  text-align: center;
}

@media (max-width: 980px) {
  :root {
    --header-height: 72px;
  }

  .site-nav {
    position: absolute;
    right: max(1rem, 4vw);
    top: 82%;
    width: min(270px, calc(100vw - 2rem));
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 26px 64px -35px rgba(17, 17, 17, 0.65);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem;
    border-radius: 10px;
  }

  .site-nav a::after {
    display: none;
  }

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

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

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .hero {
    min-height: 100%;
    padding-top: 4rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .work-card {
    border-radius: 20px;
  }

  .section {
    padding: 2.7rem 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
