/* ============================================
   SPIRE LIGHT — BLOG
   Reader index, post template, writer editor
   ============================================ */

/* ── Blog index: hero + filter ──────────────────────────────── */

.blog-hero {
  padding-top: calc(var(--header-height) + var(--space-9));
  padding-bottom: var(--space-7);
}

.blog-filter {
  display: flex;
  gap: var(--space-2);
  margin: var(--space-6) 0 var(--space-5) 0;
  flex-wrap: wrap;
}

.blog-filter button {
  background: transparent;
  border: 1px solid var(--border-light);
  padding: 0.5rem 1.25rem;
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.blog-filter button:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.blog-filter button.active {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent-bright);
  box-shadow: var(--shadow-glow-sm);
}

/* ── Blog index: post cards ─────────────────────────────────── */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: all var(--dur-normal) var(--ease-out);
  overflow: hidden;
}

.post-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-lg);
}

.post-card__cover {
  aspect-ratio: 16 / 9;
  background: var(--bg-ambient-alt);
  overflow: hidden;
  position: relative;
}

.post-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card__cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--text-muted);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.post-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.post-card__category {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--accent-bright);
}

.post-card__title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--text-heading);
  line-height: var(--lh-heading);
  margin: 0;
}

.post-card__excerpt {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: var(--lh-body);
  margin: 0;
}

.post-card__meta {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.post-card__meta img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
}

.post-card__meta .sep {
  color: var(--text-dim);
}

/* ── Post template (individual post page) ────────────────── */

.post-article {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--header-height) + var(--space-9)) var(--space-5) var(--space-11);
}

.post-article .post-kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: var(--space-3);
  display: inline-block;
}

.post-article h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text-heading);
  margin: 0 0 var(--space-4) 0;
}

.post-article .post-subtitle {
  font-size: var(--fs-h4);
  line-height: var(--lh-body);
  color: var(--text-muted);
  margin: 0 0 var(--space-6) 0;
}

.post-article .post-byline {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  margin-bottom: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.post-article .post-byline img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  object-fit: cover;
}

.post-article .post-byline .post-author {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.post-article .post-byline .post-author strong {
  font-size: var(--fs-small);
  color: var(--text-heading);
  font-weight: var(--fw-semibold);
}

.post-article .post-byline .post-author span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.post-article .post-cover {
  margin: 0 0 var(--space-7) 0;
}

.post-article .post-cover img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border-subtle);
}

/* Template cover shown when a post has no cover image */
.post-article .post-cover-template,
.post-cover-template {
  aspect-ratio: 16 / 9;
  margin: 0 0 var(--space-7) 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-subtle), var(--bg-ambient-alt));
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-cover-template::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 182, 255, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 182, 255, 0.10) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}

.post-cover-template::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 65%;
  height: 65%;
  background: radial-gradient(circle at center, var(--accent-glow), transparent 70%);
  filter: blur(40px);
  opacity: 0.6;
  pointer-events: none;
}

.post-cover-template__mark {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--accent-bright);
  font-weight: var(--fw-semibold);
  padding: var(--space-3) var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
}

.post-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-body);
}

.post-content > * + * {
  margin-top: var(--space-4);
}

.post-content h2 {
  font-size: var(--fs-h2);
  color: var(--text-heading);
  line-height: var(--lh-heading);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.post-content h3 {
  font-size: var(--fs-h3);
  color: var(--text-heading);
  line-height: var(--lh-heading);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.post-content h4 {
  font-size: var(--fs-h4);
  color: var(--text-heading);
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
}

.post-content a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.post-content a:hover {
  color: var(--accent);
}

.post-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border-subtle);
  margin: var(--space-5) 0;
  display: block;
}

.post-content figure {
  margin: var(--space-5) 0;
}

.post-content figcaption {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: var(--space-2);
  font-style: italic;
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--space-3) var(--space-5);
  margin: var(--space-5) 0;
  color: var(--text-heading);
  font-size: 1.125rem;
  line-height: 1.6;
  background: var(--bg-section);
}

.post-content ul,
.post-content ol {
  padding-left: var(--space-6);
}

.post-content li + li {
  margin-top: var(--space-2);
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
  padding: 0.125em 0.375em;
}

.post-content pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: var(--bg-deepest);
  border: 1px solid var(--border-subtle);
  padding: var(--space-4);
  overflow-x: auto;
  line-height: 1.6;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: var(--space-7) 0;
}

/* ── Editor layout ──────────────────────────────────────────── */

.editor-shell {
  padding: calc(var(--header-height) + var(--space-5)) var(--space-5) var(--space-8);
  max-width: var(--container-wide);
  margin: 0 auto;
}

.editor-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.editor-bar__left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.editor-bar h1 {
  font-size: var(--fs-h3);
  margin: 0;
}

.editor-bar__status {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.editor-bar__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}

.editor-pane {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: var(--space-5);
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
  max-height: calc(100vh - var(--header-height) - var(--space-5));
  overflow-y: auto;
}

.editor-pane h2 {
  font-size: var(--fs-h4);
  margin: 0 0 var(--space-4) 0;
}

.editor-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.editor-fields textarea.content-html {
  min-height: 460px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  line-height: 1.6;
}

.editor-image-uploader {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--bg-section);
  border: 1px dashed var(--border-light);
}

.editor-image-uploader .image-url-box {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.editor-image-uploader .image-url-box input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
}

/* Quick-start: draft whole post from a document */
.quick-start {
  margin-bottom: var(--space-6);
  padding: var(--space-5);
  background: var(--bg-ambient-alt);
  border: 1px solid var(--border-accent);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.quick-start__head h2 {
  margin: 0 0 var(--space-2) 0;
  font-size: var(--fs-h4);
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.quick-start__head h2::before {
  content: "⚡";
  color: var(--accent-bright);
}

.quick-start__head p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text-body);
  line-height: var(--lh-body);
}

.quick-start__controls {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

.quick-start__controls input[type="file"] {
  flex: 1;
  min-width: 200px;
  padding: 0.5rem;
  background: var(--bg-deep);
  border: 1px dashed var(--border-light);
  font-family: inherit;
  font-size: var(--fs-small);
}

/* Gallery list for images in post */
.gallery-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.gallery-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.gallery-item__thumb {
  width: 72px;
  height: 72px;
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.gallery-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.gallery-item__meta input.gallery-caption {
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: var(--fs-small);
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  color: var(--text-heading);
}

.gallery-item__url {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-remove.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: var(--fs-xs);
}

/* Quick-start wizard (new-post guided flow) */
.wizard {
  margin-bottom: var(--space-6);
  padding: var(--space-5);
  background: var(--bg-ambient-alt);
  border: 1px solid var(--border-accent);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.wizard__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

.wizard__steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.wizard__steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.7rem;
}

.wizard__steps li.is-active {
  color: var(--text-heading);
  border-color: var(--accent-bright);
}

.wizard__steps li.is-active span {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: var(--bg-deep);
}

.wizard__steps li.is-done {
  color: var(--text-body);
  border-color: var(--border-light);
}

.wizard__steps li.is-done span {
  background: var(--border-light);
  border-color: var(--border-light);
  color: var(--bg-deep);
}

.wizard__panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.wizard__panel input[type="file"] {
  padding: 0.5rem;
  background: var(--bg-deep);
  border: 1px dashed var(--border-light);
  font-family: inherit;
  font-size: var(--fs-small);
}

.wizard__nav {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: var(--space-2);
}

.wiz-cover-preview {
  max-width: 280px;
  aspect-ratio: 16 / 9;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.wiz-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wizard__panel--done {
  align-items: stretch;
}

.editor-pane.preview-pane {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.preview-pane__head {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-section);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-pane__head h2 {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.preview-pane iframe {
  width: 100%;
  height: calc(100vh - var(--header-height) - 120px);
  border: none;
  background: var(--bg-deep);
}

@media (max-width: 1024px) {
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .editor-pane {
    position: static;
    max-height: none;
  }

  .preview-pane iframe {
    height: 600px;
  }
}

/* ── Dashboard ──────────────────────────────────────────────── */

.dash-shell {
  padding: calc(var(--header-height) + var(--space-7)) var(--space-5) var(--space-10);
  max-width: 1100px;
  margin: 0 auto;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.dash-header h1 {
  margin: 0;
}

.dash-posts {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.dash-post-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--dur-fast) var(--ease-out);
}

.dash-post-row:hover {
  border-color: var(--border-accent);
}

.dash-post-row__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.dash-post-row__main strong {
  color: var(--text-heading);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-post-row__main span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.dash-post-row__category {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.dash-post-row__actions {
  display: flex;
  gap: var(--space-2);
}

@media (max-width: 700px) {
  .dash-post-row {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

/* ── Writer profile (public /writer/:handle page) ────────────── */

.writer-hero {
  padding-top: calc(var(--header-height) + var(--space-9));
  padding-bottom: var(--space-7);
  background: var(--bg-ambient-alt);
  border-bottom: 1px solid var(--border-subtle);
}

.writer-hero__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-7);
  align-items: start;
}

.writer-hero__photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
  background: var(--bg-card);
}

.writer-hero__placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-subtle), rgba(20, 184, 166, 0.1));
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: var(--fw-bold);
  color: var(--accent);
  letter-spacing: var(--ls-tight);
}

.writer-hero .label {
  margin-bottom: var(--space-3);
  display: inline-block;
}

.writer-hero h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text-heading);
  margin: 0 0 var(--space-3) 0;
}

.writer-hero .writer-tagline {
  font-size: var(--fs-h4);
  color: var(--accent-bright);
  margin: 0 0 var(--space-5) 0;
  font-weight: var(--fw-medium);
}

.writer-hero .writer-bio {
  font-size: 1.0625rem;
  line-height: var(--lh-body);
  color: var(--text-body);
  margin: 0 0 var(--space-5) 0;
  white-space: pre-wrap;
}

.writer-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.writer-hero__meta a {
  color: var(--accent-bright);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.writer-hero__meta a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.writer-hero__meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.writer-hero__meta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.writer-posts-section {
  padding: var(--space-9) 0;
}

.writer-posts-section .container {
  max-width: 1100px;
}

.writer-posts-section h2 {
  margin: 0 0 var(--space-6) 0;
}

@media (max-width: 700px) {
  .writer-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .writer-hero__meta {
    justify-content: center;
  }
}

/* ── Post signature + about-the-author block ─────────────────── */

.post-signature {
  max-width: 760px;
  margin: var(--space-7) auto 0;
  padding: var(--space-5);
  border-top: 1px solid var(--border-subtle);
  font-style: italic;
  color: var(--text-muted);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  white-space: pre-wrap;
}

.post-author-card {
  max-width: 760px;
  margin: var(--space-6) auto 0;
  padding: var(--space-6);
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--space-5);
  align-items: start;
}

.post-author-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.post-author-card__content .post-author-card__kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.post-author-card__content h3 {
  margin: 0 0 var(--space-2) 0;
  font-size: var(--fs-h4);
  color: var(--text-heading);
}

.post-author-card__content h3 a {
  color: inherit;
  text-decoration: none;
}

.post-author-card__content h3 a:hover {
  color: var(--accent-bright);
}

.post-author-card__content p {
  margin: 0 0 var(--space-3) 0;
  font-size: var(--fs-small);
  color: var(--text-body);
  line-height: var(--lh-body);
}

.post-author-card__content .post-author-card__more {
  font-size: var(--fs-small);
  color: var(--accent-bright);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}

.post-author-card__content .post-author-card__more:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .post-author-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .post-author-card img {
    margin: 0 auto;
  }
}

/* Byline author link */
.post-article .post-byline .post-author strong a {
  color: inherit;
  text-decoration: none;
}

.post-article .post-byline .post-author strong a:hover {
  color: var(--accent-bright);
}

/* ── Profile editor page ─────────────────────────────────────── */

.profile-shell {
  padding: calc(var(--header-height) + var(--space-7)) var(--space-5) var(--space-10);
  max-width: 820px;
  margin: 0 auto;
}

.profile-shell h1 {
  margin: var(--space-2) 0 var(--space-3) 0;
}

.handle-field {
  display: flex;
  align-items: stretch;
}

.handle-field .handle-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--text-muted);
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
  border-right: none;
  white-space: nowrap;
}

.handle-field input {
  flex: 1;
  font-family: var(--font-mono) !important;
}

.handle-availability {
  margin-top: var(--space-2);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
}

.handle-availability.checking { color: var(--text-muted); }
.handle-availability.available { color: #059669; }
.handle-availability.taken { color: #dc2626; }
.handle-availability.invalid { color: #dc2626; }

.profile-photo-row {
  display: flex;
  gap: var(--space-5);
  align-items: center;
}

.profile-photo-row img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
}

.profile-photo-row .photo-controls {
  flex: 1;
}

.profile-current-url {
  font-size: var(--fs-xs);
  color: var(--accent-bright);
  margin-top: var(--space-3);
  font-family: var(--font-mono);
}

.profile-current-url a {
  color: inherit;
}
