/* One style sheet for both pages. No fonts, images or scripts are loaded from anywhere.
   Made to be easy on a dyslexic reader: large text, wide line spacing, short lines,
   left-aligned, no italics, calm colours with strong contrast, big buttons. */

:root {
  color-scheme: light dark;
  --bg: #f6f4ee;
  --text: #1c1c1c;
  --muted: #444444;
  --card: #ffffff;
  --line: #1d4f7c;
  --name: #123d63;
  --hover: #e6f0fa;
  --focus: #b34700;
  --off-bg: #fff1cc;
  --off-text: #5c3200;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181d;
    --text: #eceae4;
    --muted: #c4c1b8;
    --card: #1f242b;
    --line: #8dbbe8;
    --name: #c2ddf7;
    --hover: #2a3340;
    --focus: #ffb366;
    --off-bg: #3a2a10;
    --off-text: #ffd9a0;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Verdana, Tahoma, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.15rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  word-spacing: 0.1em;
  text-align: left;
}

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 1.5rem 0 0.5rem;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.25rem;
}

p {
  margin: 0.5rem 0;
  max-width: 40rem;
}

.lead {
  font-size: 1.3rem;
}

.about,
.note {
  color: var(--muted);
}

.greeting {
  max-width: 34rem;
  padding-top: 18vh;
  text-align: center;
}

.greeting p {
  margin-left: auto;
  margin-right: auto;
}

.buttons {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.button {
  display: block;
  min-height: 4.5rem;
  height: 100%;
  padding: 0.85rem 1rem;
  background: var(--card);
  color: var(--text);
  border: 3px solid var(--line);
  border-radius: 0.75rem;
  text-decoration: none;
}

.button:hover {
  background: var(--hover);
}

.button:focus,
.button:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
}

.button:active {
  border-style: dashed;
}

.name {
  display: block;
  color: var(--name);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}

.what {
  display: block;
}

.addr {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.off {
  display: inline-block;
  margin: 0.25rem 0;
  padding: 0 0.6rem;
  background: var(--off-bg);
  color: var(--off-text);
  border: 2px dashed var(--off-text);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
}

@media (min-width: 40rem) {
  .buttons {
    grid-template-columns: 1fr 1fr;
  }
}
