/*
 * skinsteps.app: dark like the app's guided mode, with a blush glow from the icon that opens and
 * closes each page. One typeface everywhere (Outfit, light weights) on one scale, served from
 * this site. The app itself appears as real screenshots.
 */
@font-face { font-family: "Outfit"; font-weight: 300 600; font-style: normal; font-display: swap; src: url(/fonts/outfit.woff2) format("woff2"); }

:root {
  --night: #0e1116;
  --deep: #122457;
  --glow: #22408f;
  --blush: #f6e4e7;
  --text: #ffffff;
  --body: #c3cbdd;
  --muted: #98a2b8;
  --line: rgba(255, 255, 255, 0.1);
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* the one type scale, used on every page */
  --size-display: clamp(40px, 6vw, 64px);
  --size-title: clamp(34px, 4.6vw, 48px);
  --size-heading: clamp(28px, 3.4vw, 38px);
  --size-statement: clamp(22px, 2.6vw, 28px);
  --size-lead: clamp(18px, 2vw, 20px);
  --size-body: 17px;
  --size-small: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html { background: var(--night); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 300 var(--size-body)/1.65 var(--font);
  background:
    radial-gradient(1100px 620px at 50% -120px, var(--glow) 0%, var(--deep) 42%, rgba(14, 17, 22, 0) 78%),
    var(--night);
  background-repeat: no-repeat;
  padding-inline: 20px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blush); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--blush); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: var(--font); text-wrap: balance; }
strong { font-weight: 500; color: var(--text); }

.shell { max-width: 1080px; margin: 0 auto; }

/* header and footer */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-header nav { display: flex; gap: 24px; font-size: 15px; font-weight: 400; }
.site-header nav a { color: var(--body); text-decoration: none; }
.site-header nav a:hover { color: var(--text); }
.site-footer { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 24px 40px; margin-top: 88px; border-top: 1px solid var(--line); font-size: var(--size-small); color: var(--muted); }
.site-footer a { color: var(--body); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* home: hero */
.hero { display: grid; justify-items: center; text-align: center; gap: 20px; padding-block: 16px 24px; }
.halo { width: 280px; height: 280px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(246, 228, 231, 0.34), rgba(246, 228, 231, 0) 66%); }
.halo img { width: 184px; height: 184px; border-radius: 42px; box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5); }
.hero h1 { font-size: var(--size-display); font-weight: 300; line-height: 1.04; letter-spacing: -0.035em; max-width: 17ch; }
.hero .lede { font-size: var(--size-lead); color: var(--body); max-width: 46ch; text-wrap: balance; }
.soon { display: inline-block; margin-top: 6px; font-size: 15px; font-weight: 400; color: var(--blush); border: 1px solid rgba(246, 228, 231, 0.35); border-radius: 999px; padding: 10px 20px; }

/* home: features */
.features { display: grid; gap: 96px; margin-top: 120px; }
.features > h2 { font-size: var(--size-heading); font-weight: 300; line-height: 1.1; letter-spacing: -0.03em; text-align: center; margin-bottom: -40px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; scroll-margin-top: 32px; }
.pair.flip .pair-copy { order: 2; }
.pair-copy { max-width: 30em; }
.pair-copy h3 { font-size: var(--size-statement); font-weight: 400; line-height: 1.25; letter-spacing: -0.02em; }
.pair-art { display: flex; justify-content: center; }
.shot { margin: 0; width: 300px; max-width: 100%; padding: 9px; border-radius: 44px; background: #05070b; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 40px 80px rgba(0, 0, 0, 0.5); }
.shot img { display: block; width: 100%; height: auto; border-radius: 36px; }

/* home: privacy, the page's closing statement under a returning blush glow */
.closing { position: relative; margin-top: 140px; padding-block: 72px 24px; display: grid; justify-items: center; text-align: center; gap: 18px; isolation: isolate; }
.closing::before { content: ""; position: absolute; inset: -20px -10vw -40px; z-index: -1; background: radial-gradient(closest-side at 50% 58%, rgba(246, 228, 231, 0.14), rgba(246, 228, 231, 0)); pointer-events: none; }
.closing h2 { font-size: var(--size-display); font-weight: 300; line-height: 1.08; letter-spacing: -0.035em; }
.closing h2 span { display: block; }
.closing p { font-size: var(--size-lead); color: var(--body); max-width: 46ch; text-wrap: balance; }

/* reading pages: privacy, terms, support, not found */
.doc { max-width: 680px; margin: 24px auto 0; display: grid; gap: 40px; }
.doc-title { display: grid; gap: 12px; }
.doc h1 { font-size: var(--size-title); font-weight: 300; line-height: 1.08; letter-spacing: -0.03em; }
.doc .meta { color: var(--muted); font-size: var(--size-small); }
.doc .summary { font-size: var(--size-lead); color: var(--text); border-left: 2px solid var(--blush); padding: 2px 0 2px 20px; }
.doc .lead { font-size: var(--size-lead); color: var(--body); }
.doc section { display: grid; gap: 12px; }
.doc h2 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.doc section p { color: var(--body); }
.mail { font-weight: 500; color: var(--text); user-select: all; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  /* phones: the name on top, the four links on a second row */
  .site-header { flex-direction: column; align-items: stretch; gap: 14px; padding-block: 18px 8px; }
  .site-header nav { justify-content: space-between; gap: 12px; font-size: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
  .halo { width: 220px; height: 220px; }
  .halo img { width: 148px; height: 148px; border-radius: 34px; }
  .features { gap: 72px; margin-top: 88px; }
  .features > h2 { margin-bottom: -24px; }
  .pair { grid-template-columns: 1fr; gap: 32px; }
  .pair.flip .pair-copy { order: 0; }
  .pair-copy { text-align: center; margin-inline: auto; }
  .closing { margin-top: 100px; padding-top: 48px; }
}
