/* Gotta CMS — reader-facing theme.
   Modelled on medium.com: stark white paper, near-black ink, a single green
   accent, a serif headline/body face over spare sans-serif UI chrome. */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f7f7f5;
  --footer: #ffffff;

  --ink: #242424;
  --ink-2: #292929;
  --muted: #6b6b6b;
  --faint: #9e9e9e;
  --stone: #757575;

  --accent: #1a8917;
  --accent-hover: #156d12;
  --black: #242424;
  --black-hover: #000000;
  --tag-bg: #f2f2f2;

  --line: rgba(0, 0, 0, 0.13);
  --line-2: rgba(0, 0, 0, 0.08);
  --line-3: rgba(0, 0, 0, 0.1);
  --selection: #b8e6c1;

  --danger: #d1332f;
  --danger-hover: #a8231f;
  --warning: #b7791f;

  --font-display: "Source Serif 4", Georgia, Cambria, "Times New Roman", Times, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: var(--font-body);

  --radius-card: 12px;
  --radius-button: 999px;
  --radius-chip: 999px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

::selection {
  background: var(--selection);
}

.muted {
  color: var(--muted);
}

/* -- App shell: top bar + footer -------------------------------------- */

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-2);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 65px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
}
.brand-link:hover {
  text-decoration: none;
  color: inherit;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.topbar-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.topbar-link:hover {
  color: var(--ink);
  text-decoration: none;
}
.topbar-link-cta {
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-button);
  background: var(--black);
  color: #fff;
}
.topbar-link-cta:hover {
  background: var(--black-hover);
  color: #fff;
  text-decoration: none;
}

.profile-menu {
  position: relative;
}
.profile-trigger {
  padding: 0;
  border: none;
  background: none;
}
.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  flex: none;
}
.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-trigger:hover .avatar-circle {
  background: var(--black-hover);
}
.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 11rem;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background: var(--surface);
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.09),
    0 4px 16px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  z-index: 50;
}
.dropdown-item {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-align: left;
  padding: 0.7rem 1rem;
  background: none;
  color: var(--ink);
  border-radius: 0;
}
.dropdown-item:hover {
  background: var(--surface-alt);
}

.app-main {
  flex: 1;
  display: flex;
  animation: fadeUp 0.3s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.site-footer {
  border-top: 1px solid var(--line-2);
  background: var(--footer);
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
}

/* -- Home ---------------------------------------------------------------- */

.home {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.home-hero {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.eyebrow {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
}
.home-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.home-lede {
  max-width: 38rem;
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--muted);
}
.home-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.home-actions button {
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
}
/* -- Auth screens (register / login / verify / password reset) -------- */

.auth {
  flex: 1;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 2.5rem 1rem;
}

.card {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 2.5rem 2.75rem;
}
.auth-card {
  width: min(26rem, 100%);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.auth-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.auth-card p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.55;
}

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.profile-image-field {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.profile-image-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.profile-image-buttons {
  display: flex;
  gap: 0.5rem;
}

/* -- Forms ------------------------------------------------------------- */

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--stone);
}
input {
  font: inherit;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
}
input:focus {
  outline: none;
  border-color: var(--ink);
}
input:disabled {
  color: var(--muted);
  background: var(--surface-alt);
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}
.password-field input {
  width: 100%;
  padding-right: 2.4rem;
}
.password-toggle {
  position: absolute;
  right: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
}
.password-toggle:hover {
  color: var(--ink);
}

button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.75rem 1.4rem;
  border: none;
  border-radius: var(--radius-button);
  background: var(--black);
  color: #fff;
}
button:hover:not(:disabled) {
  background: var(--black-hover);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}

.link-button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  background: none;
  border: none;
  color: var(--accent);
  padding: 0;
  border-radius: 0;
}
.link-button:hover:not(:disabled) {
  background: none;
  color: var(--accent-hover);
  text-decoration: underline;
}

.password-strength {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.password-strength-track {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.password-strength-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--danger);
  transition:
    width 0.15s ease,
    background-color 0.15s ease;
}
.password-strength[data-score="2"] .password-strength-fill {
  background: var(--warning);
}
.password-strength[data-score="3"] .password-strength-fill,
.password-strength[data-score="4"] .password-strength-fill {
  background: var(--accent);
}
.password-strength-label {
  min-width: 5.5rem;
  text-align: right;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--muted);
}

.error {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--danger);
}
.hint {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--faint);
  line-height: 1.5;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
button.field-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  padding: 0;
  border: 1px solid var(--faint);
  border-radius: 50%;
  background: none;
  color: var(--faint);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  line-height: 1;
  cursor: help;
}
button.field-help:hover:not(:disabled),
button.field-help:focus-visible {
  border-color: var(--stone);
  color: var(--stone);
  background: none;
}
button.field-help:hover::after,
button.field-help:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 15rem;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.45;
  white-space: normal;
  text-align: left;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  z-index: 20;
}

select,
textarea {
  font: inherit;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
}
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--ink);
}
textarea {
  resize: vertical;
  min-height: 6rem;
  font-family: var(--font-display);
}

button.secondary {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
button.secondary:hover:not(:disabled) {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
button.danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}
button.danger:hover:not(:disabled) {
  background: var(--danger);
  color: #fff;
}
button.small {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
}

.topbar-link-cta {
  border: none;
  cursor: pointer;
}

/* -- Status badges ------------------------------------------------------- */

.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-chip);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--tag-bg);
  color: var(--ink-2);
}
.badge.published {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}
.badge.draft {
  color: var(--ink);
  border-color: var(--line-3);
  background: var(--surface);
}
.badge.archived {
  color: var(--faint);
  border-color: var(--line-2);
  background: var(--surface-alt);
}

/* -- Tables & pagers (My Posts) ------------------------------------------ */

.page-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.page-head h1 {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-family: var(--font-body);
}
th,
td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
th {
  background: var(--surface-alt);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}
tr:last-child td {
  border-bottom: none;
}
.row-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.empty {
  padding: 2rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--faint);
}
.pager {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
}

.my-posts {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* -- Write / edit post ---------------------------------------------------- */

.write {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.write-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.write-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.write-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--ink);
}
.write-editor-label {
  gap: 0.6rem;
}
.write-field-full {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.write-tags {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.write-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
}

.tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-chip);
  border: 1px solid var(--line);
  background: var(--tag-bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
}
button.tag-chip.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* -- Tag picker (pills + typeahead + create) ------------------------------- */

.tag-picker-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.tag-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.tag-pill {
  gap: 0.4rem;
  cursor: default;
}
.tag-pill-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  color: inherit;
  font-size: 0.65rem;
  line-height: 1;
  opacity: 0.6;
}
.tag-pill-remove:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.08);
}
.tag-pill-pending {
  border-style: dashed;
  color: var(--muted);
  font-style: italic;
}
.tag-picker-input-wrap {
  position: relative;
  min-width: 10rem;
  flex: 1;
}
.tag-picker-input-wrap input {
  width: 100%;
}
.tag-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 100%;
  max-height: 14rem;
  overflow-y: auto;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface);
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.09),
    0 4px 16px rgba(0, 0, 0, 0.12);
}
.tag-suggestion {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0.85rem;
  border: none;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}
.tag-suggestion:hover {
  background: var(--surface-alt);
}
.tag-suggestion-name {
  font-weight: 500;
}
.tag-suggestion-desc {
  color: var(--muted);
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag-suggestion-create {
  color: var(--accent);
  border-top: 1px solid var(--line-2);
}

/* -- Dialog (e.g. tag creation) --------------------------------------------- */

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.45);
}
.dialog-panel {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  max-width: 26rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.12),
    0 12px 32px rgba(0, 0, 0, 0.18);
}
.dialog-panel h3 {
  margin: 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

/* -- Cover image upload (drag-and-drop) ------------------------------------ */

.cover-image-upload {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cover-image-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 2rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-alt);
  color: var(--stone);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
}
.cover-image-dropzone:hover,
.cover-image-dropzone:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
  outline: none;
}
.cover-image-dropzone-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-alt));
  color: var(--ink);
}
.cover-image-preview {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.cover-image-preview img {
  width: 100%;
  max-height: 20rem;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--line-2);
}
.cover-image-preview-actions {
  display: flex;
  gap: 0.5rem;
}

/* -- WYSIWYG post editor --------------------------------------------------- */

.post-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.post-editor-toolbar button.active {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--surface-alt);
}
.post-editor-divider {
  width: 1px;
  align-self: stretch;
  background: var(--line-2);
  margin: 0 0.15rem;
}
.post-editor-content .ProseMirror {
  min-height: 16rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink);
}
.post-editor-content .ProseMirror:focus {
  outline: none;
  border-color: var(--ink);
}
.post-editor-readonly .ProseMirror {
  border: none;
  padding: 0;
  font-size: 1.25rem;
}
.post-editor-content .ProseMirror p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  float: left;
  height: 0;
  color: var(--faint);
  pointer-events: none;
}
.post-editor-content .ProseMirror h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  margin: 1.6rem 0 0.6rem;
}
.post-editor-content .ProseMirror h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 1.4rem 0 0.5rem;
}
.post-editor-content .ProseMirror blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--ink-2);
}
.post-editor-content .ProseMirror ul,
.post-editor-content .ProseMirror ol {
  padding-left: 1.4rem;
}
.post-editor-content .ProseMirror a {
  color: var(--accent);
}
.post-editor-content .ProseMirror img {
  max-width: 100%;
  border-radius: 4px;
}
.post-editor-file-input {
  display: none;
}
.post-editor-error {
  margin: 0 0 0.75rem;
}
.post-image {
  margin: 1rem 0;
}
.post-image img {
  display: block;
  max-width: 100%;
  border-radius: 4px;
}
.post-image-caption,
.post-image-caption-input {
  margin: 0.5rem 0 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  font-style: italic;
  color: var(--ink-2);
}
.post-image-caption-input {
  display: block;
  width: 100%;
  resize: none;
  border: 1px dashed var(--line-2);
  border-radius: 4px;
  padding: 0.35rem 0.5rem;
  background: none;
}
.post-image-caption-input:focus {
  outline: none;
  border-color: var(--ink);
}
.youtube-embed {
  position: relative;
  margin: 1rem 0;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-alt);
}
.youtube-embed-thumb {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  background-color: var(--surface-alt);
  background-size: cover;
  background-position: center;
  cursor: pointer;
}
.youtube-embed-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 1.5rem;
}
.youtube-embed-frame {
  width: 100%;
  height: 100%;
  border: none;
}

/* -- Reading page (`/@username/slug`) -------------------------------------- */

.reading {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.reading-head h1 {
  margin: 0.4rem 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.reading-dek {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink-2);
}
.reading-meta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  margin: 0.15rem 0 0;
}
.reading-cover {
  width: 100%;
  max-width: 100%;
  border-radius: 4px;
  margin: 1.5rem 0;
}
.reading-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.reading-byline {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.2rem;
}
.reading-byline-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.reading-byline-name:hover {
  color: var(--accent);
}
.reading-author {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-2);
}
.reading-author-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0 0 0.3rem;
}

/* -- Author profile (`/@username`) ----------------------------------------- */

.profile {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.profile-head {
  margin-bottom: 2rem;
}
.profile-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.profile-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--ink);
}
.profile-bio {
  margin: 0.9rem 0 0;
  max-width: 60ch;
}
.profile-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.profile-posts li {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line-2);
}
.profile-posts li:last-child {
  border-bottom: none;
}
.profile-posts h2 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--ink);
}
.profile-posts a:hover h2 {
  color: var(--accent-hover);
}
.home-feed-cover {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 4px;
  margin: 0.6rem 0;
}
