/* TalentSwapp page CSS: only what the kit lacks. Cream ground, moss green action, blush pink as the second colour,
   butter and leaf as soft accents. The idea is the swap slip: an offer and a request that meet, then a "Swapped" stamp. */
:root {
  --blush: #ffb9b1;
  --blush-soft: #fff1ee;
  --blush-deep: #ffd3cc;
  --coral: #b9483f;
  --leaf: #9bca3e;
  --leaf-soft: #e6f1c9;
  --butter: #ffe3a3;
  --butter-soft: #fff1ce;
  --bezel: #1f2a18;
  --white: #fffefa;
}
html[data-radius] { --r-btn: 10px; --r-md: 12px; --r-lg: 16px; }
/* one secondary button everywhere */
.btn--secondary { background: #e8e4d4; border-color: transparent; color: #25331a; }
@media (hover: hover) and (pointer: fine) { .btn--secondary:hover { background: #ddd8c4; } }

/* the logo is the client's own round mark */
.nav__logo img, .footer__mark img { width: 36px; height: 36px; border-radius: 50%; display: block; }
.footer__mark, .nav__logo { display: inline-flex; align-items: center; gap: var(--s-3); }

/* ---------- panels: blush and meadow grounds the phones stand on */
.panel-blush { background: radial-gradient(120% 90% at 50% 12%, var(--butter-soft) 0, var(--blush-soft) 38%, var(--blush-deep) 100%); }
.panel-meadow { background: linear-gradient(135deg, #ffe9b5 0%, #e9f0c6 52%, #cfe5a8 100%); }
.plate { border-radius: 20px; position: relative; overflow: hidden; }

/* ---------- a phone: the real Android screen, a thin dark-green bezel */
.phone { display: block; margin: 0; border-radius: 30px; background: var(--bezel); padding: 7px; line-height: 0;
  box-shadow: 0 28px 50px -26px rgb(31 42 24 / .5); }
.phone img { display: block; width: 100%; height: auto; border-radius: 23px; aspect-ratio: 9 / 20; object-fit: cover; }

/* ---------- the swap slip: an offer or a request */
.slip { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: var(--s-4) var(--s-5) var(--s-5);
  display: grid; gap: var(--s-3); box-shadow: 0 14px 30px -18px rgb(37 51 26 / .35); text-align: left; }
.slip--photo { grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--s-4); align-items: start; }
.slip--photo > .slip__photo { grid-row: 1 / span 3; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; display: block; }
.slip--photo > :not(.slip__photo) { grid-column: 2; }
.slip__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.slip__tag { font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 6px; background: var(--surface); color: var(--ink); }
.slip--offer .slip__tag { background: var(--blush-deep); }
.slip__dist { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.slip__title { font: 500 clamp(19px, .6vw + 15px, 24px)/1.2 var(--font-display); letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.slip__who { display: flex; align-items: center; gap: var(--s-3); font-size: 14px; }
.slip__who i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2, #e8e4d4); display: grid; place-items: center; font-weight: 500; flex: none; }
.slip__who span { color: var(--muted); }

.hero .hero__grid { align-items: start; }
/* ---------- hero: two slips on photographs, the disc where they meet, the agreement under them */
.swapboard { display: grid; gap: var(--s-5); position: relative; align-self: center; }
.swapboard__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; position: relative; }
.pairslip { display: grid; grid-template-rows: auto 1fr; position: relative; min-width: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; box-shadow: 0 14px 30px -20px rgb(37 51 26 / .35); }
.pairslip figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.pairslip figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease, ease); }
.pairslip:hover figure img { transform: scale(1.025); }
.pairslip .slip { border: 0; box-shadow: none; border-radius: 0; background: transparent; align-content: start; }
.swap-disc { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); box-shadow: 0 8px 22px -8px rgb(37 51 26 / .4); display: grid; place-items: center; z-index: 3; }
.swap-disc img { width: 44px; height: 44px; border-radius: 50%; display: block; }
.agreement { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); padding: var(--s-5);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 14px 30px -20px rgb(37 51 26 / .35); }
.agreement__when { font: 500 clamp(18px, .5vw + 15px, 22px)/1.2 var(--font-display); margin: 0; letter-spacing: -0.01em; }
.agreement__ok { margin: var(--s-2) 0 0; display: flex; align-items: center; gap: var(--s-2); color: var(--accent); font-size: 14px; font-weight: 500; }
.agreement__ok svg { width: 18px; height: 18px; flex: none; }
.stamp { display: inline-block; flex: none; border: 3px solid var(--coral); color: var(--coral); border-radius: 6px; padding: 6px 16px;
  font: 600 clamp(18px, .6vw + 14px, 24px)/1.1 var(--font-display); letter-spacing: -0.01em; transform: rotate(-5deg); background: var(--white); }
.stores { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; margin-top: var(--s-6); }
.stores a { display: inline-flex; border-radius: 10px; transition: transform .2s var(--ease, ease); }
.stores a:hover { transform: translateY(-2px); }
.stores a:active { transform: scale(.97); }
.stores img { height: 54px; width: auto; display: block; }
.stores--center { justify-content: center; }

/* ---------- how a swap works: three step cards */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.step { background: var(--white); border-radius: var(--r-lg); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); overflow: hidden;
  transition: transform .25s var(--ease, ease), box-shadow .25s var(--ease, ease); }
.step__n { width: 36px; height: 36px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 500;
  font-variant-numeric: tabular-nums; margin-bottom: var(--s-3); }
.step h3 { font: 500 clamp(22px, .9vw + 16px, 30px)/1.12 var(--font-display); letter-spacing: -0.02em; margin: 0; }
.step p { margin: 0; color: var(--ink); max-width: 36ch; }
.step .phone { width: min(190px, 62%); margin: var(--s-5) auto 0; align-self: center; border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  padding-bottom: 0; }
.step .phone img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; aspect-ratio: 9 / 15; object-position: top; }
@media (hover: hover) and (pointer: fine) { .step:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -26px rgb(37 51 26 / .35); } }

/* ---------- split sections */
.split { align-items: start; }
.split__text { display: grid; gap: var(--s-4); align-content: center; }
.split__text .btn-row { margin-top: var(--s-3); }
.plate--phones { padding: clamp(24px, 3.2vw, 44px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.plate--phones .phone { width: clamp(150px, 14.5vw, 210px); }
.stack { display: grid; gap: var(--s-4); }
.plate--duo { padding: clamp(24px, 4vw, 56px); display: flex; justify-content: center; gap: var(--s-6); align-items: flex-start; }
.plate--duo .phone { width: clamp(150px, 17vw, 260px); }

/* three real photographs of people at work, no captions */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--gutter); aspect-ratio: 1 / 0.8; }
.mosaic figure { margin: 0; border-radius: var(--r-md); overflow: hidden; background: var(--surface); min-height: 0; }
.mosaic__tall { grid-row: 1 / span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease, ease); }
.mosaic figure:hover img { transform: scale(1.03); }
.faqphoto { margin: 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); }
.faqphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* the one statement: blush, set very large */
.sec-statement { background: radial-gradient(120% 90% at 50% 20%, var(--butter-soft) 0, var(--blush-soft) 35%, var(--blush) 100%); color: var(--ink); }
.sec-statement .mo-la__sub { color: var(--ink); }
.sec-statement .btn-row { margin-top: var(--s-6); }

/* the close: the name in the logo's blush on the dark green; room for the descender of the p */
.close__word { line-height: 1.02; padding-bottom: .04em; }
.footer--dark .close__word { color: var(--blush); }

/* faq: every answer open, hairlines */
.faq__item p { max-width: 62ch; }

/* ---------- inner pages */
main > section.flow.flow { height: auto; min-height: 0; padding-block: calc(var(--padt, 96px)) var(--s-9); }
main > section.flow.flow > .wrap { height: auto; }
.page-head { display: grid; gap: var(--s-4); max-width: 760px; margin-bottom: var(--s-8); }
.page-head h1 { font-size: var(--ly-h1, 64px); line-height: 1.02; letter-spacing: var(--display-tracking-xl); text-wrap: balance; margin: 0; }
.page-head p { font-size: var(--t-lead); max-width: 52ch; margin: 0; }
.mission { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }

/* features: four cards, each with its words and the real screen */
.fcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.fcard { background: var(--white); border-radius: var(--r-lg); padding: var(--s-6) var(--s-6) 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-5);
  align-items: start; overflow: hidden; scroll-margin-top: calc(var(--nav, 72px) + var(--s-5)); min-height: 400px; }
.fcard__text { display: grid; gap: var(--s-3); padding-bottom: var(--s-6); }
.fcard h3 { margin: 0; font: 500 clamp(24px, 1.1vw + 17px, 34px)/1.1 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.fcard p { margin: 0; max-width: 34ch; }
.fcard .phone { width: clamp(150px, 14vw, 200px); align-self: end; border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; margin-top: var(--s-4); }
.fcard .phone img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; aspect-ratio: 9 / 15; object-position: top; }
@media (max-width: 1023px) { .fcards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 479px) { .fcard { grid-template-columns: minmax(0, 1fr); } .fcard .phone { justify-self: center; } }

/* about: three facts as rows */
.facts { display: grid; }
.facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s-5); align-items: baseline; padding-block: var(--s-6); border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font: 500 clamp(26px, 1.3vw + 18px, 38px)/1.1 var(--font-display); letter-spacing: -0.02em; }
.facts dd { margin: 0; color: var(--muted); font-size: var(--t-lead); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: start; }
.duo figure { margin: 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 3 / 4; background: var(--surface); }
.duo figure:nth-child(2) { margin-top: var(--s-8); }
.duo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* download */
.dl-head { text-align: center; justify-items: center; margin-inline: auto; }
.dl-head h1 { max-width: 14ch; }
.plate--trio { padding: clamp(32px, 5vw, 64px); display: flex; justify-content: center; align-items: center; gap: clamp(16px, 3vw, 40px); }
.plate--trio .phone { width: clamp(110px, 15vw, 210px); }
.plate--trio .phone:nth-child(2) { width: clamp(130px, 17vw, 240px); }

/* contact */
.contact { align-items: start; }
.formcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-7);
  box-shadow: 0 24px 50px -34px rgb(37 51 26 / .4); }
.formcard h2 { margin: 0 0 var(--s-5); font-size: var(--t-h3); }
.formcard .field :is(input, textarea) { background: var(--p-bg, #fffcef); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.photo-slab { padding: var(--s-5); border-radius: 20px; margin-top: var(--s-8); max-width: 480px; }
.photo-slab figure { margin: 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; }
.photo-slab img { width: 100%; height: 100%; object-fit: cover; display: block; }
.form__status { margin: 0; font-weight: 500; color: var(--accent); }

/* blog */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-6); display: flex; flex-direction: column;
  gap: var(--s-5); min-height: 220px; transition: transform .25s var(--ease, ease), box-shadow .25s var(--ease, ease); text-decoration: none; color: inherit; }
.post-card h2 { margin: 0; font: 500 clamp(22px, .9vw + 16px, 28px)/1.15 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; overflow-wrap: anywhere; }
.post-card .more { margin-top: auto; color: var(--accent); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .post-card:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -26px rgb(37 51 26 / .35); } }
.empty { padding-block: var(--s-8); max-width: 52ch; }
.post { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); align-items: start; }
.post__nav { position: sticky; top: calc(var(--nav, 72px) + var(--s-5)); display: grid; gap: var(--s-3); }
.post__nav h2 { font-size: 14px; font-weight: 500; color: var(--muted); margin: 0; letter-spacing: 0; }
.post__nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.post__nav button { width: 100%; text-align: left; border: 0; background: transparent; color: var(--ink); font: 500 16px/1.3 var(--font-text); padding: var(--s-3) var(--s-4);
  border-radius: 8px; cursor: pointer; display: grid; gap: 2px; overflow-wrap: anywhere; transition: background .2s var(--ease, ease); touch-action: manipulation; }
.post__nav button small { font-weight: 400; color: var(--muted); font-size: 13px; }
.post__nav button[aria-current="true"] { background: var(--surface); }
@media (hover: hover) and (pointer: fine) { .post__nav button:hover { background: var(--surface); } }
.post__media { margin: 0 0 var(--s-6); border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); position: relative; }
.post__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post__media--none { background: radial-gradient(120% 90% at 50% 12%, var(--butter-soft) 0, var(--blush-soft) 38%, var(--blush-deep) 100%); }
.post__pager { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.post__pager span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.post__date { color: var(--muted); font-size: 14px; margin: 0 0 var(--s-4); }

/* article and legal text from markdown */
.prose { max-width: 72ch; overflow-wrap: anywhere; }
.prose h1 { font-size: var(--t-h2); margin: 0 0 var(--s-5); }
.prose h2 { font: 500 var(--t-h3)/1.15 var(--font-display); letter-spacing: var(--display-tracking); margin: var(--s-8) 0 var(--s-4); }
.prose h3 { font: 600 20px/1.3 var(--font-text); margin: var(--s-6) 0 var(--s-3); }
.prose p, .prose li { font-size: 17px; line-height: 1.65; }
.prose ul, .prose ol { padding-left: 1.25em; display: grid; gap: var(--s-2); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.prose blockquote { margin: var(--s-5) 0; padding-left: var(--s-5); border-left: 3px solid var(--blush); }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: var(--s-3) var(--s-3) var(--s-3) 0; text-align: left; }

/* photo credits: one footer line */
.credits { font-size: 13px; color: var(--inv-muted, #b7c2a6); margin: var(--s-5) 0 0; }
.credits a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- smaller screens */
/* "TalentSwapp" is longer than the kit's default word: size it so it fits the phone width */
@media (max-width: 639px) { .close__word { font-size: clamp(40px, 15vw, 96px); } }
footer.closing > .wrap { min-width: 0; }

@media (max-width: 1023px) {
  .steps, .posts { grid-template-columns: minmax(0, 1fr); }
  .step .phone { width: min(200px, 56%); }
  .mission, .post, .facts > div { grid-template-columns: minmax(0, 1fr); }
  .plate--phones { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .post__nav { position: static; }
}
@media (max-width: 639px) {
  .hero .stores, .agreement__ok { display: none; }
  .pairslip figure { aspect-ratio: 1; }
  .swapboard__pair { gap: var(--s-3); }
  .pairslip .slip { margin: calc(-1 * var(--s-6)) 0 0; padding: var(--s-3) var(--s-3) var(--s-4); }
  .step .phone img { aspect-ratio: 9 / 11; }
  .step { padding: var(--s-5); }
  .slip__who span { display: none; }
  .swap-disc { display: none; }
  .swapboard__pair { gap: var(--s-3); }
  .agreement { flex-direction: column; align-items: flex-start; }
  .plate--duo { gap: var(--s-4); }
  .plate--duo .phone { width: 42%; }
  .plate--trio .phone { width: 28%; }
  .plate--trio .phone:nth-child(2) { width: 34%; }
  .formcard { padding: var(--s-5); }
  .stores img { height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .pairslip figure img, .mosaic img, .step, .post-card, .stores a { transition: none; }
}

@media (max-width: 479px) { .nav__actions .btn { display: none; } }   /* the menu and the hero carry the download button here */
