/* The website. The shared look is copied from the extension's poster.css at build time. */
:root { --text-cap-top: 6.3px; }
a { color: var(--red); font-weight: 600; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
h1 { text-align: center; }

.mark { display: block; width: 240px; height: 240px; margin: 22px auto 0; }
.tagline { margin: 18px 0 0; font-size: 26px; font-weight: 700; line-height: 1.2; text-align: center; }
.pitch { margin: 6px 0 0; font-size: 17px; text-align: center; }
.install { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.soon { padding: 9px 14px; border: 2px solid var(--ink); border-radius: 4px; font-weight: 600; }
/* A store that's open: the same box as "coming soon", filled in, so it's plainly the one to press. */
.get { padding: 9px 14px; border: 2px solid var(--ink); border-radius: 4px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; }
.get:hover { background: #000; border-color: #000; }
.get:focus-visible { outline-color: var(--ink); outline-offset: 3px; }
/* GitHub's mark, unmodified and set apart from the words, as GitHub's logo rules ask. Ink,
   not red, because red on amber is too faint for small text. */
.github { margin: 18px 0 0; text-align: center; }
.github a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; text-decoration: none; }
.github svg { flex: none; width: 22px; height: 22px; }
.github span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.github a:hover span { text-decoration-thickness: 2px; }
.github a:focus-visible { outline-color: var(--ink); outline-offset: 4px; }

.copy p { margin: 10px 0 0; }
.copy .rule { margin: 0 0 8px; font-size: 21px; font-weight: 700; line-height: 1.25; }
.copy .rule.next { margin-top: 18px; }

/* The button stays in reach while you look at the feed. On desktop it rides along with
   the big word. On a phone it sits at the bottom of the screen until the section ends. */
.try .side { position: sticky; top: 20px; align-self: start; }
.try .choices { position: relative; margin-top: 16px; }

/* A marker note pointing at the button. Every stroke draws itself in turn, using a dash
   as long as the line, and the button shakes when the arrow lands. */
.doodle { position: absolute; top: 100%; left: 0; overflow: visible; pointer-events: none; transition: opacity .3s; }
.doodle path { stroke: var(--red); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.draw .doodle path { animation: draw var(--for) linear var(--at) forwards; }
.used .doodle { opacity: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.shake { animation: shake .5s ease-in-out; }
@keyframes shake {
  20% { transform: rotate(-3deg) translateX(-2px); }
  40% { transform: rotate(3deg) translateX(2px); }
  60% { transform: rotate(-2deg) translateX(-1px); }
  80% { transform: rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .doodle path { stroke-dashoffset: 0; }
  .draw .doodle path, .shake { animation: none; }
  .try .choices { transition: none !important; }
}
.post { scroll-margin-top: 16px; }

.feed { display: grid; gap: 10px; margin-top: 14px; }
.post > div:not(.bar) { display: grid; place-items: center; align-content: center; gap: 2px; min-height: 104px; padding: 12px; border: 2px solid var(--ink); text-align: center; }
.post b { font-size: 18px; }
.post span { font-size: 14px; }
.post > div.photo { padding: 0; gap: 0; background: #fff; }
.photo img { display: block; width: 100%; height: auto; }
.photo p { display: grid; gap: 2px; margin: 0; padding: 10px 12px; }
.feed.clean .slop > div:not(.bar) { display: none; }
.feed.clean .slop .bar { display: flex !important; }
.bar { gap: 12px; align-items: center; padding: 7px 8px 7px 12px; border: 1px solid rgba(127, 127, 127, .4); border-radius: 8px; background: rgba(127, 127, 127, .08); color: #6b6b6b; font: 13px/1.4 system-ui, sans-serif; }
.post .bar b { color: var(--red); font-size: 13px; font-weight: 600; }
.post .bar span { font-size: 13px; }
.bar span:nth-child(2) { flex: 1; }
.bar .show { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid currentColor; border-radius: 6px; font-weight: 600; }
.bar .show svg { width: 13px; height: 13px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stats strong { display: block; font: 700 64px/.95 var(--display); font-stretch: condensed; }
.stats span { font-weight: 600; }

.faq details { padding: 12px 0; border-top: 1px solid var(--rule); }
.faq details:first-child { padding-top: 0; border-top: 0; }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 700; }

.after .links { text-align: center; }
.after .links a + a { margin-left: 22px; }

/* The counting image (/hit/home, /hit/privacy). Pinned to the corner and invisible, so it
   never moves anything, whether it loads or not. */
.hit { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* The privacy policy is for reading, so it drops the big-word rows. */
.plate.short { display: flex; align-items: center; gap: 20px; padding: 22px 40px; }
.plate.short img { display: block; width: 96px; height: 96px; }
.plate.short h1 { flex: 1; font-size: clamp(46px, 9vw, 76px); text-align: left; }
.policy { max-width: 680px; margin: 0 auto; padding: 28px 40px 16px; }
.policy .lead { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.4; }
.policy .fine { color: var(--muted); font-size: 15px; }
.policy h2 { margin: 28px 0 6px; font: 700 34px/1 var(--display); font-stretch: condensed; letter-spacing: .01em; text-transform: uppercase; }
.policy li { margin-top: 6px; }

@media (max-width: 720px) {
  .mark { width: 180px; height: 180px; }
  .line.try { display: flex; flex-direction: column; }
  .try .side { display: contents; }
  .try .copy { order: 1; }
  .try .choices { order: 2; position: sticky; bottom: 12px; margin-top: 12px; transition: transform .3s ease-out, visibility .3s; }
  .try.waiting .choices { transform: translateY(calc(100% + 24px)); visibility: hidden; }
  .doodle { display: none; }
  .try .choices button { width: 100%; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
  .plate.short { padding: 18px; gap: 14px; }
  .plate.short img { width: 64px; height: 64px; }
  .policy { padding: 22px 18px 12px; }
}
