/* Shared by every page of the site: Seraphee's colours (the icon's teal feather on black, the settings' pane tints),
   the title font, header, footer and text pages. Dark only, like the icon. */
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
:root {
  color-scheme: dark;
  --night: #020a0b;      /* the icon's black */
  --deep: #032121;       /* the icon's background, its lit corner */
  --card: #08191a;
  --line: #22393a;
  --fg: #eef7f5;
  --muted: #a8bcb9;
  --faint: #8ea4a1;
  --plume: #5fe3cf;      /* the feather (Settings' teal) */
  --plume-pale: #a6f4e8;
  /* the settings' panes (SettingsPane.tint) */
  --lavande: #9b8fd6;
  --abricot: #e5a173;
  --ardoise: #7f8cc4;
  --title: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--night); color: var(--fg); font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--plume); outline-offset: 4px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--plume) 35%, transparent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* small caps label used above titles */
.eyebrow { margin: 0 0 1rem; font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .22em; color: var(--plume); }

/* header: the icon and the name, then a few links */
.top { position: fixed; z-index: 10; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: clamp(.8rem, 2.2vh, 1.3rem) clamp(1rem, 4vw, 3rem); transition: background .5s, backdrop-filter .5s; }
.top.scrolled { background: color-mix(in srgb, var(--night) 72%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.top .mark { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
/* the feather alone, tipped up like the icon's, without its square */
.top .mark img { width: 2.3rem; height: auto; rotate: -38deg; margin-right: -.2rem;
  filter: drop-shadow(0 0 .3rem color-mix(in srgb, var(--plume) 60%, transparent)); }
.top .mark span { font: 400 1.6rem/1 var(--title); }
.top nav { display: flex; align-items: center; gap: clamp(.9rem, 2.5vw, 2rem); font-size: .6875rem; text-transform: uppercase; letter-spacing: .2em; }
.top nav a { color: var(--muted); text-decoration: none; transition: color .3s; }
.top nav a:hover { color: var(--fg); }
@media (max-width: 40rem) { .top nav .opt { display: none; } }

/* the language menu: the current language's code, the same page in every language below it */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; color: var(--muted); transition: color .3s; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; display: inline-block; width: .35em; height: .35em; margin: 0 0 .3em .55em;
  border: solid currentColor; border-width: 0 1px 1px 0; rotate: 45deg; }
.lang summary:hover, .lang[open] summary { color: var(--fg); }
.lang div { position: absolute; right: -.5rem; top: calc(100% + .9rem); display: grid; min-width: 9.5rem; padding: .5rem 0;
  border: 1px solid var(--line); border-radius: .8rem; background: color-mix(in srgb, var(--night) 90%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: .875rem; text-transform: none; letter-spacing: .02em; }
.lang div a { padding: .45rem 1.1rem; }
.top nav .lang a[aria-current] { color: var(--plume); }

/* the Mac App Store pill: a thin border from the feather's teal to the evening's apricot */
.pill { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1.15rem; border: 1px solid transparent; border-radius: 999px;
  font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--fg); text-decoration: none; white-space: nowrap;
  background: linear-gradient(var(--night), var(--night)) padding-box, linear-gradient(90deg, var(--plume), var(--lavande) 55%, var(--abricot)) border-box; }
.pill .dot { width: .4rem; height: .4rem; border-radius: 50%; background: var(--plume); box-shadow: 0 0 .6rem var(--plume); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .pill .dot { animation: none; } }

/* footer */
.foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem;
  padding: 2rem clamp(1rem, 4vw, 3rem) 2.5rem; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  font-size: .8125rem; color: var(--faint); }
.foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.foot a { color: var(--faint); text-decoration: none; transition: color .3s; }
.foot a:hover { color: var(--fg); }

/* text pages: support, privacy policy, legal notice */
.doc { position: relative; z-index: 1; width: min(42rem, 100% - 2.5rem); margin: 0 auto; padding: clamp(7rem, 18vh, 10rem) 0 5rem; }
.doc h1 { margin: 0 0 .75rem; font: 400 clamp(2.6rem, 7vw, 4rem)/1 var(--title); }
.doc .lede { margin: 0 0 3rem; color: var(--muted); font-size: 1.125rem; }
.doc h2 { margin: 3rem 0 .75rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--plume); }
.doc h3 { margin: 1.75rem 0 .4rem; font-size: 1.0625rem; font-weight: 600; }
.doc p, .doc li { color: var(--muted); }
.doc p { margin: 0 0 1rem; }
.doc ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.doc li { margin: .35rem 0; }
.doc li::marker { color: var(--plume); }
.doc strong { color: var(--fg); font-weight: 600; }
.doc a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .3s; }
.doc a:hover { border-color: var(--plume); }
.doc .date { margin-top: 3rem; font-size: .8125rem; color: var(--faint); }
.doc button { font: inherit; color: var(--fg); background: none; border: 0; padding: 0; border-bottom: 1px dashed var(--faint); cursor: pointer; }
/* a faint glow at the top of text pages, the feather's light */
.glow { position: fixed; z-index: 0; inset: 0 0 auto; height: 60vh; pointer-events: none;
  background: radial-gradient(60% 80% at 50% -20%, color-mix(in srgb, var(--plume) 13%, transparent), transparent 70%),
    radial-gradient(40% 50% at 70% -10%, color-mix(in srgb, var(--lavande) 12%, transparent), transparent 70%); }

/* support page: questions that open in place */
.faq { border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.faq:last-of-type { border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; cursor: pointer;
  list-style: none; font-weight: 600; color: var(--fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: .55rem; height: .55rem; margin-right: .2rem; border: solid var(--plume);
  border-width: 0 1.5px 1.5px 0; transform: translateY(-25%) rotate(45deg); transition: transform .4s var(--ease); }
.faq[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.faq > div { padding: 0 0 1rem; animation: open .5s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-.4rem); } }
@media (prefers-reduced-motion: reduce) { .faq > div { animation: none; } .faq summary::after { transition: none; } }
