:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --ink: #231d2a;
  --muted: #5d5564;
  --purple: #3c2464;
  --line: #e6dfe9;
  --white: #fff;
  --lavender: #e8dbff;
  --lime: #e4f888;
  font-family: system-ui,sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

button,input,textarea,select {
  font: inherit;
}

button,select,input[type=file] {
  cursor: pointer;
}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline: 3px solid #8552db;
  outline-offset: 3px;
}

.site-header {
  padding: 15px max(24px,calc((100vw - 1080px)/2));
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: #fffefa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -.07em;
}

.mark {
  background: var(--purple);
  color: var(--lime);
  border-radius: 10px;
  font-size: 1.3rem;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  margin-right: 8px;
}

.dot,.hero-dot {
  color: #7253a2;
}

.site-header nav {
  display: flex;
  gap: 8px;
}

.site-header nav a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 100px;
  font-size: .91rem;
  font-weight: 600;
}

.site-header nav a[aria-current=page],.site-header nav a:hover {
  background: var(--lavender);
  color: var(--purple);
}

.board,.login-layout,.notice {
  max-width: 1080px;
  margin: 0 auto;
  width: calc(100% - 48px);
}

.board,.login-layout {
  margin-top: 32px;
}

.hero {
  background: #e9ddff;
  border: 1px solid #e0cef9;
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 40px 45px;
  min-height: 210px;
}

.hero h1,.hero p {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.65rem,6.8vw,5.35rem);
  margin: 0;
  letter-spacing: -.085em;
  line-height: .93;
}

.hero em {
  font-style: normal;
  color: #57358b;
}

.hero p {
  font-size: 1rem;
  color: #3d2b50;
  max-width: 360px;
  line-height: 1.5;
  margin: 20px 0 0;
}

.hero-art {
  position: absolute;
  right: 9%;
  top: 50%;
  transform: translateY(-49%) rotate(-13deg);
  font-size: clamp(8rem,28vw,20rem);
  line-height: .9;
  color: #cfb7f7;
  pointer-events: none;
}

.columns {
  display: grid;
  grid-template-columns: minmax(0,1.65fr) minmax(285px,1fr);
  gap: 22px;
  align-items: start;
  margin-top: 24px;
}

.aside,.timeline {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.timeline>h2 {
  padding: 5px 0 0;
}

.card {
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--white);
  padding: 24px;
}

.card h2,.timeline h2 {
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: -.04em;
}

.card p {
  color: var(--muted);
  line-height: 1.5;
}

.empty {
  text-align: center;
  padding: 52px 20px;
}

.empty-mark {
  display: inline-grid;
  place-items: center;
  height: 64px;
  width: 64px;
  border-radius: 50%;
  background: #eef7c6;
  color: #394414;
  font-size: 2.2rem;
}

.empty h3 {
  margin: 12px 0 4px;
}

.empty p {
  margin: 0;
}

.person {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  text-decoration: none;
}

.person:hover {
  text-decoration: underline;
}

.avatar {
  width: 33px;
  height: 33px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-size: .84rem;
  color: var(--ink);
}

.lavender {
  background: var(--lavender);
}

.peach {
  background: #f8decf;
}

.mint {
  background: #d8f0d9;
}

.people .person {
  display: flex;
  margin-top: 13px;
}

.post {
  display: grid;
  gap: 14px;
}

.post-heading,.post-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
}

.to {
  color: var(--muted);
}

.post-photo,.preview {
  width: 100%;
  max-height: 580px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: #f2eef5;
}

.preview {
  max-height: 200px;
}

.preview[hidden] {
  display: none;
}

.post .post-message,.post .pending {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.post .pending {
  font-size: .85rem;
  font-weight: 650;
  color: #57358b;
}

.stack {
  display: grid;
  gap: 9px;
  margin-top: 17px;
}

.stack label {
  font-size: .88rem;
  font-weight: 700;
  margin-top: 5px;
}

.stack input,.stack select,.stack textarea {
  border: 1px solid #d9d0df;
  background: #fbf9fc;
  border-radius: 9px;
  padding: 10px 11px;
  width: 100%;
  color: var(--ink);
}

.stack textarea {
  resize: vertical;
}

.stack input[type=file] {
  font-size: .82rem;
  padding: 7px;
}

.stack input::file-selector-button {
  background: var(--lavender);
  border: 0;
  border-radius: 6px;
  padding: 7px 9px;
  color: var(--purple);
  margin-right: 6px;
  font-weight: 650;
}

.stack .hint {
  font-size: .79rem;
  color: var(--muted);
  font-weight: 400;
  margin: 0;
}

.primary,.quiet {
  border: 0;
  border-radius: 10px;
  font-weight: 750;
  padding: 10px 14px;
}

.primary {
  background: var(--purple);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.primary span {
  color: var(--lime);
}

.primary:hover {
  background: #513581;
}

.primary.compact {
  font-size: .9rem;
}

.quiet {
  background: transparent;
  color: var(--purple);
  white-space: nowrap;
}

.quiet:hover {
  background: var(--lavender);
}

.notice {
  margin-top: 18px;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 650;
  background: #e9f4cb;
  color: #344416;
}

.notice.error {
  background: #ffe5e2;
  color: #762a26;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0,1.65fr) minmax(280px,1fr);
  gap: 20px;
}

.login-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 390px;
}

.login-card {
  align-self: center;
}

.error-page {
  max-width: 520px;
  margin: 42px auto;
  width: calc(100% - 32px);
}

footer {
  margin: 36px auto 20px;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}

footer span {
  padding: 0 3px;
}

@media (max-width:710px) {
  .site-header {
    padding: 10px 12px;
    gap: 4px;
  }
  .site-header nav a,.site-header .quiet {
    font-size: .79rem;
    padding: 8px;
  }
  .wordmark {
    font-size: 1.22rem;
  }
  .mark {
    width: 28px;
    height: 28px;
    margin-right: 5px;
  }
  .board,.login-layout,.notice {
    width: calc(100% - 24px);
  }
  .board,.login-layout {
    margin-top: 14px;
  }
  .hero {
    padding: 27px 23px;
    min-height: 190px;
    border-radius: 20px;
  }
  .hero-art {
    right: -4%;
  }
  .hero p {
    max-width: 245px;
  }
  .columns,.login-layout {
    grid-template-columns: minmax(0,1fr);
    gap: 14px;
  }
  .columns {
    margin-top: 14px;
  }
  .aside {
    grid-row: 1;
  }
  .card {
    padding: 18px;
  }
  .login-hero {
    min-height: 240px;
  }
  .people {
    display: none;
  }
}
