/* Fonts are served from our own domain: no visitor data goes to a font service.
   Melodrama (headings) — Indian Type Foundry, ITF Free Font License.
   Newsreader (text) — Production Type, SIL Open Font License 1.1. */
@font-face {
  font-family: 'Melodrama';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/melodrama-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Melodrama';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/melodrama-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/newsreader-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/newsreader-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
  src: url('/fonts/newsreader-italic-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
  src: url('/fonts/newsreader-italic-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  /* Ink theme: deep blue-black ink instead of black, warm paper tones instead of white. */
  --bg: #0a1120;
  --layer: #0d1729;
  --surface: #111e35;
  --surface2: #16253f;
  --ink: #f2ead8;
  --muted: #a3acbe;
  --border: #1e2f4c;
  --accent: #f2ead8;
  --onaccent: #0a1120;
  --shade: #060b16;
  --danger: #e2a59b;
  --line: rgba(242, 234, 216, 0.16);
  --paper: #f3ead6;
  --navy-ink: #121d36;
  --overlay: rgba(6, 12, 24, 0.66);
  --texture: none;
  --edge: #5a6d94;
  --backdrop: url('/art/backdrop-right-dark.webp');
  --backdrop-left: url('/art/backdrop-left-dark.webp');
  --backdrop-strength: 0.42;
  --max: 660px;
  --serif: 'Melodrama', Didot, 'Bodoni MT', 'Times New Roman', serif;
  --text: 'Newsreader', Georgia, 'Times New Roman', serif;
}
[data-theme='light'] {
  color-scheme: light;
  /* Paper theme: light cream paper with a subtle fibre texture, dark-blue ink for text. */
  --bg: #f4ecda;
  --layer: #f8f2e3;
  --surface: #efe5cd;
  --surface2: #e8dcc0;
  --ink: #121d36;
  --muted: #5f6b84;
  --border: #dccfb1;
  --accent: #121d36;
  --onaccent: #f6efdf;
  --shade: #e9dec4;
  --line: rgba(18, 29, 54, 0.18);
  --overlay: rgba(18, 29, 54, 0.45);
  --edge: #857856;
  --backdrop: url('/art/backdrop-right-light.webp');
  --backdrop-left: url('/art/backdrop-left-light.webp');
  --backdrop-strength: 0.24;
  --texture: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.36  0 0 0 0 0.22  0 0 0 0.07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23p)'/></svg>");
}
* {
  box-sizing: border-box;
}
/* Mobile: no double-tap zoom, no automatic text inflation. */
html {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  min-width: 300px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke-width: 1.6;
}
button svg {
  pointer-events: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1160px;
  margin: auto;
  width: 100%;
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 14px 28px;
}
.brand {
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  line-height: 1;
}
.brand-name {
  font: 500 38px/0.95 var(--serif);
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.brand-tagline {
  display: block;
  margin-top: 6px;
  border-top: 1px solid var(--ink);
  padding-top: 7px;
  font: 500 14px/1.1 var(--serif);
  font-style: normal;
  letter-spacing: 0.06em;
}
.brand-tagline-plain {
  display: inline;
  white-space: nowrap;
}
.brand-tagline-letters {
  display: none;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}
.brand-tagline-glyph {
  display: inline-block;
  transform: rotate(180deg);
}
.brand-tagline-space {
  display: inline-block;
  width: 0.52em;
  flex: 0 0 0.52em;
}
.icon-button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink);
  padding: 10px;
  min-width: 43px;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
}
.icon-button:hover {
  background: var(--surface);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-right .small-avatar {
  font-family: var(--serif);
  font-size: 20px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.main-layout {
  max-width: 1160px;
  width: 100%;
  flex: 1;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 222px minmax(0, 660px) 1fr;
  gap: 34px;
  padding: 40px 28px 126px;
}
.left-rail {
  position: sticky;
  align-self: start;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.rail-heading {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 17px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 15px;
  transition: background 0.18s;
}
.nav-item:hover {
  background: var(--surface);
}
.nav-item.active {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--border);
}
.nav-item.active svg {
  stroke-width: 2;
}
.rail-copy {
  font: 400 20px/1.5 var(--text);
  color: var(--muted);
  padding-right: 20px;
}
.rail-copy span {
  display: block;
  margin-top: 18px;
  font: 600 11px var(--text);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.rail-footer {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.center-content {
  min-width: 0;
}
.right-rail {
  position: sticky;
  top: 140px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.right-rail .line {
  width: 30px;
  border-top: 1px solid var(--ink);
}
.right-rail p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.right-rail strong {
  color: var(--ink);
  font-weight: 500;
}
.page-heading {
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.page-title {
  font: 400 clamp(44px, 6vw, 70px) / 1 var(--serif);
  letter-spacing: -0.045em;
  margin: 11px 0 13px;
}
.page-intro {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.rule {
  width: 100%;
  height: 1px;
  background: var(--border);
}
.feed-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 30px 0 22px;
}
.segments {
  display: flex;
  gap: 22px;
}
.segment {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 0 0 9px;
  border-bottom: 1px solid transparent;
  font-size: 14px;
}
.segment.active {
  color: var(--ink);
  border-color: var(--ink);
}
.feed-info {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.work-card {
  margin-bottom: 27px;
  background: var(--layer);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.work-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 20px 16px;
  gap: 12px;
}
.author-line {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  font: 24px var(--serif);
}
.avatar.large {
  width: 74px;
  height: 74px;
  font-size: 43px;
}
/* A profile picture fills its circle. The member fitted it there themselves (the fitting dialog
   uploads a square), so nothing is cut here: `contain` shows the whole uploaded image. */
.avatar.has-image {
  position: relative;
  background: var(--paper);
  overflow: hidden;
}
.avatar.has-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Fitting a profile picture: a square stage, the picture moved and zoomed under a round window. */
.fit-stage {
  position: relative;
  width: min(300px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  background: var(--surface2);
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.fit-stage:active {
  cursor: grabbing;
}
.fit-stage img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  pointer-events: none;
}
.fit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 999px var(--overlay);
  pointer-events: none;
}
.fit-zoom {
  width: 100%;
  accent-color: var(--ink);
}
/* Name marks: lettering images sized like text. Drawn in dark ink; the dark theme inverts
   them to light ink so they read on both papers. */
.name-mark {
  height: 1em;
  width: auto;
  max-width: 100%;
  vertical-align: -0.12em;
  display: inline-block;
  filter: invert(0.93);
}
[data-theme='light'] .name-mark {
  filter: none;
}
/* Ink avatars in the dark theme: outlined circle, light ink — like the name mark. */
.avatar.has-image.ink {
  background: transparent;
  border-color: var(--muted);
}
.avatar.has-image.ink img {
  filter: invert(0.93);
}
[data-theme='light'] .avatar.has-image.ink {
  background: var(--paper);
  border-color: var(--border);
}
[data-theme='light'] .avatar.has-image.ink img {
  filter: none;
}
.page-title .name-mark {
  height: 0.95em;
}
.author-name .name-mark {
  height: 1.35em;
  vertical-align: middle;
}
.name-mark-preview {
  font-size: 48px;
  line-height: 1;
}
.avatar-edit {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.author-name {
  font-size: 14px;
  font-weight: 600;
  display: block;
}
.author-meta {
  font-size: 12px;
  color: var(--muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.subtle {
  color: var(--muted);
}
.tiny {
  font-size: 13px;
}
/* A sentence of explanation under a button: side-text size, readable on a phone. */
.side-note {
  font-size: 15px;
  line-height: 1.5;
}
.tag {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 5px 8px;
  border-radius: 2px;
  color: var(--muted);
  white-space: nowrap;
}
.art-image {
  width: 100%;
  aspect-ratio: 1.32;
  background: linear-gradient(140deg, #222, #555);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.art-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.art-image.fog {
  background:
    radial-gradient(ellipse at 42% 15%, #c0bcb7 0, #807e7a 20%, transparent 42%),
    linear-gradient(170deg, #1d2022 14%, #656767 53%, #1b1b1b 84%);
}
.art-image.fog:after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 150%;
  height: 38%;
  background: linear-gradient(175deg, transparent 10%, #0d0e0e 80%);
  filter: blur(15px);
}
.art-image.sculpture {
  background: radial-gradient(ellipse at 55% 40%, #bbb9b4 0, #7f7f79 22%, #282828 52%, #0d0d0d 78%);
}
.art-image.sculpture:before {
  content: '';
  width: 36%;
  aspect-ratio: 1;
  background: #999994;
  border-radius: 50% 50% 44% 44%;
  transform: translate(14%, -8%);
  box-shadow: -80px 130px 0 17px #353535;
  filter: blur(7px);
}
.art-image .demo-marker {
  position: absolute;
  right: 13px;
  bottom: 10px;
  font: 500 9px var(--text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ddd;
  z-index: 1;
}
.work-content {
  padding: 20px 21px 8px;
}
.work-title {
  font: 400 30px/1.1 var(--serif);
  letter-spacing: -0.025em;
  margin-bottom: 9px;
}
/* In lists a very long title is shortened to three lines; the work's own page shows all of it. */
.work-card .work-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.work-full .work-card .work-title {
  display: block;
  overflow: visible;
}
.challenge.waiting {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
.guest-intro {
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.guest-intro p {
  margin: 0;
  font: 400 19px/1.5 var(--text);
  color: var(--ink);
  max-width: 34em;
}
.guest-intro .button-row {
  align-items: center;
  gap: 18px;
}
.work-body {
  font: 18px/1.8 var(--text);
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.work-body.poem {
  font-size: 20px;
  line-height: 1.7;
  padding: 22px 8px 26px;
}
.work-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}
.work-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 20px 17px;
}
.actions-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.action {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 13px;
  padding: 8px 0;
}
.action:hover,
.action.active {
  color: var(--ink);
}
.action.active svg {
  stroke-width: 2.6;
}
.action.icon-only {
  padding: 7px;
}
.resonate {
  position: relative;
  font: 400 18px var(--text);
  color: var(--ink);
  gap: 9px;
  padding: 10px 4px 10px 0;
}
.resonate svg {
  width: 22px;
  height: 22px;
}
/* The echo: two rings spread from the waves, the waves tremble, the word breathes once. */
.resonate.resonating::before,
.resonate.resonating::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: resonance-ring 900ms cubic-bezier(0.2, 0.6, 0.3, 1) forwards;
}
.resonate.resonating::after {
  animation-delay: 220ms;
}
.resonate.resonating svg {
  animation: resonance-waves 700ms ease-out;
}
.resonate.resonating .resonate-label {
  display: inline-block;
  animation: resonance-word 700ms ease-out;
}
@keyframes resonance-ring {
  0% {
    transform: scale(0.6);
    opacity: 0.7;
  }
  100% {
    transform: scale(3.4);
    opacity: 0;
  }
}
@keyframes resonance-waves {
  0%,
  100% {
    transform: none;
  }
  20% {
    transform: scaleY(1.5) translateX(-1px);
  }
  45% {
    transform: scaleY(0.75) translateX(1px);
  }
  70% {
    transform: scaleY(1.2);
  }
}
@keyframes resonance-word {
  0%,
  100% {
    transform: none;
  }
  35% {
    transform: scale(1.07);
  }
}
@media (prefers-reduced-motion: reduce) {
  .resonate.resonating::before,
  .resonate.resonating::after,
  .resonate.resonating svg,
  .resonate.resonating .resonate-label {
    animation: none;
  }
}
.empty-state {
  border: 1px solid var(--border);
  padding: 45px 26px;
  text-align: center;
  background: var(--layer);
}
.empty-state h3 {
  font: 400 34px var(--serif);
  margin-bottom: 12px;
}
.empty-state p {
  color: var(--muted);
  font-size: 14px;
  max-width: 340px;
  margin: auto auto 22px;
}
.button {
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--accent);
  color: var(--onaccent);
  font: 600 13px var(--text);
  letter-spacing: 0.06em;
  min-height: 44px;
}
.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--edge);
}
.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}
.button:hover {
  filter: brightness(0.89);
}
.button.full {
  width: 100%;
}
.button.small {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 12px;
}
.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.bottom-nav {
  display: none;
}
.profile-cover {
  border-bottom: 1px solid var(--border);
  padding-bottom: 30px;
  margin-bottom: 26px;
}
.profile-identity {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
}
.profile-name {
  font: 400 40px/1.05 var(--serif);
  letter-spacing: -0.035em;
}
.profile-motto {
  font: italic 17px/1.6 var(--text);
  color: var(--muted);
  margin-top: 7px;
}
.profile-actions {
  margin-top: 23px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.panel {
  border: 1px solid var(--border);
  background: var(--layer);
  padding: 21px;
  margin-top: 22px;
}
.panel-title {
  font: 400 26px var(--serif);
  margin: 0 0 15px;
}
.panel p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 20px;
}
.grid-work,
.grid-empty {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  padding: 12px;
  background: var(--layer);
  text-align: left;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
/* Whole image inside the square tile — never cropped. */
.grid-work.has-image {
  padding: 6px;
}
.grid-work img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.grid-text {
  font: 400 15px/1.4 var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}
.grid-empty {
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font: 500 14px var(--text);
  border-style: dashed;
}
.grid-empty svg {
  width: 22px;
  height: 22px;
}
.grid-work .grid-kind {
  position: absolute;
  top: 14px;
  left: 17px;
  font: 600 11px var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.grid-work .grid-count {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  background: var(--bg);
  color: var(--ink);
  font: 500 13px var(--text);
}
.grid-work .grid-count svg {
  width: 15px;
  height: 15px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}
.field-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.field-control {
  background: var(--layer);
  border: 1px solid var(--edge);
  border-radius: 2px;
  padding: 13px 14px;
  color: var(--ink);
  width: 100%;
}
.field-control:focus {
  border-color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
textarea.field-control {
  min-height: 180px;
  resize: vertical;
  font: 18px/1.7 var(--text);
}
.create-card {
  border: 1px solid var(--border);
  padding: 26px;
  background: var(--layer);
}
.upload-zone {
  border: 1px dashed var(--muted);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  padding: 22px;
  cursor: pointer;
  color: var(--muted);
}
.upload-zone svg {
  width: 27px;
  height: 27px;
}
.upload-zone input {
  display: none;
}
.upload-zone img {
  max-height: 290px;
  object-fit: contain;
}
.form-help {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}
.form-actions {
  display: flex;
  gap: 11px;
  justify-content: flex-end;
  margin-top: 20px;
}
.notice {
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 25px;
}
.notice b {
  color: var(--ink);
}
.toast {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  z-index: 70;
  box-shadow: 0 8px 30px rgba(6, 12, 24, 0.25);
  padding: 12px 20px;
  min-width: 190px;
  text-align: center;
  font-size: 13px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal {
  width: min(100%, 440px);
  max-height: 92dvh;
  overflow: auto;
  background: var(--layer);
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 29px;
  position: relative;
}
.modal h2 {
  font: 400 37px/1.1 var(--serif);
  margin: 12px 0 15px;
}
.modal-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 23px;
}
.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
}
.modal-links {
  margin-top: 17px;
  font-size: 13px;
  color: var(--muted);
}
.text-link {
  background: transparent;
  border: 0;
  color: var(--ink);
  text-decoration: underline;
  padding: 0;
  cursor: pointer;
}
.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}
.work-detail {
  border: 1px solid var(--border);
  background: var(--layer);
  padding: 30px;
}
.work-detail .work-title {
  font-size: clamp(40px, 6vw, 68px);
}
.work-detail .work-body {
  font-size: 20px;
}
.disclosure {
  font-size: 12px;
  color: var(--muted);
  margin-top: 17px;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 20px 0;
}
.checkbox-row input {
  margin-top: 3px;
}
.reader-banner {
  font: 400 17px var(--text);
  color: var(--muted);
  padding: 20px 0;
}
.loading {
  max-width: 660px;
  margin: 96px auto 40px;
  padding: 0 16px;
  color: var(--muted);
  text-align: center;
}
.mobile-only {
  display: none;
}
@media (max-width: 1060px) {
  .main-layout {
    grid-template-columns: 170px minmax(0, 660px);
    max-width: 930px;
    gap: 28px;
  }
  .right-rail {
    display: none;
  }
  .rail-copy {
    font-size: 18px;
  }
}
@media (max-width: 720px) {
  .header-inner {
    padding: 10px 17px;
    min-height: 76px;
  }
  .brand-name {
    font-size: 31px;
  }
  .brand-tagline {
    font-size: 13px;
    margin-top: 5px;
    padding-top: 5px;
  }
  .site-header .header-right .small-avatar {
    display: none;
  }
  .main-layout {
    display: block;
    padding: 26px 15px calc(95px + env(safe-area-inset-bottom));
    margin: 0 auto;
    width: 100%;
    max-width: 660px;
  }
  .left-rail,
  .right-rail {
    display: none;
  }
  .page-heading {
    margin-bottom: 23px;
  }
  .page-title {
    font-size: 49px;
  }
  .feed-controls {
    margin: 24px 0 18px;
  }
  .feed-info {
    font-size: 9px;
  }
  .work-card {
    margin-bottom: 17px;
  }
  .work-head {
    padding: 15px 16px;
  }
  .work-content {
    padding: 15px 17px 5px;
  }
  .work-title {
    font-size: 29px;
  }
  .work-foot {
    padding: 10px 16px 12px;
  }
  .work-body.poem {
    font-size: 19px;
  }
  .bottom-nav {
    display: grid;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 30;
    padding: 9px 13px calc(9px + env(safe-area-inset-bottom));
  }
  .tab {
    background: transparent;
    border: 0;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 0 3px;
    font-size: 12px;
    min-height: 53px;
  }
  .tab svg {
    width: 23px;
    height: 23px;
  }
  .tab.active {
    color: var(--ink);
  }
  .tab.active:after {
    content: '';
    height: 1px;
    width: 16px;
    background: var(--ink);
    position: absolute;
    bottom: calc(7px + env(safe-area-inset-bottom));
  }
  .profile-name {
    font-size: 34px;
  }
  .mobile-only {
    display: block;
  }
  .create-card {
    padding: 18px;
  }
  .modal {
    padding: 23px;
  }
  .toast {
    bottom: 94px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 360px) {
  .header-right .tag {
    display: none;
  }
}

/* Utility classes (inline style attributes are blocked by the CSP). */
.u-mt-6 {
  margin-top: 6px;
}
.u-mt-8 {
  margin-top: 8px;
}
.u-mt-12 {
  margin-top: 12px;
}
.u-mt-16 {
  margin-top: 16px;
}
.u-mt-22 {
  margin-top: 22px;
}
.u-mb-12 {
  margin-bottom: 12px;
}
.u-mb-17 {
  margin-bottom: 17px;
}
.u-mb-20 {
  margin-bottom: 20px;
}
.u-mb-25 {
  margin-bottom: 25px;
}
.u-mb-28 {
  margin-bottom: 28px;
}
.u-my-22 {
  margin-top: 22px;
  margin-bottom: 22px;
}
.u-my-24 {
  margin-top: 24px;
  margin-bottom: 24px;
}
.u-my-28 {
  margin-top: 28px;
  margin-bottom: 28px;
}
.u-ink {
  color: var(--ink);
}
.u-plain {
  text-decoration: none;
}
.u-left {
  text-align: left;
}
.u-minw-0 {
  min-width: 0;
}
.u-minh-100 {
  min-height: 100px;
}
.u-center {
  justify-content: center;
}
.u-prewrap {
  white-space: pre-wrap;
}
.section-title {
  font: 400 34px var(--serif);
  margin: 7px 0 12px;
}

/* Paper texture on the page background (light theme only; --texture is none in dark). */
body {
  background-image: var(--texture);
}

/* Quotes and short texts are set like a printed plate inside the card. */
.quote-plate {
  margin: 0 0 18px;
  padding: clamp(28px, 7vw, 56px) clamp(22px, 6vw, 48px);
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  border: 1px solid var(--line);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.36  0 0 0 0 0.22  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23p)'/></svg>");
}
.quote-plate.plate-paper {
  background-color: var(--paper);
  color: var(--navy-ink);
}
.quote-plate.plate-ink {
  background-color: var(--navy-ink);
  color: var(--paper);
}
.quote-plate blockquote {
  margin: 0;
  /* Reading text: Newsreader. The display face (Melodrama) is beautiful in a headline but its
     hairlines are hard to read in a paragraph. */
  font: 400 clamp(20px, 5vw, 29px) / 1.42 var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* A line or two does not need a full page of paper around it. */
.quote-plate.plate-short {
  aspect-ratio: 16 / 9;
}
.quote-plate.plate-long blockquote {
  font-size: clamp(17px, 4.1vw, 21px);
  line-height: 1.58;
}
.quote-plate cite {
  font: 500 13px / 1.4 var(--text);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-style: normal;
  opacity: 0.8;
}
.work-original {
  margin-top: 10px;
  color: var(--muted);
  font-style: italic;
  white-space: pre-wrap;
}

/* Tag chips (interests in the profile, tags on a work). */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border: 1px solid var(--edge);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 13px;
  font: 500 14px / 1.2 var(--text);
  cursor: pointer;
}
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--onaccent);
}
.chip.add {
  min-width: 38px;
  font-size: 17px;
  padding: 4px 12px;
}
.chip.pending {
  border-style: dashed;
  color: var(--muted);
  cursor: default;
}
.chip.suggest {
  border-style: dashed;
}
.interests-view {
  margin-top: 22px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: nowrap;
}
.interests-line {
  margin: 0;
  color: var(--ink);
  font: 400 16px/1.6 var(--text);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.interests-label {
  font: 600 11px var(--text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
  margin-right: 6px;
}
.interests-view .small-link {
  flex: none;
}
.small-link {
  font-size: 13px;
}
/* The open picker is a plain list under a search line — no boxes inside boxes. */
.picker-panel {
  margin-top: 10px;
}
.picker-panel .field-control {
  border: 0;
  border-bottom: 1px solid var(--edge);
  border-radius: 0;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}
.picker-panel .field-control:focus {
  outline: none;
  border-bottom: 2px solid var(--ink);
}
.picker-panel [data-picker-results] {
  gap: 2px 18px;
}
.picker-panel [data-picker-results] .chip {
  border-color: transparent;
  border-radius: 0;
  padding: 7px 0;
  font-size: 16px;
}
.picker-panel [data-picker-results] .chip::before {
  content: '+ ';
  color: var(--muted);
}
.picker-panel [data-picker-results] .chip:hover {
  text-decoration: underline;
}
.picker-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
/* Account menu in the header */
.account {
  position: relative;
}
.account-button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
}
.avatar.small {
  width: 34px;
  height: 34px;
  font-size: 18px;
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 190px;
  background: var(--layer);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px var(--shade);
  display: flex;
  flex-direction: column;
  z-index: 50;
  padding: 6px 0;
}
.account-menu button {
  background: none;
  border: 0;
  color: var(--ink);
  text-align: left;
  padding: 11px 18px;
  font: 500 15px var(--text);
  cursor: pointer;
}
.account-menu button:hover,
.account-menu button:focus-visible {
  background: var(--surface);
}
.panel.compact {
  padding: 16px 18px;
}
.panel-title.small {
  font-size: 20px;
  margin-bottom: 10px;
}

/* Artworks are never cropped: natural proportions, whole image always visible.
   Very tall works are scaled down to fit the screen height instead of being cut. */
.art-image.art-photo {
  aspect-ratio: auto;
  background: var(--surface);
  overflow: visible;
}
.art-image.art-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
}

/* Resonance count: shown only to the author, on their own work. */
.private-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font: 500 13px var(--text);
  margin-right: 14px;
}
.private-count svg {
  width: 16px;
  height: 16px;
}

/* iOS Safari zooms into any field with text under 16px and does not zoom back. */
@media (max-width: 760px) {
  input,
  textarea,
  select,
  .field-control {
    font-size: 17px;
  }
}

/* Moderation queue */
.mod-excerpt {
  white-space: pre-line;
  font: 400 15px/1.5 var(--serif);
  color: var(--ink);
  margin-top: 10px;
}
.mod-details {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.legal-links {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.legal-links a {
  color: inherit;
}

.danger-zone .text-link {
  color: var(--danger);
}

/* A quiet closing sentence on the profile: serif lead-in, then plain text. */
.quiet-note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.quiet-lead {
  font: 400 17px var(--serif);
  color: var(--ink);
  margin-right: 4px;
}

/* Veil for works with an adult-only content label (decided per viewer by the server).
   The whole image stays visible in its natural proportions, only blurred: never cropped. */
.art-image img.veiled-img,
.grid-work img.veiled-thumb {
  filter: blur(28px) saturate(0.6);
  transform: scale(1.04);
}
.veil-note {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(86%, 340px);
  padding: 16px 18px;
  border: 1px solid var(--edge);
  background: var(--bg);
  color: var(--ink);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.veil-note p {
  margin: 0;
  font: 400 15px/1.5 var(--text);
}
.age-choice {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
}
.age-choice legend {
  padding: 0;
  margin-bottom: 6px;
}

/* Membership explained in three plain steps. */
.steps {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.step {
  border: 1px solid var(--border);
  background: var(--layer);
  padding: 16px 18px;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.step .step-label {
  color: var(--ink);
  font: 600 14px var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.step.highlight {
  border-color: var(--accent);
}

/* Phones: works on a profile are two per row, large enough to read. */
@media (max-width: 720px) {
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* Sculpture behind the top of the page. On the right the Laocoön group, and on wide screens
   David on the left, looking into the page. Each is drawn twice with the same size and anchor,
   once on the page (scrolls away) and once inside the sticky header, so the two meet seamlessly
   and the header keeps its slice. Decoration only: both fade into the page. */
.app-shell {
  position: relative;
  isolation: isolate;
  --backdrop-size: min(100vw, 520px);
  --backdrop-left-size: 0px;
}
.app-shell::before,
.site-header::before,
.app-shell::after,
.site-header::after {
  content: '';
  position: absolute;
  top: 0;
  z-index: -1;
  opacity: var(--backdrop-strength);
  pointer-events: none;
}
.app-shell::before,
.site-header::before {
  right: 0;
  width: min(100%, var(--backdrop-size));
  background: var(--backdrop) right top / var(--backdrop-size) auto no-repeat;
}
.app-shell::after,
.site-header::after {
  left: 0;
  width: min(100%, var(--backdrop-left-size));
  background: var(--backdrop-left) left top / var(--backdrop-left-size) auto no-repeat;
}
/* The sculptures stay where they are while the page scrolls over them, so the slice in the
   header always belongs to the figure below it (scrolling used to cut them apart). */
.app-shell::before,
.app-shell::after {
  position: fixed;
}
.app-shell::before {
  height: calc(var(--backdrop-size) * 1.054);
}
.app-shell::after {
  height: calc(var(--backdrop-left-size) * 1.362);
}
.site-header::before,
.site-header::after {
  height: 100%;
}
.site-header {
  background: var(--bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Direct messages: a plain list and a plain thread. */
/* End of the Canvas list: reaching it loads the next page. */
.feed-more {
  min-height: 40px;
}
.u-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.dm-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}
.account-button {
  position: relative;
}
.account-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  margin: 0;
  box-shadow: 0 0 0 2px var(--bg);
}
.dm-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.dm-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 2px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.dm-row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dm-row-name {
  font: 600 16px/1.3 var(--text);
}
.dm-row-last {
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dm-row-time {
  flex: none;
  color: var(--muted);
  font-size: 13px;
}
.dm-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.dm-head .author-meta {
  display: block;
}
.dm-block {
  margin-left: auto;
  flex: none;
}
.dm-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 0;
}
.dm-msg {
  max-width: min(84%, 34em);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dm-msg p {
  margin: 0;
  padding: 11px 15px;
  border: 1px solid var(--border);
  background: var(--layer);
  font: 400 17px/1.5 var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.dm-msg.mine {
  align-self: flex-end;
  align-items: flex-end;
}
.dm-msg.mine p {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--onaccent);
}
.dm-meta {
  color: var(--muted);
  font-size: 12px;
}
.dm-meta .text-link {
  font-size: 12px;
  color: var(--muted);
}
.dm-empty {
  text-align: center;
  padding: 30px 0;
}
.dm-composer {
  position: sticky;
  bottom: 76px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding: 12px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.dm-composer textarea {
  flex: 1;
  min-height: 52px;
  max-height: 180px;
  resize: vertical;
}
.dm-closed {
  margin-top: 8px;
}
@media (min-width: 721px) {
  .dm-composer {
    bottom: 0;
  }
}

/* Wide screens: the page is wider, the side columns are readable, and the statue grows with the
   window so it stands behind the right column instead of shrinking into a far corner. */
@media (min-width: 1061px) {
  .app-shell {
    --backdrop-size: clamp(520px, 36vw, 1000px);
    --backdrop-left-size: clamp(380px, 26vw, 760px);
  }
  .main-layout {
    max-width: 1340px;
    grid-template-columns: 236px minmax(0, 680px) minmax(250px, 1fr);
    gap: 44px;
  }
  .header-inner {
    max-width: 1340px;
  }
  .rail-heading {
    font-size: 12px;
  }
  .nav-item {
    font-size: 17px;
  }
  .rail-footer,
  .right-rail p,
  .legal-links {
    font-size: 15px;
    line-height: 1.75;
  }
}

/* Very wide monitors: the whole page is enlarged, otherwise it is a small island of small text. */
@media (min-width: 2200px) {
  .app-shell {
    zoom: 1.2;
  }
}
@media (min-width: 3000px) {
  .app-shell {
    zoom: 1.45;
  }
}

/* Voluntary support (donations) */
.support-link {
  display: flex;
  gap: 20px;
  align-items: stretch;
  margin-top: 20px;
}
.support-qr {
  width: 168px;
  height: 168px;
  flex: none;
  border: 1px solid var(--line);
}
/* Button level with the top of the QR code, the note right under the button. */
.support-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
}
.support-actions .button {
  align-self: stretch;
  text-align: center;
}
@media (max-width: 520px) {
  .support-qr {
    display: none; /* on a phone the button is the way; a QR is for scanning from a screen */
  }
}

/* Support link in the left rail (desktop); on phones it lives in the top-right menu. */
.rail-support {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* A sentence that must not be missed: small capitals, not a louder colour. */
.u-caps {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--ink);
}
