
/* MARTIN_IOS_FIX_V1 */

@media (max-width: 760px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .wrap, .site-header {
    max-width: calc(100% - 36px);
    min-width: 0;
  }

  #root, main#main, .hero, .hero-grid,
  .hero-copy, .hero-art {
    min-width: 0;
  }

  .site-header .brand {
    min-width: 0;
    gap: 10px;
  }

  .site-header .monogram {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
    font-size: 19px;
    letter-spacing: -1.5px;
    line-height: 1;
  }

  .site-header .monogram > span {
    display: none !important;
  }

  .hero-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 30px;
  }

  .hero h1, .hero-copy > h1 {
    font-size: clamp(43px, 11vw, 66px) !important;
    line-height: 1.07 !important;
    letter-spacing: -.055em !important;
    max-width: 100%;
    overflow-wrap: normal;
  }

  .hero h1 .serif,
  .hero-copy > h1 > .serif {
    font-size: 1em !important;
    line-height: inherit !important;
    letter-spacing: -.055em !important;
  }

  .hero-art {
    width: min(100%, 360px) !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 8px 8px 0 !important;
  }

  .art-paper {
    width: 100%;
    max-width: 100%;
    transform: rotate(1.5deg);
  }

  .paper-visual {
    min-height: 220px;
  }

  .paper-visual .sketch {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    transform: rotate(-4deg);
    padding: 8px;
  }

  .yellow-sticker {
    right: 2px;
    top: 17px;
    padding: 9px 12px;
    font-size: 16px;
    max-width: 45%;
  }

  .blue-label {
    left: 7px;
    bottom: 16px;
    max-width: calc(100% - 22px);
    padding: 9px 13px;
    font-size: 10px;
    line-height: 1.45;
  }

  .paper-top, .paper-bottom {
    padding: 10px 12px;
    font-size: 7px;
    gap: 8px;
  }

  .art-caption {
    max-width: 100%;
    margin: 18px 0 0;
    text-align: center;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 15px;
  }

  .hero-bottom {
    min-width: 0;
    gap: 10px;
  }

  .hero-bottom a {
    white-space: normal;
  }

  .intro-grid, .chapter-copy,
  .application-section, .footer-top {
    min-width: 0;
  }

  .chapter {
    grid-template-columns: 85px minmax(0,1fr) 18px;
    gap: 13px;
  }

  .chapter-copy h3 {
    overflow-wrap: break-word;
  }

  .auth-card, .form-card {
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 390px) {
  .hero h1, .hero-copy > h1 {
    font-size: clamp(40px, 10.8vw, 45px) !important;
  }

  .hero-art {
    width: min(100%, 320px) !important;
  }

  .yellow-sticker {
    font-size: 14px;
  }
}

@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  textarea, select {
    font-size: max(16px, 1rem) !important;
  }
}
