:root {
  color-scheme: light;
  --paper: #f8f5ee;
  --ink: #2e2327;
  --wine: #651d32;
  --line: #ddd5ce;
  --muted: #74696c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.6 system-ui,
    -apple-system,
    sans-serif;
}
header,
footer {
  max-width: 1280px;
  margin: auto;
  padding: 28px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
header {
  border-bottom: 1px solid var(--line);
}
a {
  color: var(--wine);
  text-underline-offset: 4px;
}
nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
nav a {
  text-decoration: none;
  font-size: 14px;
}
.brand {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
  line-height: 1.15;
}
.brand span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  margin-top: 7px;
}
main {
  max-width: 900px;
  min-height: 65vh;
  margin: 60px auto;
  padding: 0 28px;
}
h1 {
  font-family: Georgia, serif;
  font-weight: normal;
  line-height: 1.05;
  font-size: clamp(42px, 6vw, 78px);
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}
h2 {
  font-size: 24px;
  line-height: 1.3;
}
h3 {
  font-size: 18px;
}
p {
  overflow-wrap: anywhere;
}
.hero {
  padding: 65px 0 90px;
  max-width: 760px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--wine);
  font-size: 11px;
  font-weight: 700;
}
.subtitle {
  font-size: 25px;
  color: var(--muted);
  margin: 0 0 40px;
}
.muted,
.hint {
  color: var(--muted);
}
.hint {
  font-size: 14px;
}
.search {
  display: flex;
  gap: 10px;
}
.search input {
  min-width: 0;
  flex: 1;
}
input,
textarea,
select {
  background: #fffdf9;
  border: 1px solid #b9aaa8;
  border-radius: 9px;
  padding: 14px;
  font: inherit;
  color: var(--ink);
  max-width: 100%;
}
input,
textarea {
  width: 100%;
}
textarea {
  resize: vertical;
  min-height: 150px;
}
button,
.button {
  display: inline-block;
  background: var(--wine);
  color: white;
  border: 1px solid var(--wine);
  padding: 13px 21px;
  border-radius: 9px;
  font: 600 15px/1.4 system-ui;
  cursor: pointer;
  text-decoration: none;
  white-space: normal;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.secondary {
  background: transparent;
  color: var(--wine);
}
.danger {
  color: #8b223c;
}
.card {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  margin: 20px 0;
}
.row {
  display: flex;
  gap: 18px;
  align-items: center;
  min-width: 0;
}
.row > div {
  min-width: 0;
  flex: 1;
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #eadfe0;
  display: grid;
  place-items: center;
  font: 24px Georgia;
  color: var(--wine);
}
.profile .avatar {
  height: 88px;
  width: 88px;
  font-size: 38px;
}
.profile h1 {
  font-size: 48px;
  margin: 14px 0 8px;
}
.profile {
  max-width: 620px;
  margin: auto;
}
.handle {
  margin: 0;
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 15px;
  border-bottom: 1px solid var(--line);
}
.tabs a {
  padding: 8px 13px;
  border-radius: 25px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
}
.tabs a[aria-current="page"] {
  background: var(--wine);
  color: #fff;
}
.thread-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.thread-row .identity {
  flex: 1;
  min-width: 0;
}
.thread-row small {
  display: block;
  color: var(--muted);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wine);
}
time {
  font-size: 12px;
  color: var(--muted);
}
.messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 35px 0;
}
.bubble {
  background: white;
  border: 1px solid var(--line);
  padding: 16px 20px;
  border-radius: 18px;
  max-width: 85%;
  align-self: flex-start;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.bubble.mine {
  background: #ede4e5;
  align-self: flex-end;
}
.bubble p {
  margin: 0 0 8px;
}
.bubble button {
  font-size: 11px;
  padding: 4px 8px;
  margin-left: 10px;
}
.compose {
  position: relative;
}
.compose textarea {
  min-height: 120px;
}
.setting {
  display: block;
  margin: 22px 0;
}
.setting span {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--wine);
}
.notice:empty {
  display: none;
}
.notice {
  max-width: 840px;
  margin: 25px auto;
  padding: 16px 24px;
  background: #ede1df;
  border-radius: 9px;
  overflow-wrap: anywhere;
}
.empty {
  padding: 48px 0;
}
.empty h2 {
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: normal;
}
footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  flex-wrap: wrap;
}
.wide-title {
  font-size: 48px;
}
.report label {
  display: block;
  margin: 16px 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #b27451;
  outline-offset: 4px;
}
@media (max-width: 600px) {
  header {
    padding: 22px 20px;
    gap: 12px;
  }
  nav {
    gap: 12px;
  }
  nav a {
    font-size: 12px;
  }
  main {
    margin: 36px auto;
    padding: 0 20px;
  }
  .hero {
    padding: 35px 0 60px;
  }
  .subtitle {
    font-size: 22px;
  }
  .card {
    padding: 20px;
  }
  .search button {
    padding: 13px;
  }
  .profile h1 {
    font-size: 39px;
  }
  .bubble {
    max-width: 94%;
  }
  footer {
    padding: 24px 20px;
  }
  .thread-row time {
    max-width: 70px;
    text-align: right;
  }
  .notice {
    margin: 20px;
  }
  .wide-title {
    font-size: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.check input {
  flex: 0 0 20px;
}
