/* Maitre Ahlan — holding page
   Navy and gold are sampled from assets/logo.png.
   To change the line under the logo, edit the .tagline paragraph in index.html. */

:root {
  --navy: #0d2d56;
  --gold: #c08a3e;
  --paper: #ffffff;
  color-scheme: light;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-500-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-500-italic-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-500-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  background: var(--paper);
  color: var(--navy);
  font-family: "Cormorant Garamond", Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 42rem);
  padding: 2.25rem 1.25rem 4rem;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
  text-align: center;
}

h1 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: 0;
}

.mark {
  display: block;
  width: auto;
  height: auto;
  max-width: min(78vw, 26rem);
  max-height: min(38dvh, 20rem);
  margin: 0 auto;
}

.rule {
  width: 2.75rem;
  height: 1px;
  margin: 0.15rem 0 1.2rem;
  border: 0;
  background: var(--gold);
}

.tagline {
  margin: 0;
  color: var(--navy);
  font-weight: 500;
  font-size: clamp(1.55rem, 2.6vw, 1.9rem);
  letter-spacing: 0.04em;
  line-height: 1;
}

::selection {
  background: var(--gold);
  color: var(--paper);
}

.interest {
  width: min(100%, 32rem);
  margin-top: 2.75rem;
  text-align: left;
}

.interest h2 {
  margin: 0 0 1.15rem;
  text-align: center;
  font-weight: 500;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.interest-form {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.audience,
.panel {
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin-bottom: 1.35rem;
  padding: 0.22rem;
  border: 1px solid var(--navy);
  border-radius: 999px;
}

.audience label {
  position: relative;
  display: flex;
  min-width: 0;
}

.audience input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: 0;
  opacity: 0;
}

.audience span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.55rem;
  border-radius: 999px;
  text-align: center;
  font-size: clamp(1.02rem, 3.4vw, 1.2rem);
  line-height: 1.15;
  cursor: pointer;
}

.audience label:has(input:checked) span {
  background: var(--navy);
  color: var(--paper);
}

.audience label:has(input:focus-visible) span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.panel {
  display: flex;
  flex-direction: column;
}

.panel[hidden] {
  display: none;
}

.field {
  margin: 0 0 0.95rem;
}

.field label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 1.12rem;
  letter-spacing: 0.015em;
}

.opt {
  color: rgba(13, 45, 86, 0.62);
  font-size: 0.92em;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.05rem 0.4rem;
  border: 0;
  border-bottom: 1px solid rgba(13, 45, 86, 0.35);
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 1.2rem;
  line-height: 1.35;
  text-align: left;
}

.field textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-bottom-color: var(--navy);
  background: rgba(13, 45, 86, 0.04);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(13, 45, 86, 0.42);
}

.field-error {
  margin: 0.3rem 0 0;
  color: var(--navy);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.3;
}

.field-error[hidden] {
  display: none;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 0.35rem;
}

.consent input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.35rem;
  flex: none;
  accent-color: var(--navy);
}

.consent label {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
  cursor: pointer;
}

.consent-error {
  margin-top: -0.35rem;
}

.submit {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.8rem 1.25rem;
  border: 0;
  background: var(--navy);
  color: var(--paper);
  font: inherit;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.submit:hover {
  background: #16386e;
}

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

.submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-status {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  line-height: 1.3;
}

.form-status.is-error,
.form-status.is-soon {
  font-style: italic;
  font-size: 1.25rem;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 48rem) {
  main {
    padding-top: 3rem;
  }

  .interest {
    margin-top: 3rem;
  }
}
