/* Neutral base styles. Dee replaces these with her own design. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  max-width: 42rem;
  padding: 1rem;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
}

a {
  color: #1a4fa0;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header,
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  padding: 0.75rem 0;
}

.site-header {
  border-bottom: 1px solid #dddddd;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.site-name {
  font-weight: 700;
  margin-right: auto;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid #dddddd;
  font-size: 0.9375rem;
}

.entry-list {
  list-style: none;
  padding: 0;
}

.entry-list li {
  margin-bottom: 1.25rem;
}

.signup-form {
  display: grid;
  gap: 0.5rem;
  max-width: 28rem;
}

.signup-form input[type='email'] {
  font: inherit;
  padding: 0.5rem;
  border: 1px solid #888888;
  border-radius: 4px;
}

.signup-form button {
  font: inherit;
  padding: 0.5rem 1rem;
  justify-self: start;
  cursor: pointer;
}

.consent {
  font-size: 0.875rem;
  color: #444444;
}

.consent p {
  margin: 0;
}

/* Honeypot: hidden from people and screen readers, still in the form for bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Signup: text only screen readers get (the countdown is announced once, the visible line ticks). */
.signup-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

figcaption {
  font-size: 0.875rem;
  color: #444444;
}

@media (prefers-color-scheme: dark) {
  body {
    color: #eeeeee;
    background: #141414;
  }

  a {
    color: #8db4f0;
  }

  .consent,
  figcaption {
    color: #bbbbbb;
  }

  .site-header,
  .site-footer {
    border-color: #333333;
  }
}

/* The hidden attribute always wins, also over display rules like .signup-form { display: grid }. */
[hidden] {
  display: none !important;
}
