/* pelmet.app guide pages (/features/, /faq/, /live-lyrics-mac/ ...). Built by scripts/seo-pages/build.mjs.
   The tokens, bar, grain, FAQ, promo block and footer are copied from paint/css/paint.css so these pages
   do not load the home page's stylesheet. Keep the two in step when the shared part changes. */

:root {
  --bg: #07070a;
  --ink: #f4f1ea;
  --mute: rgba(244, 241, 234, .62);
  --faint: rgba(244, 241, 234, .16);
  --line: rgba(244, 241, 234, .1);
  --panel: rgba(244, 241, 234, .035);
  --c1: #ff7a3d;
  --c2: #ffd18a;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Hanken Grotesk', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --pad: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; scroll-padding-top: 72px; }
body {
  font: 400 17px/1.55 var(--sans); overflow-x: hidden; min-height: 100vh;
  background:
    radial-gradient(900px 520px at 85% -8%, rgba(255, 122, 61, .13), transparent 62%),
    radial-gradient(700px 420px at -5% 4%, rgba(255, 209, 138, .07), transparent 60%),
    var(--bg);
}
a { color: inherit; }
img, canvas { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--c2); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- top bar (as on the home page) ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: 56px; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; pointer-events: none;
}
.bar a { pointer-events: auto; position: relative; text-decoration: none; }
.bar::before { content: ''; position: absolute; inset: 0 0 -34px; background: linear-gradient(rgba(4, 4, 6, .92) 30%, transparent); pointer-events: none; }
.mark { font: 400 22px/1 var(--serif); letter-spacing: -.02em; display: flex; align-items: center; gap: 9px; }
.logo { width: 30px; height: 30px; display: block; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .5)); }
.get {
  font: 600 13px/1 var(--sans); padding: 10px 16px; border-radius: 99px;
  background: rgba(244, 241, 234, .1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--faint);
  transition: background .25s, color .25s;
}
.get:hover { background: var(--ink); color: #000; }

/* ---------- page ---------- */
main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.kicker { font: 500 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.kicker b { color: var(--c2); font-weight: 500; }

.hero { padding: 96px 0 26px; }
.hero h1 { font: 400 clamp(40px, 6.2vw, 78px)/.98 var(--serif); letter-spacing: -.03em; margin: 16px 0 16px; max-width: 13ch; }
.hero h1 em { font-style: italic; font-weight: 300; color: var(--c2); }
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--mute); max-width: 62ch; }
.lede strong { color: var(--ink); font-weight: 600; }

section h2 { font: 400 clamp(32px, 4.6vw, 58px)/1 var(--serif); letter-spacing: -.025em; margin-bottom: 14px; }
.sec { padding-top: clamp(72px, 10vw, 120px); }
.sec-intro { color: var(--mute); max-width: 62ch; margin-bottom: 28px; }

.how-grid { display: grid; gap: 14px; margin-top: 26px; }
.how-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.how-grid h3 { font: 600 18px/1.25 var(--sans); margin: 14px 0 8px; }
.how-grid p { color: var(--mute); font-size: 15.5px; }
.how-grid svg { color: var(--c2); }

.faq-list { max-width: 820px; border-top: 1px solid var(--line); margin-top: 18px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font: 600 17px/1.35 var(--sans);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--mute); border-bottom: 1.5px solid var(--mute); transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list details p { color: var(--mute); padding: 0 0 20px; max-width: 68ch; font-size: 16px; }

/* ---------- style pages: the text about the medium, links to the styles ---------- */
.kicker a { text-decoration: none; }
.kicker a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.prose { max-width: 68ch; margin-top: 22px; }
.prose p { color: var(--mute); font-size: 17px; line-height: 1.65; }
.prose p + p { margin-top: 14px; }
.sec-intro a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--faint); }
.style-list {
  list-style: none; padding: 0; display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.style-list a {
  display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel); text-decoration: none; transition: border-color .25s, background .25s;
}
.style-list a:hover { border-color: var(--faint); background: rgba(244, 241, 234, .06); }
.style-list b { display: block; font: 400 21px/1.15 var(--serif); letter-spacing: -.01em; }
.style-list span { display: block; margin-top: 6px; color: var(--mute); font-size: 14px; line-height: 1.45; }

.pelmet {
  margin-top: clamp(80px, 11vw, 132px); padding: clamp(24px, 4.5vw, 52px); border-radius: 26px;
  border: 1px solid var(--faint);
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 122, 61, .16), transparent 55%), rgba(244, 241, 234, .03);
  display: grid; gap: 22px; align-items: center;
}
.pelmet-icon { width: 76px; height: 76px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .55)); }
.pelmet h2 { margin: 12px 0 14px; }
.pelmet p { color: var(--mute); max-width: 60ch; }
.pelmet p + p { margin-top: 10px; }
.pelmet-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pelmet-req { font: 400 12px/1.5 var(--mono); color: var(--mute); margin-top: 16px; }
.pelmet-req a { text-underline-offset: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  font: 600 15px/1 var(--sans); padding: 15px 24px; border-radius: 99px; text-decoration: none;
  transition: transform .3s var(--ease), background .25s, color .25s, box-shadow .3s;
}
.btn.solid { background: var(--ink); color: #0a0a0c; }
.btn.solid:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px var(--c1); }
.btn.ghost { border: 1px solid var(--faint); }
.btn.ghost:hover { background: rgba(244, 241, 234, .1); }
.btn:active { transform: scale(.97); }

.foot {
  margin-top: 88px; padding: 22px 0 36px; border-top: 1px solid var(--faint);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  font: 400 12px/1.6 var(--mono); color: var(--mute);
}
.foot a { margin-right: 18px; text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .legal { flex-basis: 100%; font: 400 11px/1.6 var(--sans); opacity: .75; max-width: 80ch; }

/* ---------- guide pages ---------- */
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.updated { font: 400 12px/1.5 var(--mono); color: var(--mute); margin-top: 18px; }

.shots { display: grid; gap: 14px; margin-top: 34px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.shots figcaption { font: 400 12px/1.5 var(--mono); color: var(--mute); margin-top: 10px; }

.facts { margin-top: 26px; border-top: 1px solid var(--line); max-width: 920px; }
.facts div { display: grid; gap: 4px 28px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 12px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding-top: 2px; }
.facts dd { margin: 0; font-size: 16.5px; }

.cards { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 26px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
/* four cards sit two by two instead of three and an orphan */
@media (min-width: 640px) { .cards:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
.cards li { padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.cards h3 { font: 400 23px/1.15 var(--serif); letter-spacing: -.01em; margin-bottom: 8px; }
.cards p { color: var(--mute); font-size: 15.5px; }
.cards p + p { margin-top: 8px; }

.steps { list-style: none; padding: 0; counter-reset: step; margin-top: 22px; max-width: 68ch; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; padding: 14px 0; border-top: 1px solid var(--line); color: var(--mute); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); font: 500 13px/1.7 var(--mono); color: var(--c2); }
.steps b { color: var(--ink); font-weight: 600; }

.prose h3 { font: 600 18px/1.3 var(--sans); color: var(--ink); margin: 28px 0 6px; }
.prose ul { color: var(--mute); padding-left: 1.2em; margin-top: 12px; }
.prose li + li { margin-top: 6px; }
.prose li b, .prose p b { color: var(--ink); font-weight: 600; }
.prose a, .facts a, .cards a, .steps a, .faq-list a, .lede a, .tbl a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--faint); }
.prose a:hover, .facts a:hover, .cards a:hover, .steps a:hover, .faq-list a:hover, .lede a:hover, .tbl a:hover { text-decoration-color: var(--c2); }
kbd { font: 500 .85em/1 var(--mono); padding: 2px 6px; border: 1px solid var(--faint); border-radius: 6px; background: rgba(244, 241, 234, .06); white-space: nowrap; }

.tbl { overflow-x: auto; margin-top: 22px; max-width: 920px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.tbl th { font: 500 12px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.tbl td { color: var(--mute); }
.tbl td:first-child { color: var(--ink); }

.states { display: grid; gap: 14px; margin-top: 34px; }
.states figure { margin: 0; }
.states svg { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.states figcaption { margin-top: 10px; color: var(--mute); font-size: 15px; }
.states figcaption b { display: block; font: 500 12px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c2); }
.states .scr { fill: #121117; }
.states .k { fill: #000; }
.states .acc { fill: var(--c1); }
.states .acc2 { fill: var(--c2); }
.states .ink { fill: var(--ink); }
.states .dim { fill: var(--faint); }
.sketch-note { font: 400 12px/1.5 var(--mono); color: var(--mute); margin-top: 12px; }

.faq-list + h2, .faq-list + .faq-h { margin-top: 56px; }
.faq-h { font: 400 clamp(26px, 3.2vw, 38px)/1.05 var(--serif); letter-spacing: -.02em; margin: 56px 0 6px; }
.sec > .faq-h:first-child { margin-top: 0; }
.foot nav { flex-basis: 100%; }

@media (min-width: 720px) {
  .shots.two { grid-template-columns: 1fr 1fr; }
  .shots.three, .states { grid-template-columns: repeat(3, 1fr); }
  .facts div { grid-template-columns: 210px 1fr; }
  .pelmet { grid-template-columns: auto 1fr; gap: 36px; align-items: start; }
  .pelmet-icon { width: 96px; height: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { transition-duration: .01ms !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
