:root {
  --jade-950: #062925;
  --jade-900: #083b34;
  --jade-700: #176c5c;
  --gold: #e8b957;
  --gold-pale: #f5dfaa;
  --red: #a9362d;
  --paper: #f8f1df;
  --ink: #132e2a;
  --muted: #647570;
  --line: rgba(19, 46, 42, 0.18);
  --display: Georgia, "Times New Roman", serif;
  --body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
}

.site-header { min-height: 92px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--jade-950);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  font-family: var(--display);
  font-size: 20px;
}

.header-link {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  text-decoration: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 620px;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: clamp(48px, 9vw, 140px);
  overflow: hidden;
  padding: 86px max(24px, calc((100vw - 1240px) / 2));
  background:
    radial-gradient(circle at 82% 54%, rgba(232, 185, 87, 0.13) 0 20%, transparent 20.4%),
    var(--jade-950);
  color: var(--paper);
}

.hero::before,
.hero::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(245, 223, 170, 0.16);
  content: "";
}

.hero::before { left: 15%; }
.hero::after { right: 15%; }

.hero-copy { position: relative; z-index: 1; max-width: 760px; }

.eyebrow {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2 { font-family: var(--display); font-weight: 400; }

h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(58px, 8vw, 112px);
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.hero-text {
  max-width: 560px;
  margin: 34px 0;
  color: rgba(248, 241, 223, 0.72);
  font-size: 16px;
  line-height: 1.75;
}

.primary-action {
  display: inline-block;
  padding: 14px 20px;
  border: 1px solid var(--gold);
  color: var(--gold-pale);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.primary-action:hover { background: var(--gold); color: var(--jade-950); }

.palace-seal {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(28vw, 260px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(232, 185, 87, 0.75);
  border-radius: 50%;
  color: var(--gold);
  text-align: center;
  transform: rotate(5deg);
}

.palace-seal::before {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(232, 185, 87, 0.28);
  border-radius: inherit;
  content: "";
}

.palace-seal strong { font-family: var(--display); font-size: 86px; font-weight: 400; line-height: 0.8; }
.palace-seal span { font-size: 9px; letter-spacing: 0.35em; }

.gallery-section {
  width: min(100% - 48px, 1100px);
  margin: 0 auto;
  padding: 120px 0 140px;
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 54px;
}

.gallery-heading h2 {
  margin: 0;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.gallery-heading > p {
  max-width: 310px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.carousel { position: relative; }
.carousel-viewport { max-width: 900px; margin: 0 auto; overflow: hidden; }
.carousel-track { display: flex; transition: transform 600ms cubic-bezier(.22,.68,0,1); }
.slide { min-width: 100%; margin: 0; padding: 0 clamp(12px, 5vw, 78px); }

.slide img {
  display: block;
  width: 100%;
  max-width: 430px;
  height: auto;
  margin: 0 auto;
  border: 10px solid var(--jade-950);
  border-radius: 42px;
  box-shadow: 0 38px 70px rgba(6, 41, 37, 0.2);
}

.carousel-button {
  position: absolute;
  top: 50%;
  display: grid;
  width: 52px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 19px;
  transform: translateY(-50%);
  transition: background 180ms ease, color 180ms ease;
}

.carousel-button:hover { background: var(--jade-950); color: var(--paper); }
.carousel-button.previous { left: 0; }
.carousel-button.next { right: 0; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 38px;
}

.carousel-dot {
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(19, 46, 42, 0.2);
  cursor: pointer;
}

.carousel-dot.is-active { background: var(--red); }
.carousel-status { margin: 16px 0 0; color: var(--muted); font-size: 11px; letter-spacing: 0.18em; text-align: center; }
.carousel-status span { color: var(--red); font-weight: 700; }

.closing {
  padding: 92px 24px;
  background: var(--red);
  color: var(--paper);
  text-align: center;
}

.closing p { max-width: 840px; margin: 0 auto; font-family: var(--display); font-size: clamp(38px, 5vw, 70px); line-height: 1; }

.site-footer {
  min-height: 108px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer nav { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--red); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.policy-page { background: #fbf7ec; }
.policy-shell { width: min(100% - 48px, 820px); margin: 0 auto; padding: 64px 0 100px; }
.policy-back { display: inline-block; margin-bottom: 72px; color: var(--jade-700); font-size: 13px; font-weight: 700; text-decoration: none; }
.policy-header { padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.policy-header h1 { margin: 0 0 14px; font-size: clamp(54px, 8vw, 86px); line-height: 0.95; letter-spacing: -0.045em; }
.policy-meta { margin: 0; color: var(--muted); font-size: 12px; }
.policy-content { padding-top: 16px; }
.policy-content section { padding: 34px 0; border-bottom: 1px solid var(--line); }
.policy-content h2 { margin: 0 0 16px; color: var(--jade-900); font-family: var(--body); font-size: 16px; font-weight: 700; }
.policy-content p,
.policy-content li { color: #465b56; font-size: 15px; line-height: 1.8; }
.policy-content p { margin: 12px 0; }
.policy-content ul { padding-left: 22px; }
.policy-content a { color: var(--red); text-underline-offset: 3px; }

@media (max-width: 760px) {
  .site-header,
  .site-footer { width: min(100% - 32px, 1240px); }
  .site-header { min-height: 76px; }
  .header-link { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 86px 24px 92px; }
  .hero::before { left: 24px; }
  .hero::after { right: 24px; }
  h1 { font-size: clamp(53px, 16vw, 76px); }
  .palace-seal { width: 170px; justify-self: end; }
  .palace-seal strong { font-size: 58px; }
  .gallery-section { width: min(100% - 32px, 1100px); padding: 88px 0 100px; }
  .gallery-heading { display: block; }
  .gallery-heading > p { margin-top: 20px; }
  .slide { padding: 0 46px; }
  .slide img { border-width: 7px; border-radius: 30px; }
  .carousel-button { top: 45%; width: 40px; background: var(--paper); }
  .site-footer { min-height: 134px; flex-direction: column; justify-content: center; }
  .policy-shell { width: min(100% - 32px, 820px); padding-top: 40px; }
  .policy-back { margin-bottom: 52px; }
}

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