/* Tuckaway's website: one shared style for every page, from the privacy policy draft. Light by default, Dark when the
   reader's system is dark. No web fonts, no external files: Segoe UI on Windows, the system font elsewhere. */

/* Colours for Light, then Dark when the reader's system is dark. */
:root {
  --bg: #FFFFFF; --soft: #F5F7FA; --ink: #161A22; --muted: #5D6575; --line: #E3E6EC;
  --accent: #1F6FA8; --accent-ink: #FFFFFF; --button: #2563C9; --button-hover: #1E54AD; --button-press: #194690;
  --todo: #FFF1B8; --todo-ink: #5A4500; --good: #0D7A70; --shadow: 0 10px 30px rgba(20, 30, 60, .12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121317; --soft: #191B21; --ink: #E9EAEE; --muted: #9AA0AD; --line: #2A2C33;
    --accent: #4FB8F0; --accent-ink: #FFFFFF; --button: #2F6FDB; --button-hover: #3D7DE8; --button-press: #2A62C2;
    --todo: #4A3D0E; --todo-ink: #FFE38A; --good: #2DD4BF; --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { color-scheme: light dark; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 'Segoe UI', system-ui, -apple-system, sans-serif; }
img { max-width: 100%; height: auto; }

/* Links: a thicker underline on hover, a fade while pressed, and a clear outline for the keyboard. */
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
a:active { opacity: .7; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wide { max-width: 1040px; }

/* Skip link for keyboard users, shown only when focused. */
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg); padding: 6px 10px; z-index: 10; }
.skip:focus { left: 8px; }

/* Top bar with the app's icon and name, and the page links. */
nav { border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
nav .brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
nav .brand img { width: 30px; height: 30px; }
nav .brand b { letter-spacing: .18em; font-size: 15px; }
nav .links { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }
nav .links a { color: var(--muted); text-decoration: none; }
nav .links a:hover { color: var(--ink); }
nav .links a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Headings and text. */
h1 { font-size: 34px; line-height: 1.2; margin: 40px 0 6px; }
h2 { font-size: 21px; margin: 40px 0 6px; padding-top: 8px; }
.lead { font-size: 19px; color: var(--muted); margin: 8px 0 0; }
.date { color: var(--muted); font-size: 14px; }
ul { padding-left: 22px; }
li { margin: 4px 0; }
code { font-size: 13.5px; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; overflow-wrap: anywhere; }
.todo { background: var(--todo); color: var(--todo-ink); border-radius: 4px; padding: 0 4px; }

/* The short summary cards (privacy) and the feature grid (home). */
.summary, .features { margin: 28px 0 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.summary div, .features div { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 14.5px; line-height: 1.5; }
.summary b, .features b { display: block; font-size: 15.5px; margin-bottom: 2px; }
.summary .ok { color: var(--good); font-weight: 800; margin-right: 4px; }

/* Tables (privacy). */
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 10px 0; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }

/* Buttons: the Store button and a quieter second one, each with a hover and a press. */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 26px 0 8px; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 10px; background: var(--button);
  color: var(--accent-ink); font-weight: 600; text-decoration: none; transition: background .12s, transform .08s; }
.button:hover { background: var(--button-hover); text-decoration: none; }
.button:active { background: var(--button-press); transform: scale(.97); opacity: 1; }
.button.quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.button.quiet:hover { background: var(--soft); }
.button.quiet:active { background: var(--line); }
/* A button that cannot be used yet (the Store link before the app is listed): muted, with no hover or press. */
.button.disabled { background: var(--soft); color: var(--muted); border: 1px dashed var(--line); cursor: default; }
.button.disabled:hover, .button.disabled:active { background: var(--soft); transform: none; }

/* The hero picture and every screenshot: rounded, with a soft shadow. */
.hero { margin: 34px 0 6px; }
.shot { display: block; border-radius: 12px; box-shadow: var(--shadow); }
.note { color: var(--muted); font-size: 14px; }

/* Before and after slider (screenshots): the Light picture underneath, the Dark one clipped to the left of the handle. */
.compare { margin: 30px 0 46px; }
.compare figcaption { font-weight: 600; margin: 0 0 10px; }
.slider { position: relative; overflow: hidden; border-radius: 12px; box-shadow: var(--shadow); touch-action: pan-y; cursor: ew-resize;
  user-select: none; -webkit-user-select: none; --pos: 50%; }
.slider img { display: block; width: 100%; pointer-events: none; }
.slider .dark { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.slider .bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .85);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.slider .handle { position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: #FFFFFF; color: #161A22; border: 2px solid rgba(0, 0, 0, .2); display: grid; place-items: center; font-size: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .3); transition: transform .08s; }
.slider .handle:hover { transform: scale(1.08); }
.slider.dragging .handle { transform: scale(.94); }
.slider .handle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.slider .label { position: absolute; top: 10px; padding: 2px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 600;
  background: rgba(0, 0, 0, .55); color: #FFFFFF; pointer-events: none; }
.slider .label.left { left: 10px; }
.slider .label.right { right: 10px; }
.toc { columns: 2 220px; font-size: 14.5px; }
.holder { width: 100%; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }

footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 22px 0 40px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }
@media (max-width: 520px) { h1 { font-size: 28px; } nav .links { gap: 12px; } nav .brand b { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
