/* IZAM Finance — landing newsletter */
:root {
  --bg: #000000;
  --card: #0a0a0a;
  --text: #ededed;
  --muted: #8a8a8a;
  --muted-2: #6e6e6e;
  --line: #222222;
  --accent: #b8a27a;
  --danger: #c4a0a0;
  --radius: 2px;
  --max: 480px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: #444;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 3rem, var(--max));
  margin: 0 auto;
  padding: 1.4rem 0 4rem;
}

/* Header */
.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--accent);
  text-decoration: none;
}

.header-kicker {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  line-height: 1.3;
}

/* Hero */
.tagline {
  margin: 1.25rem 0 1rem;
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 1.1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.58rem, 6.2vw, 1.95rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  hyphens: none;
  -webkit-hyphens: none;
  text-wrap: balance;
}

.lede {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Ebook cover */
.cover {
  width: min(100%, 20.5rem);
  margin: 0 auto 1.15rem;
  padding: 1.55rem 1.4rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
}

.cover-brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

.cover-rule {
  width: 2.5rem;
  height: 1px;
  margin: 0 auto 1.25rem;
  background: var(--line);
  border: 0;
}

.cover-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 6.2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.cover-ep {
  margin: 0 0 1.25rem;
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.cover-chart {
  width: 11.5rem;
  height: auto;
  margin: 0 auto 1.25rem;
}

.cover-blurb {
  margin: 0 0 1.35rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

.cover-collection {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Form */
.signup {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 2.5rem;
}

.signup input[type="email"] {
  width: 100%;
  padding: 0.95rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  appearance: none;
}

.signup input[type="email"]::placeholder {
  color: var(--muted-2);
}

.signup input[type="email"]:hover,
.signup input[type="email"]:focus {
  border-color: #3a3a3a;
}

.signup button {
  width: 100%;
  padding: 0.95rem 1rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--bg);
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: var(--radius);
  cursor: pointer;
}

.signup button:hover {
  background: #fff;
  border-color: #fff;
}

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

.form-note {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted-2);
  text-align: center;
}

.form-message {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: center;
}

.form-message[data-state="error"] {
  color: var(--danger);
}

.form-message[data-state="info"] {
  color: var(--muted);
}

.form-message:empty {
  display: none;
}

/* Benefits */
.benefits {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
}

.icon-check {
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.12rem;
  color: var(--muted);
}

/* Sections */
.section {
  margin: 0 0 3rem;
  padding-top: 0.35rem;
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
}

.bio {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

.placeholder {
  margin: 0;
  padding: 0.95rem 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  background: transparent;
  border: 1px dashed var(--line);
  border-radius: 0;
}

/* FAQ */
.faq {
  display: grid;
  gap: 1.4rem;
}

.faq h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
}

.faq p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.faq-placeholder {
  margin-top: 0.4rem;
}

/* Footer */
.site-footer {
  margin-top: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.disclaimer {
  margin: 0 0 1.15rem;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--muted-2);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-nav a {
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.08rem;
}

.footer-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Legal pages */
.legal {
  font-size: 0.95rem;
  color: var(--muted);
}

.legal h1 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.legal .updated {
  margin: 0 0 1.75rem;
  font-size: 0.8rem;
  color: var(--muted-2);
}

.legal h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
}

.legal p,
.legal li {
  margin: 0 0 0.75rem;
}

.legal ul {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
}

.legal .placeholder-inline {
  color: var(--accent);
}

@media (min-width: 600px) {
  .wrap {
    padding-top: 2.5rem;
    padding-bottom: 4.5rem;
  }

  .tagline {
    margin-top: 2.35rem;
  }

  .lede {
    margin-bottom: 2.25rem;
  }

  h1 {
    font-size: 2rem;
  }

  .cover {
    padding: 2.25rem 1.65rem 1.7rem;
    margin-bottom: 2.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .signup button:active {
    transform: none;
  }
}
