/* taylor.fyi/extensions: every Chrome extension, each with a real screenshot of it working. The sheet follows
   taylor.fyi/map-for-google-photos: day by default, night behind [data-theme="dark"]. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #111114;
  --text-2: #4a4a52;
  --line: rgba(17, 17, 20, 0.1);
  --hover: rgba(17, 17, 20, 0.06);
  --img-line: rgba(0, 0, 0, 0.1);
  --button: #111114;
  --button-hover: #2a2a30;
  --on-button: #ffffff;
  --focus: #6a3de8;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0e11;
  --text: #f4f4f6;
  --text-2: #a3a3ad;
  --line: rgba(255, 255, 255, 0.12);
  --hover: rgba(255, 255, 255, 0.08);
  --img-line: rgba(255, 255, 255, 0.1);
  --button: #f4f4f6;
  --button-hover: #dcdce2;
  --on-button: #111114;
  --focus: #a48bff;
}

.no-transition, .no-transition * { transition: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration-thickness: from-font; text-underline-position: from-font; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.top { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.theme { width: 44px; height: 44px; margin-right: -12px; display: grid; place-items: center; border: 0; border-radius: 999px; background: none; color: var(--text); cursor: pointer; transition: background-color 150ms var(--ease); }
.theme svg { width: 20px; height: 20px; }
.theme [hidden] { display: none; }

.hero { padding-top: 40px; text-align: center; }
h1 { margin: 0 auto; font-size: clamp(40px, 5.4vw, 68px); font-weight: 700; line-height: 1.04; letter-spacing: -0.045em; text-wrap: balance; }
.lead { margin: 20px auto 0; max-width: 30em; font-size: 20px; line-height: 1.45; color: var(--text-2); text-wrap: balance; }

/* one extension: the words at the left, the screenshots at the right */
.ext {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
  margin-top: 120px;
}
.ext:first-of-type { margin-top: 96px; }
.icon { display: block; width: 56px; height: 56px; border-radius: 14px; }
h2 { margin: 20px 0 0; font-size: 36px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.copy p { margin: 16px 0 0; font-size: 18px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center;
  height: 44px; padding: 0 22px;
  border-radius: 999px; background: var(--button); color: var(--on-button);
  font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color 150ms var(--ease), transform 150ms var(--ease);
}
.button:active { transform: scale(0.97); }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }

/* real screenshots, with a hairline, never stretched */
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 14px; outline: 1px solid var(--img-line); outline-offset: -1px; }
figcaption { margin: 0 0 10px; font-size: 14px; color: var(--text-2); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

/* a phone can't install a Chrome extension: it gets the demo page instead of the download */
.phone { display: none; }
@media (pointer: coarse) {
  .computer { display: none; }
  .button.phone { display: inline-flex; }
}

.foot { margin-top: 120px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--text-2); }

@media (hover: hover) and (pointer: fine) {
  .theme:hover { background: var(--hover); }
  .button:hover { background: var(--button-hover); }
}
@media (max-width: 900px) {
  .ext { grid-template-columns: 1fr; gap: 32px; margin-top: 88px; }
  .ext:first-of-type { margin-top: 64px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 24px; text-align: left; }
  .lead { margin-left: 0; font-size: 18px; }
  h2 { font-size: 30px; }
  .pair { gap: 10px; }
  figure img { border-radius: 10px; }
  .foot { margin-top: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .button:active { transform: none; }
}
