/* ── Fonts ───────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/instrument-serif-v5-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic; font-weight: 500; font-display: swap;
  src: url('../fonts/instrument-serif-v5-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/dm-sans-v17-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/dm-sans-v17-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/dm-sans-v17-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic; font-weight: 300; font-display: swap;
  src: url('../fonts/dm-sans-v17-latin-300italic.woff2') format('woff2');
}

/* ── Reset ───────────────────────────────────────────────────────────────── */

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

/* ── Variables ───────────────────────────────────────────────────────────── */

:root {
  --ink:    #0E1117;
  --ink-2:  #3A3D45;
  --ink-3:  #7A7E8A;
  --paper:  #F5F3EE;
  --paper-2:#ECEAE3;
  --accent: #1A56DB;
  --serif:  'Instrument Serif', Georgia, serif;
  --sans:   'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Base ────────────────────────────────────────────────────────────────── */

html { -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); }

ul { padding-left: 20px; margin-bottom: 16px; }
li { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin-bottom: 6px; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */

nav {
  background: rgba(245,243,238,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(14,17,23,0.08);
  padding: 16px 48px;
  display: flex;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  font-family: var(--serif); font-size: 22px;
}

.nav-logo img { width: 32px; height: 32px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }


/* ── Main ────────────────────────────────────────────────────────────────── */

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

/* ── Card (confirm, unsubscribe, error pages) ────────────────────────────── */

.card {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--paper-2);
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
}

.card h1 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.card h1 em { font-style: italic; color: var(--accent); }

.card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  font-weight: 300;
  margin-bottom: 12px;
}

.card p:last-of-type { margin-bottom: 32px; }

/* Icon circle inside card */
.icon {
  width: 48px;
  height: 48px;
  background: #F1EFE8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.icon svg { width: 22px; height: 22px; }

/* Check circle (confirm page) */
.check {
  width: 48px;
  height: 48px;
  background: #EAF3DE;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.check svg { width: 22px; height: 22px; }

/* ── Button ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  background: var(--ink);
  color: white;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.btn:hover { background: var(--accent); }

/* ── Unsubscribe form ────────────────────────────────────────────────────── */

.input-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.input-row input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--paper-2);
  border-radius: 100px;
  font-size: 15px;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  text-align: center;
}

.input-row input[type="text"]:focus { border-color: var(--accent); }

.input-row button {
  width: 100%;
  background: var(--ink);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  transition: background 0.2s;
}

.input-row button:hover { background: var(--accent); }

.back {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
}

.back:hover { color: var(--ink); }

/* ── Container (legal pages: privacy, imprint) ───────────────────────────── */

.container {
  max-width: 680px;
  width: 100%;
  padding: 72px 24px 120px;
}

.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.container h1 {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.meta {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 48px;
}

.container h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 40px 0 12px;
  color: var(--ink);
}

.container p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  font-weight: 300;
  margin-bottom: 16px;
}

.container a { color: var(--accent); }

/* Info block (imprint) */
.info-block {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--paper-2);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.info-row {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.6;
}

.info-label { color: var(--ink-3); min-width: 140px; flex-shrink: 0; }
.info-value { color: var(--ink-2); }

/* ── Footer ──────────────────────────────────────────────────────────────── */

footer {
  background: var(--ink);
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo { font-family: var(--serif); font-size: 20px; color: white; }
.footer-note { font-size: 13px; color: rgba(255,255,255,0.3); }

.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: white; }

/* ── Note (small caption below buttons) ──────────────────────────────────── */

.note {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 20px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  nav { padding: 14px 20px; }
  .card { padding: 36px 24px; }
  .container { padding: 48px 20px 80px; }
  footer { padding: 20px 20px; flex-direction: column; align-items: flex-start; }
  .info-row { flex-direction: column; gap: 2px; }
  .info-label { min-width: unset; }
  footer { flex-direction: column; gap: 24px; text-align: center; }
  .footer-links { justify-content: center; }
}
