/* outerlaced.com: the one stylesheet. System fonts only, no external resources (CLAUDE.md). */

:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --surface: #f2efe9;
  --text: #1d1b18;
  --muted: #57524b;
  --accent: #8a3f0e;
  --border: #d6d0c6;
  --focus: #1a5fb4;
  --note-bg: #fff4d6;
  --note-border: #8a6200;
  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17161a;
    --surface: #222026;
    --text: #ece8e1;
    --muted: #b7b0a6;
    --accent: #f2b27c;
    --border: #45414a;
    --focus: #8cb8ff;
    --note-bg: #33290f;
    --note-border: #e0b44c;
  }
}

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

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

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

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Skip link: off-screen until focused. */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--focus);
  border-radius: 0.25rem;
  z-index: 1;
}

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

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

a:hover {
  text-decoration-thickness: 0.16em;
}

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

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

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

.wordmark {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.wordmark:hover {
  text-decoration: underline;
}

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

.site-nav a {
  display: inline-block;
  padding: 0.25rem 0;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  text-decoration-thickness: 0.16em;
}

/* Main content (main.wrap so the .wrap side padding doesn't reset these) */
main.wrap {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
  margin: 0 0 1rem;
}

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

h3 {
  font-size: 1.125rem;
  margin: 1.5rem 0 0.5rem;
}

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

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

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

.site-nav li + li,
.site-footer li + li {
  margin-top: 0;
}

.lede {
  font-size: 1.1875rem;
}

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

/* App list on the home page */
.app-list {
  padding: 0;
  list-style: none;
}

.app-card {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.app-card h3 {
  margin-top: 0;
}

.app-card p:last-child {
  margin-bottom: 0;
}

/* Status notes such as "Draft" and "Coming soon". The label is always text, never colour alone. */
.note {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  border-left-width: 0.375rem;
  border-radius: 0.25rem;
}

.note p:last-child {
  margin-bottom: 0;
}

.tag {
  display: inline-block;
  padding: 0 0.5rem;
  border: 1px solid var(--muted);
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  vertical-align: 0.1em;
}

/* FAQ */
dt {
  font-weight: 600;
  margin-top: 1.25rem;
}

dd {
  margin: 0.25rem 0 0;
}

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

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

.site-footer ul {
  margin-bottom: 1rem;
}

.site-footer a {
  display: inline-block;
  padding: 0.25rem 0;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 48rem) {
  h1 {
    font-size: 2.375rem;
  }

  main.wrap {
    padding-top: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .skip-link,
  .site-nav {
    display: none;
  }

  a {
    color: inherit;
  }
}
