/* ============================================================
   PRINT STYLESHEET
   ============================================================

   Loaded via <link media="print"> so the browser treats this
   stylesheet as print-only at the link level. This is more
   robust across browsers (especially iOS Safari) than wrapping
   rules in @media print inside a screen stylesheet, where
   mobile viewport calculations can leak through.

   Two-page A4 book-quality practice description, rendered from
   the dedicated #print-document element in the HTML. Every
   other body child is hidden.

       Page 1: Title + portrait → About → Services 1–4
       Page 2: Services 5–6 → Philosophy → Biography → Contact

   Body:          10pt Bradford on 12.5pt leading
   Headings:      14pt Bradford roman, left-aligned (Knopf style)
   Portrait:      22mm square grayscale medallion in title block
   Philosophy:    10pt indented block quote (12mm each side)
   Running head:  9pt centered on page 2 only
   Colophon:      7.5pt centered with dynamic typeset date
   ============================================================ */

@page {
  size: A4 portrait;
  margin: 22mm 22mm 25mm 22mm;
  @top-center {
    content: "Jonas Hertner";
    font-family: 'Bradford', Palatino, 'Palatino Linotype', Georgia, serif;
    font-size: 9pt;
    color: #888;
    font-style: normal;
    letter-spacing: 0.02em;
    vertical-align: bottom;
  }
}

@page :first {
  @top-center { content: ""; }
}

/* ------- Global reset for print ------- */
*, *::before, *::after {
  animation: none !important;
  transition: none !important;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  overflow: visible !important;
  background: #fff !important;
  color: #000 !important;
  opacity: 1 !important;
  transform: none !important;
  position: static !important;
}

body::after { display: none !important; }

/* Hide the entire screen layout — show only #print-document */
body > * {
  display: none !important;
}

body > #print-document {
  display: block !important;
  visibility: visible !important;
  position: static !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  opacity: 1 !important;
  transform: none !important;
  font-family: 'Bradford', Palatino, 'Palatino Linotype', Georgia, serif;
  font-size: 10pt;
  line-height: 12.5pt;
  color: #111;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
}

#print-document * {
  font-family: inherit;
  color: inherit;
  box-sizing: content-box;
}

/* ------- Title block (page 1 top) ------- */
#print-document .pd-title {
  text-align: center;
  margin: 0 0 22pt 0;
  padding: 0;
  page-break-after: avoid;
}

#print-document .pd-portrait {
  width: 22mm;
  height: 22mm;
  margin: 0 auto 10pt auto;
  padding: 0;
  overflow: hidden;
  border: none;
}

#print-document .pd-portrait picture,
#print-document .pd-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(100%) contrast(1.05);
}

#print-document .pd-name {
  font-size: 22pt;
  line-height: 24pt;
  font-weight: normal;
  font-style: normal;
  letter-spacing: 0.01em;
  margin: 0 0 3pt 0;
  padding: 0;
  color: #000;
  text-align: center;
}

#print-document .pd-subtitle {
  font-size: 10pt;
  line-height: 12.5pt;
  font-weight: normal;
  font-style: normal;
  letter-spacing: 0.01em;
  margin: 0;
  padding: 0;
  color: #555;
  text-align: center;
}

/* ------- Body ------- */
#print-document .pd-body {
  margin: 0;
  padding: 0;
}

#print-document .pd-lede {
  font-size: 10pt;
  line-height: 12.5pt;
  margin: 0;
  padding: 0;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  orphans: 3;
  widows: 3;
  color: #111;
}

/* ------- Sections ------- */
#print-document .pd-section {
  margin: 0;
  padding: 0;
  page-break-inside: avoid;
}

#print-document .pd-section h2 {
  font-size: 14pt;
  line-height: 17pt;
  font-weight: normal;
  font-style: normal;
  letter-spacing: 0.015em;
  text-transform: none;
  text-align: left;
  color: #000;
  margin: 0;
  padding: 14pt 0 4pt 0;
  page-break-after: avoid;
  hyphens: none;
  word-wrap: normal;
  overflow-wrap: normal;
  display: block;
}

#print-document .pd-section p {
  font-size: 10pt;
  line-height: 12.5pt;
  margin: 0;
  padding: 0;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  orphans: 3;
  widows: 3;
  color: #111;
}

/* Philosophy — indented block quote, same body size */
#print-document .pd-philosophy blockquote {
  font-size: 10pt;
  line-height: 12.5pt;
  font-style: normal;
  font-weight: normal;
  margin: 0;
  padding: 0 12mm;
  border: none;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  orphans: 3;
  widows: 3;
  color: #111;
}

/* Page break — Services 5 starts page 2 */
#print-document .pd-break {
  page-break-before: always;
}

/* ------- Footer (contact + colophon) ------- */
#print-document .pd-footer {
  margin: 0;
  padding: 0;
  page-break-inside: avoid;
}

#print-document .pd-contact {
  text-align: center;
  margin-top: 18pt;
  padding: 0;
}

#print-document .pd-contact p {
  font-size: 9pt;
  line-height: 12.5pt;
  margin: 0;
  padding: 0;
  text-align: center;
  color: #111;
}

#print-document .pd-colophon {
  text-align: center;
  margin-top: 13pt;
  padding: 0;
  font-size: 7.5pt;
  line-height: 11pt;
  letter-spacing: 0.05em;
  color: #888;
}

#print-document .pd-colophon::before {
  content: "Set in Bradford · Typeset " attr(data-typeset) "\A jonashertner.com";
  white-space: pre-line;
  display: block;
}

/* ------- Links ------- */
#print-document a {
  color: #111;
  text-decoration: none;
  border: none;
}
