/*
 * No web fonts, CDNs or analytics: this site makes no third-party requests,
 * matching what the extension promises.
 */

:root {
  --paper: #edf2ee;
  --ticket: #ffffff;
  --ink: #18261e;
  --muted: #5b6a61;
  --accent: #2f6f4f;
  --accent-ink: #ffffff;
  --expired: #b3261e;
  --rule: #c9d6cd;
  --code-bg: #e3ece5;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  --measure: 34rem;
  --page: 60rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121a15;
    --ticket: #1d2822;
    --ink: #e6eee8;
    --muted: #9fb0a5;
    --accent: #78c79a;
    --accent-ink: #0f2318;
    --expired: #f2a49e;
    --rule: #2f3d35;
    --code-bg: #24352b;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 1rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.page {
  max-width: var(--page);
  margin: 0 auto;
}

/* Site header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.wordmark img {
  width: 28px;
  height: 28px;
}

/* Hero ticket: the one loud element on the page. */

.ticket {
  --perforation: 72%;
  --notch: 16px;
  display: grid;
  grid-template-columns: var(--perforation) 1fr;
  margin: 1.5rem 0 4.5rem;
  background: var(--ticket);
  border-radius: 14px;
  /* Cut half-circle notches into the top and bottom edges at the perforation. */
  -webkit-mask:
    radial-gradient(circle var(--notch) at var(--perforation) 0, transparent 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at var(--perforation) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at var(--perforation) 0, transparent 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at var(--perforation) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}

.ticket-main {
  padding: clamp(1.75rem, 5vw, 3.5rem);
}

.ticket h1 {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.ticket .lede {
  max-width: 30rem;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.ticket-stub {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  border-left: 3px dashed var(--rule);
}

.stub-code {
  font-family: var(--mono);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  background: var(--code-bg);
  overflow-wrap: anywhere;
}

.stub-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.install {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.3rem;
  border-radius: 8px;
  border: 2px solid var(--accent);
  font-weight: 650;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button-secondary {
  color: var(--accent);
}

/* Content sections */

.section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding: 3.5rem 0;
  border-top: 1px solid var(--rule);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section p,
.section li {
  max-width: var(--measure);
}

.section p {
  margin: 0 0 1rem;
}

.screenshot {
  margin: 0;
}

.screenshot img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: #fff;
}

.screenshot figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.cannot-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.cannot-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}

.cannot-list strong {
  display: block;
  font-size: 1.1rem;
}

.cannot-list span {
  color: var(--muted);
}

.expired-mark {
  color: var(--expired);
  font-weight: 650;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--muted);
}

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

/* Privacy policy page */

.policy {
  max-width: var(--measure);
  padding: 1.5rem 0 4rem;
}

.policy h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 1rem 0 0.25rem;
}

.policy .effective {
  color: var(--muted);
  margin: 0 0 2rem;
}

.policy h2 {
  font-size: 1.25rem;
  margin: 2.25rem 0 0.5rem;
}

/* Narrow screens: the stub moves under the ticket and the notches move to the sides. */

@media (max-width: 720px) {
  .ticket {
    --perforation: 74%;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    -webkit-mask:
      radial-gradient(circle var(--notch) at 0 var(--perforation), transparent 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--notch) at 100% var(--perforation), transparent 98%, #000) right / 51% 100% no-repeat;
    mask:
      radial-gradient(circle var(--notch) at 0 var(--perforation), transparent 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--notch) at 100% var(--perforation), transparent 98%, #000) right / 51% 100% no-repeat;
  }

  .ticket-stub {
    border-left: none;
    border-top: 3px dashed var(--rule);
    padding: 1.5rem clamp(1.75rem, 5vw, 3.5rem) 1.75rem;
  }

  .section {
    grid-template-columns: 1fr;
  }
}
