:root {
  --paper: #f6f4ee;
  --ink: #283d35;
  --muted: #727a71;
  --line: #dedfd4;
  --accent: #cb623e;
  --green: #365d49;
  --white: #fffefb;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  outline-offset: 5px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3,
.serif {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
button.primary,
.primary {
  background: var(--green);
  color: white;
  padding: 13px 22px;
  border-radius: 5px;
  border: 1px solid var(--green);
}
.secondary {
  border: 1px solid var(--line);
  padding: 12px 17px;
  border-radius: 5px;
  background: var(--white);
}
.quiet {
  color: var(--muted);
  font-size: 13px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}
.logo {
  font: 42px Georgia;
  letter-spacing: -3px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo i {
  display: inline-block;
  width: 20px;
  height: 27px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  box-shadow:
    5px 0 0 -1px var(--paper),
    6px 0 0 0 var(--accent);
  transform: rotate(22deg);
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.auth-art {
  padding: 48px 8vw;
  position: relative;
  overflow: hidden;
  background: #e9ecdf;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 700px;
}
.auth-art:before,
.auth-art:after {
  content: "";
  position: absolute;
  width: 430px;
  height: 570px;
  border: 1px solid #98a68c;
  border-radius: 50%;
  transform: rotate(35deg);
  right: -140px;
  top: 90px;
  pointer-events: none;
}
.auth-art:after {
  right: -90px;
  top: 120px;
}
.auth-art h1 {
  font-size: clamp(54px, 6vw, 90px);
  line-height: 1.06;
  letter-spacing: -3px;
  position: relative;
  margin: 70px 0 25px;
}
.auth-art h1 em {
  color: #8d4e35;
}
.auth-art p {
  max-width: 360px;
  line-height: 1.7;
  color: #66705e;
}
.auth-form {
  align-self: center;
  padding: 70px;
  max-width: 560px;
  width: 100%;
  margin: auto;
}
.auth-form h2 {
  font-size: 37px;
  margin: 18px 0;
}
.auth-form .primary {
  width: 100%;
  margin-top: 10px;
}
label {
  display: block;
  font-size: 12px;
  margin-bottom: 18px;
  color: var(--muted);
}
input,
textarea {
  display: block;
  margin-top: 8px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  padding: 13px;
  color: var(--ink);
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
.switch {
  width: 100%;
  margin-top: 20px;
  font-size: 13px;
  text-decoration: underline;
}
.layout {
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: 100vh;
}
.sidebar {
  border-right: 1px solid var(--line);
  padding: 33px 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.sidebar .logo {
  margin-bottom: 56px;
}
.side-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.side-label button {
  font-size: 22px;
}
.project-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.project-link {
  text-align: left;
  padding: 13px 12px;
  border-radius: 4px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.project-link.active {
  background: #e6eade;
}
.project-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b38262;
  flex-shrink: 0;
}
.side-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e5dfce;
  display: grid;
  place-items: center;
  font-size: 11px;
  flex-shrink: 0;
}
.side-bottom .quiet {
  flex: 1;
}
.main {
  padding: 0 6vw 65px;
  max-width: 1500px;
  width: 100%;
  margin: auto;
}
.topbar {
  height: 87px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.topbar span {
  letter-spacing: 1px;
}
.top-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}
.top-actions a {
  text-decoration: none;
}
.project-head {
  padding: 54px 0 35px;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  justify-content: space-between;
}
.project-head h1 {
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -2px;
  line-height: 1.1;
  margin: 14px 0 17px;
}
.project-head p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 530px;
  margin-bottom: 20px;
}
.members {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: var(--muted);
}
.members .avatar {
  width: 25px;
  height: 25px;
}
.project-number {
  font: italic 72px Georgia;
  color: #d5d7c9;
}
.toolbar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 26px;
  padding: 17px 0;
}
.tabs {
  display: flex;
  gap: 22px;
  font-size: 12px;
}
.tabs button {
  padding: 3px 0;
  color: var(--muted);
}
.tabs .active {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 8px;
}
.feed {
  max-width: 780px;
  margin: auto;
}
.composer {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 20px;
  margin-bottom: 36px;
}
.composer textarea {
  border: 0;
  resize: vertical;
  margin: 0;
  min-height: 74px;
  padding: 5px;
  background: transparent;
  font-size: 15px;
}
.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #efeee7;
  padding-top: 12px;
}
.upload-label {
  margin: 0;
  cursor: pointer;
  color: var(--ink);
  font-size: 12px;
}
.upload-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.compose-tools {
  display: flex;
  align-items: center;
  gap: 17px;
}
.composer .primary {
  padding: 10px 18px;
  font-size: 12px;
}
.files-selected {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.post {
  margin-bottom: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 21px 24px;
  font-size: 12px;
}
.post-meta time {
  color: var(--muted);
  margin-left: auto;
  font-size: 10px;
}
.post-body {
  padding: 0 24px 18px;
  font: 18px/1.7 Georgia;
  overflow-wrap: anywhere;
}
.post-body p:last-child {
  margin-bottom: 0;
}
.post-body pre {
  overflow: auto;
  font: 13px/1.5 monospace;
  background: var(--paper);
  padding: 12px;
}
.post-body blockquote {
  border-left: 2px solid #c7cdbb;
  padding-left: 18px;
  font-style: italic;
}
.media {
  background: #e9e9e1;
  display: grid;
  gap: 3px;
}
.media img,
.media video {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  display: block;
}
.file-link {
  font-size: 11px;
  padding: 10px 24px;
  display: block;
  color: var(--muted);
}
.post-footer {
  border-top: 1px solid #efeee7;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.echo-button {
  color: var(--green);
  font-size: 12px;
}
.echoes {
  padding: 0 24px;
  background: #f5f5ee;
}
.echo {
  border-top: 1px solid var(--line);
  padding: 19px 0;
}
.echo:first-child {
  border: 0;
}
.echo .post-body {
  padding: 10px 0 0;
  font-size: 17px;
}
.echo small {
  color: var(--muted);
  font-size: 10px;
}
.echo .media {
  margin-top: 12px;
}
.empty {
  padding: 65px 25px;
  text-align: center;
  border: 1px dashed #cbd0c0;
  border-radius: 6px;
}
.empty h2 {
  font-size: 34px;
  margin-bottom: 14px;
}
.empty p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto 22px;
}
.empty-symbol {
  font: 70px Georgia;
  color: #a2ad93;
  line-height: 1;
  margin-bottom: 25px;
}
.link-card {
  display: block;
  margin: 0 24px 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  font: 14px/1.5 Arial;
}
.link-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 9px;
}
.link-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}
.embed {
  padding: 0 24px 20px;
}
.embed iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
}
.embed button {
  width: 100%;
  padding: 30px;
  background: #e9eddf;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.project-tile {
  background: #e8eddf;
  border: 1px solid var(--line);
  padding: 30px;
  text-align: left;
  min-height: 200px;
  border-radius: 5px;
}
.project-tile h2 {
  font-size: 32px;
  margin: 25px 0 15px;
}
.project-tile p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 520px;
  width: calc(100% - 32px);
  padding: 30px;
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop {
  background: #21372d66;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 32px;
  margin: 0 0 15px;
}
dialog p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
}
.dialog-head button {
  font-size: 24px;
  align-self: flex-start;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.invite-result {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  overflow-wrap: anywhere;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 14px 24px;
  border-radius: 5px;
  max-width: 90vw;
  font-size: 13px;
  z-index: 100;
  display: none;
}
.error {
  color: #a2442c;
  font-size: 13px;
  line-height: 1.6;
}
.hidden {
  display: none !important;
}
.mobile-brand {
  display: none;
}
.welcome-head {
  padding: 65px 0 35px;
}
.welcome-head h1 {
  font-size: 58px;
  letter-spacing: -2px;
}
.welcome-head p {
  color: var(--muted);
  line-height: 1.7;
}
.note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 30px;
  letter-spacing: 0.3px;
}
@media (max-width: 800px) {
  .layout {
    grid-template-columns: 180px 1fr;
  }
  .sidebar {
    padding: 28px 16px;
  }
  .main {
    padding: 0 25px 40px;
  }
  .compose-tools .quiet {
    display: none;
  }
  .top-actions {
    gap: 10px;
  }
  .auth-form {
    padding: 35px;
  }
  .auth-art {
    padding: 35px;
  }
  .project-number {
    display: none;
  }
}
@media (max-width: 600px) {
  .auth {
    display: block;
  }
  .auth-art {
    min-height: 0;
    padding: 28px;
  }
  .auth-art h1 {
    font-size: 48px;
    margin: 30px 0 20px;
  }
  .auth-art p,
  .auth-art > .eyebrow {
    display: none;
  }
  .auth-form {
    padding: 32px 26px;
  }
  .auth-form h2 {
    font-size: 30px;
  }
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 20px;
  }
  .sidebar .logo {
    font-size: 34px;
    margin: 0;
  }
  .sidebar .side-label,
  .side-bottom {
    display: none;
  }
  .project-nav {
    flex-direction: row;
    overflow: auto;
    margin-top: 16px;
  }
  .project-link {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 9px 12px;
    font-size: 12px;
  }
  .main {
    padding: 0 18px 35px;
  }
  .topbar {
    height: 59px;
  }
  .topbar > span {
    font-size: 9px;
  }
  .top-actions {
    font-size: 10px;
  }
  .project-head {
    padding: 34px 0 25px;
  }
  .project-head h1 {
    font-size: 46px;
  }
  .project-head p {
    font-size: 13px;
  }
  .toolbar {
    padding: 15px 0;
  }
  .tabs {
    gap: 18px;
  }
  .composer {
    padding: 14px;
    margin-bottom: 24px;
  }
  .post-meta {
    padding: 16px;
  }
  .post-body {
    padding: 0 16px 17px;
  }
  .post-footer {
    padding: 14px 16px;
  }
  .echoes {
    padding: 0 16px;
  }
  .link-card {
    margin: 0 16px 16px;
  }
  .embed {
    padding: 0 16px 16px;
  }
  .welcome-head {
    padding: 40px 0 20px;
  }
  .welcome-head h1 {
    font-size: 43px;
  }
  .quiet {
    font-size: 11px;
  }
  .composer-foot {
    gap: 8px;
  }
  .composer .primary {
    padding: 10px 13px;
  }
  .note {
    font-size: 10px;
  }
}

@media (max-width: 600px) {
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .tabs {
    gap: 24px;
    white-space: nowrap;
  }
  .toolbar > .quiet {
    font-size: 10px;
  }
}
.embed .video-poster {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(145deg, #355b49, #182b25);
  color: white;
  border: 0;
  text-align: left;
}
.video-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-poster:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, #000b);
}
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding-left: 4px;
  background: #fffefbe8;
  color: var(--green);
  border-radius: 50%;
  font-size: 24px;
  transition: transform 0.15s;
}
.video-poster:hover .video-play {
  transform: translate(-50%, -50%) scale(1.08);
}
.video-caption {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
  z-index: 1;
  display: grid;
  gap: 6px;
}
.video-caption small {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.video-caption strong {
  font: 18px/1.3 Georgia;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-source {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  font-size: 11px;
  color: var(--muted);
}
.video-card iframe {
  display: block;
  border-radius: 4px;
}
@media (max-width: 600px) {
  .video-caption {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
  .video-caption strong {
    font-size: 15px;
  }
  .video-play {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
  .video-source {
    font-size: 10px;
  }
}
