/* Pages the PDFs don't draw — policies, About, Contact, Island Diaries, a story, 404 — built from the design's
   pieces: the title band, blush ground, Montserrat at the home page's sizes, the line-art pattern, the palm. */

/* reading column */
.pm-page { width: min(100% - 40px, 720px); margin: 0 auto; padding: 36px 0 80px; }
.pm-prose { font-size: 15px; line-height: 1.65; }
.pm-prose > * + * { margin-top: 1em; }
.pm-prose h2 { margin-top: 1.8em; font: 600 18px/1.3 var(--pm-font); letter-spacing: .045em; text-transform: uppercase; }
.pm-prose h3 { margin-top: 1.5em; font: 600 15px/1.3 var(--pm-font); }
.pm-prose ul, .pm-prose ol { padding-left: 1.3em; }
.pm-prose ul { list-style: disc; }
.pm-prose ol { list-style: decimal; }
.pm-prose li + li { margin-top: .4em; }
.pm-prose li::marker { color: var(--pm-periwinkle); }
.pm-prose a { text-decoration: underline; text-decoration-color: var(--pm-rule); text-underline-offset: .2em; }
.pm-prose a:hover { text-decoration-color: currentColor; }
.pm-prose strong, .pm-prose b { font-weight: 600; }
.pm-prose img { height: auto; border-radius: 3px; }
.pm-prose figure { margin: 1.5em 0; }
.pm-prose figcaption { margin-top: .5em; font-size: 12px; opacity: .8; }
.pm-prose blockquote { padding-left: 1em; border-left: 2px solid var(--pm-periwinkle); font-style: italic; }
.pm-prose table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pm-prose th, .pm-prose td { padding: 8px 10px; border-bottom: 1px solid var(--pm-rule); text-align: left; vertical-align: top; }
.pm-prose th { font-weight: 600; }
.pm-band__intro time { font-size: 13px; letter-spacing: var(--pm-track-wide); text-transform: uppercase; }

/* About Us: the client's About design (1366 wide; numbers are design px below the header). From 1024 to 1366
   the whole composition scales with the window (--k), text included, so nothing reflows into the artwork. */
.pm-about { --k: min(1px, 100vw / 1366); position: relative; isolation: isolate; width: min(100%, 1366px); height: calc(1971 * var(--k)); margin: 0 auto; }
.pm-about::before {   /* the line-art pattern over the whole page, as in the design */
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; opacity: .103; mix-blend-mode: multiply; pointer-events: none;
  background: url("../img/pattern-1500.webp") center top / 1500px auto repeat;
}
.pm-about__band { position: absolute; z-index: -2; top: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); padding-top: calc(152.4 * var(--k)); background: var(--pm-periwinkle); overflow: hidden; }
.pm-about__wave { position: relative; width: 120.497%; margin: 0 0 -1px -10.344%; }   /* the design's band wave: blush over periwinkle, top at 152.4 */
.pm-about > img { position: absolute; height: auto; }
.pm-about__bird { left: calc(68.5 * var(--k)); top: calc(77 * var(--k)); width: calc(103 * var(--k)); }
.pm-about__collage { left: calc(630.5 * var(--k)); top: calc(29 * var(--k)); width: calc(644.5 * var(--k)); z-index: 2; }
.pm-about__palm { left: calc(769 * var(--k)); top: calc(540 * var(--k)); width: calc(663.8 * var(--k)); max-width: none; opacity: .95; }
.pm-about__map { left: 0; top: calc(1041.5 * var(--k)); width: calc(852.5 * var(--k)); }
.pm-about__store { left: calc(118.5 * var(--k)); top: calc(1382.5 * var(--k)); width: calc(603.5 * var(--k)); z-index: 2; }
.pm-about__text { position: absolute; z-index: 3; color: var(--pm-indigo); font: 400 calc(18 * var(--k))/1.2 var(--pm-font); }
.pm-about__text p { margin: calc(21.6 * var(--k)) 0 0; }
.pm-about__text a { text-decoration: underline; text-underline-offset: .18em; }
.pm-about__h, .pm-about__text h2 { margin: 0; font: 600 calc(26 * var(--k))/1.2 var(--pm-font); letter-spacing: .045em; text-transform: uppercase; }
.pm-about__text h2 + p, .pm-about__h + p { margin-top: calc(20.8 * var(--k)); }
.pm-about__text--intro { left: calc(126 * var(--k)); top: calc(269 * var(--k)); width: calc(512 * var(--k)); }   /* the design's longest line is 505.5 at .05em */
.pm-about__text--story { left: calc(126 * var(--k)); top: calc(806 * var(--k)); width: calc(512 * var(--k)); }
.pm-about__text--visit { left: calc(782 * var(--k)); top: calc(1404 * var(--k)); width: calc(356 * var(--k)); scroll-margin-top: calc(var(--pm-announce-h) + var(--pm-header-h) + 60px); }   /* home "Visit us" lands here (#find-us) */
.pm-about__text--visit p:last-child a:only-child { display: inline-block; margin-top: calc(-0.2 * var(--k)); font: 600 calc(20 * var(--k))/1.2 var(--pm-font); }
.pm-about__text--more { left: calc(126 * var(--k)); top: calc(1900 * var(--k)); width: calc(1114 * var(--k)); }

/* below 1024: one column — band with the bird and the collage, the story, the palm, the map, the store photos */
@media (max-width: 1023px) {
  .pm-about { --k: 1px; height: auto; width: 100%; padding: 0 0 56px; display: flex; flex-direction: column; overflow: hidden; }
  .pm-about__band { padding-top: 96px; }
  .pm-about > img, .pm-about__text { position: relative; left: auto; top: auto; }
  .pm-about__bird { position: absolute; left: 14px; top: 10px; width: 62px; z-index: 3; }
  .pm-about__collage { order: 1; width: min(92%, 460px); margin: 18px auto 0; }
  .pm-about__text { width: auto; margin: 0 16px; font-size: 14px; line-height: 1.55; }
  .pm-about__text p { margin-top: 12px; }
  .pm-about__h, .pm-about__text h2 { font-size: 19px; }
  .pm-about__text h2 + p, .pm-about__h + p { margin-top: 10px; }
  .pm-about__text--intro { order: 2; margin-top: 22px; width: auto; }
  .pm-about__palm { order: 3; width: 72%; margin: 18px 0 0 auto; }
  .pm-about__text--story { order: 4; margin-top: 4px; width: auto; }
  .pm-about__map { order: 5; width: 112%; margin: 26px 0 0 -6%; }
  .pm-about__store { order: 6; width: min(92%, 460px); margin: 10px auto 0; }
  .pm-about__text--visit { order: 7; margin-top: 22px; width: auto; }
  .pm-about__text--visit p:last-child a:only-child { font-size: 16px; }
  .pm-about__text--more { order: 8; margin-top: 22px; width: auto; }
}

/* Contact: details beside the form */
.pm-contact { width: min(100% - 40px, 960px); margin: 0 auto; padding: 44px 0 90px; display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.pm-contact__h { font: 600 14px/1.2 var(--pm-font); letter-spacing: var(--pm-track); text-transform: uppercase; }
.pm-contact__h ~ .pm-contact__h { margin-top: 30px; }
.pm-contact__info p { margin-top: 10px; }
.pm-contact__email { font-weight: 600; text-decoration: underline; text-decoration-color: var(--pm-rule); text-underline-offset: .2em; word-break: break-word; }
.pm-contact__social { display: grid; gap: 10px; }
.pm-contact__social a { display: inline-flex; align-items: center; gap: 10px; }
.pm-contact__social .pm-i { width: 20px; height: 20px; color: var(--pm-indigo); }

/* forms (contact form, comments) */
.pm-field { display: grid; gap: 6px; }
.pm-field + .pm-field { margin-top: 16px; }
.pm-field label { font: 600 11px/1.2 var(--pm-font); text-transform: uppercase; }
.pm-field input, .pm-field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--pm-rule); border-radius: 4px; background: #fff; font-size: 14px; line-height: 1.4;
}
.pm-field input:focus, .pm-field textarea:focus { outline: 2px solid var(--pm-orange-ink); outline-offset: 1px; border-color: var(--pm-indigo); }
.pm-field.is-invalid input, .pm-field.is-invalid textarea { border-color: #8C3B4A; }
.pm-field__err { font-size: 12px; color: #8C3B4A; }
.pm-hp { position: absolute !important; left: -9999px; }
.pm-contact-form .pm-btn { margin-top: 20px; min-width: 150px; }
.pm-form-status { margin-top: 12px; font-size: 14px; }
.pm-form-status:empty { display: none; }

/* Island Diaries: post cards three across */
.pm-blog { width: min(100% - 40px, 1141.3px); margin: 0 auto; padding: 40px 0 90px; }
.pm-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px 28px; }
.pm-post-card__photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--pm-periwinkle); }
.pm-post-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--pm-ease); }
.pm-post-card:hover .pm-post-card__photo img { transform: scale(1.03); }
.pm-post-card__date { margin-top: 16px; font-size: 11px; letter-spacing: var(--pm-track-wide); text-transform: uppercase; }
.pm-post-card__title { margin-top: 8px; font: 600 17px/1.35 var(--pm-font); }
.pm-post-card__title a:hover { text-decoration: underline; text-underline-offset: .15em; }
.pm-post-card__excerpt { margin-top: 10px; font-size: 14px; line-height: 1.6; }
.pm-post-card__more { display: inline-block; margin-top: 12px; font-size: 12px; }
.pm-blog .pm-pager, .pm-page .pm-pager { margin-top: 52px; }
.pm-pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 12px; }
.pm-pager .nav-links a, .pm-pager .nav-links span { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; }
.pm-pager .nav-links .current { background: var(--pm-thumb-active); color: var(--pm-blush); }

/* a story */
.pm-single__photo { margin: 0 0 30px; overflow: hidden; border-radius: 4px; }
.pm-single__photo img { width: 100%; height: auto; }
.pm-single__back { margin-top: 48px; }
.pm-results li + li { margin-top: 22px; }
.pm-results a { font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.pm-results p { margin-top: 4px; font-size: 14px; }

/* empty states and 404 (also in shop.css for listings) */
.pm-empty { display: grid; justify-items: center; gap: 18px; padding: 60px 20px 90px; text-align: center; }
.pm-empty__mark { width: 62px; height: 28px; color: var(--pm-periwinkle); }

/* WooCommerce notices (cart, checkout, account, no-JS add to cart) */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin: 0 0 22px; padding: 14px 18px;
  border-left: 3px solid var(--pm-periwinkle); background: #fff; font-size: 14px; list-style: none;
}
.woocommerce-error { border-left-color: #8C3B4A; display: block; }
.woocommerce-error li + li { margin-top: 4px; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 1023px) {
  .pm-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .pm-page { width: calc(100% - 32px); padding: 22px 0 56px; }
  .pm-prose { font-size: 13px; }
  .pm-prose h2 { font-size: 14px; }
  .pm-contact { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 34px; padding: 26px 0 56px; }
  .pm-blog { width: calc(100% - 32px); padding: 24px 0 56px; }
  .pm-posts { grid-template-columns: 1fr; gap: 34px; }
  .pm-post-card__title { font-size: 15px; }
  .pm-post-card__excerpt { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .pm-post-card__photo img { transition: none; } }
