@import url("./brand-tokens.css");

/* Same self-hosted fonts and Still tokens as praze-landing. */
@font-face {
  font-family: "Newsreader";
  src: url("./fonts/Newsreader-Variable.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("./fonts/Newsreader-Italic-Variable.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("./fonts/InstrumentSans-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("./fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--violet); text-underline-offset: 3px; }
.page-header, .onboarding-layout, .page-footer {
  width: min(calc(100% - clamp(2rem, 8vw, 6rem)), 1160px);
  margin-inline: auto;
}
.page-header { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 22px;
  height: 22px;
  background: currentColor;
  mask: url("./axis_p_normalized.svg") center / contain no-repeat;
  -webkit-mask: url("./axis_p_normalized.svg") center / contain no-repeat;
}
.brand-name { font-family: var(--font-serif); font-size: 24px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; text-decoration: none; }
.onboarding-layout { display: grid; grid-template-columns: 1fr minmax(0, 480px); align-items: start; gap: clamp(36px, 7vw, 96px); padding-block: 64px 100px; }
.rubric { margin: 0 0 18px; font-family: var(--font-serif); font-size: 19px; font-style: italic; color: var(--violet); }
h1, h2, h3 { font-family: var(--font-serif); font-optical-sizing: auto; font-weight: 400; }
h1 { margin: 0; font-size: clamp(44px, 5.8vw, 72px); line-height: 1.02; letter-spacing: -.035em; }
h1 em { color: var(--violet); font-weight: inherit; }
h2 { margin: 0 0 14px; font-size: 34px; line-height: 1.1; letter-spacing: -.02em; }
h3 { margin: 0; font-size: 25px; line-height: 1.2; }
.intro-copy { max-width: 410px; margin: 26px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.journey { list-style: none; margin: 42px 0 0; padding: 0; display: grid; gap: 24px; }
.journey li { display: flex; align-items: start; gap: 18px; color: var(--muted); font-size: 14px; }
.journey strong { color: var(--ink); font-weight: 500; }
.step-number { padding-top: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--violet); }
.form-card { min-width: 0; padding: clamp(24px, 3vw, 38px); border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--card); box-shadow: var(--shadow-card); }
.form-card section > p { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
form { display: grid; gap: 18px; }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
label span { font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.65; }
input, textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 13px 16px;
  background: var(--ground);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
input::placeholder, textarea::placeholder { color: var(--muted-small); }
textarea { min-height: 120px; resize: vertical; }
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: 600 14px/1.35 var(--font-sans);
  background: var(--ink);
  color: var(--ground);
  cursor: pointer;
  transition: background-color 160ms var(--ease-smooth), border-color 160ms var(--ease-smooth);
}
button:hover { background: #2c2842; }
button:disabled { opacity: .45; cursor: not-allowed; }
.secondary { margin-top: 12px; background: transparent; color: var(--ink); border-color: var(--outline); }
.secondary:hover { background: var(--ground); border-color: var(--muted-small); }
#toggle-account { width: 100%; margin-top: 18px; }
#forgot-password, #resend-email { min-height: 44px; padding: 8px 0; margin: 10px 18px 0 0; border: 0; color: var(--muted); font-size: 12px; font-weight: 400; text-align: left; }
#terms, #application-form > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.form-card section > #existing-account-help { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.consent { display: flex; align-items: flex-start; gap: 10px; }
.consent input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--violet); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
#feedback { margin: 0; font-size: 14px; }
#feedback:not(:empty) { margin-bottom: 24px; padding: 12px 15px; border-left: 3px solid var(--violet); background: var(--ground); border-radius: 0 8px 8px 0; }
#feedback[data-error="true"] { border-color: var(--destructive); color: var(--destructive); }
#church-results { display: grid; gap: 10px; margin-top: 12px; }
#church-results .secondary { margin: 0; text-align: left; justify-content: flex-start; border-radius: 12px; }
#church-results p { font-size: 12px; color: var(--muted); }
#selected-church { font-size: 14px; color: var(--violet); }
article { padding-block: 24px; border-bottom: 1px solid var(--line); }
article p { overflow-wrap: anywhere; font-size: 14px; color: var(--muted); }
.page-footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-small); }
.page-footer nav { display: flex; gap: 24px; }
.page-footer a { color: inherit; }
[hidden] { display: none !important; }
@media (max-width: 820px) {
  .onboarding-layout { grid-template-columns: 1fr; gap: 32px; padding-block: 24px 64px; }
  .introduction { max-width: 560px; }
  .intro-copy { max-width: 500px; margin-top: 18px; font-size: 16px; }
  .journey { display: none; }
  .form-card { width: 100%; max-width: 560px; }
  h1 { font-size: clamp(44px, 8vw, 62px); }
}
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
