@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Newsreader:opsz,wght@6..72,400;6..72,500&display=swap");
.site-view {
  margin-top: 13px;
  color: var(--muted);
}
.open-mid {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 19px;
  border-radius: 99px;
  background: var(--purple);
  color: #fff;
  font-size: 18px;
  margin-bottom: 30px;
}
.ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.ranking-grid section,
.ranking-side {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px;
}
.ranking-grid h2,
.ranking-side h2 {
  font: 400 25px var(--serif);
  margin: 0;
}
.ranking-grid h3,
.ranking-side h3 {
  font-size: 13px;
  color: var(--purple);
  margin: 15px 0 5px;
}
.ranking-grid ol,
.ranking-side ol {
  padding-left: 22px;
  margin: 0;
}
.ranking-grid li,
.ranking-side li {
  padding: 4px 0;
  font-size: 13px;
}
.ranking-grid small,
.ranking-side small {
  color: var(--muted);
}
.rank-note {
  font-size: 11px;
  color: var(--muted);
  margin: 2px 0 8px;
}
.coming {
  min-height: 170px;
  padding: 20px;
  background: #e3e1e3;
  color: #8c878d;
  pointer-events: none;
}
.coming h3 {
  font: 400 29px var(--serif);
  margin: 30px 0 2px;
}
.coming p {
  font-size: 13px;
  margin: 0;
}
.mid-layout {
  max-width: 1180px;
  margin: auto;
  padding: 0 24px 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 30px;
}
.ranking-side {
  height: max-content;
}
.hash {
  font-size: 12px;
  color: var(--purple);
  margin-right: 7px;
}
@media (max-width: 760px) {
  .ranking-grid,
  .mid-layout {
    grid-template-columns: 1fr;
  }
  .mid-layout {
    padding: 0 18px 70px;
  }
  .ranking-side {
    order: -1;
  }
}
.portal-hero {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 24px 54px;
  background: radial-gradient(circle at 50% 42%, #eee7f4 0, #f8f6f2 51%);
  text-align: center;
}
.portal-hero h1 {
  font: 400 clamp(70px, 11vw, 148px)/0.8 var(--serif);
  letter-spacing: -0.065em;
  margin: 0 0 34px;
}
.portal-hero h1 em {
  font-style: italic;
  color: var(--purple);
}
.portal-search {
  display: flex;
  width: min(680px, 100%);
  border: 1px solid #c8bccd;
  background: #fff;
  padding: 5px;
  border-radius: 99px;
  box-shadow: 0 12px 32px #3f2e4814;
}
.portal-search input {
  border: 0;
  outline: 0;
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  background: transparent;
}
.portal-search button {
  border: 0;
  border-radius: 99px;
  padding: 11px 15px;
  background: var(--purple);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}
.portal-search #search-mode {
  background: #eee7f0;
  color: var(--purple);
}
.portal-switch {
  margin-top: 29px;
  display: flex;
  border: 1px solid #d9cddd;
  border-radius: 99px;
  padding: 4px;
  background: #fff;
}
.portal-switch button {
  border: 0;
  border-radius: 99px;
  background: transparent;
  padding: 9px 20px;
  color: var(--muted);
  cursor: pointer;
}
.portal-switch button.active {
  background: var(--purple);
  color: #fff;
}
.portal-content {
  max-width: 1180px;
  margin: auto;
  padding: 40px 24px 92px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 36px;
}
.mid-sidebar {
  border-right: 1px solid var(--line);
  padding-right: 20px;
}
.sidebar-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple);
  font-weight: 700;
  margin: 0 0 11px;
}
.mid-sidebar button {
  display: block;
  width: 100%;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  padding: 9px 10px;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}
.mid-sidebar button:hover,
.mid-sidebar button.active {
  border-left-color: var(--purple);
  color: var(--purple);
  background: #f1ebf3;
}
.portal-panel .section-head {
  margin-top: 0;
}
.timeline-head {
  margin-top: 54px !important;
}
.search-results {
  margin: 0 0 34px;
}
.search-results .post-card {
  margin: 12px 0;
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.more-grid a {
  min-height: 170px;
  padding: 20px;
  background: #ede6f0;
  border: 1px solid #ddd1e2;
  transition:
    transform 0.2s,
    background 0.2s;
}
.more-grid a:hover {
  transform: translateY(-3px);
  background: #e3d6e9;
}
.more-grid span {
  font-size: 11px;
  color: var(--purple);
}
.more-grid h3 {
  font: 400 29px var(--serif);
  margin: 30px 0 2px;
}
.more-grid p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 760px) {
  .portal-hero {
    min-height: 380px;
    padding-top: 48px;
  }
  .portal-content {
    display: block;
    padding: 28px 18px 70px;
  }
  .mid-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 15px;
    margin-bottom: 26px;
  }
  .mid-sidebar div {
    display: flex;
    gap: 4px;
    overflow: auto;
  }
  .mid-sidebar button {
    white-space: nowrap;
    width: auto;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }
  .mid-sidebar button.active {
    border-bottom-color: var(--purple);
  }
  .more-grid {
    grid-template-columns: 1fr;
  }
  .portal-search button {
    padding: 11px 12px;
  }
}
.more-side-menu {
  display: grid;
  gap: 5px;
}
.more-side-menu a,
.more-side-menu span {
  display: block;
  padding: 9px 10px;
  font-size: 13px;
  border-left: 2px solid transparent;
}
.more-side-menu a {
  color: var(--purple);
  background: #f1ebf3;
  border-left-color: var(--purple);
}
.more-side-menu span {
  color: #918b93;
  background: #f0edef;
  cursor: default;
}
.more-side-menu small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #aaa3aa;
}
:root {
  --ink: #1d1a22;
  --paper: #f8f6f2;
  --surface: #fff;
  --line: #e5e0d9;
  --purple: #6a536f;
  --lilac: #eee7f0;
  --gold: #b78746;
  --muted: #746f75;
  --serif: Newsreader, Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
.site-header {
  height: 70px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 246, 242, 0.94);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}
.brand {
  font: 500 28px var(--serif);
  letter-spacing: -0.04em;
}
.brand span {
  font-style: italic;
  color: var(--purple);
}
nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-link {
  font-size: 14px;
  color: var(--muted);
}
.nav-link.active,
.nav-link:hover {
  color: var(--purple);
}
.profile-link {
  font-size: 13px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 99px;
  background: #fff;
}
.mini-avatar,
.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
}
.mini-avatar {
  height: 20px;
  width: 20px;
  margin-right: 4px;
  font-size: 11px;
}
.hero {
  max-width: 1180px;
  margin: auto;
  padding: 100px 24px 62px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: end;
}
.eyebrow,
.type-label {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 11px;
  color: var(--purple);
  font-weight: 700;
}
.hero h1,
.page-title {
  font: 400 clamp(54px, 8vw, 104px)/0.9 var(--serif);
  letter-spacing: -0.055em;
  margin: 14px 0 22px;
}
.hero h1 em,
.page-title em {
  font-style: italic;
  color: var(--purple);
}
.hero p {
  font-size: 17px;
  max-width: 520px;
  color: var(--muted);
}
.hero-card {
  background: var(--purple);
  color: #fff;
  padding: 34px;
  border-radius: 4px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-card h2 {
  font: 400 40px/1 var(--serif);
  margin: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 2px;
  border: 1px solid var(--purple);
  background: var(--purple);
  color: #fff;
  cursor: pointer;
}
.button.light {
  background: #fff;
  color: var(--purple);
  border-color: #fff;
}
.button.ghost {
  background: transparent;
  color: var(--purple);
}
.content {
  max-width: 1180px;
  margin: auto;
  padding: 0 24px 90px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin: 35px 0 20px;
}
.section-head h2 {
  font: 400 38px var(--serif);
  margin: 0;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.field {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  border-radius: 2px;
  min-width: 180px;
  color: var(--ink);
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.post-card.lite {
  background: #fcfaff;
}
.post-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 18px 0;
}
.post-card__top > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-date {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
}
.post-category {
  font-size: 12px;
  color: var(--muted);
}
.post-card__body {
  padding: 12px 18px 18px;
  flex: 1;
}
.post-author {
  font-size: 12px;
  margin: 0 0 10px;
}
.post-card h3 {
  font: 400 26px/1.1 var(--serif);
  margin: 0 0 11px;
}
.post-text {
  white-space: pre-line;
  font-size: 14px;
  margin: 0;
  color: #39343c;
}
.post-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-top: 14px;
}
.post-card__actions {
  border-top: 1px solid var(--line);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.icon-button,
.text-button {
  border: 0;
  background: transparent;
  padding: 3px;
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
}
.icon-button.on {
  color: #a24964;
}
.icon-button b {
  font-weight: 500;
}
.feed-hero {
  max-width: 1180px;
  margin: auto;
  padding: 68px 24px 30px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.feed-hero .page-title {
  margin: 8px 0 0;
}
.category-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.category-list button {
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 99px;
  cursor: pointer;
  font-size: 12px;
}
.category-list button.active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
.timeline {
  max-width: 800px;
  margin: 0 auto;
}
.timeline .post-card {
  margin-bottom: 18px;
}
.float-post {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 8;
  border: 0;
  border-radius: 50%;
  height: 62px;
  width: 62px;
  background: var(--purple);
  color: #fff;
  font-size: 29px;
  box-shadow: 0 8px 22px #3c2c4240;
  cursor: pointer;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #1d1a2277;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open {
  display: flex;
}
.modal-card {
  background: var(--paper);
  width: min(650px, 100%);
  padding: 30px;
  max-height: 92vh;
  overflow: auto;
}
.modal-card h2 {
  font: 400 34px var(--serif);
  margin: 0 0 18px;
}
.form-grid {
  display: grid;
  gap: 14px;
}
.form-grid label {
  font-size: 12px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}
.form-grid textarea {
  min-height: 130px;
  resize: vertical;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.profile-cover {
  height: 250px;
  background: linear-gradient(120deg, #382c44, #a47c77);
  background-size: cover;
  background-position: center;
  position: relative;
}
.profile-main {
  max-width: 900px;
  margin: auto;
  padding: 0 24px 80px;
}
.profile-summary {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 22px;
  align-items: end;
  transform: translateY(-50px);
  margin-bottom: -30px;
}
.avatar {
  width: 112px;
  height: 112px;
  font-size: 42px;
  border: 5px solid var(--paper);
  background-size: cover;
  background-position: center;
}
.profile-summary h1 {
  font: 400 45px var(--serif);
  margin: 0;
}
.profile-summary p {
  margin: 4px 0;
  color: var(--muted);
}
.about {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  margin: 10px 0 28px;
}
.about h2 {
  font: 400 28px var(--serif);
  margin: 0 0 8px;
}
.links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.links a {
  font-size: 13px;
  color: var(--purple);
  text-decoration: underline;
}
.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.profile-tabs button {
  padding: 12px 20px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
}
.profile-tabs button.active {
  border-color: var(--purple);
  color: var(--purple);
}
.settings {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.article {
  max-width: 760px;
  margin: auto;
  padding: 64px 24px 100px;
}
.article h1 {
  font: 400 clamp(40px, 6vw, 70px)/0.98 var(--serif);
  margin: 12px 0 20px;
}
.article-content {
  white-space: pre-line;
  font-size: 17px;
  margin: 32px 0;
}
.article-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-block: 1px solid var(--line);
  padding: 15px 0;
}
.comments {
  margin-top: 42px;
}
.comment {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  font-size: 14px;
}
.auth {
  max-width: 480px;
  margin: 70px auto;
  padding: 0 24px;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px;
}
.auth-card h1 {
  font: 400 44px var(--serif);
  margin: 0 0 8px;
}
.notice {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 22px;
}
.legal-documents { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.legal-documents details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.legal-documents details:last-child { border-bottom: 0; }
.legal-documents summary { cursor: pointer; color: var(--purple); font-size: 13px; }
.legal-documents p { white-space: pre-line; font-size: 12px; color: var(--muted); line-height: 1.75; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 99px;
  z-index: 50;
  font-size: 13px;
}
@media (max-width: 760px) {
  .site-header {
    padding: 0 16px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 70px 24px 45px;
    gap: 30px;
  }
  .post-grid {
    grid-template-columns: 1fr;
  }
  .feed-hero {
    padding: 42px 24px 24px;
    display: block;
  }
  .feed-hero .category-list {
    margin-top: 22px;
  }
  .profile-summary {
    grid-template-columns: 82px 1fr;
    gap: 14px;
  }
  .avatar {
    width: 82px;
    height: 82px;
    font-size: 30px;
  }
  .profile-summary h1 {
    font-size: 32px;
  }
  .profile-summary .button {
    grid-column: 1/-1;
  }
  .profile-cover {
    height: 180px;
  }
  .hide-mobile {
    display: none;
  }
}

/* Article / Lite composer */
.article-content figure { margin: 32px 0; }
.article-content figure img { width: 100%; border-radius: 3px; }
.article-content figcaption { color: var(--muted); font-size: 12px; margin-top: 7px; }
.article-block { white-space: normal; }
.article-block--title { font: 500 34px/1.18 var(--serif); margin: 34px 0 16px; }
.article-block--large { font: 500 25px/1.3 var(--serif); margin: 28px 0 12px; }
.article-block--body { font-size: 17px; line-height: 1.95; margin: 0 0 20px; }
.article-block--small { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0 0 16px; }
.composer-card { width: min(900px, 100%); }
.composer-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.composer-settings { display: grid; grid-template-columns: 1fr 180px; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.post-type-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.post-type-choice { min-height: 118px; border: 2px solid var(--line); border-radius: 28px; background: #fff; color: var(--muted); cursor: pointer; padding: 20px; text-align: left; display: grid; gap: 5px; }
.post-type-choice b { color: var(--ink); font: 500 28px var(--serif); }
.post-type-choice span { font-size: 12px; }
.post-type-choice.active { border-color: var(--purple); background: var(--lilac); box-shadow: inset 0 0 0 1px var(--purple); }
.article-editor { background: #fff; border: 1px solid var(--line); padding: 20px; }
.article-title { border: 0; border-bottom: 1px solid var(--line); width: 100%; padding: 10px 0 18px; outline: 0; font: 500 38px/1.1 var(--serif); }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.editor-toolbar button, .segmented button { border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 7px 10px; cursor: pointer; font-size: 12px; }
.article-edit-canvas { padding-top: 8px; }
.edit-block { border: 1px dashed transparent; padding: 11px; margin: 8px 0; }
.edit-block:hover { border-color: #d7cadc; background: #fcfaff; }
.edit-block__meta { color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; }
.editor-text { width: 100%; border: 0; resize: vertical; outline: 0; background: transparent; padding: 7px 0; line-height: 1.75; }
.editor-text--title { font: 500 30px/1.2 var(--serif); min-height: 72px; }
.editor-text--large { font: 500 23px/1.3 var(--serif); min-height: 64px; }
.editor-text--body { font-size: 16px; min-height: 130px; }
.editor-text--small { font-size: 13px; min-height: 60px; }
.edit-block--image { background: #faf8fb; }
.edit-block--image .field { width: 100%; min-width: 0; margin-top: 8px; }
.segmented { display: inline-flex; gap: 0; border: 1px solid var(--line); background: #fff; }
.segmented button { border: 0; border-right: 1px solid var(--line); }
.segmented button:last-child { border-right: 0; }
.segmented button.active { background: var(--purple); color: #fff; }
.latest-section { margin-top: 40px; }
.mid-rankings { margin-top: 55px; }
.ranking-side .segmented { margin: 15px 0; }
.mid-layout { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
@media (max-width: 760px) { .composer-settings, .post-type-picker { grid-template-columns: 1fr; } .article-title { font-size: 30px; } }
