/* Duplicate of the reference about page. every section is a design canvas: 1200 wide on desktop, 390 wide on a phone.
   pieces are placed at measured spots (percent of the canvas) and text sizes scale with the canvas (cqw). */

.dup { background: var(--cream); }
.sec { position: relative; width: 100%; overflow: hidden; }
.cv { container-type: inline-size; position: relative; width: 100%; max-width: 1200px; margin-inline: auto; aspect-ratio: var(--dar); }
.e { position: absolute; left: var(--dl); top: var(--dt); width: var(--dw); height: var(--dh); margin: 0; }
.e-t { font-family: var(--f); font-size: calc(var(--dfs) * var(--k, 1)); line-height: var(--dlh); text-align: var(--a); color: var(--ink); overflow-wrap: break-word; }
.e-t a { text-decoration: none; }
.e-t a:hover { text-decoration: underline; text-decoration-color: var(--blush); text-underline-offset: 4px; }
.e-img { background: var(--surface); }
.e-img img { width: 100%; height: 100%; object-fit: cover; }
.e-line { height: 0; border-top: 1px solid rgba(27, 18, 16, 0.3); }
.e-vr { background: rgba(255, 255, 255, 0.3); }
.e-btn a { display: grid; place-items: center; width: 100%; height: 100%; border: 1px solid var(--bc, var(--ink)); background: var(--bbg, transparent); color: var(--bcol, var(--ink)); font-size: var(--dfs); line-height: var(--dlh); text-decoration: none; transition: background 0.15s, color 0.15s; }
.e-btn a:hover { background: var(--bhbg, var(--ink)); color: var(--bhcol, var(--paper)); }
.e-logo { display: grid; place-items: center; background: var(--surface); color: var(--text-soft); font-size: 1.2cqw; letter-spacing: 0.08em; text-transform: uppercase; }
.e-logo span { opacity: .8; }
.e-circle { display: grid; place-items: center; border: 1px solid var(--paper); border-radius: 50%; color: var(--paper); font-size: 4cqw; }
.e-strip { left: 50%; width: 100vw; transform: translateX(-50%); }
.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; height: 100%; }
.strip a { display: block; min-width: 0; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.e-field { border-bottom: 1px solid rgba(27, 18, 16, 0.4); display: flex; align-items: center; font-size: 1.1cqw; color: var(--text-soft); }
.e-signup { display: grid; place-items: center; background: var(--blush-soft); font-size: 0.9cqw; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.e-tilt { transform: rotate(-14deg); }
.e-social { display: grid; place-items: center; font-size: 1.6cqw; text-decoration: none; }

/* sticky menu */
.dh { position: sticky; top: 0; z-index: 60; background: var(--cream); border-bottom: 1px solid var(--line); }
.dh__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); max-width: 1200px; margin-inline: auto; padding: var(--s-3) var(--s-5); }
.dh__logo img { height: 40px; width: auto; }
.dh nav ul, .dh__social { display: flex; gap: var(--s-5); }
.dh a[aria-current="page"] { border-bottom: 1px solid var(--blush); }
.dh a { font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; }
.dh__social a { font-size: 1rem; }
@media (max-width: 767px) { .dh nav { display: none; } }

.dup .moodboard { background: var(--cream); padding-top: 0; }

@media (max-width: 767px) {
  .cv { aspect-ratio: var(--mar); }
  .e { left: var(--ml); top: var(--mt); width: var(--mw); height: var(--mh); }
  .e-d { display: none; }
  .e-t { font-size: calc(var(--mfs) * var(--k, 1)); line-height: var(--mlh); text-align: var(--ma); }
  .e-btn a { font-size: var(--mfs); line-height: var(--mlh); }
  .e-circle { font-size: 10cqw; }
  .e-logo { font-size: 3cqw; }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .e-strip, .e-bgfull { transform: none; }
  .e-bgfull { left: 0; width: 100%; }
  .e-field { font-size: 3.6cqw; }
  .e-signup { font-size: 2.6cqw; }
  .e-tilt { transform: rotate(-13deg); }
  .e-social { font-size: 5.5cqw; }
}

/* ---------- pieces for the new landing options ---------- */

.e-bgfull { left: 50%; width: 100vw; transform: translateX(-50%); }
.e-bgfull img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.7); }

/* currently loving: cards that scroll sideways */
.cur { background: var(--surface); border-block: 1px solid var(--ink); padding-top: var(--s-6); }
.cur__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); max-width: 1200px; margin-inline: auto; padding-inline: var(--edge); }
.cur__title { font-family: var(--font-title); font-weight: 400; font-size: clamp(1.5rem, 3.4vw, 2.5rem); text-transform: uppercase; line-height: 1.1; }
.cur__title em { font-family: var(--font-hand); font-style: normal; text-transform: none; font-size: 1em; margin-left: 0.15em; }
.cur__more { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--blush); padding-bottom: 2px; }
.cur__scroll { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); padding: var(--s-5) 0 var(--s-4); scrollbar-width: none; }
.cur__scroll::-webkit-scrollbar { display: none; }
.cur__list { display: flex; gap: var(--s-4); padding-inline: var(--edge); width: max-content; min-width: 100%; }
.cur__item { flex: 0 0 clamp(150px, 17.5vw, 214px); scroll-snap-align: start; }
.cur__name { margin-bottom: var(--s-2); font-size: var(--fs-xs); text-transform: capitalize; color: var(--text-soft); min-height: 1.5em; }
.cur__card { display: block; aspect-ratio: 3 / 4; border: 1px solid rgba(27, 18, 16, 0.45); background: var(--cream); padding: var(--s-4); }
.cur__card img { width: 100%; height: 100%; object-fit: contain; }
.cur__bar { height: 3px; margin: var(--s-2) var(--edge) var(--s-6); background: var(--line); }
.cur__bar span { display: block; height: 100%; background: var(--ink); }
@media (max-width: 767px) { .cur__item { flex-basis: 42vw; } }

/* shop the look */
.sl { background: var(--surface); padding: var(--s-8) var(--edge); }
.sl__in { display: grid; grid-template-columns: auto minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-5); align-items: center; max-width: 1200px; margin-inline: auto; }
.sl__nums { display: grid; gap: 6px; align-self: end; margin: 0 calc(var(--s-5) * -1) var(--s-5) 0; position: relative; z-index: 2; }
.sl__nums li { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--ink); background: var(--paper); font-size: var(--fs-xs); }
.sl__nums li.on { background: var(--ink); color: var(--paper); }
.sl__box { background: var(--cream); border: 1px solid var(--ink); padding: var(--s-6); }
.sl__title { margin-bottom: var(--s-5); font-family: var(--font-body); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; }
.sl__title em { font-family: var(--font-hand); font-style: normal; text-transform: none; font-size: 1.5em; margin-left: 0.2em; letter-spacing: 0; }
.sl__list { display: grid; gap: var(--s-5); }
.sl__row { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-4); align-items: center; }
.sl__row img { width: 96px; height: 96px; object-fit: contain; background: var(--surface); }
.sl__name { font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.05em; text-transform: uppercase; }
.sl__row a { font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; text-decoration-color: var(--blush); text-underline-offset: 3px; }
.sl__film { position: relative; margin: 0; background: #141010; padding: 9% 4% 8%; }
.sl__film img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; }
.sl__tick { position: absolute; top: 3%; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: #cfc8c2; }
.sl__tick--l { left: 4%; }
.sl__tick--r { right: 4%; }
@media (max-width: 767px) { .sl__in { grid-template-columns: 1fr; } .sl__nums { display: flex; margin: 0 0 calc(var(--s-5) * -1); } .sl__box { padding: var(--s-5); } }

/* outfits list (collections layout) */
.dup .lb { background: var(--cream); }
.dup .lb-wide { max-width: 1200px; margin-inline: auto; padding-block: var(--s-8); padding-inline: clamp(20px, 5vw, 72px); background: transparent; }

/* quote */
.qt { background: var(--cream); padding: var(--s-9) var(--edge) var(--s-8); text-align: center; }
.qt blockquote { margin: 0; }
.qt__text { font-family: var(--font-title); font-size: clamp(1.75rem, 4.2vw, 3.5rem); line-height: 1.25; }
.qt__by { margin-top: var(--s-5); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.1em; color: var(--text-soft); }

/* footer */
.f2 { background: var(--surface); padding: var(--s-7) var(--edge) var(--s-5); }
.f2__in { display: grid; grid-template-columns: repeat(2, minmax(0, 190px)) 1fr; gap: var(--s-4) var(--s-7); max-width: 1200px; margin-inline: auto; align-items: start; }
.f2 h2 { margin-bottom: var(--s-3); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.f2 li a { display: inline-block; padding-block: 3px; font-size: var(--fs-xs); color: var(--text-soft); text-decoration: none; }
.f2 li a.ann-wrapped:hover { text-decoration: underline; text-decoration-color: var(--blush); }
.f2__social { grid-column: 1 / -1; }
.f2__social a { color: var(--ink); font-size: 1.1rem; }
.f2__sig { grid-column: 3; grid-row: 1; justify-self: end; align-self: end; font-family: var(--font-hand); font-size: clamp(1.6rem, 3.2vw, 2.6rem); transform: rotate(-8deg); }
.f2__legal { grid-column: 1 / -1; justify-self: end; font-size: 0.7rem; color: var(--text-soft); margin-top: var(--s-5); }
@media (max-width: 767px) { .f2__in { grid-template-columns: 1fr 1fr; } .f2__sig { grid-column: 1 / -1; grid-row: auto; justify-self: end; } .f2__legal { justify-self: start; } }

/* option C */
.e-logoimg img { width: 100%; height: 100%; object-fit: contain; }
.fav { background: var(--cream); padding: var(--s-7) var(--edge) var(--s-8); text-align: center; }
.fav__title { margin-bottom: var(--s-5); font-family: var(--font-title); font-weight: 400; font-size: clamp(1.4rem, 2.8vw, 2.2rem); }
.fav__title em { font-style: italic; }
.fav__grid { --gap: var(--s-3); display: flex; flex-wrap: nowrap; gap: var(--gap); max-width: 1400px; margin-inline: auto; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fav__grid::-webkit-scrollbar { display: none; }
/* one row always: pieces share the width down to a minimum, then the row scrolls sideways; centered while it fits */
.fav__grid li { flex: 1 0 clamp(110px, 10vw, 190px); max-width: 190px; }
.fav__grid li:first-child { margin-left: auto; }
.fav__grid li:last-child { margin-right: auto; }
/* always a square, in every browser: the height comes from a padding box, the picture floats inside it and cannot stretch it */
.fav__tile { --pad: 0; position: relative; display: block; background: var(--surface); overflow: hidden; }
.fav__tile::before { content: ""; display: block; padding-top: 100%; }
.fav__tile img { position: absolute; inset: var(--pad); width: calc(100% - 2 * var(--pad)); height: calc(100% - 2 * var(--pad)); object-fit: contain; }
.dup .about { background: var(--paper); }
@media (max-width: 767px) { .fav__grid { --gap: var(--s-2); } .fav__grid li { flex: 0 0 calc((100% - 2 * var(--gap)) / 2.15); max-width: none; } .fav__tile { --pad: 0; } }
@media (max-width: 767px) {
  /* phone: the photo sits below the text and overlaps only the panel's bottom padding, so the signature and icons stay visible */
  .dup .about__image { grid-row: 2; align-self: start; margin-top: calc(var(--s-8) * -1); margin-bottom: calc(var(--s-8) * -1 + var(--s-5)); }
}

/* the new landing sits on white */
.dup--new, .dup--new .fav, .dup--new .qt, .dup--new .lb, .dup--new .moodboard, .dup--new .lb-wide { background: var(--paper); }

/* the new landing: tighter margins between the sections */
/* the gap between the headline text and "currently wearing" is set here (the hero and headline gaps are in server/duplicate.js) */
.dup--new .fav { padding: 0 var(--edge) var(--s-7); }
.dup--new .about { padding-block: var(--s-6); }
.dup--new .lb-wide { padding-block: var(--s-6); }
.dup--new .moodboard { padding-top: var(--s-4); }
.dup--new .qt { padding: var(--s-7) var(--edge) var(--s-6); }
.dup--new #outfits { padding-bottom: var(--s-7); }

@media (max-width: 767px) { .dup--new .fav { padding-top: 0; padding-bottom: var(--s-3); } }

/* links section on the new landing: a taller picture, and the list stretches to the same height */
.dup--new .co-image img { aspect-ratio: 3 / 5; }
@media (min-width: 768px) {
  /* the text column sets the height; the picture fills whatever that turns out to be */
  .dup--new .co-grid--image { align-items: stretch; }
  .dup--new .co-image { position: relative; min-height: 320px; }
  .dup--new .co-image img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
  .dup--new .co-list { display: flex; flex-direction: column; justify-content: space-between; }
  .dup--new .co-item { flex: 1; align-content: center; }
}

/* phone: more room under the about photo, less before the links photo */
@media (max-width: 767px) {
  .dup--new .lb-wide { padding-top: var(--s-4); }
  .co-grid--image .co-item:last-child { padding-bottom: 0; }
}

/* motion: everything below is plain CSS driven by scroll position. it only runs where the browser supports it
   and the visitor has not asked for reduced motion; otherwise the page simply shows as usual */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* sections rise and fade in */
    @keyframes reveal { from { opacity: 0; transform: translateY(64px); } to { opacity: 1; transform: none; } }
    .dup--new #headline, .dup--new .fav, .dup--new .about, .dup--new #outfits, .dup--new .qt, .dup--new .follow-block, .dup--new .cur, .dup--new .sl, .dup--new .f2 {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 75%;
    }

    /* moodboard: nothing appears or disappears. the pictures are always there and float: each drifts up the page at its own
       speed as you scroll (so they slide past each other) and bobs very slightly on its own. scroll drift uses the separate
       translate property, the idle bob uses transform / rotate, so the notes keep their tilt */
    @keyframes drift { from { translate: 0 var(--d); } to { translate: 0 calc(var(--d) * -1); } }
    @keyframes bob { from { transform: translateY(0); } to { transform: translateY(-4px); } }
    @keyframes wobble { from { rotate: -1.2deg; } to { rotate: 1.2deg; } }
    .cl-pic, .cl-cap { --d: 28px; --t: 7s; --dl2: 0s; animation-timeline: view(), auto; animation-range: cover 0% cover 100%, normal; }
    .cl-pic { animation-name: drift, bob; animation-duration: auto, var(--t); animation-timing-function: linear, ease-in-out; animation-iteration-count: 1, infinite; animation-direction: normal, alternate; animation-fill-mode: both, none; animation-delay: 0s, var(--dl2); }
    .cl-cap { --d: 50px; animation-name: drift, wobble; animation-duration: auto, 5s; animation-timing-function: linear, ease-in-out; animation-iteration-count: 1, infinite; animation-direction: normal, alternate; animation-fill-mode: both, none; animation-delay: 0s, var(--dl2); }
    .cl-pic:nth-child(5n+1) { --d: 38px; --t: 6.5s; --dl2: -1s; }
    .cl-pic:nth-child(5n+2) { --d: 16px; --t: 8s; --dl2: -3s; }
    .cl-pic:nth-child(5n+3) { --d: 44px; --t: 7s; --dl2: -5s; }
    .cl-pic:nth-child(5n+4) { --d: 24px; --t: 9s; --dl2: -2s; }
    .cl-pic:nth-child(5n) { --d: 32px; --t: 7.5s; --dl2: -4s; }
    /* a smaller second nudge for the pieces inside a section: they settle a beat after the section, every second one a little later */
    @keyframes nudge { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
    .dup--new .fav__tile { animation: nudge linear both; animation-timeline: view(); animation-range: entry 5% entry 60%; }
    .dup--new .fav__tile:nth-child(even) { animation-range: entry 15% entry 75%; }
    .cl-label { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}

/* the top bar and its docked logo are a shared component now: cms/shared/topbar.js */

/* the headline's paragraph and button: normal page text under the scaled lines, so they never shrink or collide (body text is 16px everywhere) */
.hl-flow { max-width: 700px; margin: 0 auto; padding: 28px var(--edge, 20px) 48px; text-align: center; }
/* desktop: the paragraph holds the width of the header photo (499.8 of the 1200 canvas = 41.65%) */
@media (min-width: 768px) { .hl-flow { box-sizing: content-box; width: 41.65%; max-width: 499.8px; padding-inline: 0; } }
.hl-flow p { margin: 0 0 32px; font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--text-soft); }
