/* Bonk's website, in the same sticker style as the extension. */
:root {
  --paper: #fbf6ec;
  --ink: #1d1b19;
  --muted: #5f574b;
  --line: #e2d8c4;
  --mustard: #f2b33d;
  --mustard-soft: #fdf0d2;
  --teal: #5cc0b3;
  --coral: #f28b8e;
  --blue: #8fb0ee;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--paper);
  background-image: radial-gradient(var(--line) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--ink);
}

a:hover {
  color: var(--muted);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 16px;
}

.band {
  border-top: 2.5px solid var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 20px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--mustard);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn:hover {
  color: var(--ink);
}

.soon {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

/* ---- Top */

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
  padding-top: 20px;
  font-weight: 700;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 24px;
  text-align: center;
}

.hero-logo {
  width: min(320px, 80vw);
  height: auto;
  transform: rotate(-3deg);
}

.hero h1 {
  margin-top: 16px;
  font-size: clamp(42px, 7vw, 84px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero p {
  max-width: 46ch;
  margin: 16px 0 0;
  font-size: 17px;
}

.hero .btn {
  margin-top: 20px;
}

/* ---- Screenshots */

.gallery .wrap {
  padding-block: 56px;
}

.gallery .section-title,
.gallery .lead {
  text-align: center;
}

.gallery .lead {
  max-width: 46ch;
  margin: 8px auto 32px;
  text-wrap: balance;
}

/* The first shot large, the other four in a square beside it. */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 22px;
}

.gallery-grid a:first-child {
  grid-row: span 2;
}

.gallery-grid a {
  display: block;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery-grid a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.gallery-grid a:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 4px;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .gallery-grid a:first-child {
    grid-column: span 2;
    grid-row: auto;
  }

  .gallery-grid a {
    border-radius: 12px;
    box-shadow: 4px 4px 0 var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-grid a {
    transition: none;
  }
}

.gallery-view {
  width: min(1280px, 94vw);
  max-width: none;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
  cursor: zoom-out;
}

.gallery-view::backdrop {
  background: rgb(29 27 25 / 0.6);
}

.gallery-view img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Stickers */

.stickers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 26px 24px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

.sticker {
  min-width: 0;
  padding: 20px;
  border: 3px solid var(--ink);
  border-radius: 22px;
  outline: 7px solid var(--white);
  outline-offset: -10px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}

.sticker h2 {
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.sticker p {
  margin: 6px 0 0;
  font-size: 15px;
}

.stickers .swing {
  flex: 0 1 220px;
  min-width: 0;
  transform: rotate(3deg);
}

/* ---- Rows with a screenshot */

.feature {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  gap: 32px 56px;
  padding-block: 48px;
}

.shot {
  flex: 0 1 320px;
  min-width: 0;
  margin-inline: auto;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--ink);
}

.feature-text {
  flex: 1 1 400px;
  min-width: 0;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.lead {
  max-width: 46ch;
  margin: 10px 0 0;
  font-size: 16px;
}

.feature ul {
  margin: 16px 0 0;
  padding-left: 20px;
  font-weight: 600;
}

/* ---- Pro */

.pro {
  border-bottom: 2.5px solid var(--ink);
  background: var(--mustard);
}

.pro .wrap {
  padding-block: 48px;
}

.pro-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.pro-title h2 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.pro-tag {
  padding: 2px 12px;
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--mustard);
  font-size: 16px;
  font-weight: 900;
  transform: rotate(-4deg);
}

.pro .lead {
  max-width: 60ch;
}

.pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
  margin-top: 24px;
}

.pro-card {
  min-width: 0;
  padding: 16px;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
}

.pro-card h3 {
  font-size: 16px;
  line-height: 1.25;
}

.pro-card p {
  margin: 4px 0 0;
  font-size: 14px;
}

.compare-title {
  margin-top: 40px;
  font-size: 22px;
}

.table-box {
  margin-top: 16px;
  overflow-x: auto;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}

.limits {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
}

.limits th,
.limits td {
  padding: 10px 14px;
  border-bottom: 2px solid var(--line);
  font-size: 15px;
  text-align: left;
}

.limits thead th {
  border-bottom: 2.5px solid var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.limits td + td,
.limits th + th {
  width: 28%;
}

.limits tbody tr:last-child > * {
  border-bottom: none;
}

.limits .is-pro {
  background: var(--mustard-soft);
  font-weight: 800;
}

/* ---- Pricing */

.pricing {
  background: var(--white);
}

.pricing .wrap {
  padding-block: 48px;
  text-align: center;
}

.pricing h2 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.tag {
  flex: 1 1 180px;
  max-width: 220px;
  padding: 16px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}

.tag h3 {
  font-size: 16px;
}

.tag p {
  margin: 4px 0 0;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
}

.small-print {
  max-width: 70ch;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---- Questions */

.questions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px 40px;
  padding-block: 48px;
}

.questions h3 {
  font-size: 18px;
}

.questions p {
  margin: 6px 0 0;
  font-size: 15px;
}

/* ---- How-tos on the home page */

.how-tos {
  padding-block: 56px;
}

.how-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.how-list a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 18px 20px;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s;
}

.how-list a:hover,
.how-list a:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.how-list strong {
  font-size: 18px;
  line-height: 1.2;
}

.how-list span {
  font-size: 15px;
  color: var(--muted);
}

.how-tos .more {
  margin: 24px 0 0;
  font-weight: 800;
}

/* ---- Footer */

.site-footer {
  border-top: 2.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-block: 24px;
  font-weight: 700;
}

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

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

.site-footer .spacer {
  margin-left: auto;
}

/* ---- Policy pages */

.page-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 24px;
}

.page-head a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
}

.page-head img {
  width: 40px;
  height: 40px;
}

.policy {
  max-width: 760px;
  margin: 0 auto 64px;
  padding: 32px;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 6px 6px 0 var(--ink);
}

.policy h1 {
  font-size: clamp(30px, 5vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.policy .updated {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.policy h2 {
  margin-top: 26px;
  font-size: 20px;
}

.policy p,
.policy li {
  max-width: 68ch;
}

.policy p {
  margin: 10px 0 0;
}

.policy ul,
.policy ol {
  margin: 10px 0 0;
  padding-left: 20px;
}

.policy li + li {
  margin-top: 6px;
}

/* How-to guides use the policy page layout. */
.guide h3 {
  margin-top: 18px;
  font-size: 17px;
}

.guide code {
  padding: 1px 6px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  font-size: 0.92em;
}

.guide .guide-cta {
  margin-top: 24px;
}

/* Guide breadcrumbs and the list of guides. */
.crumbs {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.crumbs a {
  color: inherit;
}

.guide-list {
  list-style: none;
  padding-left: 0 !important;
}

.guide-list li {
  max-width: none;
}

.guide-list li > a {
  font-weight: 900;
}

.guide-list li > span {
  display: block;
  color: var(--muted);
}

@media (max-width: 600px) {
  .policy {
    margin-inline: 16px;
    padding: 22px;
  }
}
