/* Pickivo site stylesheet, design B "Lookbook". Plain CSS, no build step. */

/* Fonts: Latin subsets of the App's fonts. Licences in fonts/*-OFL.txt. */

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Tokens: the App's colours. */

:root {
  --bg: #f7f6f2;
  --card: #fff;
  --fill: #efece6;
  --item-bg: #ebe8e3;
  --look-bg: #f0eeeb;
  --line: #e4e0d8;
  --line-strong: #dcd8cf;
  --ink: #1c1c1a;
  --ink-hover: #3a3a36;
  --muted: #6e6c66;
  --muted-strong: #57554f;
  --sage: #5e7163;
  --sage-soft: #e3e9e4;
  --sage-ink: #3f5245;
  --sage-deep: #2f3d33;
  --dark: #121211;
  --dark-line: #2c2b28;
  --dark-muted: #a8a59e;
  --dark-link: #e4e0d8;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Roboto, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --section-gap: clamp(80px, 11vw, 160px);
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* The footer stays at the bottom of short pages. */
body {
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

main {
  flex-grow: 1;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

/* 1280px of content plus the gutters, as in the design. */
.wrap {
  width: 100%;
  max-width: calc(1280px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */

.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  height: 44px;
  display: flex;
  align-items: center;
}

.brand img {
  height: 28px;
  width: auto;
}

.get-app {
  height: 44px;
  padding: 0 14px 0 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}

.get-app:hover {
  background: var(--ink-hover);
}

/* Shared home page parts */

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 11.5vw, 100px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.lede {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.6;
  color: var(--muted-strong);
}

/* A big heading with a short text column that drops below it when there is no room. */
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 64px;
}

.split > :first-child {
  flex: 1 1 560px;
}

.split__aside {
  flex: 1 1 300px;
  max-width: 380px;
}

.stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* The badge image has transparent padding; the negative margin lines its edge up with the text. */
.play-badge {
  display: block;
  margin-left: -10px;
}

.play-badge img {
  height: 64px;
  width: auto;
}

.section {
  padding-top: var(--section-gap);
}

.media {
  position: relative;
}

/* Every photo is a 3:4 portrait; product shots sit whole on their own backdrop. */
.shot {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--look-bg);
}

.shot--photo {
  background: var(--fill);
}

.shot--item {
  object-fit: contain;
  background: var(--item-bg);
}

.chip {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}

.media > .chip {
  position: absolute;
  left: var(--inset);
  top: var(--inset);
}

.media > .chip--bottom {
  top: auto;
  bottom: var(--inset);
  padding: 5px 10px;
}

/* Hero */

.hero {
  padding-top: clamp(32px, 4.4vw, 64px);
}

.hero .split {
  row-gap: 24px;
}

.hero .split > :first-child,
.closing .split > :first-child {
  flex-basis: 640px;
}

.display--hero {
  font-size: clamp(48px, 14vw, 148px);
  line-height: 1;
}

.triptych {
  --gap: clamp(8px, 2vw, 28px);
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.triptych figure {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 14px);
}

.triptych .shot,
.pair .shot {
  border-radius: clamp(14px, 1.4vw, 20px);
}

/* The + and → between the three pictures, centred in the gap. */
.joiner {
  --size: clamp(26px, 3vw, 44px);
  position: absolute;
  z-index: 1;
  top: 50%;
  right: calc(var(--gap) / -2);
  width: var(--size);
  height: var(--size);
  translate: 50% -50%;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 0 0 4px var(--bg);
  display: grid;
  place-items: center;
}

.joiner svg {
  width: clamp(12px, 1.4vw, 20px);
  height: auto;
}

.triptych figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.triptych__title {
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 600;
  line-height: 1.35;
}

.triptych__note {
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.4;
  color: var(--muted);
}

.triptych__note > span {
  white-space: nowrap;
}

.triptych__note > span + span::before {
  content: "· ";
}

/* Phones: the two halves of a note sit on two lines rather than wrapping at the dot. */
@media (max-width: 599.98px) {
  .triptych__note > span {
    display: block;
  }

  .triptych__note > span + span::before {
    content: none;
  }
}

/* Looks: one big look and a 2 x 2 grid on phones, 3 + 2 on tablets, one row of five on wide screens. */

.looks__grid {
  --inset: 10px;
  margin-top: clamp(32px, 4vw, 56px);
  display: grid;
  gap: 28px 12px;
}

@media (max-width: 599.98px) {
  .looks__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .looks__grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 600px) and (max-width: 959.98px) {
  .looks__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 16px;
  }

  .looks__grid > * {
    grid-column: span 2;
  }

  .looks__grid > :nth-child(4) {
    grid-column: 2 / span 2;
  }
}

@media (min-width: 960px) {
  .looks__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: clamp(12px, 1.6vw, 24px);
  }
}

.look {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.look .shot {
  border-radius: 16px;
}

.look figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
}

.look__source {
  position: absolute;
  left: var(--inset);
  bottom: var(--inset);
  display: flex;
  align-items: center;
  gap: 6px;
}

.look__source img {
  width: 40px;
  height: 40px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--item-bg);
  box-shadow: 0 1px 4px rgb(28 28 26 / 0.2);
}

/* Angles */

.angles__row {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row-reverse;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px 64px;
}

/* Beside the pictures it fills its column; once it drops above them, the auto margin keeps it on
   the left like the other sections. */
.angles__text {
  flex: 1 1 320px;
  max-width: 400px;
  margin-right: auto;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.feature__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--sage-soft);
  color: var(--sage-ink);
  display: grid;
  place-items: center;
}

.tag {
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.angles__pair {
  --inset: 12px;
  flex: 1 1 640px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
}

.angles__pair figure {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.angles__pair .shot {
  border-radius: clamp(16px, 1.4vw, 20px);
}

.angles__pair figcaption {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

/* Steps */

.steps__list {
  margin: clamp(40px, 5vw, 72px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 40px clamp(32px, 4vw, 64px);
}

@media (min-width: 720px) {
  .steps__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.steps__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(56px, 8.4vw, 120px);
  line-height: 1;
  color: var(--sage);
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px var(--sage);
}

.steps h3 {
  margin-top: 20px;
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.3;
}

.steps p {
  margin-top: 8px;
  max-width: 34ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted-strong);
}

/* Examples: photo → look pairs */

.pairs {
  margin-top: clamp(32px, 4vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: 40px clamp(24px, 3vw, 48px);
}

.pair {
  --inset: 8px;
  flex: 1 1 420px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px clamp(8px, 1.2vw, 16px);
}

.pair__arrow {
  width: clamp(18px, 1.7vw, 24px);
  height: auto;
}

.pair__label,
.pair figcaption {
  align-self: start;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.35;
}

.pair__label {
  grid-column: 1;
  font-weight: 500;
  color: var(--muted);
}

.pair figcaption {
  grid-column: 3;
  font-weight: 600;
}

/* Closing band, continued by the footer */

.closing {
  margin-top: clamp(96px, 12vw, 176px);
  background: var(--dark);
  color: var(--bg);
}

.closing .split {
  padding-block: clamp(80px, 10vw, 152px) clamp(64px, 7vw, 104px);
  row-gap: 40px;
}

.display--closing {
  font-size: clamp(48px, 13vw, 140px);
  line-height: 1;
}

.closing .stack {
  gap: 16px;
}

.closing p {
  font-size: 15px;
  line-height: 1.55;
}

.closing__note {
  font-weight: 500;
}

.closing__privacy {
  color: var(--dark-muted);
}

/* Long-form pages: <main class="doc wrap"> takes the page content as plain h1, .meta, .summary,
   .toc and <section id> blocks of h2, h3, p, ul, ol and table, so a policy drops in as is. */

.doc {
  display: grid;
  grid-template-columns: minmax(0, 68ch);
  padding-block: clamp(40px, 5.5vw, 80px) clamp(80px, 9vw, 128px);
  font-size: 17px;
  line-height: 1.65;
}

.doc > * + *,
.doc > section > * + * {
  margin-top: 18px;
}

/* A section starts at its heading, so a link to it lands on the heading. */
.doc > section {
  margin-top: 64px;
}

.doc > section > :first-child {
  margin-top: 0;
}

.doc [id] {
  scroll-margin-top: 24px;
}

.doc h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.doc h2 {
  margin-top: 64px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.1;
}

.doc h3 {
  margin-top: 36px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.doc :is(h2, h3) + * {
  margin-top: 14px;
}

.doc .meta {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.doc > :is(.summary, .toc) {
  margin-top: 32px;
}

.doc ul,
.doc ol {
  margin: 0;
  padding-left: 1.3em;
}

.doc li + li,
.doc li > :is(ul, ol) {
  margin-top: 8px;
}

.doc li::marker {
  color: var(--muted);
}

.doc a {
  color: var(--sage-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.doc a:hover {
  color: var(--ink);
}

.doc strong {
  font-weight: 600;
}

/* Tables are white cards. Separate borders let the card keep its rounded corners. */
.doc table {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  font-size: 15px;
  line-height: 1.5;
}

.doc th,
.doc td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}

.doc th {
  background: var(--fill);
  font-weight: 600;
}

.doc thead th:first-child {
  border-top-left-radius: 15px;
}

.doc thead th:last-child {
  border-top-right-radius: 15px;
}

.doc tr + tr > *,
.doc thead + tbody > tr:first-child > * {
  border-top: 1px solid var(--line);
}

/* Phones: columns keep a readable width and the table scrolls sideways inside its card,
   so the page itself never scrolls sideways. */
@media (max-width: 599.98px) {
  .doc table {
    display: block;
    overflow-x: auto;
  }

  .doc th,
  .doc td {
    min-width: 200px;
    padding: 10px 14px;
  }
}

.doc .summary {
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--sage-soft);
  color: var(--sage-deep);
}

.summary > * + * {
  margin-top: 10px;
}

.doc .summary :is(h2, h3) {
  margin-top: 0;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.doc .summary a,
.doc .summary li::marker {
  color: inherit;
}

.doc .toc {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  font-size: 15px;
  line-height: 1.4;
}

.doc .toc :is(h2, h3, p) {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.doc .toc :is(ol, ul) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc .toc :is(h2, h3, p) + :is(ol, ul) {
  margin-top: 8px;
}

.doc .toc li {
  margin: 0;
  break-inside: avoid;
}

.doc .toc a {
  display: block;
  padding-block: 6px;
  color: var(--muted-strong);
  text-decoration: none;
}

.doc .toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (min-width: 600px) and (max-width: 1023.98px) {
  .doc .toc :is(ol, ul) {
    columns: 2;
    column-gap: 32px;
  }
}

/* Wide screens: the title runs across, the contents list sticks in a left column. */
@media (min-width: 1024px) {
  .doc:has(> .toc) {
    grid-template-columns: 200px minmax(0, 68ch);
    column-gap: clamp(48px, 5vw, 80px);
  }

  .doc:has(> .toc) > * {
    grid-column: 2;
  }

  .doc:has(> .toc) > h1 {
    grid-column: 1 / -1;
  }

  /* The contents list and the first block beside it start level, whichever comes first. */
  .doc:has(> .toc) > h1 + :not(.toc),
  .doc:has(> .toc) > h1 + .toc + *,
  .doc > .toc {
    margin-top: 40px;
  }

  /* Row 2 onward, spanning more rows than any page has blocks. */
  .doc > .toc {
    grid-column: 1;
    grid-row: 2 / span 400;
    align-self: start;
    position: sticky;
    top: 32px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 14px;
  }
}

/* 404 */

.notfound {
  padding-block: clamp(48px, 8vw, 128px) clamp(96px, 12vw, 176px);
}

.notfound__code {
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  color: var(--muted);
}

.notfound .display {
  margin-top: 16px;
}

.notfound .lede {
  margin-top: 24px;
  max-width: 34ch;
}

.actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  height: 56px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  border-color: var(--ink-hover);
  background: var(--ink-hover);
}

.button--secondary {
  border-color: var(--line-strong);
  background: var(--card);
  color: var(--ink);
}

.button--secondary:hover {
  border-color: var(--line-strong);
  background: var(--fill);
}

/* Footer */

.site-footer {
  padding: clamp(40px, 5vw, 64px) 0 clamp(36px, 4vw, 56px);
  background: var(--dark);
  color: var(--bg);
}

/* Right after the dark closing band the footer starts at a rule instead. */
.site-footer--joined {
  padding-top: 0;
}

.site-footer--joined .site-footer__bar {
  padding-top: clamp(24px, 2.8vw, 40px);
  border-top: 1px solid var(--dark-line);
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 28px;
}

.site-footer nav a {
  height: 44px;
  display: flex;
  align-items: center;
  color: var(--dark-link);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.site-footer nav a:hover {
  text-decoration: underline;
}

.site-footer__legal {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--dark-muted);
}
