/* AnyDownload site. Colours, radii and the type stack are the extension's own
   (extension/shared/theme.css); pine, paper and ember come from its icon. */

:root {
  color-scheme: light dark;
  --canvas: #f6f6f3;
  --surface: #ffffff;
  --surface-subtle: #eeefec;
  --ink: #242a2a;
  --ink-muted: #5f6966;
  --line: #e0e3df;
  --line-strong: #a4aea8;
  --brand: #bb4927;
  --on-brand: #ffffff;
  --brand-hover: #a23a1c;
  --brand-soft: #fcf0e8;
  --brand-ink: #963d21;
  --success: #18734d;
  --success-soft: #e1f2e8;
  --pine: #18332f;
  --paper: #f7f3e8;
  --sage: #9db5ac;
  --ember: #f09472;
  --shadow-window: 0 1px 2px rgb(20 31 27 / 6%), 0 24px 60px rgb(20 31 27 / 12%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(18px, 4vw, 40px);
  --measure: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #151718;
    --surface: #1c1f20;
    --surface-subtle: #2c3032;
    --ink: #f2f3f1;
    --ink-muted: #b0b9b5;
    --line: #353b3d;
    --line-strong: #606d66;
    --brand: #f09472;
    --on-brand: #231911;
    --brand-hover: #ffae8e;
    --brand-soft: #3c2b24;
    --brand-ink: #ffcbb5;
    --success: #63d5a0;
    --success-soft: #1e382c;
    --pine: #10231f;
    --shadow-window: 0 1px 2px rgb(0 0 0 / 30%), 0 24px 60px rgb(0 0 0 / 40%);
  }
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

a {
  color: var(--brand-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

button {
  font: inherit;
  color: inherit;
}

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

::selection {
  color: var(--ink);
  background: var(--brand-soft);
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--measure));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--on-brand);
  background: var(--brand);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transform: translateY(calc(-100% - 16px));
}

.skip-link:focus {
  color: var(--on-brand);
  transform: translateY(0);
}

/* Header: the extension's own workspace header, with site links in the tabs' place. */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  min-height: 64px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.035em;
  text-decoration: none;
}

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

.brand img {
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--surface-subtle);
}

.site-nav a[aria-current="page"] {
  color: var(--brand-ink);
  background: var(--brand-soft);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease);
}

.button:hover {
  color: var(--ink);
  border-color: var(--ink-muted);
  background: var(--surface-subtle);
}

.button-primary {
  border-color: var(--brand);
  color: var(--on-brand);
  background: var(--brand);
}

.button-primary:hover {
  border-color: var(--brand-hover);
  color: var(--on-brand);
  background: var(--brand-hover);
}

.button-small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 14px;
}

.button svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero */

.hero {
  padding-block: clamp(36px, 6vw, 84px) clamp(48px, 7vw, 96px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 64px);
}

.hero h1 {
  font-size: clamp(38px, 5.1vw, 66px);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 34em;
  margin-top: 22px;
  color: var(--ink-muted);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 14px;
}

/* The demo: a working copy of the media manager. */

.manager {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-window);
  font-size: 14px;
  line-height: 1.35;
}

.manager-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.manager-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.manager-host {
  color: var(--ink-muted);
  font-size: 13px;
}

.manager-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 10px 12px 0;
}

.segments {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
}

.segments button {
  min-height: 32px;
  padding: 5px 11px;
  border: 0;
  border-radius: 6px;
  color: var(--ink-muted);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

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

.segments button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(20 31 27 / 14%);
}

.manager-hint {
  color: var(--ink-muted);
  font-size: 13px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 12px 12px;
  list-style: none;
}

.tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: var(--surface-subtle);
  aspect-ratio: 1;
  cursor: pointer;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 140ms var(--ease), transform 220ms var(--ease);
}

.tile[aria-pressed="false"] img {
  opacity: .5;
}

.tile:hover img {
  opacity: 1;
}

.tile-number {
  position: absolute;
  top: 7px;
  left: 7px;
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding-inline: 6px;
  border: 2px solid #fff;
  border-radius: 13px;
  color: #fff;
  background: #bb4927;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease);
}

.tile[aria-pressed="false"] .tile-number {
  color: transparent;
  background: rgb(255 255 255 / 30%);
  transform: scale(.82);
}

.tile.is-saved .tile-number {
  background: #18734d;
}

.tile-kind {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px 6px;
  border-radius: 4px;
  color: #fff;
  background: rgb(20 26 26 / 78%);
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.manager-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.manager-count {
  margin-right: 2px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.manager-bar .quiet {
  min-height: 34px;
  padding: 6px 11px;
  border: 0;
  border-radius: 6px;
  background: var(--surface-subtle);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.manager-bar .quiet:hover {
  background: var(--line);
}

.manager-download {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-left: auto;
  padding: 8px 16px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  color: var(--on-brand);
  background: var(--brand);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.manager-download:hover:not(:disabled) {
  background: var(--brand-hover);
}

.manager-download:disabled {
  opacity: .5;
  cursor: default;
}

.manager-download svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.manager-download::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: currentColor;
  opacity: .75;
  transform: scaleX(0);
  transform-origin: left;
}

.manager-download.is-working::after {
  transform: scaleX(1);
  transition: transform 1100ms linear;
}

.manager-status {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: var(--success-soft);
  font-size: 13px;
  line-height: 1.45;
}

.manager-status strong {
  color: var(--success);
}

/* Sections */

.section {
  padding-block: clamp(52px, 8vw, 104px);
}

.section-title {
  max-width: 20em;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 740;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.section-lede {
  max-width: 38em;
  margin-top: 14px;
  color: var(--ink-muted);
}

/* Tour: one feature at a time beside its screenshot. Without the script, or on
   a narrow screen, every feature shows its own screenshot under its text. */

.tour-band {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.tour {
  display: grid;
  gap: 36px;
  margin-top: 36px;
}

.tour-item h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.tour-item h3 button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: default;
}

.tour-item p {
  max-width: 34em;
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 16px;
}

.tour-shot {
  margin-top: 16px;
}

.shot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  box-shadow: var(--shadow-window);
}

.shot img {
  width: 100%;
}

@media (min-width: 940px) {
  .js .tour {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    grid-template-rows: repeat(6, auto) 1fr;
    align-items: start;
    gap: 4px clamp(28px, 4vw, 56px);
  }

  .js .tour-item {
    display: contents;
  }

  .js .tour-text {
    grid-column: 1;
    padding: 14px 16px;
    border-radius: var(--radius-md);
  }

  .js .tour-item h3 button {
    cursor: pointer;
  }

  .js .tour-item h3 button::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
  }

  .js .tour-text {
    position: relative;
  }

  .js .tour-item h3 button:focus-visible {
    outline: none;
  }

  .js .tour-item h3 button:focus-visible::after {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
  }

  .js .tour-text:hover {
    background: var(--canvas);
  }

  .js .tour-item.is-active .tour-text {
    background: var(--brand-soft);
  }

  .js .tour-item.is-active h3 {
    color: var(--brand-ink);
  }

  .js .tour-item.is-active p {
    color: var(--ink);
  }

  .js .tour-item:not(.is-active) p {
    display: none;
  }

  .js .tour-shot {
    position: sticky;
    top: 24px;
    grid-column: 2;
    grid-row: 1 / -1;
    margin-top: 0;
  }

  .js .tour-item:not(.is-active) .tour-shot {
    display: none;
  }
}

/* Access: the one dark band, in the icon's pine and paper. */

.access {
  color: var(--paper);
  background: var(--pine);
}

.access .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
}

.access .section-lede {
  color: var(--sage);
}

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

.access a:hover {
  color: var(--ember);
}

.access-more {
  margin-top: 20px;
  font-size: 16px;
}

.asks {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.45;
}

.asks caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.asks th,
.asks td {
  padding: 16px 0;
  border-bottom: 1px solid rgb(247 243 232 / 16%);
  text-align: left;
  vertical-align: top;
}

.asks thead th {
  padding-top: 0;
  color: var(--sage);
  font-size: 14px;
  font-weight: 600;
}

.asks tbody th {
  width: 42%;
  padding-right: 20px;
  font-weight: 700;
}

.asks tbody td {
  color: #dcd9cf;
}

.asks tbody tr:last-child th,
.asks tbody tr:last-child td {
  border-bottom: 0;
}

/* Facts */

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(28px, 5vw, 72px);
  margin-top: 28px;
}

.facts div {
  padding-block: 18px;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-weight: 700;
  letter-spacing: -.01em;
}

.facts dd {
  max-width: 34em;
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 16px;
}

/* Closing call */

.closing {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.closing .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}

.closing .section-title {
  max-width: 17em;
}

/* Footer */

.site-footer {
  padding-block: 36px 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: grid;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  list-style: none;
}

.footer-links a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand-ink);
  text-decoration: underline;
}

.footer-note {
  max-width: 62em;
}

/* Legal and other text pages */

.doc {
  padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 104px);
}

.doc .wrap {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 68ch);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.doc-nav {
  position: sticky;
  top: 24px;
  font-size: 14px;
}

.doc-nav p {
  margin-bottom: 10px;
  color: var(--ink-muted);
  font-weight: 600;
}

.doc-nav ol {
  display: grid;
  gap: 2px;
  list-style: none;
}

.doc-nav a {
  display: block;
  padding: 6px 10px;
  margin-left: -10px;
  border-radius: 6px;
  color: var(--ink-muted);
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.doc-nav a:hover {
  color: var(--ink);
  background: var(--surface-subtle);
}

.doc-body {
  font-size: 16.5px;
  line-height: 1.62;
}

.doc-body h1 {
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.doc-date {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 15px;
}

.doc-summary {
  margin-top: 26px;
  padding: 18px 20px;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
}

.doc-summary p + p {
  margin-top: 10px;
}

.doc-body h2 {
  margin-top: 44px;
  font-size: 23px;
  font-weight: 720;
  line-height: 1.25;
  letter-spacing: -.025em;
  scroll-margin-top: 20px;
}

.doc-body h3 {
  margin-top: 26px;
  font-size: 17px;
  font-weight: 700;
}

.doc-body h2 + p,
.doc-body h3 + p,
.doc-body h2 + ul,
.doc-body h3 + ul {
  margin-top: 10px;
}

.doc-body p + p,
.doc-body p + ul,
.doc-body ul + p,
.doc-body .table-scroll + p,
.doc-body p + .table-scroll {
  margin-top: 14px;
}

.doc-body ul {
  display: grid;
  gap: 7px;
  padding-left: 1.2em;
}

.doc-body li::marker {
  color: var(--line-strong);
}

.table-scroll {
  overflow-x: auto;
}

.doc-body code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
}

.doc-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

.doc-body th,
.doc-body td {
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc-body thead th {
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
}

.doc-body tbody th {
  min-width: 9em;
  font-weight: 700;
}

.notfound {
  padding-block: clamp(64px, 14vw, 160px);
}

.notfound p {
  margin-block: 14px 26px;
  color: var(--ink-muted);
}

/* Narrow screens */

@media (max-width: 939px) {
  .hero .wrap,
  .access .wrap,
  .doc .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-nav {
    position: static;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }

  .doc-nav ol {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header .wrap {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: -10px;
  }

  .site-nav a {
    padding-inline: 10px;
  }

  .site-nav .nav-wide {
    display: none;
  }

  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .manager-hint {
    display: none;
  }

  .manager-download {
    flex: 1 1 100%;
    justify-content: center;
    min-height: 46px;
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .asks tbody th {
    width: 46%;
  }

  .hero-actions .button {
    flex: 1 1 auto;
  }
}

@media (pointer: coarse) {
  .segments button,
  .manager-bar .quiet {
    min-height: 44px;
  }

  .site-nav a {
    min-height: 44px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  .tile-number,
  .tile-kind {
    border: 1px solid CanvasText;
  }

  .tile[aria-pressed="true"] {
    outline: 3px solid Highlight;
    outline-offset: -3px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .doc-nav,
  .skip-link {
    display: none;
  }

  .doc .wrap {
    display: block;
  }
}
