/* impossiblecamera.tech: the one stylesheet. Mobile first from 320 px wide,
   system fonts only, nothing loaded from elsewhere, and no motion.
   Contrast on --ink (WCAG 2.2): --paper 18.09:1, --paper-dim 8.85:1,
   --amber 9.99:1 (links and the focus ring), --ink on --amber 9.99:1. */

:root {
  color-scheme: dark;
  --ink: #07090c;
  --line: #1a202a;
  --paper: #f2f4f7;
  --paper-dim: #a9adb4;
  --amber: #fea408;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.wrap {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Links: amber and underlined, so color is never the only cue. */
a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

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

/* Skip link: off screen until it has focus, then dark ink on amber. */
.skip-link {
  position: absolute;
  top: -100vh;
  left: 1rem;
  z-index: 1;
  padding: 0.5rem 0.875rem;
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* The skip link target takes focus but is not a control. */
main:focus {
  outline: none;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-name {
  display: inline-block;
  padding: 0.375rem 0;
  color: var(--paper);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-name:hover {
  text-decoration: underline;
}

.site-nav ul,
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.footer-nav a {
  display: inline-block;
  padding: 0.375rem 0;
}

.site-nav a[aria-current="page"],
.footer-nav a[aria-current="page"] {
  color: var(--paper);
}

/* Main content */
main {
  padding: 2.5rem 0 3rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  margin-bottom: 1rem;
  font-size: 2.25rem;
  letter-spacing: -0.01em;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.375rem;
}

h3 {
  margin: 1.75rem 0 0.375rem;
  font-size: 1.0625rem;
}

p,
ul,
ol,
address {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.5rem;
}

strong {
  font-weight: 600;
}

address {
  font-style: normal;
}

.lead {
  font-size: 1.1875rem;
  line-height: 1.5;
}

.meta {
  color: var(--paper-dim);
  font-size: 0.9375rem;
}

/* Status line: a thin amber rule as the only accent. */
.status {
  margin: 1.5rem 0 0;
  padding: 0.125rem 0 0.125rem 0.875rem;
  border-left: 3px solid var(--amber);
  font-weight: 600;
}

/* How it works: a numbered list with amber numbers. */
.steps {
  padding-left: 1.5rem;
}

.steps li {
  padding-left: 0.25rem;
}

.steps li + li {
  margin-top: 1.25rem;
}

.steps li::marker {
  color: var(--amber);
  font-weight: 600;
}

.steps h3 {
  margin-top: 0;
}

.steps p {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--paper-dim);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.site-footer p {
  margin-bottom: 0.5rem;
}

/* Wider screens */
@media (min-width: 40em) {
  body {
    font-size: 1.125rem;
  }

  h1 {
    font-size: 3rem;
  }

  main {
    padding: 4rem 0 4.5rem;
  }
}
