/* Highlight to Calendar: shared site styles (index, faq, privacy).
   Same system as the store images: flat Google Calendar event colors as "ink",
   a paper texture over the color fields, Archivo condensed headlines, Google Sans
   for everything else, and Chrome's selection blue as the one accent. */

:root {
  --tangerine: #F4511E;
  --blueberry: #3F51B5;
  --basil: #0B8043;
  --grape: #8E24AA;
  --banana: #F6BF26;
  --blue: #1a73e8;
  --blue-dark: #1765cc;
  --select: #b3d7ff;
  --ink: #1b1b1b;
  --ink-2: #3c4043;
  --muted: #5f6368;
  --line: #e3e1db;
  --paper: #f6f5f1;
  --max: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Google Sans', 'Inter', Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
::selection { background: var(--select); color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Color fields printed on paper */
.ink { position: relative; isolation: isolate; color: #fff; }
.ink::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url(images/paper.jpg) 0 0 / 800px 800px repeat;
  mix-blend-mode: soft-light; opacity: .9;
  border-radius: inherit;
}
.ink.tangerine { background-color: var(--tangerine); }
.ink.blueberry { background-color: var(--blueberry); }
.ink.basil { background-color: var(--basil); }
.ink.grape { background-color: var(--grape); }
.ink.banana { background-color: var(--banana); color: var(--ink); }
.ink.blue { background-color: var(--blue); }

/* Headline face */
.display {
  font-family: 'Archivo', sans-serif; font-weight: 800; font-stretch: 62%;
  letter-spacing: -0.01em; line-height: 0.95; margin: 0;
}
.sel { background: var(--select); color: var(--ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* The floating button as the selected phrase's period */
.dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: .56em; height: .56em; margin: 0 .06em 0 .06em; vertical-align: middle; position: relative; top: -0.04em;
  border-radius: 50%; background: var(--blue); box-shadow: 0 2px 4px rgba(0,0,0,.22);
}
.dot svg { width: 58%; height: 58%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(246,245,241,.92); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; white-space: nowrap; }
.brand img { width: 32px; height: 32px; }
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.nav nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav nav a:hover { color: var(--ink); }
.nav nav a.btn-blue, .nav nav a.btn-blue:hover { color: #fff; }
@media (max-width: 640px) {
  .nav nav a.hide-sm { display: none; }
  .nav .brand { font-size: 16px; }
  .nav .brand img { width: 28px; height: 28px; }
}
@media (max-width: 400px) {
  .nav .wrap { gap: 12px; }
  .nav .brand { font-size: 15px; gap: 8px; }
  .nav nav a.btn-blue { padding-left: 12px; padding-right: 12px; }
}
/* The name and the button stop fitting side by side here, so just the logo */
@media (max-width: 370px) { .nav .brand { font-size: 0; gap: 0; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  font: 700 16px/1 'Google Sans', sans-serif; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--select); outline-offset: 3px; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 2px 6px rgba(26,115,232,.3); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.14); }
.btn-ghost { color: inherit; padding-left: 4px; padding-right: 4px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn img { width: 20px; height: 20px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .brand { font-size: 15px; margin-right: auto; }
.footer .brand img { width: 24px; height: 24px; }

/* Long-form pages (FAQ, privacy) */
.page-head { padding: clamp(48px, 8vw, 88px) 0 clamp(36px, 6vw, 56px); }
.page-head h1 { font-size: clamp(56px, 9vw, 104px); }
.page-head p { margin: 18px 0 0; font-size: 19px; max-width: 640px; opacity: .95; }
.prose { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 64px) var(--gutter) 72px; }
.prose h2 { font: 700 26px/1.25 'Google Sans', sans-serif; margin: 44px 0 12px; }
.prose h3 { font: 700 19px/1.3 'Google Sans', sans-serif; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .updated { color: var(--muted); font-size: 15px; }
.prose .try-it { margin: 24px 0; padding: 18px 22px; border-left: 4px solid var(--blue); color: var(--ink); font-size: 21px; line-height: 1.4; }
.faq-item { border-top: 1px solid var(--line); padding: 26px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h2 { margin: 0 0 10px; font-size: 22px; }
.faq-item p { margin: 0; }
