/* House of Honor — phone layout.
 *
 * The desktop pages are a fixed-width Readymag capture that only shrinks, so on
 * a phone everything became unreadably small. Below 768px wide the captured
 * layout is hidden and the hand-built #hoh-mobile block (same text, photos and
 * fonts) is shown in its place. The block's HTML is generated by
 * tools/build_mobile.py — edit that script, not the HTML it writes.
 */

@media (max-width: 767px) {
  /* Let the page scroll normally and hide the captured desktop layout. */
  html, body {
    width: auto !important;
    min-width: 0 !important;   /* the capture forces a 769px minimum */
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    position: static !important;
    background: #fffefb !important;
  }
  body > div:not(#hoh-mobile) { display: none !important; }
  #hoh-mobile { display: block !important; }
}

#hoh-mobile {
  --pad: 22px;
  --ink: #000;
  --field: #f4f3ee;
  background: #fffefb;
  color: var(--ink);
  font-family: xgnl, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
#hoh-mobile *, #hoh-mobile *::before, #hoh-mobile *::after { box-sizing: border-box; }
#hoh-mobile a { color: inherit; text-decoration: none; }
#hoh-mobile p { margin: 0; }
#hoh-mobile img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- header ---------- */
#hoh-mobile .m-head { padding: 26px var(--pad) 0; text-align: center; }
#hoh-mobile .m-logo {
  display: inline-block;
  font-family: ftgr, "Snell Roundhand", cursive;
  font-weight: 400;
  font-size: 38px;
  line-height: 1.25;
  padding: 0 6px;
}
#hoh-mobile .m-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
#hoh-mobile .m-nav a { padding: 10px 12px; font-size: 13px; }
#hoh-mobile .m-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

#hoh-mobile .m-intro { padding: 22px 34px 6px; text-align: center; }
#hoh-mobile .m-intro p + p { margin-top: 12px; }

#hoh-mobile .m-title { padding: 30px var(--pad) 0; font-size: 13px; }

/* ---------- photos ---------- */
#hoh-mobile .m-gallery { padding: 34px var(--pad) 0; }
#hoh-mobile .m-row { display: flex; gap: 6px; margin-bottom: 54px; }
#hoh-mobile .m-row:last-child { margin-bottom: 0; }
#hoh-mobile .m-ph { flex: 1 1 0; min-width: 0; background: #f1efe8; overflow: hidden; }
#hoh-mobile .m-row.single { padding: 0 9%; }
#hoh-mobile .m-row.wide { padding: 0; }
#hoh-mobile .m-row.small .m-ph { flex: 0 0 52%; }
#hoh-mobile .m-row.small.right { justify-content: flex-end; }
#hoh-mobile .m-row.tight { margin-bottom: 6px; }

/* ---------- press ---------- */
#hoh-mobile .m-press { padding: 64px var(--pad) 10px; text-align: center; }
#hoh-mobile .m-press .m-named {
  font-family: Lora, Georgia, serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 190px;
  margin: 0 auto;
  line-height: 1.35;
}
#hoh-mobile .m-press .m-featured { margin-top: 34px; font-size: 12px; }
#hoh-mobile .m-press .m-logos { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 16px; }
#hoh-mobile .m-press .m-logos img { height: auto; object-fit: contain; }

/* ---------- about ---------- */
#hoh-mobile .m-story { padding: 30px var(--pad) 0; font-size: 14px; line-height: 1.6; }
#hoh-mobile .m-story p + p { margin-top: 16px; }

/* ---------- call to action ---------- */
#hoh-mobile .m-cta { display: block; padding: 56px var(--pad) 0; font-size: 14px; }
#hoh-mobile .m-cta span { display: inline-block; padding: 8px 0; border-bottom: 1px solid currentColor; }

/* ---------- inquiry form ---------- */
#hoh-mobile .m-form { padding: 20px var(--pad) 0; }
#hoh-mobile .m-field { margin-bottom: 10px; background: var(--field); position: relative; }
#hoh-mobile .m-field input,
#hoh-mobile .m-field textarea,
#hoh-mobile .m-field select {
  display: block;
  width: 100%;
  margin: 0;
  padding: 13px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: xgnl, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;            /* 16px stops iPhones zooming in on focus */
  line-height: 1.35;
  -webkit-appearance: none;
  appearance: none;
  outline-offset: 0;
}
#hoh-mobile .m-field textarea { resize: vertical; min-height: 96px; }
#hoh-mobile .m-field ::placeholder { color: rgba(0, 0, 0, 0.5); opacity: 1; }
#hoh-mobile .m-field select { padding-right: 38px; }
#hoh-mobile .m-field select.is-empty { color: rgba(0, 0, 0, 0.5); }
#hoh-mobile .m-field.has-select::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -3px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
#hoh-mobile .m-field.is-missing { box-shadow: inset 0 -2px 0 #b03a2e; }
#hoh-mobile .m-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#hoh-mobile .m-form .button {
  display: block;
  width: 100%;
  margin: 14px 0 0;
  padding: 15px 12px;
  border: 0;
  border-radius: 0;
  background: #4c4c4c;
  color: #fff;
  font-family: xgnl, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
#hoh-mobile .m-form .button:disabled { opacity: 1; cursor: default; }
#hoh-mobile .m-note { padding: 14px var(--pad) 0; font-size: 12px; }

/* ---------- footer ---------- */
#hoh-mobile .m-foot {
  margin-top: 64px;
  padding: 34px var(--pad) 40px;
  background: #eaeaea;
  text-align: center;
}
#hoh-mobile .m-foot .m-logo { font-size: 32px; }
#hoh-mobile .m-foot .m-rose { width: 44px; height: auto; margin: 16px auto 18px; }
#hoh-mobile .m-foot .m-rose img { height: auto; object-fit: contain; }
#hoh-mobile .m-foot p + p { margin-top: 4px; }
#hoh-mobile .m-foot .m-links { margin-top: 18px; display: flex; flex-direction: column; align-items: center; }
#hoh-mobile .m-foot .m-links a { padding: 8px 10px; }
#hoh-mobile .m-foot .m-nav { margin-top: 10px; }
#hoh-mobile .m-foot .m-base { margin-top: 16px; font-size: 12px; }
