:root {
  --ink: #1c1c1c;
  --paper: #fffaf5;
  --hero: #fad7bd;
  --text: #1c1c1c;
  --muted: #5a4a3f;
  --card: #ffffff;
  --lavender: #e2dcf8;
  --lime: #ddf0b0;
  --peach: #fad7bd;
  --pink: #f4c6c0;
  --doodle: rgba(28, 28, 28, 0.09);
  --display: "Bricolage Grotesque", ui-sans-serif, sans-serif;
  --body: "Figtree", ui-sans-serif, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f2;
    --paper: #141210;
    --hero: #3a281c;
    --text: #f2f2f2;
    --muted: #c9b8aa;
    --card: #1c1c1c;
    --lavender: #2c2840;
    --lime: #28331a;
    --peach: #3a281c;
    --pink: #3d2523;
    --doodle: rgba(242, 242, 242, 0.07);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.125rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lime); color: #1c1c1c; }

a:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 999px; }

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

/* Hero */

.hero {
  position: relative;
  background-color: var(--hero);
  overflow: hidden;
  padding: 0 16px 0;
}

/* Scattered doodles in the illustrations' stroke style: bookmarks, magnifiers, sparkles. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--doodle);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40 30h28v40l-14-10-14 10z' transform='rotate(-12 54 50)'/%3E%3Ccircle cx='230' cy='60' r='16'/%3E%3Cpath d='M242 72l14 14'/%3E%3Cpath d='M150 120v20M140 130h20M143 123l14 14M157 123l-14 14'/%3E%3Cpath d='M260 200h28v40l-14-10-14 10z' transform='rotate(14 274 220)'/%3E%3Ccircle cx='70' cy='230' r='14'/%3E%3Cpath d='M80 240l12 12'/%3E%3Cpath d='M180 270c10-14 26-14 36 0'/%3E%3Cpath d='M28 140l10 6-10 6M300 130l-10 6 10 6'/%3E%3Crect x='170' y='190' width='34' height='34' rx='8' transform='rotate(-8 187 207)'/%3E%3C/svg%3E") 0 0 / 320px 320px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40 30h28v40l-14-10-14 10z' transform='rotate(-12 54 50)'/%3E%3Ccircle cx='230' cy='60' r='16'/%3E%3Cpath d='M242 72l14 14'/%3E%3Cpath d='M150 120v20M140 130h20M143 123l14 14M157 123l-14 14'/%3E%3Cpath d='M260 200h28v40l-14-10-14 10z' transform='rotate(14 274 220)'/%3E%3Ccircle cx='70' cy='230' r='14'/%3E%3Cpath d='M80 240l12 12'/%3E%3Cpath d='M180 270c10-14 26-14 36 0'/%3E%3Cpath d='M28 140l10 6-10 6M300 130l-10 6 10 6'/%3E%3Crect x='170' y='190' width='34' height='34' rx='8' transform='rotate(-8 187 207)'/%3E%3C/svg%3E") 0 0 / 320px 320px;
  pointer-events: none;
}

.bar {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
}


.hero-body {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 0 0;
  text-align: center;
}

.hero-logo {
  width: clamp(260px, 42vw, 400px);
  margin: -16px auto 8px;
}

h1 {
  font: 800 clamp(2.75rem, 8vw, 5.5rem)/0.98 var(--display);
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
h1 span { white-space: nowrap; }

.lede {
  margin: 24px auto 0;
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  color: var(--muted);
  text-wrap: balance;
}

.button {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 999px;
  background: #1c1c1c;
  color: #fff;
  font: 700 1.125rem var(--body);
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(28, 28, 28, 0.22);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(28, 28, 28, 0.26); }
.button:active { transform: translateY(0); }

.button-small { padding: 10px 20px; font-size: 1rem; }

@media (prefers-color-scheme: dark) {
  .button { background: #fad7bd; color: #1c1c1c; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); }
}

/* The search window, drawn like the illustrations: white fill, thick ink outline, set into the hero's bottom edge. */
.search {
  max-width: 680px;
  margin: 56px auto 0;
  background: var(--card);
  border: 4px solid var(--ink);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  text-align: left;
}

.field {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 2px solid color-mix(in srgb, var(--ink) 14%, transparent);
}

/* Two results, laid out like the app's result rows: site icon, title, then host and description. */
.results {
  list-style: none;
  margin: 0;
  padding: 10px 12px 16px;
  min-height: 148px;
}

.results li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
}
.results.shown li {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1) var(--delay), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) var(--delay);
}
.results li.selected { background: color-mix(in srgb, var(--ink) 7%, transparent); }

.site {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  background: var(--tint);
  font: 800 1.125rem var(--display);
}

.results .text { display: grid; min-width: 0; }
.results b, .results small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.results b { font-weight: 700; font-size: 1.0625rem; }
.results small { font-size: 0.9375rem; color: var(--muted); }

.glass {
  flex: none;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
}

.query {
  flex: 1;
  min-width: 0;
  font: 500 clamp(1.125rem, 2.6vw, 1.5rem) var(--body);
  white-space: nowrap;
  overflow: hidden;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.18em;
  background: var(--ink);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.keys { display: flex; gap: 6px; flex: none; }

kbd {
  font: 600 0.9em var(--body);
  padding: 2px 8px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 2px 0 var(--ink);
  white-space: nowrap;
}
.keys kbd { font-size: 1rem; min-width: 34px; text-align: center; }

/* Features */

main {
  max-width: 884px;
  margin: 0 auto;
  padding: 96px 16px 48px;
  display: grid;
  gap: 48px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.feature picture {
  display: block;
  width: 100%;
  border-radius: 40px;
  padding: 24px;
  background: var(--tint);
}

/* Tiles sit on the page's outer edges, and each text block on the opposite edge, so a row's
   text lines up with the tile edge of the rows around it. */
.feature:nth-child(odd) .copy { justify-self: end; }
.feature:nth-child(even) picture { order: 2; justify-self: end; }

.tint-lavender { --tint: var(--lavender); }
.tint-lime { --tint: var(--lime); }
.tint-peach { --tint: var(--peach); }
.tint-pink { --tint: var(--pink); }

h2 {
  font: 800 clamp(2rem, 4vw, 2.75rem)/1.05 var(--display);
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  text-wrap: balance;
}

.copy { max-width: 44ch; }

.copy p {
  margin: 0;
  color: var(--muted);
}

.copy .note { margin-top: 12px; font-size: 0.875rem; }

footer {
  padding: 64px 16px 48px;
  text-align: center;
}
footer p { margin: 24px 0 0; font-size: 0.875rem; color: var(--muted); }
footer p + p { margin-top: 8px; }
footer a:not(.button) { color: inherit; text-underline-offset: 3px; }

/* Privacy policy and other text pages */

.hero-slim { padding-bottom: 8px; }

main.legal {
  display: block;
  max-width: calc(68ch + 32px);
  padding: 64px 16px 0;
}

.legal h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); }
.legal .updated { margin: 12px 0 40px; color: var(--muted); }
.legal h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.legal p, .legal ul, .legal ol { margin: 0 0 16px; }
.legal ul, .legal ol { padding-left: 1.25em; }
.legal li { margin-bottom: 8px; }
.legal a { color: inherit; text-underline-offset: 3px; }
.legal h2[id] { scroll-margin-top: 24px; }

.contents {
  margin: 32px 0 8px;
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--lavender);
}
.contents h2 { margin: 0 0 8px; font-size: 1.125rem; }
.contents ol { margin: 0; padding-left: 1.5em; columns: 2 16rem; column-gap: 32px; }
.contents li { margin-bottom: 4px; break-inside: avoid; }

@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature:nth-child(even) picture { order: 0; }
  .feature picture, .feature:nth-child(even) picture { max-width: 288px; justify-self: center; }
  .feature:nth-child(odd) .copy { justify-self: start; }
  main { gap: 40px; padding-top: 72px; }
  .keys { display: none; }
  .field { padding: 16px 18px; }
  .results { padding: 8px 8px 12px; }
}

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