@media print {
  /* Hide screen-only elements */
  .nav, .print-button, .social-links {
    display: none !important;
  }

  /* Show header but hide footer */
  #footer {
    display: none !important;
  }

  /* Reset page margins and setup proper print layout */
  @page {
    margin: 0.75in;
    size: letter;
  }

  /* Body styling optimized for print */
  body {
    margin: 0;
    padding: 0;
    font-size: 10pt;
    line-height: 1.3;
    color: #000;
    background: white;
    max-width: none;
    font-family: "Times New Roman", serif;
  }

  /* Main heading */
  h1 {
    font-size: 18pt;
    font-weight: bold;
    margin: 0 0 12pt 0;
    text-align: left;
  }

  /* Add contact info after name */
  h1:after {
    content: "\A cameron@ctuck.com • github.com/tuckerman • linkedin.com/in/tuckerman";
    font-size: 10pt;
    font-weight: normal;
    display: block;
    margin-top: -2pt;
    white-space: pre;
  }

  /* Section headings */
  h2 {
    font-size: 12pt;
    font-weight: bold;
    margin: 12pt 0 6pt 0;
    page-break-after: avoid;
  }

  /* Prevent orphaned headings */
  h2 + p, h2 + ul {
    page-break-before: avoid;
  }

  /* Job/role entries */
  p {
    margin: 6pt 0 3pt 0;
    page-break-inside: avoid;
  }

  /* Strong text (job titles, companies) */
  strong {
    font-weight: bold;
  }

  /* Date ranges - keep on same line as title */
  .date-range {
    float: right;
    font-weight: normal;
    font-style: italic;
  }

  /* Lists */
  ul {
    margin: 3pt 0 6pt 0;
    padding-left: 18pt;
    page-break-inside: avoid;
  }

  li {
    margin: 1pt 0;
    line-height: 1.2;
  }

  /* Links - show URL for important links */
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666;
  }

  /* Don't show URLs for relative links */
  a[href^="/"]:after,
  a[href^="#"]:after {
    content: "";
  }

  /* Ensure good page breaks */
  .page-break {
    page-break-before: always;
  }

  /* Avoid breaking inside job entries */
  p + ul {
    page-break-before: avoid;
  }

  /* Compact spacing for print */
  br {
    line-height: 1.2;
  }
}
