/* Graph Paper Printable — welcome page. Follows the classic "pin me" welcome pages: light grey page,
   Roboto, everything centred, big Chrome screenshots with numbered callouts. */
@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: url("fonts/roboto-400.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap; src: url("fonts/roboto-500.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: url("fonts/roboto-700.woff2") format("woff2"); }

:root {
  --font: "Roboto", Helvetica, Arial, sans-serif;
  --bg: #f4f4f4;
  --card: #ffffff;
  --text: #000000;
  --muted: #555555;
  --line: #e2e2e2;
  --accent: #c0532f;   /* the extension's terracotta, for links and step numbers */
  --accent-ink: #ffffff;
  --shadow: 0 4px 24px rgba(0, 0, 0, .08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 20px/1.5 var(--font); }
img { max-width: 100%; height: auto; }
b { font-weight: 500; }

.page { width: min(960px, 100%); margin: 0 auto; padding: 72px 24px 80px; text-align: center; }
.mode { display: none; }
body[data-mode="pin"] .mode-pin,
body[data-mode="usage"] .mode-usage { display: block; }

h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); line-height: 1.15; font-weight: 700; }
.lead { margin: 28px auto 0; max-width: 780px; font-size: 22px; line-height: 1.45; }
.ne-arrow { width: 24px; height: 24px; vertical-align: -5px; margin-left: 2px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.usage-title { margin: 0 auto; }
.title-icon { width: 40px; height: 40px; vertical-align: -6px; }
.usage-title .ne-arrow { width: 40px; height: 40px; vertical-align: -6px; }
.inline-logo { width: 20px; height: 20px; vertical-align: -4px; }

/* the screenshots already carry their own window frame and rounded corners */
.shot { display: block; width: 910px; margin: 56px auto 0; }
.shot + .lead { margin-top: 64px; }

.switch { margin: 56px 0 0; font-size: 17px; color: var(--muted); }
.switch a { color: var(--accent); font-weight: 500; text-underline-offset: 3px; }

/* ---------- mode 2: open it ---------- */
/* a glow hanging from the top edge, right under the toolbar where a pinned icon sits (left of the puzzle
   piece). Text, not a button: nothing here to click. Only the glow pulses; the text and icon stay still. */
.toolbar-glow { position: fixed; top: 0; right: 0; z-index: 10; width: 520px; height: 210px; pointer-events: none; user-select: none; }
.toolbar-glow::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 260px 200px at calc(100% - 130px) 0, rgba(192, 83, 47, .42), rgba(192, 83, 47, .16) 55%, transparent 100%);
  animation: breathe 2.4s ease-in-out infinite;
}
.toolbar-glow p {
  position: absolute; top: 40px; right: 40px; width: 180px; margin: 0;
  text-align: center; font-size: 17px; line-height: 1.75; font-weight: 500; color: #7a2f17;
}
.hint-icon { width: 24px; height: 24px; margin: 0 2px; vertical-align: -6px; }
/* a row of arrows above the text, all pointing up at the toolbar, rising one after another */
.toolbar-glow .ups {
  position: absolute; top: 6px; right: 40px; width: 180px;
  display: flex; justify-content: space-between; color: #a8462a;
}
.toolbar-glow .up { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; animation: rise 1.6s ease-in-out infinite; }
.toolbar-glow .up:nth-child(1) { animation-delay: 0.00s; }
.toolbar-glow .up:nth-child(2) { animation-delay: 0.12s; }
.toolbar-glow .up:nth-child(3) { animation-delay: 0.24s; }
.toolbar-glow .up:nth-child(4) { animation-delay: 0.36s; }
.toolbar-glow .up:nth-child(5) { animation-delay: 0.48s; }
@keyframes rise { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .toolbar-glow .up, .toolbar-glow::before { animation: none; } }
@keyframes breathe { 50% { opacity: .7; } }
.mode-usage { padding-top: 64px; } /* room for the arrow and its label above the heading */
/* phones and narrow windows: no toolbar to point at in a sensible place */
@media (max-width: 700px) { .toolbar-glow { display: none; } .mode-usage { padding-top: 0; } }

@media (max-width: 480px) {
  body { font-size: 17px; }
  .page { padding: 40px 16px 56px; }
  .lead { font-size: 18px; }
  .shot { margin-top: 32px; }
  .shot + .lead { margin-top: 40px; }
}
