/* Bloomial coming soon. Palette and logo crop follow brand/tokens.json. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-wght.woff2") format("woff2");
}

:root {
  --aubergine: #302039;
  --cream: #F5F1E8;
  --lime: #D9F46A;
  --lilac: #B6A2CE;
  --border: #DED8DF;
  --support: #786F7A;
  --gutter: 22px;
  --motif-w: min(50vw, 300px);
  --motif-h: calc(var(--motif-w) * 4 / 3);
  --motif-top: 0px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
  accent-color: var(--aubergine);
  scrollbar-color: var(--aubergine) var(--cream);
}

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

html {
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
  overflow-x: hidden;
  background: var(--cream);
  color: var(--aubergine);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--lime);
  color: var(--aubergine);
}

:focus-visible {
  outline: 2px solid var(--aubergine);
  outline-offset: 3px;
  border-radius: 4px;
}

p {
  margin: 0;
}

/* The bud's curves, scaled up: a soft aubergine slab with the lilac sweep from the identity board. */
.motif {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  display: block;
  width: var(--motif-w);
  height: var(--motif-h);
  overflow: hidden;
  pointer-events: none;
}

.motif-slab {
  fill: var(--aubergine);
}

.motif-gap {
  fill: var(--cream);
}

.motif-lilac {
  fill: var(--lilac);
}

.site-header,
.hero,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  padding-top: 28px;
}

.logo {
  display: block;
  width: 150px;
  height: auto;
  aspect-ratio: 860 / 230;
}

.logo-link {
  display: inline-block;
  padding-block: 2px;
  border-radius: 4px;
}

.hero {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 56px 48px;
  container-type: inline-size;
}

.hero-copy {
  container-type: inline-size;
}

.headline {
  margin: 0;
  max-width: 11ch;
  font-size: 2.75rem;
  font-size: clamp(2.75rem, 11cqi, 6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.tagline {
  margin-top: 0.75em;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.summary {
  margin-top: 28px;
  max-width: 38rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.closing {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--aubergine);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.contact a {
  display: inline-block;
  padding-block: 10px;
  color: var(--aubergine);
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.24em;
  text-decoration-color: var(--aubergine);
  transition: text-decoration-thickness 200ms var(--ease-out-expo);
}

.contact a:hover {
  text-decoration-thickness: 3px;
}

/* Get in touch. A cream card that stacks under the hero on small screens and rests on the slab on wide ones. */
.contact-card {
  width: 100%;
  max-width: 30rem;
  margin-top: 48px;
  padding: 28px 24px 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--cream);
  box-shadow: 0 24px 48px -32px rgba(48, 32, 57, 0.45);
}

.card-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.card-title::before {
  content: "";
  display: block;
  width: 40px;
  height: 6px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--lime);
}

.contact-form {
  position: relative;
  margin-top: 20px;
}

.field + .field {
  margin-top: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 14px;
  border: 1.5px solid var(--support);
  border-radius: 12px;
  background: var(--cream);
  color: var(--aubergine);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 200ms var(--ease-out-expo);
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--aubergine);
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--aubergine);
  border-radius: 12px;
  outline-offset: 2px;
}

/* Honeypot: off screen for people, still in the form for bots. */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--aubergine);
  color: var(--cream);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 200ms var(--ease-out-expo), transform 200ms var(--ease-out-expo);
}

.send:hover {
  color: var(--lime);
}

.send:active {
  transform: translateY(1px);
}

.send:focus-visible {
  border-radius: 999px;
}

.send:disabled {
  opacity: 0.65;
  cursor: progress;
  color: var(--cream);
  transform: none;
}

.cf-turnstile {
  margin: 0 0 0.9rem;
}

.form-status {
  margin-top: 14px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
}

.form-status:empty {
  margin-top: 0;
}

.form-status[data-state="success"] {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--lime);
}

.form-status[data-state="error"] {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--border);
}

.site-footer {
  display: flex;
  align-items: flex-end;
  min-height: var(--motif-h);
  padding-block: 20px 24px;
  padding-right: calc(var(--motif-w) + 16px);
  font-size: 0.875rem;
  font-weight: 500;
}

@media (min-width: 800px) {
  :root {
    --gutter: 50px;
    --motif-w: clamp(300px, 38vw, 640px);
    --motif-top: clamp(72px, 14svh, 160px);
  }

  body {
    padding-right: calc(var(--motif-w) + 56px);
    padding-bottom: 0;
  }

  .motif {
    top: var(--motif-top);
    height: calc(100% - var(--motif-top));
  }

  .site-header {
    padding-top: 40px;
  }

  .logo {
    width: 190px;
  }

  .hero {
    padding-block: 72px;
  }

  .site-footer {
    min-height: 0;
    padding-block: 24px 32px;
    padding-right: 0;
  }
}

/* Wide screens: hero text left, the card centred on the slab to the right. */
@media (min-width: 1024px) {
  body {
    padding-right: 0;
  }

  .hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--motif-w);
    column-gap: 56px;
    align-items: center;
    align-content: center;
  }

  .hero-split .contact-card {
    justify-self: center;
    width: min(420px, 100% - 48px);
    margin-top: 0;
    box-shadow: 0 32px 64px -32px rgba(20, 12, 26, 0.6);
  }
}

@media (min-width: 1500px) {
  body {
    padding-left: max(var(--gutter), calc((100vw - 1320px) / 2));
  }
}

/* The one authored moment: the lilac sweep settles into place. Skipped when reduced motion is requested. */
@media (prefers-reduced-motion: no-preference) {
  .motif-wave {
    animation: wave-settle 1600ms var(--ease-out-expo) both;
  }
}

@keyframes wave-settle {
  from {
    transform: translateY(72px);
  }

  to {
    transform: none;
  }
}
