/* Dawnward website. One stylesheet, no frameworks, no web fonts.
   Colours follow docs/art-style.md: warm dawn light against a cold night. */

:root {
  --night: #15131f;
  --night-raised: #201d2e;
  --line: #3a3550;
  --text: #ece6da;
  --muted: #b9b1c4;
  --gold: #f2b84b;
  --rose: #e9806e;
  --measure: 42rem;
}

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 1.125rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 0.75rem;
  color: var(--gold);
}

a {
  color: var(--gold);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--rose);
}

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

.skip-link {
  position: absolute;
  left: -100vw;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--night-raised);
  z-index: 1;
}

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

/* Header and navigation. Links are at least 48px tall for touch. */
.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 1rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.375rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  min-width: 48px;
  padding: 0 0.75rem;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

main {
  flex: 1;
  padding-bottom: 3rem;
}

/* Home page banner: a sunrise over the dark. */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(242, 184, 75, 0.35), transparent 70%),
    linear-gradient(to bottom, var(--night), #2a2040);
  border-bottom: 1px solid var(--line);
  padding: 4rem 0 3rem;
  text-align: center;
}

.tagline {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.25rem;
}

.status {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.9375rem;
}

.page-title {
  padding-top: 2.5rem;
}

.features {
  padding-left: 1.25rem;
}

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

blockquote {
  overflow-wrap: anywhere;
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--gold);
  background: var(--night-raised);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
  padding: 1rem 0;
}

.site-footer p {
  margin: 0.25rem 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}
