:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202629;
  background: #f7f8f8;
  line-height: 1.5;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #076880; text-underline-offset: 3px; }
a:hover { color: #003d4d; }
:focus-visible { outline: 3px solid #1687a7; outline-offset: 4px; }

.page-header {
  padding: 32px 20px 24px;
  border-top: 4px solid #1687a7;
  border-bottom: 1px solid #dce1e2;
  background: #fff;
  text-align: center;
}
h1 { margin: 0; font-size: 32px; line-height: 1.25; font-weight: 750; }
h1 span { color: #076880; white-space: nowrap; }
.dates { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 0; font-size: 14px; }
.dates a { color: #535c60; }

main { width: 100%; max-width: 600px; margin: 0 auto; padding: 28px 20px 0; }
form { margin-bottom: 32px; }
label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 650; }
textarea {
  display: block;
  width: 100%;
  min-height: 150px;
  padding: 16px;
  border: 1px solid #8d9b9f;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 17px;
  resize: vertical;
}
textarea::placeholder { color: #677277; opacity: 1; }
textarea[aria-invalid="true"] { border-color: #b02b36; }
.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.count { color: #596267; font-size: 14px; }
output { color: #202629; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
form:has([aria-invalid="true"]) output { color: #b02b36; }
button {
  min-height: 44px;
  min-width: 116px;
  padding: 9px 18px;
  border: 1px solid #202629;
  border-radius: 6px;
  background: #202629;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
button:hover:not(:disabled) { background: #076880; border-color: #076880; }
button:disabled { background: #e3e7e8; border-color: #e3e7e8; color: #606b70; cursor: default; }
#status-error { margin: 10px 0 0; color: #a1202b; font-size: 14px; }

.history { padding-top: 24px; border-top: 1px solid #dce1e2; }
h2 { margin: 0 0 18px; font-size: 18px; font-weight: 650; }
blockquote {
  width: 100%;
  max-width: 550px;
  margin: 0 0 18px;
  padding: 20px;
  border: 1px solid #dce1e2;
  border-radius: 8px;
  background: #fff;
}
blockquote p { margin: 0 0 14px; font-size: 18px; }
blockquote footer { color: #596267; font-size: 13px; }
.twitter-tweet-rendered { margin: 0 0 18px !important; }
.historical-note { margin: 18px 0 0; color: #596267; font-size: 13px; }
.share-links { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 24px 0; padding: 16px 0; border-top: 1px solid #dce1e2; border-bottom: 1px solid #dce1e2; font-size: 14px; }
.share-links a { display: inline-flex; align-items: center; min-height: 44px; }
.advertisement { width: 100%; max-width: 320px; min-height: 100px; margin: 0 auto; text-align: center; }
.page-footer { padding: 24px 20px 28px; text-align: center; font-size: 13px; color: #596267; }

@media (max-width: 420px) {
  .page-header { padding-top: 24px; }
  h1 { font-size: 28px; }
  .dates { gap: 4px; font-size: 12px; }
  main { padding: 24px 16px 0; }
  textarea { min-height: 160px; }
}
