/* ANTE PARFUMS sign-up page. Palette and type match the full site in website/. */
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url("fonts/jost-latin.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: "Jost"; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url("fonts/jost-latin-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #F4F1EA; --ink: #141414; --stone: #5E5A52; --fog: #CFCAC0; --error: #8C2B1E;
  --font: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* One centered column, sized so the form is on screen without scrolling. */
.page {
  flex: 1; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(32px, 6vh, 64px) var(--gutter);
  text-align: center;
}

.mast { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.mast-ante {
  font-weight: 300; font-size: clamp(34px, 4vw, 46px);
  letter-spacing: .42em; margin-right: -.42em; /* optically recentre tracked text */
}
.mast-rule {
  width: clamp(90px, 10vw, 130px); height: 1px; background: var(--ink);
  margin: 14px 0 12px;
  animation: draw 1s var(--ease) both;
}
.mast-parfums { font-size: clamp(11px, 1.1vw, 13px); letter-spacing: .5em; margin-right: -.5em; color: var(--stone); }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.join { width: 100%; max-width: 620px; margin-top: clamp(32px, 6vh, 56px); }
h1 { font-weight: 300; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; }
.pitch { font-size: clamp(18px, 1.6vw, 20px); margin: 14px auto 0; max-width: 32em; }

form { margin-top: clamp(24px, 4vh, 36px); }
label { display: block; font-size: 15px; color: var(--stone); margin-bottom: 8px; }
.field { display: flex; border: 1px solid var(--ink); background: #FBF9F4; }
.field:focus-within { box-shadow: 0 0 0 1px var(--ink); }
.field.is-error { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
input {
  flex: 1; min-width: 0; height: 64px; padding: 0 20px;
  border: 0; border-radius: 0; background: none; color: var(--ink);
  font: 400 20px var(--font); text-align: left;
}
input:focus { outline: none; }
input::placeholder { color: #6B665D; opacity: 1; } /* 5:1 on Paper */
button {
  flex: none; height: 64px; padding: 0 34px;
  border: 0; border-left: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--paper);
  font: 400 18px var(--font); cursor: pointer;
  transition: background .2s, color .2s;
}
button:hover { background: transparent; color: var(--ink); }
button[aria-busy="true"] { opacity: .6; cursor: progress; }
.msg { min-height: 24px; margin-top: 8px; font-size: 15px; }
.msg.is-error { color: var(--error); }
.consent { font-size: 13px; color: var(--stone); }
.consent a { color: var(--ink); }
.done { outline: none; margin-top: 20px; }
.done[hidden], form[hidden] { display: none; }
.done-title { font-size: clamp(26px, 3vw, 34px); font-weight: 300; }
.define { margin-top: 24px; font-size: 15px; color: var(--stone); }
.define b { font-weight: 400; color: var(--ink); }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  padding: 16px var(--gutter) 20px;
  border-top: 1px solid var(--fog);
  font-size: 13px; color: var(--stone);
}
.foot a:hover, .consent a:hover { color: var(--stone); }

/* Privacy page */
.doc-head { padding: 24px var(--gutter); border-bottom: 1px solid var(--fog); }
.doc-logo { display: inline-block; text-decoration: none; text-align: center; line-height: 1; }
.doc-logo b { display: block; font-weight: 300; font-size: 26px; letter-spacing: .42em; margin-right: -.42em; }
.doc-logo span { display: block; font-size: 9px; letter-spacing: .5em; margin: 8px -.5em 0 0; color: var(--stone); }
.doc { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter); }
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 10px; }
.doc h2 { font-weight: 400; font-size: 22px; margin: 40px 0 10px; }
.doc h3 { font-weight: 500; font-size: 17px; margin: 20px 0 6px; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; }
.doc li + li { margin-top: 8px; }
.doc strong { font-weight: 500; }
.doc-meta { color: var(--stone); font-size: 14px; }
.doc-intro { margin-top: 28px; }

@media (max-width: 480px) {
  .field { flex-direction: column; }
  input { flex: none; width: 100%; height: 60px; text-align: center; }
  button { width: 100%; height: 60px; border-left: 0; border-top: 1px solid var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  .mast-rule { animation: none; }
  button { transition: none; }
}
