@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: swap; src: url('/fonts/cormorant-garamond-latin-300-italic.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/jost-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/jost-latin-500-normal.woff2') format('woff2'); }

:root {
  --paper: #F6F4EE;
  --ink: #2E2E34;
  --ink-soft: #45454D;
  --placeholder: #5A5A63;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  /* Paper-coloured glow that keeps type readable where the figure passes behind it. */
  --halo: 0 0 3px var(--paper), 0 0 8px var(--paper), 0 0 8px var(--paper), 0 0 16px var(--paper), 0 0 16px var(--paper);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; }
a:hover { opacity: .8; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Honeypot: off-screen for people, visible to form-filling bots. */
.trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.pad {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(118,128,150,0.24) 0.85px, rgba(118,128,150,0) 1.05px);
  background-size: 24px 24px; background-position: center top;
}
.figure { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; }
.sheet {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 28px; padding: clamp(24px, 4vw, 52px) 20px; text-align: center;
}

.name { font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); font-weight: 500; line-height: 1; text-shadow: var(--halo); }
.name a { text-decoration: none; }

.main { width: min(100%, 520px); display: flex; flex-direction: column; align-items: center; gap: clamp(24px, 4vh, 40px); }
.headline {
  margin: 0; font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(46px, 6.6vw, 104px); line-height: 0.98; letter-spacing: -0.01em;
  text-wrap: balance; text-shadow: var(--halo);
}

.signup { position: relative; width: min(100%, 560px); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; }
.signup input[type="email"] {
  flex: 1 1 250px; min-width: 0; height: 60px; padding: 0 24px;
  font: inherit; font-size: 18px; color: var(--ink);
  background: #FFFFFF; border: 1.5px solid var(--ink); border-radius: 30px;
}
.signup input::placeholder { color: var(--placeholder); opacity: 1; }
.signup button {
  flex: 0 0 auto; height: 60px; padding: 0 30px;
  font: inherit; font-size: 17px; font-weight: 500; color: var(--paper);
  background: var(--ink); border: 0; border-radius: 30px; cursor: pointer;
}
.signup button[disabled] { opacity: .6; cursor: default; }
.signup .check { flex: 1 0 100%; display: flex; justify-content: center; }
.signup .check:empty { display: none; }
.problem {
  position: absolute; top: 100%; left: 0; right: 0; margin: 12px 0 0;
  font-size: 15px; line-height: 1.4; text-shadow: var(--halo);
}

.done { margin: 0; font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.2; text-shadow: var(--halo); }

.fine { max-width: 460px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); text-shadow: var(--halo); }

/* Privacy and not-found pages */
.sheet--page { justify-content: flex-start; gap: clamp(40px, 8vh, 88px); }
.page { width: min(100%, 34em); text-align: left; font-size: 18px; line-height: 1.6; }
.page h1 { margin: 0 0 0.6em; font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(40px, 5vw, 56px); line-height: 1.05; }
.page p { margin: 0 0 1.1em; }
.page .small { font-size: 14px; color: var(--ink-soft); }
