:root {
  color-scheme: light;
  font-family: "Helvetica Neue", system-ui, sans-serif;
  color: #241c2e;
  background: #f5f0e7;
  --ink: #241c2e;
  --muted: #605669;
  --line: #998a9d;
  --rule: #ded3db;
  --paper: #fffbf4;
  --lavender: #eee5f2;
  --peach: #ffb595;
  --rust: #9a361f;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background-image: linear-gradient(to right, var(--rule) 1px, transparent 1px);
  background-size: 6rem 100%;
  background-position: center;
}
.shell { width: min(100% - 3rem, 72rem); margin: 0 auto; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .85rem 0;
  border-bottom: 2px solid var(--ink);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.045em;
}
.brand::before {
  content: "";
  width: 1.65rem;
  height: 1.65rem;
  flex: none;
  background:
    radial-gradient(circle at 75% 47%, #51865b 0 23%, transparent 25%),
    radial-gradient(circle at 27% 48%, #51865b 0 24%, transparent 26%),
    radial-gradient(circle at 50% 33%, #51865b 0 32%, transparent 34%),
    linear-gradient(#254f34, #254f34) center bottom / 16% 48% no-repeat;
}
nav { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
main { padding: clamp(1rem, 3vw, 2rem) 0 4rem; }
h1, h2 { margin: 0; font-weight: 800; line-height: 1; }
h1 { font-size: clamp(3rem, 10vw, 7rem); letter-spacing: -.075em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); letter-spacing: -.055em; }
p { line-height: 1.55; }
#message:empty { display: none; }
#message { color: var(--rust); background: var(--paper); padding: .7rem 1rem; border-left: 3px solid; margin: 0 0 1rem; }
.panel { padding: clamp(1rem, 3vw, 1.7rem); margin: 0 0 1rem; background: var(--paper); border: 1px solid var(--line); }
.intro {
  width: min(100%, 51rem);
  padding: clamp(1rem, 5vw, 3.5rem);
  margin-top: clamp(.5rem, 4vw, 3rem);
  background: var(--lavender);
  border-color: var(--ink);
  border-top: .5rem solid var(--ink);
}
.intro h1 { max-width: 10ch; }
.intro p { margin: 1.25rem 0 2rem; }
.intro form { max-width: 34rem; }
#composer { background: var(--lavender); border-top: .32rem solid var(--ink); }
#members { background: var(--lavender); }
label { display: block; font-size: .875rem; font-weight: 650; margin: 0 0 .35rem; }
input, textarea, button { font: inherit; }
input:not([type=file]), textarea {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: .7rem .75rem;
}
::placeholder { color: var(--muted); }
textarea { display: block; resize: vertical; }
button, .photo-label {
  cursor: pointer;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--peach);
  padding: .58rem .82rem;
  border-radius: 0;
  font-weight: 700;
  white-space: nowrap;
}
button:hover { background: var(--ink); color: var(--paper); }
button:disabled { opacity: .6; cursor: wait; }
button.quiet, .photo-label { background: transparent; color: var(--ink); border-color: var(--line); }
button.quiet:hover, .photo-label:hover { background: var(--peach); border-color: var(--ink); }
:focus-visible, .photo-label:focus-within { outline: 2px solid var(--rust); outline-offset: 3px; }
.inline, .compose-actions, #roster li, .byline { display: flex; align-items: center; gap: .6rem; }
.compose-actions, #roster li { justify-content: space-between; }
.compose-actions { margin-top: .75rem; flex-wrap: wrap; }
.photo-label { position: relative; margin: 0; }
.photo-picker { position: absolute; width: 1px; height: 1px; opacity: 0; }
.attachment { display: grid; gap: .5rem; margin-top: .75rem; justify-items: start; }
.attachment label { width: 100%; }
.preview { max-width: 100%; max-height: 12rem; }
.byline {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .3rem .8rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  overflow-wrap: anywhere;
}
.byline strong { color: var(--ink); }
.byline time { font: .78rem ui-monospace, monospace; }
.entry p { margin: .8rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-photo { max-width: 100%; max-height: 36rem; display: block; }
.entry > button { margin-top: .85rem; }
.replies { border-left: 2px solid var(--line); padding-left: .8rem; margin: .65rem 0; }
.reply { margin: .8rem 0; }
.reply-form { margin-top: .65rem; }
#roster:empty { display: none; }
#roster { list-style: none; padding: 0; margin-bottom: 0; overflow-wrap: anywhere; }
#roster li { border-top: 1px solid var(--line); padding: .5rem 0; }
.empty { color: var(--muted); margin: 0; padding: .8rem 1rem; border: 1px dashed var(--line); background: var(--paper); }
#timeline { display: grid; gap: 1rem; }
#timeline > * { min-width: 0; }
#composer { margin: 0; }
@media (min-width: 54rem) {
  #timeline { grid-template-columns: minmax(18rem, 1fr) minmax(0, 1.8fr); align-items: start; gap: 1.35rem; }
}
@media (max-width: 30rem) {
  .shell { width: calc(100% - 1.5rem); }
  .inline { flex-wrap: wrap; }
}
