/* Page sections shared by the home, books, blog, coming-soon and about pages */

.page-head { padding-block: clamp(40px, 6vw, 80px); }
.page-head .h1 { margin-top: 14px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 30px; }

/* home: white paper with a soft grey pencil sketch (tools/hero/build-hero-sketch.mjs): coloured pencils rising from
   the bottom, taller in the middle, only a hint of colour; one half of the compass rose on each side.
   --pw = width of the pencils picture; the bottom padding keeps the pencils clear of the buttons and the counter. */
.hero-cmw { --pw: min(1440px, 150%); position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(64px, 8vw, 116px) calc(var(--pw) * 0.15 + 28px); border-bottom: 1px dashed var(--line); }
.hero-cmw::before { content: ""; position: absolute; left: 50%; bottom: 0; z-index: -1; width: var(--pw); aspect-ratio: 1440 / 300; translate: -50% 0; background: url("/assets/img/hero-pencils.webp") center bottom / 100% auto no-repeat; pointer-events: none; }
.hero-rose { position: absolute; top: 50%; z-index: -1; width: clamp(110px, 26vw, 400px); aspect-ratio: 1 / 2; translate: 0 -50%; background: url("/assets/img/hero-rose.webp") left center / contain no-repeat; pointer-events: none; }
.hero-rose-l { left: 0; }
.hero-rose-r { right: 0; rotate: 180deg; } /* turned, not mirrored: the shading stays that of one real rose */
.hero-box { position: relative; max-width: 720px; margin-inline: auto; text-align: center; }
.hero-box > .stamp { width: min(170px, 44%); margin: 0 auto 16px; rotate: -6deg; }
.hero-box .h1 { font-size: clamp(32px, 4.6vw, 58px); }
.hero-box .h1 .acc { display: block; }
.hero-box .sub { margin-inline: auto; }
.hero-box .btns { justify-content: center; }
@media (max-width: 860px) {
  .hero-cmw { --pw: 190%; }
  /* phone: a quarter of the rose in each top corner */
  .hero-rose { width: 170px; top: 0; opacity: 0.85; }
}

/* the six continents */
.conts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 30px; text-align: center; }
@media (max-width: 960px) { .conts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 420px) { .conts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.conts li { border: 1px solid var(--line); background: #fff; }
.conts li > a, .conts li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.conts li { padding: 14px 12px 16px; }
.conts li > a { width: 100%; }
.conts .stamp { width: 82%; rotate: -4deg; opacity: 0.5; }
.conts b { font: 700 13.5px/1.2 var(--f-body); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
.conts .state { font: 500 12px/1.3 var(--f-body); color: var(--ink-soft); }
.conts li.open { border: 2px solid var(--orange-d); }
.conts li.open .stamp { opacity: 1; }
.conts li.open .state { color: #fff; background: var(--orange-d); padding: 4px 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; }
.conts li.open:hover { background: #fff6ef; }

/* featured book */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .feature { grid-template-columns: minmax(0, 1fr); } }
.book-fan { position: relative; display: block; aspect-ratio: 1.15 / 1; max-width: 540px; width: 100%; margin-inline: auto; }
.book-fan img { position: absolute; width: 46%; box-shadow: 0 22px 40px -22px rgba(28, 26, 23, 0.5); background: #fff; }
.book-fan .b1 { left: 2%; top: 8%; rotate: -6deg; }
.book-fan .b2 { left: 26%; top: 2%; width: 50%; rotate: 2deg; z-index: 2; }
.book-fan .b3 { right: 1%; top: 12%; rotate: 8deg; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li { font: 600 12px/1 var(--f-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 999px; padding: 8px 12px; }

/* the CMW world: four tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; text-align: left; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tiles a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; height: 100%; border: 1px solid var(--line); background: #fff; padding: 12px 12px 18px; transition: border-color 0.2s; }
.tiles a:hover { border-color: var(--navy); }
.tile-vis { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: #faf8f4; margin-bottom: 10px; }
.tile-seal { width: 62%; rotate: -6deg; }
.tile-cover { width: 54%; box-shadow: 0 16px 26px -16px rgba(28, 26, 23, 0.6); rotate: -3deg; }
.tile-photo { width: 100%; height: 100%; object-fit: cover; }
.tile-vis .soon-stamp { position: absolute; right: 10px; bottom: 10px; font-size: 10.5px; padding: 7px 9px 6px; background: rgba(255, 255, 255, 0.7); }
.tiles b { font: 800 16px/1.2 var(--f-body); text-transform: uppercase; color: var(--navy); padding-inline: 4px; }
.tiles a > span:not(.soon-stamp) { font: 400 13.5px/1.4 var(--f-body); color: var(--ink-soft); padding-inline: 4px; }
.draw { width: 82%; height: auto; overflow: visible; }

/* values */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .values { grid-template-columns: minmax(0, 1fr); } }
.values li { display: grid; gap: 6px; align-content: start; }
.values svg { width: 56px; height: 56px; color: var(--ink); overflow: visible; }
.values b { font: 700 16px/1.3 var(--f-body); color: var(--navy); }
.values li > span { font: 300 14.5px/1.55 var(--f-body); }

/* blog cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: #fff; border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s; }
.card a:hover { border-color: var(--navy); transform: translateY(-2px); }
.card-img { aspect-ratio: 3 / 2; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-txt { display: grid; gap: 8px; padding: 18px 18px 22px; align-content: start; flex: 1; }
.card-k { font: 600 11.5px/1.3 var(--f-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange-d); }
.card-x { font: 300 14.5px/1.55 var(--f-body); }
.card .more { justify-self: start; margin-top: 6px; }

/* how to order */
.order-band { background: var(--navy); color: #f4f2ec; }
.order-band .h2 { color: #fff; }
.order-band .kicker { color: #ffb48a; }
.order-band .acc { color: #ffb48a; }
.order-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; align-items: center; }
@media (max-width: 760px) { .order-in { grid-template-columns: minmax(0, 1fr); } }
.steps { display: grid; gap: 14px; margin-top: 24px; }
.steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; font: 300 16.5px/1.5 var(--f-body); }
.steps b { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #ffb48a; color: #ffb48a; display: grid; place-items: center; font: 800 16px/1 var(--f-body); }
.order-cta { display: grid; justify-items: center; gap: 18px; }
.order-cta .stamp { width: 150px; --ink-c: #f4f2ec; mix-blend-mode: normal; rotate: -8deg; opacity: 0.9; }

/* books page */
.book-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 760px) { .book-row { grid-template-columns: minmax(0, 1fr); } }
.book-cover img { width: min(380px, 100%); margin-inline: auto; box-shadow: 0 26px 46px -24px rgba(28, 26, 23, 0.6); rotate: -2deg; }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
@media (max-width: 520px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.specs div { border-top: 2px solid var(--ink); padding-top: 8px; }
.specs dt { font: 500 11.5px/1.3 var(--f-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.specs dd { font: 800 18px/1.3 var(--f-body); color: var(--navy); }

/* coming soon */
.soon-big { font-size: 15px; padding: 12px 16px 11px; margin-top: 22px; }
.soon-page .sub { margin-top: 22px; }
.teasers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .teasers { grid-template-columns: minmax(0, 1fr); } }
.teasers li { border: 1.5px dashed rgba(28, 26, 23, 0.25); padding: 18px 18px 22px; display: grid; gap: 6px; align-content: start; }
.teaser-vis { aspect-ratio: 16 / 10; display: grid; place-items: center; background: #faf8f4; margin-bottom: 10px; }
.teasers b { font: 700 16px/1.3 var(--f-body); color: var(--navy); }
.teasers li > span { font: 300 14.5px/1.55 var(--f-body); }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }
.about-seal { position: relative; max-width: 380px; width: 100%; margin-inline: auto; }
@media (max-width: 860px) { .about-seal { max-width: 260px; } }
.about-seal .stamp { width: 100%; rotate: -7deg; }
.about-seal .hand { position: absolute; right: 0; bottom: -10px; rotate: -4deg; }
.about-zoe { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
@media (max-width: 640px) { .about-zoe { grid-template-columns: minmax(0, 1fr); } .about-zoe img { width: 120px; } }

/* blog article */
.post-head { padding-block: clamp(36px, 5vw, 64px) 28px; }
.post-head .h1 { margin-top: 14px; font-size: clamp(30px, 4.6vw, 56px); max-width: 22ch; margin-inline: auto; }
.post-head .sub { margin-top: 16px; }
.post-head .note { margin-top: 14px; }
.post-cover img { width: 100%; max-height: 640px; object-fit: cover; }
.credit { font: 400 12px/1.4 var(--f-body); color: var(--ink-soft); }
.credit a { color: inherit; }
.post-cover figcaption { margin-top: 8px; text-align: right; }
.prose { max-width: 68ch; margin: clamp(30px, 5vw, 56px) auto 0; font: 300 17.5px/1.75 var(--f-body); }
.prose h2 { font: 800 clamp(21px, 2.4vw, 27px)/1.2 var(--f-body); text-transform: uppercase; color: var(--navy); margin: 1.8em 0 0.5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 700 19px/1.3 var(--f-body); color: var(--navy); margin: 1.4em 0 0.4em; }
.prose p { margin: 0 0 1em; }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 0; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 0.75em; width: 9px; height: 9px; border-radius: 50%; background: var(--orange-d); }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose a { color: var(--orange-d); }
.prose img { margin: 1.2em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--orange-d); font: italic 600 22px/1.4 var(--f-serif); }
.post-gallery { margin-top: clamp(40px, 6vw, 70px); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
@media (max-width: 760px) { .gallery { grid-template-columns: minmax(0, 1fr); } }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery figcaption { margin-top: 8px; font: 400 14px/1.45 var(--f-body); }
.gallery .credit { display: block; margin-top: 4px; }
.post-book { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(20px, 3vw, 30px); border: 1.5px dashed rgba(28, 26, 23, 0.28); }
.post-book .stamp { width: 100%; rotate: -8deg; }
@media (max-width: 640px) { .post-book { grid-template-columns: minmax(0, 1fr); } .post-book .stamp { width: 90px; } }

/* games and goodies: designs to order on WhatsApp */
.shop { display: grid; gap: clamp(40px, 6vw, 80px); }
.product { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.product:nth-child(even) .product-img { order: 2; }
@media (max-width: 860px) { .product { grid-template-columns: minmax(0, 1fr); } .product:nth-child(even) .product-img { order: 0; } }
.product-img img { width: 100%; border: 1px solid var(--line); }
.product-txt .h2 { margin-top: 16px; }
.product-txt .lead { margin-top: 12px; }
.product-meta { margin-top: 14px; font: 600 12.5px/1.5 var(--f-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.product-txt .note { margin-top: 12px; max-width: 52ch; }

/* explorers' gallery: readers' colourings pinned like photos */
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 960px) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.wall figure { margin: 0; padding: 10px 10px 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 24px -18px rgba(28, 26, 23, 0.55); rotate: -1deg; }
.wall li:nth-child(even) figure { rotate: 1.2deg; }
.wall img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.wall figcaption { margin-top: 10px; font: 400 14px/1.4 var(--f-body); }
.wall figcaption .what { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-soft); }
.wall-empty { display: grid; justify-items: center; gap: 18px; }
.wall-empty .stamp { width: 140px; rotate: -6deg; opacity: 0.8; }
.wall-rules { margin-top: 20px; max-width: 52ch; font: 300 14.5px/1.55 var(--f-body); opacity: 0.85; }
.order-band .tag { color: #ffb48a; font-style: normal; font-weight: 600; }
.wall-invite { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 26px; align-items: center; margin-top: 30px; padding: clamp(20px, 3vw, 30px); border: 1.5px dashed rgba(28, 26, 23, 0.28); }
.wall-invite .stamp { width: 100%; rotate: -6deg; opacity: 0.85; }
@media (max-width: 760px) { .wall-invite { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } .wall-invite .stamp { width: 110px; } }
