@font-face {
  font-family: "Beauty Sans";
  src: url("Comfortaa.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --forest: #0f402e;
  --deep: #082e22;
  --gold: #c6ab83;
  --paper: #faf7f2;
  --soft: #edf0e9;
  --ink: #182b23;
  --muted: #65736b;
  --line: #d9ddd3;
  --error: #a82d2d;
  font-family: "Beauty Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: -80px;
  left: 20px;
  padding: 10px 14px;
  background: white;
  border-radius: 8px;
}

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

.page-shell {
  width: min(1220px, calc(100% - 64px));
  min-height: calc(100vh - 146px);
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 54px;
  align-items: stretch;
}

.language-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 64px;
  padding: 10px max(12px, calc((100% - 1220px) / 2));
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.language-switch {
  display: flex;
  gap: 4px;
}

.language-switch button {
  min-width: 52px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: white;
  border-color: var(--forest);
  background: var(--forest);
}

.language-switch button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.visual-panel {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  overflow: hidden;
  border-radius: 54px 18px 18px 18px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--deep) url("beauty-hero.png") center 16% / cover no-repeat;
  color: white;
}

.visual-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 46, 34, 0.06), rgba(8, 46, 34, 0.12) 35%, rgba(8, 46, 34, 0.94)),
    linear-gradient(90deg, rgba(8, 46, 34, 0.35), transparent 65%);
}

.brand {
  width: 174px;
  min-height: 96px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 24px;
  background: rgba(250, 247, 242, 0.94);
  box-shadow: 0 16px 42px rgba(4, 29, 21, 0.22);
}

.brand img {
  display: block;
  width: 140px;
  height: auto;
}

.visual-copy {
  max-width: 610px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.visual-copy h1 {
  max-width: 600px;
  margin: 0;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.14;
  letter-spacing: -2px;
}

.visual-copy > p:last-child {
  max-width: 540px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.7;
}

.content-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.invite-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 65px rgba(8, 46, 34, 0.1);
}

.invite-card h2 {
  margin: 0;
  color: var(--forest);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.3;
}

.muted {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

form {
  margin-top: 28px;
}

label {
  display: block;
  margin-bottom: 9px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 58px;
  border: 1px solid #aab8ad;
  border-radius: 16px;
  padding: 0 18px;
  color: var(--ink);
  background: #fffefa;
  outline: none;
}

input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(15, 64, 46, 0.12);
}

.field-note,
.privacy-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.field-note {
  margin: 9px 0 0;
}

.button {
  width: 100%;
  min-height: 56px;
  margin-top: 24px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
  color: white;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover:not(:disabled) {
  background: var(--deep);
}

.button:disabled {
  opacity: 0.58;
  cursor: default;
}

.button-outline {
  background: transparent;
  color: var(--forest);
}

.message {
  min-height: 23px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.message.error {
  color: var(--error);
}

.text-link {
  margin-top: 18px;
  display: block;
  color: var(--forest);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.success-mark {
  width: 60px;
  height: 60px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--forest);
  font-size: 32px;
  font-weight: 700;
}

.privacy-note {
  margin: 22px 14px 0;
  text-align: center;
}

.is-hidden {
  display: none !important;
}

footer {
  width: min(1220px, calc(100% - 64px));
  min-height: 82px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

footer nav {
  display: flex;
  gap: 22px;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(680px, calc(100% - 40px));
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 20px;
  }

  .visual-panel {
    min-height: 540px;
  }

  footer {
    width: min(680px, calc(100% - 40px));
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: calc(100% - 24px);
  }

  .visual-panel {
    min-height: 470px;
    border-radius: 36px 16px 16px 16px;
    padding: 24px;
    background-position: center top;
  }

  .brand {
    width: 138px;
    min-height: 78px;
  }

  .brand img {
    width: 112px;
  }

  .visual-copy h1 {
    font-size: 34px;
    letter-spacing: -1.4px;
  }

  .visual-copy > p:last-child {
    font-size: 14px;
  }

  .invite-card {
    border-radius: 22px;
    padding: 28px 22px;
  }

  footer {
    width: calc(100% - 32px);
    padding: 22px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
