:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --wash: #eef2ec;
  --ink: #25231f;
  --muted: #6d6a61;
  --soft: #9b978c;
  --line: rgba(37, 35, 31, 0.14);
  --accent: #9f5a49;
  --moss: #50624b;
  --shadow: 0 18px 48px rgba(37, 35, 31, 0.12);
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.has-lightbox {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 0.9rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 247, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(37, 35, 31, 0.08);
}

.nav {
  width: min(100% - 2rem, var(--max-width));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--wash);
  color: var(--moss);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-width: 0;
}

.nav-links,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links {
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a,
.site-footer a {
  text-decoration: none;
}

.nav-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.language-toggle {
  display: inline-flex;
  min-width: 2.4rem;
  min-height: 2.1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--moss);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.language-toggle:hover,
.language-toggle:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
}

.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: rgba(37, 35, 31, 0.28);
  transform: translateY(-1px);
}

.section {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.hero {
  min-height: min(760px, calc(100svh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(280px, 1.16fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-top: clamp(2rem, 5vw, 4rem);
}

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

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 9vw, 7rem);
}

h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 4.6vw, 4.3rem);
}

h3 {
  color: var(--moss);
  font-size: 1rem;
}

.hero-intro {
  max-width: 38rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 0.78rem 1rem;
  font-weight: 740;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 35, 31, 0.12);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
}

.hero-art {
  margin: 0;
}

.hero-art img,
.book-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.portfolio-preview {
  padding-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.compact-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.compact-heading h2 {
  max-width: none;
}

.text-link {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 720;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
  white-space: nowrap;
}

.art-grid {
  display: grid;
  gap: clamp(0.7rem, 2vw, 1.1rem);
}

.art-grid-home {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.art-grid-full {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.art-card {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.art-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--surface);
  transition: filter 180ms ease, transform 180ms ease;
}

.art-card:hover img,
.art-card:focus-visible img {
  filter: brightness(0.88);
}

.art-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.art-caption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 0.18rem;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(37, 35, 31, 0.72), rgba(37, 35, 31, 0));
  color: #fff;
  opacity: 0;
  transform: translateY(0.3rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.art-card:hover .art-caption,
.art-card:focus-visible .art-caption {
  opacity: 1;
  transform: translateY(0);
}

.art-caption span {
  font-weight: 760;
}

.art-caption small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
}

.book-feature,
.about-preview,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}

.book-feature-copy,
.about-text,
.prose {
  display: grid;
  gap: 1rem;
  align-content: start;
  color: var(--muted);
  font-size: 1.05rem;
}

.book-feature-copy p,
.about-text p,
.prose p,
.contact-page p {
  margin: 0;
}

.contact-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-strip h2 {
  max-width: 22ch;
}

.email-link {
  display: inline-flex;
  margin-top: 1.2rem;
  color: var(--accent);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 760;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

.page-intro {
  padding-bottom: clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.page-intro p {
  max-width: 48rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

.portfolio-page {
  padding-top: clamp(2rem, 5vw, 4rem);
}

.portfolio-tools {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}

.portfolio-tools h2 {
  max-width: none;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.filter-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  min-height: 38px;
  padding: 0.5rem 0.7rem;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  border-color: var(--ink);
  color: var(--ink);
}

.book-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.book-copy p {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
}

.sample-spreads {
  border-top: 1px solid var(--line);
}

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

.spread-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface);
}

.bio-box {
  border-left: 3px solid var(--moss);
  background: var(--surface);
  padding: 1.1rem 1.25rem;
}

.contact-page {
  max-width: 940px;
}

.contact-page h1 {
  max-width: none;
}

.contact-page p {
  max-width: 54rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.available-section {
  border-top: 1px solid var(--line);
}

.available-section h2 {
  max-width: none;
  margin-bottom: 1.2rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.available-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.available-list li {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  color: var(--moss);
  font-weight: 720;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(37, 35, 31, 0.9);
  padding: 1.2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-close {
  position: fixed;
  right: 1rem;
  top: 1rem;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.5rem 0.8rem;
  font: inherit;
  cursor: pointer;
}

.lightbox-figure {
  display: grid;
  gap: 0.8rem;
  width: min(100%, 1040px);
  margin: 0;
}

.lightbox-figure img {
  max-height: 82svh;
  width: 100%;
  object-fit: contain;
}

.lightbox-figure figcaption {
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 1.4rem 0 2rem;
  color: var(--soft);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.social-links {
  gap: 0.8rem;
}

.social-links a {
  display: inline-flex;
  width: 1.45rem;
  height: 1.45rem;
  align-items: center;
  justify-content: center;
  place-items: center;
  line-height: 0;
  opacity: 0.86;
  transition: opacity 180ms ease, transform 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  opacity: 1;
  outline: 0;
  transform: translateY(-1px) scale(1.08);
}

.social-links img {
  width: 100%;
  height: 100%;
}

@media (max-width: 1020px) {
  .hero,
  .book-feature,
  .about-preview,
  .split-section,
  .book-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .art-grid-home,
  .art-grid-full {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portfolio-tools {
    display: grid;
  }

  .filter-list {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .nav {
    min-height: 86px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.7rem 0;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 0.1rem 0.85rem;
    font-size: 0.88rem;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
    gap: 0.8rem;
  }

  .nav-links a {
    min-height: 34px;
  }

  .language-toggle {
    min-height: 34px;
  }

  .compact-heading {
    display: grid;
    align-items: start;
  }

  .art-grid-home,
  .art-grid-full,
  .spread-grid,
  .available-list {
    grid-template-columns: 1fr;
  }

  .art-caption {
    position: static;
    background: transparent;
    color: var(--ink);
    opacity: 1;
    transform: none;
    padding: 0.6rem 0 0;
  }

  .art-caption small {
    color: var(--muted);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
