:root {
  --bg: #f6f3ee;
  --bg-alt: #efeae2;
  --ink: #1c1a17;
  --muted: #6a645c;
  --line: #ddd6cb;
  --accent: #8a4a32;
  --paper: #fffcf7;
  --shadow: 0 18px 40px rgba(28, 26, 23, 0.08);
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --latin: "Cormorant Garamond", "Noto Serif SC", serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.02em;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 20;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a,
.mobile-nav a {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.nav a:hover,
.mobile-nav a:hover {
  color: var(--ink);
}

.menu-btn {
  display: none;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 1px;
  background: var(--ink);
  margin: 7px 0;
}

.mobile-nav {
  display: none;
}

main {
  padding: 0 40px 96px;
}

.hero {
  max-width: var(--max);
  margin: 48px auto 120px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: end;
}

.eyebrow {
  font-family: var(--latin);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 18px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

h1 {
  font-size: clamp(36px, 5vw, 58px);
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 20px;
}

h3 {
  font-size: 22px;
  margin: 8px 0 14px;
}

.lede {
  max-width: 34em;
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 17px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}

.text-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hero-media img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-media figcaption {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.works,
.note,
.contact {
  max-width: var(--max);
  margin: 0 auto 120px;
}

.section-head {
  margin-bottom: 48px;
}

.work-featured {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--line);
}

.work-visual img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-visual {
  display: block;
  overflow: hidden;
  background: var(--bg-alt);
}

.work-visual:hover img {
  transform: scale(1.03);
}

.work-index {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.work-meta p {
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
}

.work-grid .work-visual img {
  height: 240px;
}

.note {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 72px;
  align-items: center;
  padding: 72px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.note-text p + p {
  margin-top: 16px;
  color: var(--muted);
}

blockquote {
  margin-top: 28px;
  padding-left: 18px;
  border-left: 1px solid var(--accent);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.7;
}

.note-media img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 20%;
}

.contact h2 {
  max-width: 10em;
}

.contact p {
  max-width: 36em;
  color: var(--muted);
  margin-bottom: 28px;
}

.email {
  font-family: var(--latin);
  font-size: 36px;
  font-style: italic;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.email:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px 48px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
}

@media (max-width: 900px) {
  .site-header,
  main {
    padding-left: 22px;
    padding-right: 22px;
  }

  .nav {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 8px 22px 28px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .hero,
  .work-featured,
  .work-grid,
  .note {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero {
    margin-top: 24px;
    margin-bottom: 80px;
  }

  .hero-media img,
  .work-featured .work-visual img,
  .work-grid .work-visual img,
  .note-media img {
    height: 280px;
  }

  .note {
    padding: 32px 24px;
  }

  .email {
    font-size: 26px;
  }

  .site-footer {
    padding: 0 22px 40px;
  }
}
