/* Stripes website · the questions page (faq.html). Tokens are the site's own, from styles.css,
   which are the app's palette and its two families. */
:root {
  --bg: #131210; --border: #2e2a24; --text: #f5f0e8; --text-2: #d2c8bc; --text-sub: #a89d90; --text-muted: #9a9187;
  --gold: #d6b270; --rule: rgba(245,240,232,.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Fira Sans Condensed", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --col: 880px;
  interpolate-size: allow-keywords;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; }

.band { position: absolute; top: 0; left: 0; right: 0; height: 640px; z-index: 0; overflow: hidden; }
.band canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.melt { position: absolute; left: 0; right: 0; bottom: 0; height: 58%; pointer-events: none;
  background: linear-gradient(180deg, rgba(19,18,16,0) 0%, rgba(19,18,16,.04) 14%, rgba(19,18,16,.16) 29%, rgba(19,18,16,.35) 43%, rgba(19,18,16,.57) 57%, rgba(19,18,16,.78) 71%, rgba(19,18,16,.93) 86%, var(--bg) 100%); }
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; padding: 26px var(--gutter) 0; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 34px; height: auto; }
.brand-word { width: 118px; height: auto; opacity: .92; margin-top: 2px; }

.frame { position: relative; z-index: 1; width: var(--col); max-width: calc(100vw - 2 * var(--gutter)); margin: 0 auto; padding: 164px 0 120px; min-height: calc(100svh - 84px); }
h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-style: italic; font-size: 76px; line-height: 1; letter-spacing: -0.01em; }


/* search */
.search { position: relative; margin-top: 36px; }
.search input { width: 100%; height: 62px; padding: 0 58px 0 58px; border-radius: 21px; background: rgba(24, 21, 19, .42); border: 1px solid rgba(245,240,232,.2); box-shadow: inset 0 1px 0 rgba(245,240,232,.14);
  font: 400 20px/1 var(--sans); color: var(--text); outline: none; transition: border-color .2s; -webkit-appearance: none; }
.search input::placeholder { color: #c4b9ad; opacity: 1; }
.search input:focus { border-color: rgba(245,240,232,.4); }
.search input::-webkit-search-cancel-button { display: none; }
.search svg { z-index: 1; position: absolute; left: 21px; top: 20px; width: 22px; height: 22px; stroke: #c4b9ad; fill: none; stroke-width: 1.7; stroke-linecap: round; pointer-events: none; }
.search .clear { z-index: 1; display: none; position: absolute; right: 9px; top: 9px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.search .clear::before, .search .clear::after { content: ""; position: absolute; left: 14px; top: 21px; width: 16px; height: 1.6px; background: var(--text-2); border-radius: 1px; transform: rotate(45deg); }
.search .clear::after { transform: rotate(-45deg); }
.search.has .clear { display: block; }
.count { display: none; margin: 20px 0 0; font-size: 16px; color: var(--text-2); }
.searching .count { display: block; }

/* the five a stranger asks first: the question, its answer and the reason in one block,
   read before anything is opened; the sixth place says when they were last held against the app */
.first { display: grid; grid-template-columns: 1fr 1fr; margin: 44px 0 0; border-top: 1px solid var(--rule); }
.searching .first { display: none; }
.first div { padding: 20px 0 21px; border-bottom: 1px solid var(--rule); scroll-margin-top: 120px; }
.first div:nth-child(odd) { padding-right: 56px; }
.first dt { font: 400 18px/1.3 var(--sans); color: var(--text-2); }
.first dd { margin: 0; }
.fa { margin-top: 4px; font: 600 52px/1.12 var(--serif); letter-spacing: -0.008em; color: var(--text); }
.fw { margin-top: 2px; font: 400 19px/1.4 var(--sans); color: var(--text-2); }
.checked { margin: 34px 0 0; font-size: 15px; color: var(--text-sub); }

/* the answers */
.group { padding-top: 64px; }
.group[hidden] { display: none; }
.searching .group { padding-top: 36px; }
.group h2 { margin: 0 0 12px; font: 500 14px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); }
.rows { border-top: 1px solid var(--border); }
details { border-bottom: 1px solid var(--border); }
details[hidden] { display: none; }
details.dup { display: none; }
.searching details.dup:not([hidden]) { display: block; }
summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 20px; column-gap: 28px; align-items: start; padding: 20px 0 19px; outline: none; }
summary::-webkit-details-marker { display: none; }
summary h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.18; color: var(--text); text-wrap: balance; }
.plus { grid-column: 2; grid-row: 1; margin-top: 9px; position: relative; width: 16px; height: 16px; justify-self: end; opacity: .6; transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .2s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 1.6px; background: var(--text); border-radius: 1px; }
.plus::after { transform: rotate(90deg); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
summary:hover .plus { opacity: 1; }
details[open] .plus { opacity: .8; }
details[open] .plus::after { transform: rotate(0deg); }
summary:focus-visible h3 { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; text-decoration-thickness: 1px; }
details::details-content { height: 0; overflow: clip; transition: height .34s cubic-bezier(.2,.7,.2,1), content-visibility .34s allow-discrete; }
details[open]::details-content { height: auto; }
.long { padding: 0 0 26px 0; max-width: 600px; }
.long p { margin: 0 0 12px; font-size: 19px; color: #c4b9ad; line-height: 1.56; }
.long p:last-of-type { margin-bottom: 0; }
mark { background: none; color: var(--gold); }
.hit { display: none; grid-column: 1; margin-top: 7px; max-width: 640px; font: 400 17px/1.5 var(--sans); color: var(--text-sub); text-wrap: pretty; }
.hit.on { display: block; }
details[open] .hit { display: none; }

/* one shape for every small action: copy a link, go to the place, write to us */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 19px; border: 1px solid rgba(245,240,232,.22); font: 500 15px/1 var(--sans); color: var(--text-2); cursor: pointer; transition: color .2s, border-color .2s; }
.pill:hover { color: var(--text); border-color: rgba(245,240,232,.45); }
.pill i { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-top: 1.6px solid currentColor; transform: rotate(45deg); }
.long .pill { margin-top: 18px; }
.link { height: 34px; padding: 0 14px; font-size: 15px; font-weight: 400; color: var(--text-sub); border-color: rgba(245,240,232,.14); }

/* nothing found: the question becomes a letter */
.none { display: none; padding: 48px 0 0; }
.none.on { display: block; }
.none p { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.15; color: var(--text); }
.send { margin-top: 24px; height: 48px; padding: 0 22px; border-radius: 24px; font-size: 17px; color: var(--text); border-color: rgba(245,240,232,.34); }
.nothing .signed { display: none; }

.signed { margin-top: 84px; }
.signed .ask { margin: 0; font-size: 17px; color: var(--text-sub); }
.site .signed .mail { display: inline-block; margin-top: 8px; font-family: var(--serif); font-weight: 600; font-size: 36px; line-height: 1.1; color: var(--gold); }

.foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px var(--gutter) 34px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-muted); letter-spacing: .02em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }

/* wide screens: the plus hangs in the margin, against the question it opens */
@media (min-width: 1001px) {
  summary { display: block; position: relative; }
  .plus { position: absolute; left: -40px; top: 29px; margin: 0; }
}

@media (max-width: 1000px) {
  .frame { width: auto; max-width: none; padding: 104px var(--gutter) 90px; min-height: 0; }
  .group h2 { font-size: 12.5px; }
  .band { height: 560px; }
  h1 { font-size: 50px; }
  .search { margin-top: 24px; }
  .search input { height: 56px; font-size: 18px; padding: 0 50px 0 52px; border-radius: 19px; }
  .search svg { left: 18px; top: 18px; width: 20px; height: 20px; }
  .search .clear { top: 6px; right: 5px; }
  .count { font-size: 15px; margin-top: 16px; }
  .first { display: block; margin-top: 24px; }
  .first div, .first div:nth-child(odd) { padding: 9px 0 11px; }
  .first dt { font-size: 15.5px; line-height: 1.25; color: var(--text-2); }
  .fa { margin-top: 0; font-size: 33px; line-height: 1.1; }
  .fw { margin-top: 1px; font-size: 15.5px; line-height: 1.3; color: #b9aea1; }
  .checked { margin-top: 28px; font-size: 14px; }
  .group { padding-top: 46px; }
  .searching .group { padding-top: 28px; }
  .group h2 { font-size: 12px; margin-bottom: 10px; }
  summary { column-gap: 18px; padding: 16px 0 15px; }
  summary h3 { font-size: 23px; line-height: 1.17; }
  .plus { margin-top: 6px; }
  .long { padding: 0 20px 22px 0; }
  .long p { font-size: 17px; }
  .hit { font-size: 16px; }
  .none p { font-size: 28px; }
  .signed { margin-top: 60px; }
  .site .signed .mail { font-size: 28px; }
  .foot { flex-direction: column; align-items: flex-start; gap: 12px; }
}
