/* Phoenix-rendered public pages (confirm, leave waitlist, privacy, terms).
   Same ink-on-paper look and fonts as the Astro landing in site/:
   Cormorant Garamond (display) + Onest (text), SIL OFL 1.1, licences in fonts/. */
@font-face { font-family: "Cormorant Garamond"; src: url("/site/fonts/cormorant-garamond-cyrillic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; src: url("/site/fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; 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: "Onest"; src: url("/site/fonts/onest-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("/site/fonts/onest-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; 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: "Onest"; src: url("/site/fonts/onest-cyrillic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("/site/fonts/onest-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; 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; }

:root {
  color-scheme: light;
  --paper: #f3ede1;
  --paper-2: #ebe3d3;
  --ink: #16120f;
  --ink-2: #3a322b;
  --muted: #5f564c;
  --line: rgba(22, 18, 15, 0.16);
  --seal: #c8241c;
  --seal-deep: #a51a14;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper) url("/site/img/paper.svg") repeat;
  font: 400 16px/1.65 var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 32px;
  -webkit-font-smoothing: antialiased;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0.32;
}
.backdrop img { width: min(100%, 520px); height: auto; mix-blend-mode: multiply; align-self: flex-start; }

a { color: var(--ink); text-decoration-color: rgba(200, 36, 28, 0.6); text-underline-offset: 3px; }
a:hover { color: var(--seal-deep); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; }

.top {
  width: 100%;
  max-width: 660px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 30px;
}
.brand img { display: block; width: 170px; height: auto; }

.lang { font: 600 13px/1 var(--text); letter-spacing: 0.14em; color: var(--muted); }
.lang a { position: relative; color: var(--muted); text-decoration: none; padding: 10px 7px; }
.lang a[aria-current] { color: var(--ink); }
.lang a[aria-current]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 12px;
  height: 10px;
  margin-left: -6px;
  background: var(--seal);
  -webkit-mask: url("/site/img/brush-dot.webp") center / contain no-repeat;
  mask: url("/site/img/brush-dot.webp") center / contain no-repeat;
}
.lang span { margin: 0 2px; }

.card {
  position: relative;
  width: 100%;
  max-width: 660px;
  background: var(--paper-2) url("/site/img/paper.svg") repeat;
  padding: 32px 24px 28px;
  box-shadow: 0 18px 40px -22px rgba(22, 18, 15, 0.45);
}
.card::before, .card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 22px;
  background: url("/site/img/torn-top.svg") center / 100% 100% no-repeat;
}
.card::before { top: -21px; }
.card::after { bottom: -21px; background-image: url("/site/img/torn-bottom.svg"); }

@media (min-width: 640px) {
  .card { padding: 44px 48px 38px; }
  .brand img { width: 200px; }
}

h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.05; }
h1 { font-size: clamp(34px, 8vw, 48px); margin: 0 0 6px; }
h1::after {
  content: "";
  display: block;
  width: 150px;
  height: 24px;
  margin: 10px 0 0 -6px;
  background: var(--ink);
  -webkit-mask: url("/site/img/brush-stroke.webp") center / 100% 100% no-repeat;
  mask: url("/site/img/brush-stroke.webp") center / 100% 100% no-repeat;
}
h2 { font-size: 24px; margin: 26px 0 6px; display: flex; align-items: center; gap: 10px; }
h2::before { content: ""; width: 16px; height: 14px; flex: 0 0 auto; background: var(--seal); -webkit-mask: url("/site/img/brush-dot.webp") center / contain no-repeat; mask: url("/site/img/brush-dot.webp") center / contain no-repeat; }

p { margin: 14px 0 0; color: var(--ink-2); }

.btn {
  position: relative;
  min-width: 220px;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 34px;
  border: 0;
  background: none;
  color: #fff;
  font: 600 14px/1 var(--text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: -30px -14px -30px -16px;
  z-index: -1;
  background: var(--seal);
  -webkit-mask: url("/site/img/brush-stroke.webp") center / 100% auto no-repeat;
  mask: url("/site/img/brush-stroke.webp") center / 100% auto no-repeat;
  transition: transform 0.3s;
}
.btn:hover { color: #fff; }
.btn:hover::before { transform: scaleX(1.05); background: var(--seal-deep); }

.back { margin-top: 26px; font-size: 15px; }
.draft {
  padding: 12px 14px 12px 44px;
  background: rgba(200, 36, 28, 0.07) url("/site/img/seal-frame.webp") 14px 14px / 18px 18px no-repeat;
  border-left: 2px solid var(--seal);
  font-size: 15px;
}
.draft strong { text-transform: uppercase; letter-spacing: 0.12em; margin-right: 6px; color: var(--seal); }

/* /account forms */
.account label { display: block; margin: 16px 0 4px; font-weight: 600; font-size: 14px; }
.account input[type=email], .account input[type=password], .account input[type=text] {
  width: 100%; min-height: 46px; padding: 8px 2px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink); font: inherit; font-size: 17px;
}
.account input:focus-visible { outline: none; border-bottom-color: var(--seal); }
/* account buttons: the same real brush stroke as the landing CTA, in ink (danger: seal red) */
.account button {
  position: relative; isolation: isolate; margin-top: 26px; min-height: 54px; min-width: 200px; padding: 0 40px; border: 0; background: none; color: #fff;
  font: 600 14px/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
.account button:not(.link)::before {
  content: ""; position: absolute; inset: -30px -12px -30px -14px; z-index: -1; background: var(--ink);
  -webkit-mask: url("/site/img/brush-stroke.webp") center / 100% auto no-repeat;
  mask: url("/site/img/brush-stroke.webp") center / 100% auto no-repeat;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: 6% 50%;
}
.account button:not(.link):hover::before { transform: scaleX(1.04); }
.account button:not(.link):active::before { transform: scale(0.97, 0.92); }
.account button.danger::before { background: var(--seal); }
.account button.link { background: none; color: var(--muted); padding: 0; min-height: 0; min-width: 0; text-decoration: underline; letter-spacing: 0; text-transform: none; }
.flash { padding: 10px 14px; border-left: 2px solid var(--ink); }
.flash.error { border-color: var(--seal); background: rgba(200, 36, 28, 0.08); color: var(--seal-deep); }
.flash.info { background: rgba(22, 18, 15, 0.05); }
.foot { width: 100%; max-width: 660px; text-align: center; font-size: 14px; color: var(--muted); padding-top: 42px; }
.foot p { margin: 0 0 6px; color: var(--muted); }
.foot a { color: var(--ink-2); }
.muted { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .card { animation: rise 0.6s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
}

.foot-icon { display: block; margin: 0 auto 14px; border-radius: 6px; }
