:root {
  --text: #1c1f24;
  --muted: #5b6370;
  --background: #fdfdfb;
  --accent: #2f5d50;
  --border: #d9dcd6;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8e9e6;
    --muted: #a4aaa6;
    --background: #15181b;
    --accent: #8cc7b4;
    --border: #363b40;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 44rem;
  padding: 0 1rem;
  background: var(--background);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, sans-serif;
}

a { color: var(--accent); }
h1 { line-height: 1.2; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
.contact-link { font-weight: 600; }

main { padding: 1.5rem 0 3rem; }
.hero h1 { font-size: 2rem; }
.offers, .posts { list-style: none; padding: 0; }
.offers li { padding: 0.5rem 0; }
.offers h3 { margin: 0; }
.offers p { margin: 0.25rem 0 0; }
.posts li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; padding: 0.25rem 0; }
.meta, .note, .posts time { color: var(--muted); font-size: 0.9rem; }

.button {
  display: inline-block;
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 0.25rem;
  background: var(--accent);
  color: var(--background);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.contact-form { display: grid; gap: 0.35rem; }
.contact-form input, .contact-form textarea {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  background: transparent;
  color: inherit;
  font: inherit;
}
.contact-form .button { justify-self: start; margin-top: 0.75rem; }
.hidden-field { position: absolute; left: -10000px; }

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

table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.5rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
td.message { white-space: pre-wrap; overflow-wrap: anywhere; }
