/* Snake Shift privacy policy: light, friendly, readable on small phones. System fonts only, no scripts. */
:root {
  --ink: #1f2a44;          /* body text on white: contrast about 14:1 */
  --muted: #44536f;        /* secondary text: about 7.6:1 */
  --link: #0b57b0;         /* links on white: about 6.9:1 */
  --orange: #a33f00;       /* "Snake" in the title: 5.5:1 on the sky colour */
  --pink: #a8185a;         /* "Shift" in the title: 6.6:1 on the sky colour */
  --sky-top: #cfeefd;
  --sky-bottom: #eaf7ff;
  --page: #f4fafe;
  --card: #ffffff;
  --line: #cfe0ee;
  --soft: #e9f6ee;         /* "in short" box */
  --soft-line: #b6dfc3;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;    /* 17px */
  line-height: 1.65;
  overflow-wrap: anywhere; /* long emails and links never push the page wider than the screen */
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }

/* skip link: visible only when focused with the keyboard */
.skip {
  position: absolute; left: .5rem; top: -4rem; z-index: 10;
  background: #fff; color: var(--link); padding: .6rem .9rem; border-radius: .5rem; border: 2px solid var(--link);
}
.skip:focus { top: .5rem; }

.top {
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0 1.4rem;
  text-align: center;
}
.brand { margin: 0; font-size: 2.2rem; font-weight: 800; line-height: 1.1; letter-spacing: .01em; }
.brand .b1 { color: var(--orange); }
.brand .b2 { color: var(--pink); }
h1 { margin: .35rem 0 .3rem; font-size: 1.7rem; line-height: 1.25; }
.meta { margin: 0; color: var(--muted); font-size: .95rem; }

main { padding-top: 1.25rem; padding-bottom: 1rem; }

section, .toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: .9rem;
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
}
.glance { background: var(--soft); border-color: var(--soft-line); }

h2 { margin: 0 0 .5rem; font-size: 1.3rem; line-height: 1.3; }
h3 { margin: 1.1rem 0 .25rem; font-size: 1.05rem; line-height: 1.4; }
p { margin: 0 0 .85rem; }
section > :last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 .85rem; padding-left: 1.3rem; }
li { margin: 0 0 .45rem; }
li:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration: underline; text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid #ffb000; outline-offset: 2px; border-radius: .25rem; }

.toc summary { cursor: pointer; font-weight: 700; padding: .25rem 0; }
.toc ol { margin: .6rem 0 0; }
.links li { margin-bottom: .6rem; }
.contact { font-size: 1.1rem; }

.foot { color: var(--muted); font-size: .9rem; text-align: center; padding: 1rem 0 2rem; }
.foot p { margin: 0; }

@media (min-width: 40rem) {
  body { font-size: 1.125rem; }
  .brand { font-size: 2.8rem; }
  h1 { font-size: 2rem; }
  section, .toc { padding: 1.25rem 1.5rem; }
}

@media print {
  .skip, .toc { display: none; }
  body, .top, section { background: #fff; }
  section { border: 0; padding: 0; }
}
