:root {
  --purple: #332243;
  --purple-light: #8d64aa;
  --pink: #f8e7f1;
  --cream: #f4eee1;
  --orange: #e27245;
  --ink: #192931;
  --white: #ffffff;
  --focus: #f7b917;
  --shadow: 0 28px 70px rgba(20, 10, 31, .28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.contact {
  margin: 0;
  color: var(--ink);
  background: var(--purple);
  font-family: "Inclusive Sans", Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.55;
  padding-top: 30px;
}

html[data-theme="dark"] body.contact {
  color: var(--color-text);
  background: var(--color-background);
}

html[data-theme="dark"] .contact-window {
  color: var(--color-text);
  background: var(--color-surface);
}

html[data-theme="dark"] .contact-window h1,
html[data-theme="dark"] .contact-window .eyebrow {
  color: var(--color-text);
}

html[data-theme="dark"] .contact-window input,
html[data-theme="dark"] .contact-window textarea {
  color: var(--color-text);
  background: var(--color-background);
  border-color: var(--color-header-border);
}

html[data-theme="dark"] .contact-details {
  border-color: var(--color-header-border);
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: .8rem 1rem;
  background: var(--focus);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-180%);
}

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

.wordmark {
  max-width: 8rem;
  text-decoration: none;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  line-height: 1.05;
}

nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
nav a { padding: .55rem .1rem; text-underline-offset: .45rem; }
nav a:not([aria-current="page"]) { text-decoration: none; }

.contact-page {
  position: relative;
  min-height: calc(100vh - 84px);
  padding: clamp(6.5rem, 12vw, 9.5rem) clamp(1rem, 5vw, 5rem) clamp(3rem, 7vw, 6rem);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.contact-window {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  padding: clamp(5.5rem, 9vw, 7.5rem) clamp(1.3rem, 6vw, 5.5rem) clamp(2rem, 5vw, 4.5rem);
  background: var(--cream);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.logo-badge {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(360px, 76%);
  min-height: 150px;
  padding: 1.2rem 2.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  transform: translate(-50%, -52%);
}

.logo-symbol { width: 180px; flex: 0 0 auto; }
.logo-badge small { display: block; margin-bottom: .45rem; font-family: "Cormorant", serif; font-size: 1.15rem; }

.intro { max-width: 680px; margin: 0 auto 2.4rem; text-align: center; }
.eyebrow { margin: 0 0 .15rem; color: #61180c; font-family: "Cormorant", serif; font-size: 1.65rem; font-style: italic; font-weight: 600; }
h1 { margin: 0 0 .65rem; color: var(--purple); font-family: "Unbounded", sans-serif; font-size: clamp(2.35rem, 7vw, 4.6rem); line-height: 1.1; }
.intro p:last-child { margin: 0; }

form { max-width: 720px; margin: 0 auto; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.15rem; }
label { display: block; margin: 0 0 .35rem; font-weight: 700; }
label span { color: #8a2514; }

input, textarea {
  width: 100%;
  min-height: 54px;
  padding: .8rem 1rem;
  border: 2px solid var(--purple);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea { min-height: 150px; resize: vertical; }
input:hover, textarea:hover { border-color: var(--orange); }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }
[aria-invalid="true"] { border-color: #9d2817; box-shadow: 0 0 0 2px rgba(157, 40, 23, .18); }

.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.required-note { margin: 0; font-size: .92rem; }

button {
  background-color: var(--purple);
  border: var(--purple);
  color: var(--cream);
}

.form-status { min-height: 1.6em; margin: .9rem 0 0; font-weight: 700; }

.contact-details {
  max-width: 720px;
  margin: 2.2rem auto 0;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(51, 34, 67, .25);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
}
.contact-details p { margin: 0; }
.contact-details span { display: block; font-family: "Cormorant", serif; font-size: 1.15rem; font-style: italic; }
.contact-details a { font-weight: 700; text-underline-offset: .25rem; }


@media (max-width: 700px) {
  .site-header { align-items: flex-start; }
  nav { gap: .6rem; flex-wrap: wrap; justify-content: flex-end; font-size: .95rem; }
  .contact-page { padding-top: 7.5rem; }
  .contact-window { border-radius: 70px 16px 70px 16px; }
  .field-row, .contact-details { grid-template-columns: 1fr; }
  .form-footer { align-items: flex-start; flex-direction: column; }
  button { width: 100%; }
}

@media (max-width: 460px) {
  .site-header { flex-direction: column; gap: .5rem; }
  nav { justify-content: flex-start; }
  .logo-badge { min-height: 130px; padding: 1rem 1.4rem; }
  .logo-symbol { width: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
