/*
  Blinkshot website stylesheet.
  System fonts only. No external resources. Light and dark appearance follow the system.
*/

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-secondary: #f5f5f7;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --separator: #d2d2d7;
  --link: #0066cc;
  --focus-ring: rgba(0, 125, 250, 0.6);
  --nav-bg: rgba(255, 255, 255, 0.8);
  --footer-link: #424245;
  --slot-border: #c7c7cc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-secondary: #1d1d1f;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #86868b;
    --separator: #424245;
    --link: #2997ff;
    --focus-ring: rgba(41, 151, 255, 0.7);
    --nav-bg: rgba(0, 0, 0, 0.8);
    --footer-link: #d2d2d7;
    --slot-border: #48484a;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

strong {
  font-weight: 600;
}

code,
.path {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

kbd {
  font-family: inherit;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 12px;
  background: var(--bg);
  color: var(--link);
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
}

.container {
  max-width: 1024px;
  margin: 0 auto;
  padding-inline: 22px;
}

/* Local navigation, in the style of an Apple product page. */

.localnav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--separator);
}

.localnav-inner {
  max-width: 1024px;
  height: 52px;
  margin: 0 auto;
  padding-inline: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.localnav-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: 0.011em;
}

.localnav-title:hover {
  text-decoration: none;
}

.localnav-title img {
  width: 28px;
  height: 28px;
}

.localnav-links {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.localnav-links a {
  color: var(--text);
}

.localnav-links a[aria-current="page"] {
  color: var(--text-secondary);
  pointer-events: none;
}

/* Product page */

.hero {
  padding-block: 88px 64px;
  text-align: center;
}

.hero-icon {
  width: 144px;
  height: 144px;
  margin: 0 auto 16px;
}

.hero h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.07143;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.hero .tagline {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 1.14286;
  font-weight: 400;
  letter-spacing: 0.007em;
}

.hero .lead {
  max-width: 620px;
  margin: 24px auto 0;
  color: var(--text-secondary);
  font-size: 21px;
  line-height: 1.381;
  letter-spacing: 0.011em;
}

.store {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.badge-slot {
  width: 156px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--slot-border);
  border-radius: 10px;
  color: var(--text-tertiary);
  font-size: 12px;
  letter-spacing: -0.01em;
}

.store-note {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  letter-spacing: -0.016em;
}

.shot {
  max-width: 980px;
  margin: 0 auto;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* The popup is a small floating panel. Shown at its real size, it stays believable. */
.shot-image-popup {
  max-width: 440px;
  margin: 0 auto;
}

/*
  Placeholder for a screenshot that hasn't been captured yet. A quiet frame at the final 16:10 shape,
  narrower than the real image will be, with a viewfinder glyph and a short label.
*/
.shot-frame {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1440 / 900;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: transparent;
  border: 1px solid var(--separator);
  border-radius: 18px;
  color: var(--text-tertiary);
  text-align: center;
}

.shot-frame svg {
  width: 40px;
  height: 40px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.shot-frame span {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.42859;
  letter-spacing: -0.016em;
}

.shot figcaption {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.42859;
  letter-spacing: -0.016em;
  text-align: center;
}

.hero + .container .shot {
  margin-bottom: 88px;
}

.section {
  padding-block: 80px;
  border-top: 1px solid var(--separator);
}

/* Section copy sits in a centered reading column under the centered hero. */
.section > h2,
.section > p,
.section > .specs {
  margin-inline: auto;
}

.section h2 {
  max-width: 692px;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0;
}

.section p {
  max-width: 692px;
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--text-secondary);
  font-size: 21px;
  line-height: 1.381;
  letter-spacing: 0.011em;
}

.section p strong {
  color: var(--text);
}

.section p:last-child {
  margin-bottom: 0;
}

.section .shot {
  margin-top: 56px;
}

.specs {
  max-width: 692px;
  margin-top: 8px;
  margin-bottom: 0;
}

.specs > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding-block: 18px;
  border-bottom: 1px solid var(--separator);
}

.specs > div:first-child {
  border-top: 1px solid var(--separator);
}

.specs dt {
  font-weight: 600;
}

.specs dd {
  margin: 0;
  color: var(--text-secondary);
}

/* Article pages: support and privacy */

.article {
  max-width: 740px;
  padding-block: 64px 96px;
}

.article-header {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--separator);
}

.article h1 {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0;
}

.article .intro {
  margin: 0;
  color: var(--text-secondary);
  font-size: 21px;
  line-height: 1.381;
  letter-spacing: 0.011em;
}

.article .meta {
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  letter-spacing: -0.016em;
}

.article h2 {
  margin: 56px 0 16px;
  font-size: 28px;
  line-height: 1.14286;
  font-weight: 600;
  letter-spacing: 0.007em;
  scroll-margin-top: 72px;
}

.article h3 {
  margin: 36px 0 8px;
  font-size: 19px;
  line-height: 1.26316;
  font-weight: 600;
  letter-spacing: 0.012em;
  scroll-margin-top: 72px;
}

.article p {
  margin: 0 0 16px;
}

.article ul,
.article ol {
  margin: 0 0 16px;
  padding-left: 1.3em;
}

.article li {
  margin-bottom: 8px;
  padding-left: 0.2em;
}

.article .toc {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.article .toc li {
  margin: 0 0 6px;
  padding: 0;
}

.callout {
  margin: 20px 0 24px;
  padding: 20px 24px;
  background: var(--bg-secondary);
  border-radius: 18px;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Footer */

.footer {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.33337;
  letter-spacing: -0.01em;
}

.footer-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 20px 22px 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 14px;
  padding: 0 0 14px;
  list-style: none;
  border-bottom: 1px solid var(--separator);
}

.footer a {
  color: var(--footer-link);
}

.footer p {
  margin: 0 0 6px;
}

.footer .publisher {
  margin-bottom: 10px;
}

/* Not found page */

.notfound {
  max-width: 692px;
  padding-block: 120px 140px;
  text-align: center;
}

.notfound h1 {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0;
}

.notfound p {
  margin: 0 auto 28px;
  color: var(--text-secondary);
  font-size: 21px;
  line-height: 1.381;
  letter-spacing: 0.011em;
}

.notfound ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 17px;
}

@media (max-width: 734px) {
  .container,
  .localnav-inner,
  .footer-inner {
    padding-inline: 20px;
  }

  .localnav-inner {
    height: 48px;
  }

  .localnav-title {
    font-size: 19px;
  }

  .localnav-title img {
    width: 24px;
    height: 24px;
  }

  .localnav-links {
    gap: 16px;
  }

  .hero {
    padding-block: 56px 44px;
  }

  .hero-icon {
    width: 112px;
    height: 112px;
  }

  .hero h1 {
    font-size: 40px;
    line-height: 1.1;
  }

  .hero .tagline {
    font-size: 24px;
    line-height: 1.16667;
  }

  .hero .lead {
    font-size: 19px;
    line-height: 1.42105;
  }

  .hero + .container .shot {
    margin-bottom: 56px;
  }

  .section {
    padding-block: 56px;
  }

  .section h2 {
    font-size: 32px;
    line-height: 1.125;
  }

  .section p {
    font-size: 19px;
    line-height: 1.42105;
  }

  .section .shot {
    margin-top: 40px;
  }

  .specs > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .article {
    padding-block: 44px 72px;
  }

  .article h1 {
    font-size: 32px;
    line-height: 1.125;
  }

  .article .intro {
    font-size: 19px;
    line-height: 1.42105;
  }

  .notfound {
    padding-block: 72px 96px;
  }

  .notfound h1 {
    font-size: 32px;
    line-height: 1.125;
  }

  .notfound p {
    font-size: 19px;
    line-height: 1.42105;
  }

  .shot-frame {
    border-radius: 14px;
  }

  .shot-frame svg {
    width: 36px;
    height: 36px;
  }

  .article h2 {
    margin-top: 44px;
    font-size: 24px;
    line-height: 1.16667;
  }
}
