/* The inner pages (About, Edition Two). Builds on home.css: fonts, colours, the top bar, pills, the meet card. */
.inner .bar-logo { opacity: 1; transform: none; }


.page-head { padding: calc(100px + env(safe-area-inset-top)) var(--gut) 10px; text-align: center; }
.page-head h1 { margin-top: 6px; font: 400 clamp(2.5rem, 12vw, 4.4rem)/1.2 var(--display); color: var(--blue); text-wrap: balance; }
html[lang="en"] .page-head h1 { text-transform: uppercase; font-weight: 600; letter-spacing: 0.03em; font-size: clamp(1.9rem, 8.6vw, 3.4rem); line-height: 1.1; }
.page-head .sub { margin: 14px auto 0; max-width: 34ch; font-size: 1.05rem; text-wrap: balance; }

/* ---------- About ---------- */
.prose { max-width: 680px; margin: 0 auto; padding: 26px var(--gut) 30px; font-size: 1.08rem; line-height: 1.75; }
html[lang="ar"] .prose { line-height: 2; }
.prose p { text-wrap: pretty; }
.prose .lead { font-size: 1.2rem; color: var(--ink); }
.prose .lead::first-line { color: var(--blue); font-weight: 600; }
.dots { margin: 34px calc(var(--gut) * -1); position: relative; }
.dots img { width: 100%; border-block: 2px solid var(--blue); }
.dots::after { content: ''; position: absolute; width: 34px; height: 34px; inset-inline-end: 18px; bottom: -17px; background: var(--red); clip-path: path('M17 0c1.7 9.350 7.650 15.3 17 17-9.350 1.7-15.3 7.650-17 17-1.7-9.350-7.650-15.3-17-17 9.350-1.7 15.3-7.650 17-17Z'); }
@media (min-width: 720px) { .dots { margin-inline: 0; } .dots img { border: 2px solid var(--blue); border-radius: 16px; } }

.steps { max-width: 680px; margin: 0 auto; padding: 50px var(--gut) 76px; text-align: center; }
.steps h2 { margin-top: 6px; font: 400 clamp(2rem, 9vw, 3rem)/1.2 var(--display); color: var(--blue); }
html[lang="en"] .steps h2 { text-transform: uppercase; font-weight: 600; letter-spacing: 0.03em; font-size: clamp(1.7rem, 7.4vw, 2.6rem); }
.steps ol { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 22px; text-align: start; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.steps h3 { margin: 6px 0 4px; font: 600 1.2rem/1.3 var(--font); color: var(--blue); }
.steps li p { font-size: 1rem; }
/* a number pressed on like a rubber stamp: a ring, a little crooked, thumping into place */
.stampno { flex: none; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; border: 3px solid var(--red); outline: 1.5px solid var(--red); outline-offset: 3px; color: var(--red);
  font: 400 1.9rem/1 var(--display); rotate: -9deg; }
html[lang="en"] .stampno { font-weight: 600; font-size: 1.6rem; }
.steps li:nth-child(2) .stampno { rotate: 6deg; } .steps li:nth-child(3) .stampno { rotate: -4deg; }
.steps li.rise .stampno { transform: scale(2.2); opacity: 0; }
.steps li.rise.in .stampno { transform: none; opacity: 1; transition: transform 0.32s cubic-bezier(0.3, 1.6, 0.5, 1) 0.25s, opacity 0.15s 0.25s; }
.cta-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cta-row .pill { height: 50px; padding: 0 22px; }
.mn-big { width: min(78%, 300px); margin: 14px auto 0; }

/* ---------- Edition Two ---------- */
.ed2-open { margin-top: 22px; display: flex; justify-content: center; }
.ed2-open .pill { height: 54px; padding: 0 28px; font-size: 1.05rem; }
/* the stamp card: ten empty rings; each shop's emblem is stamped on as its card comes into view */
.card10 { position: sticky; top: calc(64px + env(safe-area-inset-top)); z-index: 20; margin: 30px auto 0; width: min(100% - 24px, 560px); padding: 9px 12px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px;
  background: var(--paper); border: 2px solid var(--blue); border-radius: 16px; box-shadow: 0 8px 22px rgba(28, 35, 84, 0.16); }
.card10 a { position: relative; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed var(--rule); display: grid; place-items: center; color: var(--blue); font-size: 0.7rem; font-weight: 600; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.card10 img { position: absolute; inset: -1.5px; width: calc(100% + 3px); height: calc(100% + 3px); max-width: none; border-radius: 50%; object-fit: cover; transform: scale(2.4) rotate(-30deg); opacity: 0; }
.card10 a.on img { transform: rotate(var(--tw, -6deg)); opacity: 1; transition: transform 0.3s cubic-bezier(0.3, 1.7, 0.5, 1), opacity 0.12s; }
.card10 a:nth-child(2n) { --tw: 7deg; } .card10 a:nth-child(3n) { --tw: -12deg; }
.card10.full { border-color: var(--red); }

.shops { list-style: none; margin: 0 auto; padding: 26px 0 20px; max-width: 760px; display: grid; gap: 22px; }
.shop2 { margin-inline: 12px; background: var(--paper); border: 2px solid var(--blue); border-radius: 20px; overflow: hidden; scroll-margin-top: 150px; }
.shop2-head { display: flex; align-items: center; gap: 14px; padding: 16px 16px 14px; }
.shop2-head img { flex: none; width: 64px; height: 64px; border-radius: 50%; rotate: -6deg; }
.shop2-n { font-size: 0.76rem; letter-spacing: 0.2em; color: var(--red-text); font-weight: 600; }
.shop2-head h2 { font: 400 1.5rem/1.25 var(--display); color: var(--blue); }
html[lang="en"] .shop2-head h2 { font: 600 1.22rem/1.25 var(--font); }
.shop2-other { font-size: 0.9rem; opacity: 0.85; }
html[lang="en"] .shop2-other { font-family: var(--font-ar); } html[lang="ar"] .shop2-other { font-family: var(--font-en); }
.shop2-sell { padding: 0 16px 14px; font-size: 1rem; }
.strip { display: flex; gap: 8px; padding: 0 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.strip::-webkit-scrollbar { display: none; }
.strip img { flex: none; width: auto; height: min(66vw, 300px); max-width: none; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; scroll-snap-align: center; background: var(--sand); }
.shop2-story { padding: 16px 16px 0; font-size: 1rem; line-height: 1.75; text-wrap: pretty; }
.shop2-go { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; }
.shop2-go .pill { height: 46px; flex: 1 1 auto; gap: 8px; display: inline-flex; align-items: center; justify-content: center; }
.shop2-go svg { width: 20px; flex: none; }
.finish { margin: 10px 12px 60px; padding: 30px 20px; text-align: center; border-radius: 20px; background: var(--blue); color: var(--paper); max-width: 736px; }
@media (min-width: 784px) { .finish { margin-inline: auto; } }
.finish h2 { font: 400 clamp(1.7rem, 7.6vw, 2.4rem)/1.25 var(--display); }
html[lang="en"] .finish h2 { font-weight: 600; font-size: clamp(1.4rem, 6.4vw, 2rem); }
.finish p { margin: 10px auto 20px; max-width: 36ch; }
.finish .pill { height: 52px; padding: 0 26px; border-color: var(--paper); }

/* ---------- page not found ---------- */
.lost-box { min-height: 100svh; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 40px var(--gut); text-align: center; }
.lost-box img { width: min(60vw, 240px); }
.lost-box h1 { margin-top: 10px; font: 600 clamp(1.5rem, 6.4vw, 2.2rem)/1.2 var(--font-en); color: var(--blue); text-wrap: balance; }
.lost-box p { font: 400 1.6rem var(--font-ar-display); color: var(--blue); }
/* each stamp's tap area reaches past its circle, up and down to the card's edges and halfway to its neighbours */
.card10 a::after { content: ''; position: absolute; inset: -10px -3px; }
