/* One document, with independent screen and A4 compositions. */
:root {
  color-scheme: light;
  --paper: #f8f6f1;
  --ink: #2d332f;
  --muted: #586259;
  --accent: #495b4a;
  --rule: #c9cbbf;
}

* { box-sizing: border-box; }
html { background: #e9e8e1; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
p, h1, h2 { margin: 0; }
strong { font-weight: 600; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.presentation {
  max-width: 1064px;
  margin: 0 auto;
  padding: 32px 24px 36px;
  background: var(--paper);
}
.introduction { display: grid; gap: 26px; }
.intro-copy { display: contents; }
h1 {
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(43px, 10.8vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 400;
}
.greeting {
  display: block;
  margin-bottom: 13px;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0;
}
.connector { font-style: italic; }
.lead { order: 2; }
.languages { order: 3; margin-top: -12px; color: var(--muted); }
.pdf-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; order: 4; margin-top: -6px; font-size: 14px; }
.pdf-view { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 13px; border: 1px solid var(--accent); border-radius: 4px; color: var(--accent); text-decoration: none; }
.pdf-view:hover { background: #e9ece4; }
.pdf-download { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.couple-photo { order: 1; width: 100%; align-self: center; }
section { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--rule); }
h2 {
  margin-bottom: 21px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.people { display: grid; gap: 26px; }
.person { display: flow-root; }
.portrait { float: right; width: 92px; margin: 4px 0 10px 18px; }
.person-name { font-weight: 700; }
.rental-care { margin-top: 25px; }
.solvency-facts { display: grid; gap: 15px; }
.documents { margin-top: 18px; color: var(--muted); }
.contact { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--accent); }
.contact h2 { margin-bottom: 8px; }
.contact-title p { font-weight: 600; }
address { display: grid; gap: 16px; margin-top: 17px; font-style: normal; }
.contact-label { display: block; margin-bottom: 3px; color: var(--muted); font-size: 13px; }
.contact-detail a { display: inline-block; padding: 6px 0; }

@media screen and (min-width: 720px) {
  body { padding: 36px; }
  .presentation { padding: 46px 48px 40px; }
  .introduction { grid-template-columns: 1.13fr 1fr; gap: 40px; align-items: center; }
  .intro-copy { display: block; }
  .lead { margin-top: 24px; }
  .languages { margin-top: 14px; }
  .pdf-actions { margin-top: 20px; }
  .greeting { font-size: 18px; }
  h1 { font-size: clamp(40px, 4.8vw, 58px); }
  section { margin-top: 36px; padding-top: 25px; }
  .people { grid-template-columns: 1fr 1fr; gap: 36px; }
  .portrait { width: 104px; }
  .solvency-facts { grid-template-columns: 1fr 1fr; gap: 36px; }
  .contact { display: grid; grid-template-columns: 1fr 3fr; gap: 28px; align-items: start; }
  address { grid-template-columns: 1fr 1fr; gap: 28px; margin: 0; }
  .contact-detail a { padding: 0; }
}

@page { size: A4 portrait; margin: 14mm; }

@media print {
  .pdf-actions { display: none !important; }
  html, body { background: white; }
  body { padding: 0; font-size: 11pt; line-height: 1.48; }
  .presentation { max-width: none; margin: 0; padding: 0; background: white; }
  .introduction { grid-template-columns: 1.13fr 1fr; gap: 8mm; align-items: center; }
  .intro-copy { display: block; }
  h1 { font-size: 33pt; line-height: 1.03; }
  .greeting { margin-bottom: 3mm; font-size: 11pt; }
  .lead { margin-top: 5mm; }
  .languages { margin-top: 3mm; }
  .couple-photo { width: 100%; }
  img { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  section { margin-top: 9.5mm; padding-top: 6mm; }
  h2 { margin-bottom: 4mm; font-size: 9pt; letter-spacing: 0.1em; }
  .people { grid-template-columns: 1fr 1fr; gap: 7mm; }
  .portrait { width: 24mm; margin: 0.8mm 0 2mm 3.5mm; }
  .rental-care { margin-top: 6mm; }
  .solvency-facts { grid-template-columns: 1fr 1fr; gap: 7mm; }
  .documents { margin-top: 4mm; }
  .contact { display: grid; grid-template-columns: 1fr 3fr; gap: 6mm; margin-top: 8mm; padding-top: 6mm; }
  .contact h2 { margin-bottom: 1.5mm; }
  address { grid-template-columns: 1fr 1fr; gap: 6mm; margin: 0; }
  .contact-label { margin-bottom: 1mm; font-size: 9pt; }
  .contact-detail a { padding: 0; text-decoration: none; }
  .introduction, .person, .rental-care, .solvency, .contact { break-inside: avoid; }
  h2 { break-after: avoid; }
  p { orphans: 3; widows: 3; }
}
