/* Colours and type follow the app (lib/ui/theme.dart). The fonts are the
   app's own files, served from this site, so no page loads anything from
   a third party. */

@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #faf7f4;
  --surface: #ffffff;
  --surface-muted: #f3eee9;
  --ink: #221b26;
  --ink-muted: #6f6674;
  --line: #eae3dd;
  --brand: #5a2a52;
  --brand-soft: #f2e6ef;
  --on-brand: #ffffff;
  --dot: #e0566b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131116;
    --surface: #1d1a21;
    --surface-muted: #27232c;
    --ink: #f4eff3;
    --ink-muted: #a9a1ad;
    --line: #332e38;
    --brand: #ddaad2;
    --brand-soft: #3a2537;
    --on-brand: #2a1027;
    --dot: #f2788a;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

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

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

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
}

.brand svg {
  width: 1.9rem;
  height: 1.9rem;
}

.mark-ring {
  fill: none;
  stroke: var(--brand);
  stroke-width: 8.3;
  stroke-linecap: round;
}

.mark-dot {
  fill: var(--dot);
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
}

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

/* Text */

h1,
h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 7vw, 2.9rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.45rem;
  margin: 2.75rem 0 0.75rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 1.75rem 0 0.35rem;
}

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

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

li {
  margin-bottom: 0.4rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--ink-muted);
  max-width: 34rem;
}

.meta {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Home */

.hero {
  margin-bottom: 2.5rem;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: grid;
  gap: 0.75rem;
}

.facts li {
  margin: 0;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}

.facts strong {
  display: block;
  font-weight: 700;
}

.facts span {
  color: var(--ink-muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  background: var(--brand);
  color: var(--on-brand);
}

.button.quiet {
  background: var(--brand-soft);
  color: var(--brand);
}

/* Notes */

.note {
  padding: 1.1rem 1.25rem;
  background: var(--surface-muted);
  border-radius: 1.25rem;
  margin: 1.5rem 0;
}

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

.contact {
  padding: 1.25rem;
  background: var(--brand-soft);
  border-radius: 1.25rem;
  margin: 1.5rem 0 0.5rem;
}

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

.contact .address {
  font-weight: 700;
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

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