/* andmark.net — static site styles.
   System fonts only: the site makes no third-party requests and sets no cookies. */

:root {
  --paper: #f4f7f5;
  --ink: #18211e;
  --muted: #56635e;
  --rule: #d2dbd6;
  --accent: #1d5e4c;
  --accent-ink: #ffffff;
  --panel: #e6eeea;

  --serif: ui-serif, "Iowan Old Style", Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 66ch;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141b19;
    --ink: #e3e9e6;
    --muted: #9eaca6;
    --rule: #2c3733;
    --accent: #8acbb6;
    --accent-ink: #10201b;
    --panel: #1b2622;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  z-index: 10;
}
.skip:focus { left: 0.5rem; }

/* Header */

.site-header {
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Layout */

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}

main { display: block; }

/* Home */

.home-intro {
  padding-top: clamp(3rem, 9vw, 7rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.home-intro h1 {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(2.3rem, 6.2vw, 4.4rem);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.022em;
}
.home-intro .lead {
  max-width: var(--measure);
  margin: 1.75rem 0 0;
  font-size: 1.2rem;
  color: var(--ink);
}

/* The register: who/what/where, set like an entry in a public register. */
.register {
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
  padding: 0;
  max-width: 52rem;
  border-top: 2px solid var(--ink);
}
.register div {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 0.25rem 2rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}
.register dt {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  padding-top: 0.15rem;
}
.register dd { margin: 0; }

@media (max-width: 34rem) {
  .register div { grid-template-columns: 1fr; }
}

.signin {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.7rem 1.15rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}
.signin:hover { text-decoration: underline; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin: 2rem 0 0;
}
.actions .signin { margin-top: 0; }
.secondary {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
}

/* What the service does / How it works */
.features,
.steps {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.features h2,
.steps h2 {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.5rem 3rem;
  max-width: 52rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}
.feature-grid h3 {
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
}
.feature-grid p { margin: 0; max-width: var(--measure); }
.steps ol {
  max-width: 52rem;
  margin: 0;
  padding-left: 1.4rem;
}
.steps li { margin: 0 0 0.8rem; padding-left: 0.3rem; }

.documents {
  padding-bottom: clamp(3rem, 8vw, 5rem);
}
.documents > * { max-width: 52rem; }
.documents h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.documents ul { margin: 0; padding: 0; list-style: none; }
.documents li { padding: 0.6rem 0; }
.documents li a { font-weight: 600; }
.documents li p { margin: 0.15rem 0 0; color: var(--muted); max-width: var(--measure); }

/* Legal documents */

.doc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: clamp(2.5rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
@media (min-width: 62rem) {
  .doc { grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; }
  .toc { position: sticky; top: 1.5rem; align-self: start; }
}

.doc-head { grid-column: 1 / -1; }
.doc-head h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.doc-meta {
  margin: 0.9rem 0 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
}

.toc {
  font-family: var(--sans);
  font-size: 0.95rem;
}
.toc h2 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}
.toc ol { margin: 0; padding-left: 1.9rem; }
.toc li { padding: 0.2rem 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  margin: 2.6rem 0 0.6rem;
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  scroll-margin-top: 1.5rem;
}
.prose h3 {
  margin: 1.8rem 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 600;
}
.prose p,
.prose ul,
.prose ol { margin: 0.7rem 0; }
.prose ul,
.prose ol { padding-left: 1.4rem; }
.prose li { margin: 0.3rem 0; }
.prose code {
  font-size: 0.85em;
  overflow-wrap: anywhere;
}

.note {
  margin: 1.25rem 0;
  padding: 1rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.note p { margin: 0.4rem 0; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}
.site-footer p { margin: 0; }
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

@media print {
  .site-header, .site-footer, .toc, .skip { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .doc { display: block; padding: 0; }
}

/* YouTube attribution block. To show the official logo instead of the text heading,
   save it as /assets/youtube-logo.png and see README.md for the markup. */
.youtube {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}
.youtube-title { margin: 0 0 0.6rem; line-height: 1; }
.youtube-logo { display: block; height: 24px; width: auto; }
.youtube p { margin: 0; max-width: var(--measure); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
