/* Druthers — getdruthers.com
   Type-only by choice. The palette is the app's, not a new one: the accent pair
   below is AccentColor.colorset, chosen in design/icon/Palettes.swift because it
   measures past 4.5:1 in both appearances. Don't substitute a nicer teal by eye —
   re-run that tool instead. */

:root {
  --bg: #fdfdfc;
  --text: #1a1c1c;
  --muted: #565d5b;
  --accent: #0b6e7a;
  --rule: #e3e6e4;
  --mark: #eef4f4;
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1211;
    --text: #e9edeb;
    --muted: #9aa29f;
    --accent: #4dd6cd;
    --rule: #242a28;
    --mark: #16201f;
  }
}

/* The viewer's theme toggle stamps data-theme on the root and must win over the
   media query in both directions. */
:root[data-theme="light"] {
  --bg: #fdfdfc;
  --text: #1a1c1c;
  --muted: #565d5b;
  --accent: #0b6e7a;
  --rule: #e3e6e4;
  --mark: #eef4f4;
}

:root[data-theme="dark"] {
  --bg: #0e1211;
  --text: #e9edeb;
  --muted: #9aa29f;
  --accent: #4dd6cd;
  --rule: #242a28;
  --mark: #16201f;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
  margin: 0;
  padding: 4.5rem 1.5rem 6rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main,
header,
footer {
  max-width: var(--measure);
  margin-inline: auto;
}

/* Masthead ---------------------------------------------------------------- */

header {
  margin-bottom: 3rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.wordmark img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: block;
}

.wordmark h1,
.wordmark span.name {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0;
}

.tagline {
  color: var(--muted);
  margin: 1rem 0 0;
}

/* Sections ---------------------------------------------------------------- */

h2 {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 3rem 0 0.9rem;
}

h2 + p {
  margin-top: 0;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 2rem 0 0.4rem;
}

h3 + p {
  margin-top: 0;
}

p {
  margin: 0 0 1.1rem;
}

ul {
  margin: 0 0 1.1rem;
  padding-left: 1.1rem;
}

li {
  margin-bottom: 0.5rem;
}

li::marker {
  color: var(--accent);
}

strong {
  font-weight: 600;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

/* The lede: the one idea, set slightly larger than body. */
.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

/* Beta call-to-action ------------------------------------------------------ */

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  margin-top: 0.4rem;
}

.cta:hover {
  opacity: 0.88;
}

.cta-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.85rem;
}

/* Arrow links, the plain-text navigation this design runs on. */
.links {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.links li {
  margin-bottom: 0.55rem;
}

.links a::before {
  content: "→";
  color: var(--muted);
  margin-right: 0.55rem;
}

/* Definition-style rows for the support Q&A. */
dl {
  margin: 0 0 1.1rem;
}

dt {
  font-weight: 600;
  margin-top: 1.5rem;
}

dd {
  margin: 0.3rem 0 0;
  color: var(--text);
}

/* Footer ------------------------------------------------------------------- */

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--muted);
}

footer nav {
  margin-bottom: 0.6rem;
}

footer nav a {
  margin-right: 1.1rem;
}

/* Long content (a stray URL in the privacy page) must scroll itself rather
   than making the page scroll sideways. */
.scroll {
  overflow-x: auto;
}

@media (max-width: 34rem) {
  body {
    padding-top: 3rem;
    font-size: 16px;
  }

  .lede {
    font-size: 1.1rem;
  }
}
