:root {
  color-scheme: light;
  --paper: #f0ede7;
  --surface: #fffefd;
  --surface-soft: #f7f4ee;
  --ink: #060608;
  --muted: #5a6279;
  --header-muted: #2b3142;
  --quiet: #5a6279;
  --line: #e5e2dc;
  --line-strong: #d8d4cd;
  --accent: #b86b18;
  --accent-soft: #f3e2ce;
  --blue: #3abbff;
  --green-dark: #103a1a;
  --forum-chrome: #f0ede7;
  --control-neutral: #e7e9f4;
  --control-neutral-hover: #dadde9;
  --control-neutral-ink: #464e61;
  --notification-accent: #6574c9;
  --notification-accent-soft: #f0f2ff;
  --notification-accent-hover: #f6f7ff;
  --header-height: 82px;
  --page-gutter: clamp(18px, 3vw, 44px);
  --shadow: 0 14px 38px rgba(33, 44, 41, .07);
  --avatar-squircle: polygon(50.000% 0.000%, 62.787% 0.054%, 68.064% 0.214%, 72.085% 0.483%, 75.437% 0.859%, 78.348% 1.345%, 80.931% 1.941%, 83.252% 2.648%, 85.355% 3.470%, 87.268% 4.408%, 89.012% 5.465%, 90.600% 6.646%, 92.045% 7.955%, 93.354% 9.400%, 94.535% 10.988%, 95.592% 12.732%, 96.530% 14.645%, 97.352% 16.748%, 98.059% 19.069%, 98.655% 21.652%, 99.141% 24.563%, 99.517% 27.915%, 99.786% 31.936%, 99.946% 37.213%, 100.000% 50.000%, 99.946% 62.787%, 99.786% 68.064%, 99.517% 72.085%, 99.141% 75.437%, 98.655% 78.348%, 98.059% 80.931%, 97.352% 83.252%, 96.530% 85.355%, 95.592% 87.268%, 94.535% 89.012%, 93.354% 90.600%, 92.045% 92.045%, 90.600% 93.354%, 89.012% 94.535%, 87.268% 95.592%, 85.355% 96.530%, 83.252% 97.352%, 80.931% 98.059%, 78.348% 98.655%, 75.437% 99.141%, 72.085% 99.517%, 68.064% 99.786%, 62.787% 99.946%, 50.000% 100.000%, 37.213% 99.946%, 31.936% 99.786%, 27.915% 99.517%, 24.563% 99.141%, 21.652% 98.655%, 19.069% 98.059%, 16.748% 97.352%, 14.645% 96.530%, 12.732% 95.592%, 10.988% 94.535%, 9.400% 93.354%, 7.955% 92.045%, 6.646% 90.600%, 5.465% 89.012%, 4.408% 87.268%, 3.470% 85.355%, 2.648% 83.252%, 1.941% 80.931%, 1.345% 78.348%, 0.859% 75.437%, 0.483% 72.085%, 0.214% 68.064%, 0.054% 62.787%, 0.000% 50.000%, 0.054% 37.213%, 0.214% 31.936%, 0.483% 27.915%, 0.859% 24.563%, 1.345% 21.652%, 1.941% 19.069%, 2.648% 16.748%, 3.470% 14.645%, 4.408% 12.732%, 5.465% 10.988%, 6.646% 9.400%, 7.955% 7.955%, 9.400% 6.646%, 10.988% 5.465%, 12.732% 4.408%, 14.645% 3.470%, 16.748% 2.648%, 19.069% 1.941%, 21.652% 1.345%, 24.563% 0.859%, 27.915% 0.483%, 31.936% 0.214%, 37.213% 0.054%);
  font-family: "Poopin Quicksand Embedded", "SF Pro Text", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #10131b;
  --surface: #222938;
  --surface-soft: #1a2030;
  --surface-control: #2b3348;
  --ink: #eef2fa;
  --muted: #a3aec2;
  --line: #343e54;
  --line-strong: #44516b;
  --accent: #e19a4b;
  --accent-soft: #3b2c21;
  --blue: #62c8ff;
  --forum-chrome: #10131b;
  --header-muted: #adb6c8;
  --quiet: #818b9f;
  --control-neutral: #2b3348;
  --control-neutral-hover: #36415a;
  --control-neutral-ink: #b8c2d6;
  --notification-accent: #8194ec;
  --notification-accent-soft: #2b334a;
  --notification-accent-hover: #30394f;
  --green-dark: #9aabff;
  --shadow: 0 16px 42px rgba(0, 0, 0, .2);
}

:root[data-theme="dark"] .forum-header {
  --surface: #212736;
  --surface-soft: #1a202e;
  --surface-control: #2b3348;
  --ink: #dce1e9;
  --line: #30384b;
  --line-strong: #414b62;
  --notification-accent: #6f86e8;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Poopin Quicksand Embedded", "SF Pro Text", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a,
button,
input {
  color: inherit;
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 64%, transparent);
  outline-offset: 3px;
}

.site-header,
.forum-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-height);
  border-bottom: 0;
  background: var(--forum-chrome);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, sans-serif;
}

main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  width: min(1500px, 100%);
  height: 100%;
  display: grid;
  grid-template-columns: auto minmax(250px, 620px) auto;
  align-items: center;
  gap: clamp(20px, 4vw, 72px);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

.forum-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 195px;
  color: var(--ink);
  text-decoration: none;
}

.forum-brand-lockup {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  height: 40px;
}

.forum-brand-logo {
  display: block;
  width: auto;
  height: 32px;
}

.forum-brand-logo-dark {
  display: none;
}

:root[data-theme="dark"] .forum-brand-logo-light {
  display: none;
}

:root[data-theme="dark"] .forum-brand-logo-dark {
  display: block;
}

:root[data-theme="dark"] .forum-brand-label {
  color: #c7cedc;
}

.forum-brand-label {
  position: absolute;
  top: -1px;
  right: 3px;
  color: var(--header-muted);
  font-family: "Poopin Quicksand Embedded", "SF Pro Text", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  opacity: .82;
}

.forum-search {
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 15px;
  background: var(--surface);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.forum-search:focus-within {
  border-color: color-mix(in srgb, var(--notification-accent) 48%, transparent);
  background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--notification-accent) 14%, transparent);
}

.search-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-left: 17px;
  border: 2px solid var(--quiet);
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -2px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--quiet);
  transform: rotate(45deg);
}

.forum-search input {
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 14px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.forum-search input[type="search"]::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
  appearance: none;
}

.forum-search input::placeholder {
  color: #929b98;
}

.forum-search-clear {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  margin-right: 7px;
  border: 0;
  border-radius: 11px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.forum-search-clear[hidden] {
  display: none;
}

.forum-search-clear::before,
.forum-search-clear::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
}

.forum-search-clear::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.forum-search-clear::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.forum-search-clear:hover,
.forum-search-clear:focus-visible {
  outline: 0;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.forum-search kbd {
  min-width: 24px;
  margin-right: 11px;
  border: 1px solid #dfe2dd;
  border-radius: 7px;
  background: rgba(255, 255, 255, .74);
  color: var(--quiet);
  font-size: 11px;
  line-height: 22px;
  text-align: center;
}

:root[data-theme="dark"] .forum-search kbd {
  border-color: var(--line);
  background: var(--surface-soft);
}

:root[data-theme="dark"] .forum-search {
  background: var(--surface-soft);
}

:root[data-theme="dark"] .forum-search:focus-within {
  border-color: rgba(134, 160, 255, .45);
  background: var(--surface-control);
  box-shadow: 0 0 0 4px rgba(105, 130, 226, .16);
}

:root[data-theme="dark"] .forum-search input::placeholder {
  color: #7f899e;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
}

.header-compose {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease;
}

.header-compose:hover,
.header-compose:focus-visible {
  outline: 0;
  background: var(--green-dark);
  transform: translateY(-1px);
}

.sidebar-toggle,
.mobile-search-toggle,
.notification-trigger {
  position: relative;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  transition: transform 150ms ease;
}

.sidebar-toggle,
.mobile-search-toggle {
  display: none;
}

.notification-trigger {
  display: grid;
}

.sidebar-toggle::before,
.mobile-search-toggle::before,
.notification-trigger::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--surface);
  -webkit-clip-path: var(--avatar-squircle);
  clip-path: var(--avatar-squircle);
  pointer-events: none;
  transition: background 150ms ease;
}

.sidebar-toggle:focus-visible,
.sidebar-toggle[aria-expanded="true"],
.mobile-search-toggle:focus-visible,
.mobile-search-toggle[aria-expanded="true"],
.notification-trigger:focus-visible,
.notification-menu.is-open .notification-trigger {
  outline: 0;
}

.sidebar-toggle:focus-visible::before,
.sidebar-toggle[aria-expanded="true"]::before,
.sidebar-toggle:active::before,
.mobile-search-toggle:focus-visible::before,
.mobile-search-toggle[aria-expanded="true"]::before,
.mobile-search-toggle:active::before,
.notification-trigger:focus-visible::before,
.notification-menu.is-open .notification-trigger::before,
.notification-trigger:active::before {
  background: #3abbff;
}

.sidebar-toggle span {
  position: relative;
  z-index: 1;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 220ms ease, opacity 160ms ease;
}

.sidebar-toggle {
  place-content: center;
  gap: 4px;
}

.sidebar-toggle:focus-visible span,
.sidebar-toggle[aria-expanded="true"] span,
.sidebar-toggle:active span {
  background: #fff;
}

.mobile-search-icon,
.notification-bell-icon {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.mobile-search-toggle:focus-visible .mobile-search-icon,
.mobile-search-toggle[aria-expanded="true"] .mobile-search-icon,
.mobile-search-toggle:active .mobile-search-icon,
.notification-trigger:focus-visible .notification-bell-icon,
.notification-menu.is-open .notification-bell-icon,
.notification-trigger:active .notification-bell-icon {
  filter: brightness(0) invert(1);
}

.notification-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
}

.notification-menu,
.identity-menu {
  position: relative;
}

.notification-badge {
  position: absolute;
  z-index: 2;
  top: -3px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  padding: 0 3px;
  background: #e5485d;
  color: #fff;
  font-size: 9px;
  line-height: 1;
}

.notification-badge[hidden] {
  display: none;
}

.notification-panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 30px));
  max-height: min(620px, calc(100vh - 110px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  visibility: hidden;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(22, 36, 31, .16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-7px) scale(.985);
  transform-origin: top right;
  transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
}

.notification-menu.is-open .notification-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: opacity 150ms ease, transform 150ms ease, visibility 0s;
}

:root[data-theme="dark"] .notification-panel {
  box-shadow: 0 24px 64px rgba(0, 0, 0, .42);
}

.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 10px;
}

.notification-panel-header > span {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.notification-panel-header strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
}

.notification-panel-header small {
  color: var(--quiet);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.notification-panel-header button {
  min-height: 34px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  padding: 0 12px;
  background: color-mix(in srgb, #6976c9 12%, var(--surface));
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.notification-panel-header button:hover,
.notification-panel-header button:focus-visible {
  outline: 0;
  background: color-mix(in srgb, #6976c9 18%, var(--surface));
}

.notification-panel-header button:disabled {
  color: var(--quiet);
  cursor: default;
  opacity: .62;
}

.notification-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 7px 12px 10px;
}

.notification-item {
  position: relative;
  min-height: 70px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 8px;
  align-items: center;
  gap: 11px;
  border-radius: 13px;
  padding: 10px 9px;
  color: var(--ink);
  text-decoration: none;
}

.notification-item.is-grouped {
  grid-template-columns: 54px minmax(0, 1fr) 8px;
}

.notification-item:hover,
.notification-item:focus-visible {
  outline: 0;
  background: var(--notification-accent-hover);
}

.notification-item.is-unread {
  background: var(--notification-accent-soft);
}

.notification-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--notification-avatar-color, #f4d28a);
  -webkit-clip-path: var(--avatar-squircle);
  clip-path: var(--avatar-squircle);
}

.notification-avatar .avatar-icon {
  width: 66%;
  height: 66%;
  display: block;
  object-fit: contain;
}

.notification-avatar-photo {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.notification-avatar.has-photo .avatar-icon {
  opacity: 0;
}

.notification-avatar-stack {
  width: 54px;
  display: flex;
  align-items: center;
}

.notification-avatar-stack .notification-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  box-shadow: 0 0 0 2px var(--surface);
}

.notification-avatar-stack .notification-avatar + .notification-avatar {
  margin-left: -18px;
}

.notification-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.notification-copy > span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 520;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.notification-copy strong,
.notification-copy b {
  color: var(--ink);
  font-weight: 750;
}

.notification-reaction-emoji {
  display: inline-block;
  margin: 0 .08em;
  font-size: 1.08em;
  line-height: 1;
  vertical-align: -.05em;
}

.notification-copy time {
  color: var(--quiet);
  font-size: 9px;
  font-weight: 650;
}

.notification-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e5485d;
  box-shadow: 0 0 0 3px rgba(229, 72, 93, .1);
}

.notification-empty {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 28px 22px;
  color: var(--muted);
  text-align: center;
}

.notification-empty img {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  opacity: .38;
}

:root[data-theme="dark"] .notification-empty img {
  filter: invert(1) brightness(1.3);
}

.notification-empty strong {
  color: var(--ink);
  font-size: 13px;
}

.notification-empty p {
  max-width: 230px;
  margin: 0;
  font-size: 10px;
  line-height: 1.45;
}

.notification-cleanup {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 12px 10px;
}

.notification-cleanup button {
  min-height: 34px;
  border: 0;
  border-radius: 12px;
  padding: 0 12px;
  background: color-mix(in srgb, #6976c9 14%, var(--surface));
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}

.notification-cleanup button:hover,
.notification-cleanup button:focus-visible {
  outline: 0;
  background: color-mix(in srgb, #6976c9 20%, var(--surface));
}

.notification-cleanup button.is-danger {
  background: color-mix(in srgb, #ef4660 14%, var(--surface));
  color: #cf3650;
}

.notification-cleanup button.is-danger:hover,
.notification-cleanup button.is-danger:focus-visible {
  background: color-mix(in srgb, #ef4660 20%, var(--surface));
}

.notification-cleanup button:disabled {
  cursor: default;
  opacity: .52;
}

.notification-settings {
  display: grid;
  gap: 0;
  padding: 10px 16px 16px;
}

.notification-settings > p {
  margin: 0;
  padding: 0 5px 4px;
  color: var(--quiet);
  font-family: "Poopin Quicksand Embedded", "SF Pro Text", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 8px;
  font-weight: 820;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.notification-settings label {
  position: relative;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 31px;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 4px 6px;
  cursor: pointer;
}

.notification-settings label:hover {
  background: color-mix(in srgb, #6f7ccf 10%, var(--surface));
}

.notification-settings label > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.notification-settings label strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 740;
}

.notification-settings label small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.3;
}

.notification-settings input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.notification-settings i {
  position: relative;
  width: 31px;
  height: 18px;
  display: block;
  border-radius: 999px;
  background: color-mix(in srgb, var(--quiet) 45%, var(--surface));
  transition: background 150ms ease, box-shadow 150ms ease;
}

.notification-settings i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(22, 36, 31, .2);
  transition: transform 150ms ease;
}

.notification-settings input:checked + i {
  background: #6775ce;
}

.notification-settings input:checked + i::after {
  transform: translateX(13px);
}

.notification-settings input:focus-visible + i {
  box-shadow: 0 0 0 3px rgba(103, 117, 206, .22);
}

.header-identity {
  position: relative;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.identity-menu-trigger {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 13px;
  padding: 2px;
  background: transparent;
  cursor: pointer;
}

.identity-menu-trigger:hover,
.identity-menu-trigger:focus-visible,
.identity-menu.is-open .identity-menu-trigger {
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.private-message-avatar-badge {
  position: absolute;
  z-index: 4;
  top: -3px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 3px;
  background: #e5485d;
  color: #fff;
  font-size: 9px;
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
}

.private-message-avatar-badge[hidden] {
  display: none;
}

.identity-menu::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 100%;
  right: 0;
  width: 42px;
  height: 13px;
}

.avatar {
  position: relative;
  width: var(--avatar-size, 36px);
  height: var(--avatar-size, 36px);
  flex: 0 0 var(--avatar-size, 36px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--avatar-color, #f4d28a);
  -webkit-clip-path: var(--avatar-squircle);
  clip-path: var(--avatar-squircle);
}

.avatar-icon,
.avatar-photo {
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.avatar-icon {
  position: relative;
  top: -1px;
  left: 1px;
  width: 66%;
  height: 66%;
  object-fit: contain;
  transition: opacity 120ms ease;
}

.avatar-photo {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 120ms ease;
}

.avatar-photo[hidden] {
  display: none;
}

.avatar.has-photo {
  background-color: var(--surface-soft);
}

.avatar.has-photo:not(.is-photo-error) .avatar-icon {
  opacity: 0;
}

.avatar.has-photo.is-photo-loaded:not(.is-photo-error) .avatar-photo {
  opacity: 1;
}

.avatar.has-photo.is-photo-error {
  background-color: var(--avatar-color, #f4d28a);
  background-image: none;
}

.avatar.has-photo.is-photo-error .avatar-icon {
  opacity: 1;
}

.identity-menu-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  right: 0;
  width: 224px;
  display: grid;
  gap: 3px;
  visibility: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 20px 50px rgba(22, 36, 31, .16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-7px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
}

.identity-menu.is-open .identity-menu-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: opacity 150ms ease, transform 150ms ease, visibility 0s;
}

:root[data-theme="dark"] .identity-menu-panel {
  background: rgba(26, 32, 46, .985);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .42);
}

:root[data-theme="dark"] .identity-menu-panel a {
  color: var(--ink);
}

:root[data-theme="dark"] .notification-bell-icon,
:root[data-theme="dark"] .mobile-search-icon {
  filter: invert(1) brightness(1.3);
}

.identity-menu-summary {
  display: grid;
  gap: 3px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  padding: 9px 10px 11px;
}

.identity-menu-summary strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.identity-menu-summary span {
  color: var(--header-muted);
  font-size: 10px;
}

.identity-menu-panel a {
  min-height: 39px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  padding: 0 11px;
  color: #34423f;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.identity-menu-panel a:hover,
.identity-menu-panel a:focus-visible {
  outline: 0;
  background: color-mix(in srgb, var(--forum-chrome) 72%, var(--surface));
  color: var(--ink);
}

.identity-menu-badge {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border-radius: 99px;
  padding: 0 5px;
  background: #e5485d;
  color: #fff;
  font-size: 8px;
  line-height: 1;
}

.identity-menu-badge[hidden] {
  display: none;
}

.identity-theme-setting {
  display: grid;
  gap: 7px;
  margin-top: 2px;
  border-top: 1px solid var(--line);
  padding: 10px 4px 3px;
}

.identity-theme-label {
  padding: 0 5px;
  color: var(--header-muted);
  font-family: "Poopin Quicksand Embedded", "SF Pro Text", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.identity-theme-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  border-radius: 10px;
  padding: 3px;
  background: color-mix(in srgb, var(--forum-chrome) 72%, var(--surface));
}

.identity-theme-option {
  min-width: 0;
  height: 28px;
  border: 0;
  border-radius: 7px;
  padding: 0 4px;
  background: transparent;
  color: var(--header-muted);
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
}

.identity-theme-option:hover,
.identity-theme-option:focus-visible {
  outline: 0;
  color: var(--ink);
}

.identity-theme-option.is-active,
.identity-theme-option[aria-checked="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 7px rgba(29, 43, 38, .12);
}

.mobile-notification-panel,
.mobile-menu-panel {
  display: none;
}

main {
  padding: clamp(54px, 8vw, 96px) 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  align-items: end;
  gap: clamp(28px, 7vw, 86px);
  min-height: 390px;
  padding-bottom: clamp(56px, 8vw, 92px);
}

.eyebrow,
.destination-kicker {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin: 18px 0 22px;
  font-size: clamp(46px, 7.6vw, 92px);
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: .94;
}

.hero-copy > p {
  max-width: 640px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  padding: 0 22px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.button.is-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.community-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  border-top: 1px solid var(--line-strong);
  padding-top: 22px;
}

.note-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.community-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.community-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.destinations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.destination-card {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.destination-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.destination-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 26px 0 18px;
}

.destination-heading h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: -.05em;
  line-height: 1;
}

.destination-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  font-size: 20px;
}

.destination-card p {
  max-width: 490px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}

.destination-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
}

.forum-card .destination-kicker {
  color: #4c7d68;
}

.wall-card .destination-kicker {
  color: #5368c7;
}

:root[data-theme="dark"] .wall-card .destination-kicker {
  color: #99a9ff;
}

:root[data-theme="dark"] .forum-card .destination-kicker {
  color: #83c3a7;
}

.principles {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: 48px;
  margin-top: 76px;
  border-top: 1px solid var(--line-strong);
  padding: 42px 0 18px;
}

.principles h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.045em;
}

.principles p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2.3vw, 23px);
  font-weight: 500;
  line-height: 1.55;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 24px 0 max(24px, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

footer nav {
  display: flex;
  gap: 20px;
}

footer a {
  text-decoration: none;
}

/* Keep the non-phone landing shell aligned with the forum and thread pages. */
@media (min-width: 721px) {
  html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
  }

  .site-header .header-inner,
  main,
  footer {
    width: min(1240px, 100%);
  }

  .site-header .header-inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(16px, 2.4vw, 30px);
  }

  .site-header .forum-brand {
    min-width: 0;
  }

  .site-header .forum-search,
  .site-header .header-compose,
  .site-header .sidebar-toggle,
  .site-header .mobile-search-toggle {
    display: none;
  }

  .site-header .header-actions {
    min-width: 0;
    grid-column: 2;
    justify-self: stretch;
    justify-content: flex-end;
  }

  .site-header .header-inner .header-actions {
    gap: 8px;
  }

  .site-header .notification-center,
  .site-header .notification-trigger,
  .site-header .identity-menu-trigger {
    width: 42px;
    height: 42px;
    min-width: 42px;
    flex: 0 0 42px;
  }

  .site-header .header-identity {
    width: 42px;
    height: 42px;
    min-width: 42px;
    flex: 0 0 42px;
  }

  .site-header .identity-menu-trigger {
    padding: 0;
  }

  .site-header .identity-menu-trigger .avatar {
    --avatar-size: 42px !important;
  }

  main,
  footer {
    padding-right: var(--page-gutter);
    padding-left: var(--page-gutter);
  }

  .forum-brand-logo {
    height: 31px;
  }
}

@media (min-width: 721px) and (max-width: 960px) {
  :root {
    --page-gutter: clamp(14px, 2.2vw, 22px);
  }

  .site-header .forum-brand-logo {
    height: 27px;
  }

  .site-header .forum-brand-lockup {
    height: 35px;
  }

  .site-header .forum-brand-label {
    font-size: 6px;
  }

  .site-header .header-inner .header-actions {
    gap: 4px;
  }

  .site-header .notification-center,
  .site-header .header-identity,
  .site-header .notification-trigger,
  .site-header .identity-menu-trigger {
    width: 38px;
    height: 38px;
    min-width: 38px;
    flex-basis: 38px;
  }

  .site-header .identity-menu-trigger .avatar {
    --avatar-size: 38px !important;
  }
}

@media (hover: hover) and (pointer: fine) {
  .sidebar-toggle:hover::before,
  .mobile-search-toggle:hover::before,
  .notification-trigger:hover::before {
    background: #3abbff;
  }

  .sidebar-toggle:hover span {
    background: #fff;
  }

  .mobile-search-toggle:hover .mobile-search-icon,
  .notification-trigger:hover .notification-bell-icon {
    filter: brightness(0) invert(1);
  }
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: 210px minmax(250px, 1fr) auto;
    gap: 22px;
  }

  .header-inner .header-actions {
    gap: 6px;
  }

  .header-compose {
    display: none;
  }
}

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: 200px minmax(0, 1fr) 94px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 72px;
    --page-gutter: 15px;
  }

  .site-header,
  .forum-header {
    height: auto;
  }

  .header-inner {
    width: min(1500px, 100%);
    min-height: var(--header-height);
    height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 72px 0;
    gap: 0 11px;
    padding: 0 var(--page-gutter);
    padding-bottom: 0;
    transition: grid-template-rows 220ms ease, padding-bottom 220ms ease;
  }

  .forum-brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    justify-self: start;
  }

  .forum-brand-logo {
    width: auto;
    height: 30px;
  }

  .forum-brand-lockup {
    height: var(--mobile-header-control-size, 38px);
  }

  .forum-search {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 0;
    min-height: 0;
    visibility: hidden;
    overflow: hidden;
    border-width: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: height 220ms ease, opacity 160ms ease, transform 220ms ease, visibility 0s linear 220ms;
  }

  .forum-search kbd {
    display: none;
  }

  .sidebar-toggle,
  .mobile-search-toggle {
    display: grid;
  }

  body.mobile-search-open .header-inner {
    grid-template-rows: 72px 54px;
    padding-bottom: 10px;
  }

  body.mobile-notifications-open .header-inner {
    grid-template-rows: 72px var(--mobile-notification-height, 0px);
    padding-bottom: 10px;
  }

  body.mobile-search-open .forum-search {
    height: 44px;
    visibility: visible;
    border-width: 1px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: height 220ms ease, opacity 180ms ease 40ms, transform 220ms ease, visibility 0s;
  }

  .header-actions {
    --mobile-header-control-size: 38px;
    grid-column: 2;
    grid-row: 1;
    gap: 8px;
  }

  .header-actions > .mobile-search-toggle,
  .header-actions > .sidebar-toggle,
  .header-actions > .notification-center,
  .header-actions > .header-identity {
    width: var(--mobile-header-control-size);
    min-width: var(--mobile-header-control-size);
    height: var(--mobile-header-control-size);
    min-height: var(--mobile-header-control-size);
    flex: 0 0 var(--mobile-header-control-size);
    margin: 0;
  }

  .header-actions .notification-menu,
  .header-actions .identity-menu,
  .header-actions .notification-trigger,
  .header-actions .identity-menu-trigger {
    width: var(--mobile-header-control-size);
    height: var(--mobile-header-control-size);
    min-height: var(--mobile-header-control-size);
    padding: 0;
  }

  .header-actions .header-identity .avatar {
    --avatar-size: var(--mobile-header-control-size) !important;
  }

  .notification-menu > .notification-panel {
    display: none;
  }

  .mobile-notification-panel {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 0;
    min-width: 0;
    display: block;
    visibility: hidden;
    overflow: hidden;
    border-radius: 24px;
    opacity: 0;
    transform: translateY(-10px);
    transition: height 220ms ease, opacity 160ms ease, transform 220ms ease, visibility 0s linear 220ms;
  }

  .mobile-notification-panel.is-open {
    height: var(--mobile-notification-height, 0px);
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: height 220ms ease, opacity 180ms ease 40ms, transform 220ms ease, visibility 0s;
  }

  .mobile-notification-panel .notification-panel {
    position: relative;
    inset: auto;
    width: 100%;
    height: var(--mobile-notification-height, 0px);
    max-height: var(--mobile-notification-height, 0px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    visibility: visible;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .mobile-notification-panel .notification-list {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.sidebar-open .sidebar-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.sidebar-open .sidebar-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.sidebar-open .sidebar-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  body.sidebar-open .header-inner {
    grid-template-rows: 72px var(--mobile-menu-height, 0px);
    padding-bottom: 10px;
  }

  .mobile-menu-panel {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 0;
    min-width: 0;
    display: block;
    visibility: hidden;
    overflow: hidden;
    border-radius: 24px;
    opacity: 0;
    transform: translateY(-10px);
    transition: height 220ms ease, opacity 160ms ease, transform 220ms ease, visibility 0s linear 220ms;
  }

  .mobile-menu-panel.is-open {
    height: var(--mobile-menu-height, 0px);
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: height 220ms ease, opacity 180ms ease 40ms, transform 220ms ease, visibility 0s;
  }

  .mobile-menu-card {
    width: 100%;
    max-height: var(--mobile-menu-height, 0px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 24px;
    padding: 14px 12px 16px;
    background: var(--surface);
  }

  .mobile-quick-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .mobile-quick-button {
    width: 100%;
    min-width: 0;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 11px;
    padding: 0 4px;
    background: var(--surface-soft);
    color: var(--header-muted);
    font-size: 10.5px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
  }

  .mobile-quick-button:hover,
  .mobile-quick-button:focus-visible {
    outline: 0;
    background: #3abbff;
    color: #fff;
  }

  .mobile-menu-divider {
    height: 1px;
    margin: 12px 8px 14px;
    background: var(--control-neutral);
  }

  .mobile-menu-label {
    margin: 0 8px 8px;
    color: var(--quiet);
    font-family: "Poopin Quicksand Embedded", "SF Pro Text", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
  }

  .sidebar-nav {
    display: grid;
    gap: 2px;
  }

  .sidebar-link {
    position: relative;
    width: 100%;
    min-height: 38px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    border-radius: 11px;
    padding: 0 8px;
    color: var(--control-neutral-ink);
    font-size: 12.5px;
    font-weight: 670;
    text-align: left;
    text-decoration: none;
  }

  .sidebar-link.has-private-message-badge {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .sidebar-link:hover,
  .sidebar-link:focus-visible {
    outline: 0;
    background: var(--control-neutral-hover);
  }

  .sidebar-link .nav-icon {
    width: 20px;
    height: 20px;
    display: block;
    justify-self: center;
    object-fit: contain;
    opacity: .76;
  }

  .sidebar-link .nav-icon-hidden {
    position: relative;
    border: 2px solid currentColor;
    border-radius: 50%;
  }

  .sidebar-link .nav-icon-hidden::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transform: translate(-50%, -50%);
  }

  :root[data-theme="dark"] .sidebar-link .nav-icon {
    filter: invert(1) brightness(1.25);
  }

  .forum-search input {
    font-size: 16px;
  }

  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  h1 {
    font-size: clamp(48px, 15vw, 76px);
  }

  .community-note {
    max-width: 520px;
  }

  .destinations,
  .principles {
    grid-template-columns: 1fr;
  }

  .destination-card {
    min-height: 290px;
  }

  .principles {
    gap: 22px;
  }
}

@media (max-width: 460px) {
  .header-inner .header-actions {
    --mobile-header-control-size: 38px;
    width: auto;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    justify-content: flex-end;
    gap: 8px;
  }
}

@media (max-width: 430px) {
  main {
    padding-top: 44px;
  }

  h1 {
    font-size: 50px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .destination-card {
    min-height: 270px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
