/* KAENVO Mektup — mektup.kaenvo.com. No scripts, no external requests. */
:root {
  --navy: #12294b;
  --gold: #c9a24d;
  --gold-ink: #7a5c12;
  --paper: #fbf8f1;
  --bg: #ffffff;
  --surface: #f4f6fa;
  --border: #d5dbe5;
  --text: #12294b;
  --muted: #4a5a73;
  --link: #1d5fa8;
  --urgent: #b42318;
  --ok: #166534;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #e9e3d3;
    --bg: #0b1626;
    --surface: #14243d;
    --border: #2b3d5c;
    --text: #f2f5fa;
    --muted: #a9b6c9;
    --link: #8fc0f5;
    --gold-ink: #e0bc6a;
    --urgent: #ffa39b;
    --ok: #7ee2a8;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.125rem/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); text-underline-offset: 0.15em; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; }
header.site nav { white-space: nowrap; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 0.75rem; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { width: 2.5rem; height: 2.5rem; border-radius: 0.6rem; }
header.site nav a { margin-left: 1.25rem; }

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 1.25rem; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; max-width: 62ch; }
.lead { font-size: 1.3rem; color: var(--muted); }

/* Hero: the letter on the left turns into the explanation on the right. */
.hero { padding: 2.5rem 0 4rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; margin-top: 2.5rem; }
.letter {
  background: var(--paper); color: #26303f; border: 1px solid #d9d2bf;
  padding: 2rem 1.75rem; font: 400 0.95rem/1.55 Georgia, "Times New Roman", serif;
  transform: rotate(-1.2deg); box-shadow: 0 1.2rem 2.2rem -1.4rem rgba(18, 41, 75, 0.55);
}
.letter .from { font-size: 0.8rem; border-bottom: 1px solid #b9b19c; padding-bottom: 0.5rem; margin-bottom: 1.25rem; }
.letter .ref { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 1.25rem; }
.letter p { max-width: none; margin-bottom: 0.8rem; }
.letter mark { background: rgba(201, 162, 77, 0.5); color: inherit; padding: 0.05em 0.15em; border-radius: 0.15em; }
.answer { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; padding: 1.75rem; }
.badge { display: inline-block; font-size: 0.95rem; font-weight: 600; padding: 0.3rem 0.8rem; border-radius: 2rem; background: #fff3d6; color: #8a4b00; margin-bottom: 0.9rem; }
.answer h3 { font-size: 1.35rem; }
.deadline { border-left: 0.35rem solid var(--gold); padding: 0.6rem 0 0.6rem 1rem; margin: 1.1rem 0; font-weight: 600; }
.deadline small { display: block; font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.answer ul { margin: 0; padding-left: 1.2rem; }
.fine { font-size: 0.9rem; color: var(--muted); margin: 1.1rem 0 0; }

.button {
  display: inline-block; background: var(--gold); color: #12294b; font-weight: 700;
  padding: 0.95rem 1.6rem; border-radius: 0.8rem; text-decoration: none; min-height: 3rem;
}
.soon { display: inline-block; border: 2px dashed var(--border); padding: 0.85rem 1.4rem; border-radius: 0.8rem; font-weight: 600; }

section { padding: 3.5rem 0; border-top: 1px solid var(--border); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-size: 2.6rem; font-weight: 700; color: var(--gold-ink); line-height: 1; margin-bottom: 0.5rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 1.5rem; }
.two ul { padding-left: 1.2rem; margin: 0; }
.two li { margin-bottom: 0.5rem; }
.yes h3 { color: var(--ok); }
.no h3 { color: var(--urgent); }
.plain { background: var(--navy); color: #fff; border-top: 0; }
.plain .wrap > p { color: #dbe3ef; }
.plain h2 { color: #fff; }
.plain ul { padding-left: 1.2rem; max-width: 62ch; }
.plain li { margin-bottom: 0.6rem; }
.plain a { color: #f1d894; }

footer { padding: 2.5rem 0 3.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 1rem; }
footer a { margin-right: 1.25rem; }

/* Legal pages */
.doc { padding: 1.5rem 0 4rem; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.doc h2 { margin-top: 2.5rem; font-size: 1.45rem; }
.doc h3 { margin-top: 1.5rem; }
.doc blockquote { margin: 0 0 1.5rem; padding: 0.8rem 1rem; border-left: 0.35rem solid var(--gold); background: var(--surface); }
.doc blockquote p { margin: 0; }
.doc table { border-collapse: collapse; width: 100%; margin: 0 0 1.25rem; font-size: 1rem; }
.doc th, .doc td { border: 1px solid var(--border); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
.doc th { background: var(--surface); }
.doc .table { overflow-x: auto; }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.lang { margin: 0 0 1.5rem; }

@media (max-width: 52rem) {
  .pair, .two, .steps { grid-template-columns: 1fr; }
  .letter { transform: none; }
  header.site nav a:first-child { margin-left: 0; }
}
