:root {
  color-scheme: light;
  --bg: #f7f3ef;
  --surface: #fbf7f3;
  --surface-strong: #efe7df;
  --panel: #f2e9e2;
  --text: #292624;
  --muted: #635a55;
  --line: rgba(62, 39, 28, 0.18);
  --highlight: #a86c52;
  --highlight-dark: #7b4b39;
  --button: #d6b7a1;
  --shadow: rgba(72, 43, 29, 0.12);
  --logo-filter: none;
  --header-bg: rgba(255, 255, 255, 0.42);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1e1c1b;
  --surface: #292624;
  --surface-strong: #37302d;
  --panel: #312a27;
  --text: #f4eee8;
  --muted: #c9bbb1;
  --line: rgba(245, 232, 221, 0.2);
  --highlight: #f07d16;
  --highlight-dark: #ff9b49;
  --button: #574238;
  --shadow: rgba(0, 0, 0, 0.28);
  --logo-filter: brightness(0) invert(1);
  --header-bg: rgba(33, 30, 28, 0.86);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  transition: color 0.25s ease, background-color 0.25s ease;
}

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

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-notice {
  padding: 7px 16px;
  color: var(--highlight-dark);
  background: rgba(240, 125, 22, 0.1);
  border-bottom: 1px solid rgba(240, 125, 22, 0.28);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

.brand {
  display: block;
  width: min(300px, 48vw);
}

.brand img {
  width: 100%;
  height: auto;
  transition: filter 0.25s ease;
}

:root[data-theme="dark"] .brand img {
  filter: var(--logo-filter);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--surface-strong);
}

.theme-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.main-nav a {
  position: relative;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--text);
  padding: 10px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

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

main {
  padding-bottom: 40px;
}

.intro {
  padding: 42px 0 26px;
}

.intro-text {
  max-width: 760px;
  margin: 0 auto 22px;
  text-align: center;
}

.intro-text p {
  margin: 0;
  font-size: clamp(1.12rem, 2vw, 1.5rem);
  line-height: 1.6;
  color: var(--muted);
}

.hero-title {
  margin: 0 0 24px;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 0.96;
}

.gallery-wrap {
  margin: 0 auto 28px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px var(--shadow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  filter: saturate(0.9) contrast(1.02);
}

.image-placeholder {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 20px;
  color: rgba(45, 42, 39, 0.72);
  background: linear-gradient(135deg, #e7d8cd, #cfae9a);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  text-align: center;
}

.gallery-grid .image-placeholder {
  height: 260px;
  border-radius: 12px;
}

.section-shell {
  background: rgba(255, 255, 255, 0.22);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.services {
  padding: 52px 0 36px;
}

.services h3 {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
}

.services-heading {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
}

.services-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 0 0 22px;
  color: var(--text);
  font-size: 1.04rem;
}

.services-list li {
  margin-bottom: 10px;
}

.atelier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding-top: 52px;
  padding-bottom: 52px;
}

.atelier-card {
  display: block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  color: var(--text);
  box-shadow: 0 12px 30px rgba(81, 49, 27, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.atelier-card:hover,
.atelier-card:focus-visible {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 18px 34px rgba(81, 49, 27, 0.12);
  transform: translateY(-3px);
}

.atelier-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.atelier-placeholder {
  height: 280px;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.atelier-card h2 {
  margin: 20px 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.atelier-card h2::after {
  content: " ↗";
  color: var(--highlight-dark);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.5em;
  vertical-align: middle;
}

.atelier-card p {
  margin: 0;
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--highlight-dark);
  font-weight: 600;
}

.atelier-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 28px;
}

.atelier-gallery .image-placeholder {
  height: 260px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.atelier-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.atelier-card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature {
  padding: 52px 0;
}

.feature-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 12px 30px rgba(81, 49, 27, 0.08);
}

.feature-card.reverse {
  grid-template-columns: 0.8fr 1.2fr;
}

.feature-card.reverse .feature-media {
  order: -1;
}

.feature-copy h2 {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  font-weight: 600;
}

.feature-copy p {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--muted);
}

.feature-copy table {
  width: 100%;
  border-collapse: collapse;
}

.feature-copy td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(56, 38, 28, 0.08);
}

.feature-copy td:first-child {
  padding-right: 16px;
  white-space: nowrap;
  font-weight: 600;
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  padding-top: 52px;
  padding-bottom: 30px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 12px 30px rgba(81, 49, 27, 0.08);
}

.contact-card h2 {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}

.contact-card h2:not(:first-child) {
  margin-top: 34px;
}

.contact-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.contact-card a {
  color: var(--highlight-dark);
  font-weight: 600;
}

.contact-card table {
  width: 100%;
  border-collapse: collapse;
}

.contact-card td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(56, 38, 28, 0.08);
}

.contact-card td:first-child {
  padding-right: 16px;
  white-space: nowrap;
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 8px;
}

.contact-form label {
  margin-top: 8px;
  font-weight: 600;
}

.contact-form .consent-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.45;
}

.consent-field input {
  width: auto;
  margin-top: 4px;
}

.consent-field a {
  color: var(--highlight-dark);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.5);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

:root[data-theme="dark"] .contact-form input,
:root[data-theme="dark"] .contact-form textarea {
  background: rgba(255, 255, 255, 0.08);
}

.contact-form .cta {
  justify-self: start;
  cursor: pointer;
}

.contact-form .cta:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.contact-status {
  margin: 6px 0 0;
  color: var(--highlight-dark);
  font-size: 0.92rem;
}

.contact-status.is-success {
  color: #3d7551;
}

.contact-status.is-error {
  color: #a34232;
}

.map-section {
  padding-bottom: 52px;
}

.map-section iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 40px var(--shadow);
}

.map-section p {
  margin: 12px 0 0;
  text-align: right;
}

.map-section a {
  color: var(--highlight-dark);
  font-weight: 600;
}

.legal-page {
  max-width: 860px;
  padding-top: 20px;
  padding-bottom: 64px;
}

.legal-page h2 {
  margin: 40px 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page a {
  color: var(--highlight-dark);
  font-weight: 600;
}

.feature-media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.feature-placeholder {
  width: 100%;
  height: 360px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.cta {
  display: inline-block;
  margin-top: 18px;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: rgba(168, 108, 82, 0.12);
  border: 1px solid rgba(168, 108, 82, 0.34);
  color: var(--highlight-dark);
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-1px);
  background: rgba(168, 108, 82, 0.18);
}

.site-footer {
  background: #efeae6;
  border-top: 1px solid var(--line);
  padding: 40px 0 70px;
}

:root[data-theme="dark"] .site-footer {
  background: #292624;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
}

.footer-card h3 {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.1;
}

.footer-card p,
.footer-card li,
.footer-card td,
.footer-card th {
  color: var(--text);
  font-size: 1rem;
}

.footer-card table {
  width: 100%;
  border-collapse: collapse;
}

.footer-card td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(56, 38, 28, 0.08);
}

.footer-card td:first-child {
  padding-right: 16px;
  white-space: nowrap;
  font-weight: 600;
}

.site-credit {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-credit a {
  color: var(--highlight-dark);
  font-weight: 600;
}

@media (max-width: 860px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0;
  }

  .main-nav {
    gap: 14px 18px;
  }

  .feature-card,
  .feature-card.reverse,
  .footer-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .feature-card.reverse .feature-media {
    order: 0;
  }

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

  .atelier-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 18px;
  }

  .feature-media img {
    height: 260px;
  }

  .feature-placeholder {
    height: 260px;
  }

  .atelier-card,
  .contact-card {
    padding: 18px;
  }

  .atelier-card img,
  .atelier-placeholder {
    height: 260px;
  }

  .atelier-gallery {
    grid-template-columns: 1fr;
  }
}
