/* 3 Hasen Post — fokussierte Anmeldeseite. Keine eigenen Tracker, keine Google-Fonts. */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Italic-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Variable.ttf") format("truetype");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #efebe3;
  --ink: #16120f;
  --dom: #6f2c22;
  --dom-dark: #541f18;
  --mute: #5a534c;
  --rule: #c4bdb2;
  --field: #f7f5f0;
  --serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 450;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dom); text-underline-offset: 0.15em; }
a:hover { color: var(--dom-dark); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--dom);
  outline-offset: 3px;
}


.wrap {
  width: min(calc(100% - 2rem), 44rem);
  margin-inline: auto;
}

/* Masthead */
.masthead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 0 0.7rem;
  text-decoration: none;
  color: inherit;
}
.masthead-logo {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}
.masthead-name {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--dom);
}
.rule {
  border: 0;
  border-top: 1px solid var(--ink);
  margin: 0 auto;
  width: min(calc(100% - 2rem), 44rem);
}

/* Hero: everything above the fold exists to get the email */
.hero {
  flex: 1 0 auto;
  padding: 1.4rem 0 1.5rem;
  text-align: center;
}
.hero h1 {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(2rem, 7vw, 3.15rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.promise {
  margin: 0.7rem auto 0;
  max-width: 28rem;
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--ink);
}

.signup {
  margin: 1.25rem auto 0;
  max-width: var(--measure);
  text-align: left;
}
.form {
  margin: 1.25rem auto 0;
  max-width: var(--measure);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: left;
}
.form label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
input[type="email"] {
  font-family: var(--serif);
  font-size: 1.05rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--field);
  color: var(--ink);
  width: 100%;
}
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--dom);
  background: var(--dom);
  color: #f7f5f0;
  cursor: pointer;
  border-radius: 0;
  text-align: center;
}
.btn:hover { background: var(--dom-dark); border-color: var(--dom-dark); color: #f7f5f0; }
.btn[disabled], .btn[aria-disabled="true"] {
  cursor: not-allowed;
}
.micro {
  margin: 0.15rem 0 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--mute);
  text-align: center;
}
.micro a { color: inherit; }

/* Rubrics: one tight typographic line, no cards */
.rubrics {
  padding: 0 0 0.85rem;
  text-align: center;
}
.rubrics h2 {
  margin: 0 0 0.45rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 550;
  color: var(--mute);
  letter-spacing: 0.02em;
}
.rubrics ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1.55;
}
.rubrics li { display: inline; }
.rubrics li:not(:last-child)::after {
  content: " · ";
  color: var(--mute);
  font-weight: 400;
}

.form-again {
  padding: 0 0 1.75rem;
  text-align: center;
}
.form-again p {
  margin: 0;
  font-style: italic;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 0.8rem 0 1.2rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--mute);
  text-align: center;
}
.site-footer a { color: inherit; }

/* Legal pages */
.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}
.legal-header .masthead { padding: 0; justify-content: flex-start; gap: 0.4rem; }
.legal-header .masthead-logo { width: 36px; height: 36px; flex-basis: 36px; }
.legal-header .masthead-name { font-size: 1.35rem; }
.legal-header nav {
  font-family: var(--sans);
  font-size: 0.85rem;
  display: flex;
  gap: 1rem;
}
.legal-header nav a { color: var(--ink); text-decoration: none; }
.legal-header nav a:hover { text-decoration: underline; color: var(--dom); }
.legal {
  padding: 1.6rem 0 2.5rem;
  max-width: 40rem;
}
.legal h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: -0.03em;
  font-weight: 600;
}
.legal h2 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.legal ul { padding-left: 1.2rem; }
.meta { color: var(--mute); font-style: italic; }

@media (min-width: 560px) {
  .masthead { padding-top: 1.2rem; gap: 0.65rem; }
  .masthead-logo { width: 64px; height: 64px; flex-basis: 64px; }
  .masthead-name { font-size: 2.35rem; }
  .hero { padding-top: 1.8rem; }
  .form-row {
    flex-direction: row;
    align-items: stretch;
  }
  input[type="email"] { flex: 1 1 auto; }
  .form-row .btn { flex: 0 0 auto; }
}
