:root {
  color-scheme: light;
  --ink: #242d28;
  --forest: #31564a;
  --paper: #f8f5ee;
  --line: #c5ccc1;
  --slate: #263955;
  --green: #e1e9dd;
  --red: #883531;
  --red-bg: #fae6e4;
  --berry: #78384f;
  --rose: #f3dbe4;
  font:
    17px/1.5 system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main,
#status {
  max-width: 74rem;
  margin: auto;
  padding: 1.5rem clamp(1rem, 4vw, 4rem);
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 1.2rem;
}
.brand {
  font-size: 1.75rem;
  font-weight: 760;
  letter-spacing: -0.08em;
  text-decoration: none;
  color: var(--ink);
}
nav,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
nav a {
  color: var(--forest);
  padding: 0.35rem;
  text-decoration: none;
}
nav a[aria-current='page'] {
  box-shadow: inset 0 -2px var(--forest);
}
h1 {
  margin: 0.35em 0;
  font-size: clamp(2.3rem, 6vw, 4.3rem);
  letter-spacing: -0.065em;
  line-height: 1.05;
}
h2 {
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0.4rem 0 1rem;
}
p {
  max-width: 62ch;
}
main {
  min-height: 55vh;
}
section,
fieldset {
  border: 1px solid var(--line);
  border-radius: 1rem;
  margin: 1.25rem 0;
  padding: clamp(1rem, 3vw, 2rem);
  min-width: 0;
}
label {
  display: grid;
  gap: 0.35rem;
  margin-block: 0.7rem;
  max-width: 32rem;
}
input,
select,
textarea,
button {
  font: inherit;
}
input,
select,
textarea {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  width: 100%;
  background: white;
  color: var(--ink);
}
button,
.primary {
  display: inline-block;
  cursor: pointer;
  color: white;
  background: var(--forest);
  border: 0;
  border-radius: 2rem;
  padding: 0.6rem 1.15rem;
  text-decoration: none;
  font-weight: 600;
  margin: 0.25rem 0.3rem 0.25rem 0;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.secondary {
  color: var(--forest);
  background: var(--green);
}
a {
  color: var(--forest);
}
.row {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.row a {
  font-weight: 650;
}
.badge {
  font-size: 0.85rem;
  border-radius: 2rem;
  padding: 0.2rem 0.7rem;
  background: white;
  border: 1px solid var(--line);
}
.outside {
  background: var(--red-bg);
  color: var(--red);
}
.within {
  background: var(--green);
  color: var(--forest);
}
.error {
  color: var(--red);
}
:focus-visible {
  outline: 3px solid var(--slate);
  outline-offset: 3px;
}
.conversation {
  max-width: 46rem;
  margin-block: 1.5rem;
}
.chat-empty {
  background: var(--green);
  border: 0;
}
.chat-empty .secondary {
  border: 1px solid var(--forest);
}
.chat-thread {
  list-style: none;
  margin: 0;
  padding: 0;
}
.chat-thread li {
  padding: 1.15rem 0;
  overflow-wrap: anywhere;
}
.chat-thread .chat-member {
  background: var(--green);
  padding-inline: 1.1rem;
  border-radius: 0.8rem;
}
.chat-thread p {
  margin: 0.4rem 0;
  white-space: pre-wrap;
}
.speaker,
.chat-source {
  font-size: 0.88rem;
  color: var(--forest);
}
.chat-source {
  display: block;
  width: fit-content;
  padding-block: 0.35rem;
}
.chat-form {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 0.65rem;
}
.chat-form label {
  font-weight: 650;
}
.chat-form textarea {
  resize: vertical;
  min-height: 4rem;
}
.chat-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.chat-controls [role='status'] {
  font-size: 0.9rem;
}
.skip {
  position: absolute;
  inset-inline-start: -100vw;
}
.skip:focus {
  left: 1rem;
  background: white;
}
#status {
  padding-top: 0;
}
details summary {
  font-weight: 650;
  cursor: pointer;
}
button[aria-pressed='true'] {
  background: var(--slate);
  color: white;
}
.large {
  font-size: 125%;
}
@media (max-width: 640px) {
  header {
    align-items: start;
    flex-direction: column;
    gap: 0.3rem;
  }
  nav {
    gap: 0.2rem;
  }
  nav a {
    font-size: 0.9rem;
  }
  .row {
    align-items: start;
  }
}

.primary-offer {background:var(--green);border-color:var(--forest)}
.primary-offer a,.secondary-offer a {margin-right:1.25rem}
.secondary-offer .badge,.primary-offer .badge {margin-bottom:0.75rem}

.google-signin { background: transparent; border: 0; padding: 0; }
.google-signin img { display: block; width: auto; height: 40px; }
