:root {
  --paper: #f3eee4;
  --paper-deep: #e7dfd0;
  --ink: #1b1714;
  --muted: #5c554c;
  --line: #d4cbb8;
  --white: #fffcf6;
  --indigo: #1c3554;
  --indigo-soft: #2d4d73;
  --clay: #9a4e32;
  --gold: #b8944c;
  --shadow: 0 18px 40px rgba(28, 23, 20, 0.1);
  --radius: 18px;
  --content: 1080px;
  --header: 76px;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --sans: "Outfit", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

html.lightbox-open {
  overflow: hidden;
  padding-right: var(--scrollbar-compensation, 0px);
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(28, 53, 84, 0.08), transparent 55%),
    radial-gradient(900px 480px at 110% 8%, rgba(154, 78, 50, 0.08), transparent 50%),
    var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 400;
}

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

.hero,
.about-grid,
.contact-grid,
.artwork-grid,
.note-row,
.hero-photo,
.artwork {
  min-width: 0;
}

a {
  color: var(--indigo);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--clay);
}

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 238, 228, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner,
.wrap {
  width: min(var(--content), calc(100% - 2.5rem));
  margin-inline: auto;
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.05;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-mark {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 1.4rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.header-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.lang-switch button.is-active {
  background: var(--indigo);
  color: var(--white);
}

.social-icons {
  display: flex;
  gap: 0.35rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border-radius: 50%;
  text-decoration: none;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-icon:hover {
  background: var(--paper-deep);
  color: var(--indigo);
}

main {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0 3.5rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--clay);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

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

.lede,
.hero p {
  color: var(--muted);
  max-width: 38rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--indigo);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--indigo-soft);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.hero-photo {
  position: relative;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: -1.4rem -1.2rem auto auto;
  width: 72%;
  height: 72%;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.55;
  z-index: 0;
}

.hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: 50% 14%;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.section {
  padding: 1.5rem 0 3.5rem;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.stack p {
  margin: 0 0 1rem;
}

.quote {
  margin: 0;
  padding: 1.4rem 1.5rem;
  background: var(--white);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.4;
}

.quote footer {
  margin-top: 0.9rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.quote + .note {
  margin-top: 1rem;
}

.note-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.note {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.note h2 {
  font-size: 1.35rem;
}

.gallery-intro {
  max-width: 42rem;
  padding-top: 3.5rem;
}

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2.25rem 0 4rem;
}

.artwork {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 0;
  padding: 0;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  box-shadow: 0 1px 0 var(--line);
  width: 100%;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.artwork-frame {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e7dcc8;
}

.artwork-frame img,
.artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #e7dcc8;
  transition: transform 0.35s ease;
}

.artwork-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(28, 53, 84, 0);
  transition: background 0.28s ease;
  pointer-events: none;
}

.artwork figcaption,
.artwork-caption {
  padding: 0.9rem 1rem 1.1rem;
  min-height: 4.5rem;
  background: #f7f1e6;
  border-top: 1px solid var(--line);
}

.artwork strong,
.artwork-caption strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.artwork span,
.artwork-caption span {
  color: var(--muted);
  font-size: 0.88rem;
}

.artwork:hover,
.artwork:focus-visible {
  transform: translateY(-7px);
  box-shadow: 0 18px 36px rgba(28, 23, 20, 0.16);
}

.artwork:hover .artwork-frame img,
.artwork:focus-visible .artwork-frame img {
  transform: scale(1.07);
}

.artwork:hover .artwork-frame::after,
.artwork:focus-visible .artwork-frame::after {
  background: rgba(28, 53, 84, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .artwork,
  .artwork-frame img,
  .artwork-frame::after,
  .lightbox,
  .lightbox-inner {
    transition: none;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(16, 14, 12, 0.92);
  display: grid;
  place-items: center;
  padding: 2rem;
  overflow: hidden;
  overscroll-behavior: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-inner {
  max-width: min(900px, 100%);
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.is-open .lightbox-inner {
  opacity: 1;
}

.lightbox img {
  max-height: 72vh;
  margin: 0 auto;
  border-radius: 8px;
}

.lightbox p {
  color: var(--paper);
  margin: 0.8rem 0 0;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--white);
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  font: inherit;
}

.contact-panel,
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-panel address {
  font-style: normal;
  margin: 0 0 1rem;
}

.contact-panel dl {
  margin: 0;
}

.contact-panel dt {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-panel dd {
  margin: 0 0 0.85rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

label {
  font-size: 0.9rem;
}

input,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--clay);
}

.field-error {
  min-height: 1.1rem;
  color: var(--clay);
  font-size: 0.85rem;
}

.form-hint,
.form-status {
  font-size: 0.9rem;
  color: var(--muted);
}

.form-status.is-success {
  color: var(--indigo);
}

.form-status.is-error {
  color: var(--clay);
}

button.btn {
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer .social-icons {
  align-items: center;
}

.site-footer .social-icon {
  color: var(--muted);
}

.site-footer .social-icon:hover {
  color: var(--indigo);
  background: var(--white);
}

@media (max-width: 860px) {
  .hero,
  .about-grid,
  .contact-grid,
  .note-row,
  .artwork-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 0.75rem 0;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-photo img {
    height: 420px;
  }
}

@media (max-width: 520px) {
  .header-tools {
    margin-left: auto;
  }

  .artwork-grid {
    gap: 0.9rem;
  }
}
