/* Pelamarela landing, v2.
   One set of tokens (Pelamarela Design System: colours, Tenor Sans for titles, Manrope for text),
   then the page. The handwritten brand font is not used here. */

@font-face { font-family: "Pelamarela"; src: url("../fonts/PelamarelaRegular-Regular.otf") format("opentype"), url("../fonts/PelamarelaRegular-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "powerkit-icons"; src: url("../fonts/powerkit-icons.woff") format("woff"), url("../fonts/powerkit-icons.ttf") format("truetype"); font-weight: normal; font-style: normal; font-display: swap; }

:root {
  /* the colours, type, space and layout tokens live in cms/shared/tokens.js (one source for the whole universe).
     only what is specific to this landing is kept here */
  --cream: #fcf9f4;
  --gap: var(--s-3);
  --radius: 0;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--s-5)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
figure, ul, p, h1, h2, h3 { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { width: 100%; padding-inline: var(--edge); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s-3); top: -100px; z-index: 100; background: var(--ink); color: var(--paper); padding: var(--s-2) var(--s-4); }
.skip:focus { top: var(--s-3); }
img.ph, .ph { background: var(--surface); }

/* ---------- shared pieces ---------- */

.section { padding-block: var(--s-8) 0; }
.section-title { display: flex; align-items: center; gap: var(--s-5); margin-bottom: var(--s-6); font-family: var(--font-title); font-weight: 400; font-size: var(--fs-xl); line-height: 1.2; }
.section-title--center { justify-content: center; }


.icon { font-family: "powerkit-icons"; font-style: normal; font-weight: normal; line-height: 1; speak: none; -webkit-font-smoothing: antialiased; }
.icon-pinterest::before { content: "\f0d2"; }
.icon-linkedin::before { content: "\f0e1"; }
.icon-tumblr::before { content: "\f173"; }
.icon-mail::before { content: "\e002"; }
.icon-instagram::before { content: "\e90c"; }
.social { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.social a { display: grid; place-items: center; width: 44px; height: 44px; font-size: 1.25rem; text-decoration: none; border-radius: 50%; transition: background 0.15s, color 0.15s; }
.social a:hover { background: var(--blush); color: var(--ink); }

.prose > * + * { margin-top: var(--s-4); }
.prose a { text-decoration-color: var(--blush); text-underline-offset: 3px; }

/* ---------- header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.site-header__logo img { height: 44px; width: auto; }
.follow { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.follow__avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; background: var(--surface); }
.follow__avatar img { width: 100%; height: 100%; object-fit: cover; }
.follow__text { display: grid; line-height: 1.3; }
.follow__name { font-size: var(--fs-sm); font-weight: 600; }
.follow__count { font-size: var(--fs-xs); color: var(--text-soft); }
@media (max-width: 480px) { .follow__text { display: none; } }

/* ---------- hero: the handwritten title is wider than the photo and overlaps its top edge ---------- */

.hero { --hero-w: min(100vw - 2 * var(--edge), 640px); padding-block: var(--s-7) var(--s-6); text-align: center; }
.hero__title { position: relative; z-index: 2; font-family: var(--font-hand); font-weight: 400; font-size: min(var(--hero-w) * 0.27, (100vw - 2 * var(--edge)) / 5.1); line-height: 0.95; margin-bottom: -0.42em; pointer-events: none; }
.hero__image { position: relative; width: var(--hero-w); margin-inline: auto; background: var(--surface); }
.hero__image img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }

/* links, right under the header image: one line, equal buttons */
.lb { padding-inline: var(--edge); }
.lb-links { padding-block: 0 var(--s-8); }
.lb-links .lb-list { display: flex; flex-wrap: wrap; gap: var(--gap); }
.lb-links .lb-list > * { flex: 1 1 180px; }
.lb-links .pm-btn { width: 100%; }

/* ---------- about: dark panel with the photo overlapping its edge ---------- */

.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); padding-block: var(--s-8); }
.about__text { grid-column: 1 / -1; grid-row: 1; background: var(--ink); color: var(--paper); display: grid; gap: var(--s-5); justify-items: center; text-align: center; padding: var(--s-8) var(--s-5) calc(var(--s-8) + 15vw); }
.about__image { grid-column: 2 / -2; grid-row: 1; align-self: end; margin-bottom: calc(var(--s-8) * -1 + var(--s-5)); position: relative; z-index: 2; background: var(--surface); }
.about__image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.about__title { font-family: var(--font-title); font-weight: 400; font-size: var(--fs-xl); line-height: 1.2; }
.about .prose { max-width: 46ch; color: var(--paper); }
.about__signature { width: 105px; height: auto; color: var(--paper); overflow: visible; }
.about .social a:hover { background: var(--blush); }
@media (min-width: 768px) {
  .about__text { grid-column: 1 / 9; aspect-ratio: 490 / 468; align-content: center; padding: var(--s-9) calc(25% + var(--s-6)) var(--s-9) var(--s-7); }
  .about__image { grid-column: 7 / 13; align-self: center; margin-bottom: 0; }
}

/* ---------- moodboard: positioned exactly like the reference page. every piece sits at a set spot on a design canvas
   (1200 wide on desktop, 390 wide on a phone) and scales with the width. pictures may bleed off the edge ---------- */

.moodboard { padding-top: var(--s-8); overflow: hidden; overflow: clip; }
.collage { --fs: 5.5cqw; container-type: inline-size; position: relative; width: 100%; max-width: 1600px; margin-inline: auto; aspect-ratio: 1200 / 1060; }
.cl-pic, .cl-cap { position: absolute; left: var(--dl); top: var(--dt); width: var(--dw); height: var(--dh); margin: 0; }
.cl-pic { background: var(--surface); }
.cl-pic img { width: 100%; height: 100%; object-fit: cover; }
.cl-cap { display: grid; place-items: center; text-align: center; font-family: var(--font-hand); font-size: 3.2cqw; line-height: 1.05; transform: rotate(var(--dr, 0deg)); pointer-events: none; }
.cl-label { position: absolute; left: 3.75%; top: calc((137 - 40) / 1060 * 100%); width: calc(353 / 1200 * 100%); margin: 0; z-index: 30; font-family: var(--font-body); font-weight: 700; font-size: max(0.75rem, 1.15cqw); letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 767px) {
  .collage { aspect-ratio: 390 / 1175; }
  .cl-pic, .cl-cap { left: var(--ml); top: var(--mt); width: var(--mw); height: var(--mh); }
  .cl-cap { font-size: 8cqw; transform: rotate(var(--mr, 0deg)); }
  .cl-label { left: calc(59 / 390 * 100%); top: calc((73 - 45) / 1175 * 100%); width: calc(274 / 390 * 100%); font-size: max(0.75rem, 3.6cqw); }
}

/* ---------- currently wearing ---------- */

.wear { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--gap); }
.wear-pic { background: var(--surface); }
.wear-pic img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
@media (min-width: 768px) {
  .wear { display: flex; flex-wrap: wrap; }
  .wear-pic { flex: 1 1 0; min-width: 72px; max-width: 180px; }
}

/* ---------- optional blocks ---------- */

.lb-posts, .lb-collections, .lb-staples { padding-block: var(--s-8) 0; }
/* collections: tall picture left, list right with a hairline between items */
.co-grid { display: grid; gap: var(--s-6); }
.co-image { background: var(--surface); }
.co-image img { width: 100%; aspect-ratio: 3 / 5; object-fit: cover; }
.co-item { display: grid; gap: var(--s-2); padding-block: var(--s-6); border-top: 1px solid var(--line); }
.co-item:first-child { border-top: 0; padding-top: 0; }
.co-title { font-family: var(--font-title); font-weight: 400; font-size: var(--fs-xl); line-height: 1.2; }
.co-title a { text-decoration: none; }
.co-title a.ann-wrapped:hover { text-decoration: underline; text-decoration-color: var(--blush); text-underline-offset: 5px; }
.co-text { max-width: 52ch; color: var(--text-soft); }
.co-more { font-size: var(--fs-sm); }
.co-more a { text-underline-offset: 3px; text-decoration-color: var(--blush); }
@media (max-width: 767px) { .co-grid--image .co-image { order: 2; } }
@media (min-width: 768px) { .co-grid--image { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; } }

.lb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-5); }
.lb-card { background: var(--cream); padding: var(--s-6); display: grid; gap: var(--s-2); align-content: start; }
.lb-card h3 { font-family: var(--font-title); font-weight: 400; font-size: var(--fs-lg); line-height: 1.3; }
.lb-card p { font-size: var(--fs-sm); }
.lb-card a { text-underline-offset: 3px; text-decoration-color: var(--blush); }
.post-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-6); }
.post { display: grid; gap: var(--s-3); align-content: start; }
.post__image { background: var(--surface); }
.post__image img { width: 100%; height: auto; }
.post__title { font-family: var(--font-title); font-weight: 400; font-size: var(--fs-lg); line-height: 1.3; }
.post__title a { text-decoration: none; }
.post__title a.ann-wrapped:hover { text-decoration: underline; text-decoration-color: var(--blush); text-underline-offset: 3px; }
.post__excerpt { font-size: var(--fs-sm); color: var(--text-soft); }
.post__meta { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); font-size: var(--fs-xs); color: var(--text-soft); }
.lb-more { display: flex; justify-content: center; margin-top: var(--s-6); }

/* the footer (follow block, instagram pictures, legal) is a shared component now: cms/shared/footer.js */

/* words marked by hand (assets/js/annotate.js) */
.ann-word { position: relative; display: inline-block; white-space: nowrap; }
.ann-word--circle { padding-inline: 0.25em; }
/* thinner signature: the outline drawn around each letter made it bold, so it is kept hairline (0 = the letters as the font draws them) */
.about__signature .sig-line { stroke-width: 0.4px; }
