@font-face {
  font-family: Atkinson;
  src: url("/static/AtkinsonHyperlegible-Regular.ttf");
}
* {
  box-sizing: border-box;
}
html {
  font-size: 18px;
}
body {
  margin: 0;
  background: #f6f5f0;
  color: #243b39;
  font-family: Atkinson, system-ui, sans-serif;
  line-height: 1.7;
}
header {
  max-width: 1160px;
  margin: auto;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #dce3dc;
}
.brand {
  font-size: 32px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -1px;
}
.brand span {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 400;
}
.tools,
.row,
.heading,
.activity {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tools {
  font-size: 14px;
}
.tools form {
  margin: 0;
}
.heading {
  justify-content: space-between;
}
main {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 24px;
}
a {
  color: #25665d;
}
h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.7px;
  margin: 10px 0 28px;
}
h2 {
  font-size: 1.35rem;
  line-height: 1.35;
  margin: 0 0 12px;
}
h3 {
  font-size: 1.1rem;
  line-height: 1.4;
}
p {
  margin: 10px 0 20px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.72rem;
  color: #55756d;
}
.card {
  background: #fff;
  border: 1px solid #dce3dc;
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 22px;
}
.auth {
  max-width: 520px;
  margin: 65px auto;
}
.grid,
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.stats .card {
  background: #e7efe8;
  padding: 20px;
}
.stats h2 {
  font-size: 1rem;
}
.stats p {
  margin: 4px 0;
}
.stats strong {
  font-size: 1.3rem;
}
.pair {
  display: block;
  text-decoration: none;
}
.pair:hover {
  border-color: #2d6b5f;
}
label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
input,
select,
textarea {
  font: inherit;
  width: 100%;
  padding: 11px 12px;
  margin-top: 5px;
  border: 1px solid #a9bdb2;
  border-radius: 8px;
  color: #243b39;
  background: #fff;
}
textarea {
  resize: vertical;
}
.row > * {
  flex: 1;
  min-width: 0;
}
.row label {
  margin-bottom: 0;
}
.row {
  margin-bottom: 16px;
}
button,
.button {
  font: inherit;
  font-size: 0.9rem;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 11px 19px;
  background: #276759;
  color: white;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover,
.button:hover {
  background: #174d42;
}
.secondary {
  background: #eaf1ea;
  color: #245a4e;
  border-color: #cadace;
}
.quiet {
  background: transparent;
  color: #355f52;
  border-color: #bacdc0;
  padding: 5px 10px;
}
.muted {
  color: #63766c;
  font-size: 0.85rem;
  margin-top: 20px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check input {
  width: auto;
}
nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #cfdcd2;
  margin: 6px 0 28px;
}
nav a {
  text-decoration: none;
  padding: 12px 24px;
}
nav a[aria-current] {
  border-bottom: 3px solid #276759;
  font-weight: 700;
}
.notice {
  background: #dfeee4;
  padding: 16px;
  border-radius: 8px;
}
summary {
  cursor: pointer;
  font-weight: 700;
}
details[open] summary {
  margin-bottom: 20px;
}
audio {
  width: 100%;
  margin: 10px 0;
}
.activity {
  justify-content: space-between;
  border-top: 1px solid #e2e8e2;
  padding: 12px 0;
  font-size: 0.85rem;
}
.activity form {
  flex-shrink: 0;
}
footer {
  text-align: center;
  color: #75867c;
  font-size: 0.75rem;
  padding: 32px;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #d39e3b;
  outline-offset: 3px;
}
@media (max-width: 640px) {
  header {
    padding: 18px;
  }
  .tools {
    gap: 8px;
  }
  .brand {
    font-size: 26px;
  }
  .brand span {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .stats {
    gap: 12px;
  }
  .stats .card {
    padding: 14px;
  }
  main {
    margin: 28px auto;
    padding: 0 16px;
  }
  .card {
    padding: 22px;
  }
  .heading {
    display: block;
  }
  .heading .button {
    margin-bottom: 22px;
  }
  nav a {
    padding: 12px 16px;
  }
  .auth {
    margin: 30px auto;
  }
  .row {
    flex-wrap: wrap;
  }
}

/* Password-page trial: page geometry, prose and controls have separate widths.
   Relative units let fields grow with the user's text-size preference. */
.password-page {
  --page-gutter: clamp(0.75rem, 4vw, 4rem);
}
.password-page > header {
  max-width: none;
  margin-inline: var(--page-gutter);
  padding: 1rem 0;
  flex-wrap: wrap;
}
.password-page .tools {
  flex-wrap: wrap;
}
.password-page > main {
  max-width: none;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 3rem) var(--page-gutter);
}
.password-settings {
  min-width: 0;
  overflow-wrap: anywhere;
}
.password-heading {
  margin-bottom: 2rem;
}
.password-heading h1 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
  letter-spacing: normal;
}
.password-heading p {
  max-width: 70ch;
  margin: 0;
}
.password-form {
  width: 100%;
  max-width: 36rem;
}
.password-field {
  margin-bottom: 1.5rem;
}
.password-field label {
  font-size: 1rem;
  margin: 0;
}
.password-field input {
  min-width: 0;
  margin-top: 0.35rem;
}
.password-hint {
  font-size: 0.9rem;
  color: #52675d;
  margin: 0.15rem 0 0;
}
.password-form button {
  min-height: 44px;
  max-width: 100%;
}

@media (max-width: 40rem) {
  .password-heading h1 {
    font-size: 1.5rem;
  }
}

.avatar {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: #e7efe8;
  border: 1px solid #a9bdb2;
  color: #243b39;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
}
.avatar:hover { background: #d5e4d8; }
.profile-section { margin-bottom: 2.5rem; }
.profile-section + .profile-section { border-top: 1px solid #cfdcd2; padding-top: 2rem; }
