/* The pages around the app: home, Pro and the legal pages. Loaded after styles.css, which
   holds the fonts, the tokens, buttons and label cards. The look is a fashion magazine:
   a Didone masthead across the page, cover lines, colour blocked sections in black and
   rouge, and real photographs with their palettes laid beside them, never over them. */

body { background: var(--paper); }
.page { max-width: calc(1240px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 0; }
.page section { padding: 64px 0 0; }
.page h2 { margin: 0; font-size: clamp(38px, 10.5vw, 76px); }
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 16px;
  border-bottom: 1.5px solid var(--ink); padding-bottom: 14px; margin-bottom: 28px;
}
.section-head .kicker { margin: 0 0 6px; }
.page .btn { text-align: center; padding-top: 10px; padding-bottom: 10px; }

/* ---------- bar ---------- */

.bar .bar-cta { min-height: 44px; padding: 0 14px; font-size: 11px; white-space: nowrap; flex: none; }
.bar-home { position: sticky; top: 0; z-index: 5; }
.issue { margin: 0; font: 600 9.5px/1.35 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.issue span { color: var(--pin); margin-right: 6px; }
.bar-nav { display: none; gap: 28px; }
.bar-nav a { color: var(--ink); text-decoration: none; font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 10px 0; }
.bar-nav a:hover { color: var(--pin); }

/* ---------- cover ---------- */

.page .cover { padding-top: 10px; }
.masthead {
  display: block; color: var(--ink); text-decoration: none; text-align: center;
  /* DRAPEBOOK sets about 6.5em wide: sized to fill the column edge to edge */
  font: normal 800 min(calc((100vw - 2 * var(--gutter)) / 6.6), 186px)/.86 var(--serif);
  letter-spacing: -.035em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden;
}
.masthead span { display: block; transform: translateY(.05em); }
.cover-rule {
  display: flex; justify-content: space-between; gap: 12px; margin: 10px 0 0; padding: 9px 0 8px;
  border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink);
  font: 600 10px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.cover-rule span:last-child { text-align: right; color: var(--muted); }
.cover-grid { display: grid; gap: 36px; padding-top: 28px; }
.cover-copy h1 { font-size: clamp(50px, 14.6vw, 112px); font-weight: 500; letter-spacing: -.035em; line-height: .9; }
.cover-copy h1 em { font-style: italic; font-weight: 500; color: var(--pin); letter-spacing: -.02em; }
.cover-copy .lede { font-size: 18px; line-height: 1.5; max-width: 30em; margin-top: 22px; }
.trust { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.trust li { font: 600 10px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 7px; height: 7px; background: var(--pin); flex: none; }

/* the two looks: photo, then the palette cut beside it like a swatch card */
.looks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.look { margin: 0; min-width: 0; }
.look-b { margin-top: 40px; }
.look-photo { position: relative; background: #d9d9d9; overflow: hidden; }
.look-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.look-no {
  position: absolute; left: 0; top: 0; background: var(--ink); color: #fff;
  font: 600 9px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; padding: 7px 8px 6px;
}
.look-card { padding-top: 10px; }
.look-season { font: normal 600 clamp(21px, 6vw, 34px)/1 var(--serif); letter-spacing: -.02em; margin: 0; }
.look-note { margin: 4px 0 10px; font-size: 13px; color: var(--muted); line-height: 1.3; }
.drape-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.drape-strip li { position: relative; aspect-ratio: 1 / 2.2; background: var(--c); }
.drape-strip span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.look-skip { display: flex; align-items: center; gap: 4px; margin: 10px 0 0; }
.look-skip .skip-label { font: 600 8.5px/1.25 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.look-skip i { width: 22px; height: 22px; background: var(--c); position: relative; flex: none; }
.look-skip i::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 1.5px; background: var(--ink); transform: rotate(-45deg); }
.looks-credit { font-size: 11px; line-height: 1.45; color: var(--muted); margin: 16px 0 0; max-width: 60em; }

/* ---------- the twelve seasons ---------- */

.season-bar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; }
.sb-cloth {
  display: block; height: 76px;
  background: linear-gradient(var(--a) 0 46%, var(--b) 46% 78%, var(--c) 78%);
}
.sb-name { display: block; margin-top: 7px; font: 600 9px/1.25 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.seasons-note { max-width: 40em; color: var(--muted); margin: 22px 0 0; font-size: 15px; }

/* ---------- how it works, in rouge ---------- */

.page .how { background: var(--pin); color: #fff; margin: 64px calc(-1 * var(--gutter)) 0; padding: 56px var(--gutter) 60px; }
.how-in { max-width: 1240px; margin: 0 auto; }
.how .section-head { border-color: #fff; }
.how .kicker { color: #fff; opacity: .85; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.how-no { display: block; font: normal 500 88px/.8 var(--serif); letter-spacing: -.04em; }
.how-steps h3 { font: normal 600 30px/1.05 var(--serif); letter-spacing: -.02em; margin: 14px 0 10px; }
.how-steps p { margin: 0; font-size: 16px; line-height: 1.55; max-width: 30em; }
.how-steps q { font-style: italic; }
.how .btn-ink:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- opposites ---------- */

.opposites { display: grid; gap: 28px; }
.opp-head p:not(.kicker) { font-size: 17px; line-height: 1.55; max-width: 32em; margin: 18px 0 0; }
.opp-head h2 { font-size: clamp(44px, 12vw, 92px); }
.opp-labels { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 8px; }
.opp-labels span { font: 600 10px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.opp-labels small { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; }
.opp-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.opp-rows li { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.opp-sw {
  display: flex; align-items: flex-end; min-height: 74px; padding: 10px 12px;
  background: var(--c); color: #fff; font: normal 600 18px/1.1 var(--serif); letter-spacing: -.01em;
}
.opp-sw.dark-ink { color: var(--ink); }
.opp-foot { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* ---------- pricing, in black ---------- */

.page .pricing { background: var(--ink); color: #fff; margin: 72px calc(-1 * var(--gutter)) 0; padding: 56px var(--gutter) 64px; }
.pricing-in { max-width: 1240px; margin: 0 auto; }
.pricing .section-head { border-color: #fff; }
.pricing .kicker { color: #bdbdbd; }
.plans { display: grid; gap: 16px; }
.plan { border-top: 3px solid #fff; padding: 16px 0 8px; }
.plan-head { display: flex; justify-content: space-between; margin: 0; font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.plan-price { font: normal 500 64px/1 var(--serif); letter-spacing: -.03em; margin: 14px 0 18px; }
.plan-price small { font: 600 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-left: 10px; opacity: .8; }
.ticks { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.35); }
.ticks li { padding: 11px 0 11px 26px; border-bottom: 1px solid rgba(255,255,255,.35); position: relative; font-size: 15px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 16px; width: 12px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.plan-pro { background: var(--pin); border-top-color: var(--pin); padding: 16px 18px 20px; margin: 0 -2px; }
.plan-pro .ticks, .plan-pro .ticks li { border-color: rgba(255,255,255,.45); }
.plan-pro .fineprint { color: #fff; opacity: .92; }
.btn-on-dark { color: #fff; border-color: #fff; }
.btn-on-dark:hover { background: #fff; color: var(--ink); }
.plan-pro .btn-ink:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- privacy ---------- */

.page .privacy-band { background: var(--chalk); margin: 0 calc(-1 * var(--gutter)); padding: 56px var(--gutter) 60px; }
.privacy-band > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.privacy-band h2 { font-size: clamp(40px, 11vw, 96px); max-width: 11em; }
.privacy-cols { display: grid; gap: 14px; margin-top: 24px; }
.privacy-cols p { margin: 0; font-size: 16px; line-height: 1.6; max-width: 34em; }
.privacy-cols a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- faq ---------- */

.faq details { border-bottom: 1px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font: normal 600 21px/1.2 var(--serif); letter-spacing: -.01em; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 14px; font: 400 26px/1 var(--sans); color: var(--pin); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 44em; }
.faq a:not(.btn), .prose a:not(.btn) { color: var(--ink); text-underline-offset: 3px; }
.faq { padding-bottom: 72px !important; }

/* ---------- footer ---------- */

.foot-big { background: var(--ink); color: #bdbdbd; border-top: 0; padding: 36px var(--gutter) 36px; overflow: hidden; }
.foot-big a { color: #fff; }
.foot-mast {
  max-width: none !important; margin: 0 0 18px !important; color: #fff; text-align: center;
  font: normal 800 min(calc((100vw - 2 * var(--gutter)) / 6.6), 186px)/.86 var(--serif); letter-spacing: -.035em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden;
}
.foot-big .foot-links { max-width: 1240px; border-top: 1px solid #3a3a3a; }

/* ---------- text pages ---------- */

.prose { max-width: 44em; padding-top: 36px; }
.accuracy .prose { padding-top: 0; }
.prose h1 { font-size: clamp(46px, 12vw, 84px); margin-bottom: 14px; letter-spacing: -.03em; }
.prose h2 { font-size: clamp(28px, 7vw, 40px); margin: 40px 0 10px; }
.prose p, .prose li { font-size: 16px; line-height: 1.6; }
.prose ul { padding-left: 20px; }
.prose .updated { font: 600 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.page .prose { padding-bottom: 64px; }
.accuracy .prose, .page .accuracy .prose { padding-bottom: 0; }

/* Pro on in this browser (html[data-pro="on"], set in each page's head): no prices or Pro
   pitches, and Manage Pro (the /pro page) in place of the Pro link. */
html[data-pro="on"] [data-pitch], html:not([data-pro="on"]) [data-pro-only] { display: none !important; }
/* Pro not on sale (js/sale.js has not said yes): no price and no pitch either. The buy pane
   on /pro stays, since it says "Pro opens soon" by itself, and so does the key box. */
html:not([data-sale="on"]) [data-pitch]:not(#pane-buy) { display: none !important; }
html:not([data-sale="on"]):not([data-pro="on"]) section[aria-labelledby="pro-title"] { display: none !important; }
.accuracy .prose h3 { font: 600 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin: 26px 0 8px; }
.accuracy .prose li { margin-bottom: 8px; }
.study-invite { margin-top: 18px; }
html[data-pro="on"] body[data-view="loading"] #pane-off { display: none; }

/* ---------- Pro page ---------- */

.page .pro-mast { padding-top: 28px; border-bottom: 3px solid var(--ink); padding-bottom: 18px; }
.pro-mast h1 { font-size: clamp(48px, 13vw, 104px); letter-spacing: -.035em; line-height: .98; padding-bottom: .14em; }
.pro-mast .kicker { color: var(--pin); }
.welcome { background: var(--pin); color: #fff; padding: 20px 18px 22px; margin-top: 24px; }
.welcome h2 { font-size: clamp(32px, 8vw, 52px); }
.welcome p { margin: 10px 0 0; max-width: 40em; }
.welcome .kicker { color: #fff; margin: 0 0 10px; }
.state-wait { display: grid; gap: 14px; justify-items: start; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--faint); border-top-color: var(--pin); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.confirm h2 { font-size: clamp(34px, 9vw, 60px); }
.last-result { font: normal 500 40px/1 var(--serif); letter-spacing: -.02em; margin: 6px 0 4px; }
.page .result-grid { padding-bottom: 24px; }

@media (min-width: 720px) {
  .season-bar { grid-template-columns: repeat(6, 1fr); }
  .how-steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .plans { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .plan-pro { margin: 0; }
  .privacy-cols { grid-template-columns: 1fr 1fr; gap: 40px; }
  .looks { gap: 20px; }
  .look-skip .skip-label { font-size: 9px; }
}

@media (min-width: 1024px) {
  .bar-nav { display: flex; }
  .page section { padding-top: 96px; }
  .page .cover { padding-top: 14px; }
  .cover-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; padding-top: 44px; align-items: start; }
  .cover-copy { padding-top: 8px; }
  .looks { gap: 28px; }
  .look-b { margin-top: 96px; }
  .look { display: grid; grid-template-columns: minmax(0, 1fr) 54px; gap: 10px; }
  .look-card { display: contents; }
  .look-photo { grid-column: 1; grid-row: 1; }
  .drape-strip { grid-column: 2; grid-row: 1; grid-template-columns: 1fr; gap: 4px; align-self: stretch; }
  .drape-strip li { aspect-ratio: auto; }
  .look-season { grid-column: 1 / -1; margin-top: 14px; }
  .look-note { grid-column: 1 / -1; font-size: 14px; }
  .look-skip { grid-column: 1 / -1; margin-top: 2px; }
  .season-bar { grid-template-columns: repeat(12, 1fr); gap: 6px; }
  .sb-cloth { height: 150px; }
  .page .how { padding: 88px var(--gutter) 92px; margin-top: 96px; }
  .how-no { font-size: 132px; }
  .opposites { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
  .opp-sw { min-height: 96px; font-size: 22px; }
  .page .pricing { padding: 88px var(--gutter) 96px; margin-top: 110px; }
  .plan-price { font-size: 84px; }
  .page .privacy-band { padding: 88px var(--gutter) 92px; }
}

@media (prefers-reduced-motion: no-preference) {
  .cover-copy h1, .cover-copy .lede, .cover-copy .actions, .look { animation: rise .8s var(--ease) both; }
  .cover-copy .lede { animation-delay: .08s; }
  .cover-copy .actions { animation-delay: .14s; }
  .look-a { animation-delay: .1s; }
  .look-b { animation-delay: .22s; }
  .drape-strip li { animation: drop .6s var(--ease) both; transform-origin: top; }
  .drape-strip li:nth-child(2) { animation-delay: .05s; }
  .drape-strip li:nth-child(3) { animation-delay: .1s; }
  .drape-strip li:nth-child(4) { animation-delay: .15s; }
  .drape-strip li:nth-child(5) { animation-delay: .2s; }
  .drape-strip li:nth-child(6) { animation-delay: .25s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes drop { from { transform: scaleY(0); } }
