/*
  Word Search site: one small stylesheet, system fonts, nothing loaded from elsewhere.
  Colours and their contrast (WCAG AA needs 4.5 for text):
    ink       #03284E on white 14.8, on cloud 10.7
    ink-soft  #0B4F92 on white 8.2,  on cloud 6.0 (links and small headings)
    sky       #2076C5: white text on it 4.7 (the button); also the rule under the header
    sky-deep  #0B4F92: white text on it 8.2 (the button on hover)
    cloud     #BFDFFD: boxes and lines
*/

:root {
  --ink: #03284e;
  --ink-soft: #0b4f92;
  --sky: #2076c5;
  --sky-deep: #0b4f92;
  --cloud: #bfdffd;
  --line: #bfdffd;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header {
  padding-top: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--sky);
}

.site-header .brand {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

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

h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.375rem;
  line-height: 1.3;
}

h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

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

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

li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  overflow-wrap: anywhere;
}

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

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

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

.meta {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.button {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.65rem 1.4rem;
  border-radius: 0.5rem;
  background: var(--sky);
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: var(--sky-deep);
  color: #ffffff;
}

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

.price {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--sky);
  background: var(--cloud);
  font-weight: 600;
}

.note {
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--sky);
  background: var(--cloud);
}

.site-footer {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

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

.site-footer li {
  margin: 0;
}

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

@media (min-width: 40rem) {
  body {
    font-size: 1.125rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  main {
    padding-top: 3rem;
  }
}
