:root {
  color-scheme: dark;
  --ink: #111211;
  --ink-soft: #181a18;
  --line: #343834;
  --copy: #f4f0e9;
  --muted: #aaa9a3;
  --accent: #dc7052;
  --accent-light: #f59a7f;
  --focus: #ffd6a5;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ink);
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(220, 112, 82, 0.09), transparent 29rem),
    var(--ink);
  color: var(--copy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
textarea {
  font: inherit;
}

.page-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  padding: 30px clamp(22px, 5vw, 78px) 25px;
}

.brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: fit-content;
  padding: 0 0 0 13px;
  color: var(--muted);
}

.brand::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100%;
  border-top: 1px solid rgba(245, 154, 127, 0.68);
  border-left: 1px solid rgba(245, 154, 127, 0.68);
  content: "";
  pointer-events: none;
}

.brand-intro {
  padding-top: 8px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
}

.covered-meaning {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0 12px 10px 0;
}

.covered-meaning div {
  display: grid;
  grid-template-columns: 16px auto;
  align-items: baseline;
  column-gap: 7px;
}

.covered-meaning dt {
  color: var(--accent-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  line-height: 1.08;
}

.covered-meaning dd {
  margin: 0;
  color: #c9c6bf;
  font-size: 0.68rem;
  font-weight: 560;
  letter-spacing: 0.025em;
  line-height: 1.12;
}

.covered-meaning div:last-child dd {
  color: var(--copy);
}

.review-space {
  align-self: center;
  width: min(100%, 760px);
  margin: -4.5rem auto 0;
}

h1 {
  max-width: none;
  margin: 0 0 30px;
  color: var(--copy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
  white-space: nowrap;
}

.composer {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(24, 26, 24, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.composer:focus-within {
  border-color: #8f765f;
  box-shadow: 0 0 0 3px rgba(255, 214, 165, 0.12), 0 24px 70px rgba(0, 0, 0, 0.28);
}

textarea {
  display: block;
  width: 100%;
  min-height: 144px;
  padding: 24px 25px 16px;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--copy);
  font-size: 1.05rem;
  line-height: 1.55;
}

textarea::placeholder {
  color: #8e908a;
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px 13px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.composer-info {
  display: grid;
  gap: 3px;
}

.character-count {
  color: #d0b89d;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.privacy-note,
footer,
.status {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.review-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 118px;
  min-height: 43px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #24140f;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 760;
  transition: background 150ms ease, transform 150ms ease;
}

.review-button:disabled {
  cursor: wait;
  opacity: 0.75;
  transform: none;
}

.review-button:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.review-button:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.status {
  min-height: 1.5em;
  margin: 13px 2px 0;
}

.status.is-visible {
  color: #e6c6a5;
}

.review-result {
  margin-top: 36px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(24, 26, 24, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

.result-kicker,
.result-section h3 {
  margin: 0;
  color: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: lowercase;
}

.review-result h2 {
  margin: 8px 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.result-section {
  margin-top: 24px;
}

.result-section p {
  margin: 9px 0 0;
  color: #dfddd7;
  font-size: 0.97rem;
  line-height: 1.6;
}

.review-scope,
.result-meta,
.claim-meta {
  color: var(--muted) !important;
  font-size: 0.8rem !important;
}

.result-list,
.claim-list {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
  padding-left: 22px;
}

.result-list li,
.claim-list li {
  color: #dfddd7;
  font-size: 0.94rem;
  line-height: 1.55;
}

.claim-list li::marker {
  color: var(--accent-light);
}

.claim-text {
  color: var(--copy) !important;
  font-weight: 690;
}

.bottom-line {
  padding: 18px;
  border-left: 2px solid var(--accent);
  background: rgba(220, 112, 82, 0.06);
}

.bottom-line p {
  color: var(--copy);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 560px) {
  .page-shell {
    padding: 24px 17px 18px;
  }

  .review-space {
    margin: -1.2rem auto 0;
  }

  h1 {
    margin-bottom: 24px;
    font-size: clamp(2.4rem, 11vw, 3.65rem);
    white-space: normal;
  }

  .composer-footer {
    align-items: flex-end;
    padding-left: 18px;
  }

  .review-result {
    padding: 22px 18px;
  }

  .privacy-note {
    max-width: 160px;
  }

  footer {
    font-size: 0.7rem;
  }
}
