@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800&family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&display=swap");

:root {
  --ink: #d8fbff;
  --muted: #7ca9b8;
  --inverse-text: #04060d;
  --paper: #030712;
  --panel: #081427;
  --surface-cream: #0b1d34;
  --surface-warm: #101f3c;
  --surface-accent-soft: #132847;
  --surface-accent-soft-alt: #16305a;
  --surface-accent-hover: #1c3e73;
  --activity-surface: #0d2038;
  --activity-border: #245278;
  --interaction-surface: #0a1a31;
  --map-surface: #091b33;
  --photo-dark: #0f0f0f;
  --accent: #00eaff;
  --accent-deep: #ff2abf;
  --line: #1f4b70;
  --shadow: rgba(0, 0, 0, 0.56);
  --accent-shadow: rgba(0, 234, 255, 0.35);
  --accent-shadow-strong: rgba(255, 42, 191, 0.38);
  --interaction-shadow: rgba(0, 234, 255, 0.22);
  --input-shadow: rgba(0, 234, 255, 0.12);
  --focus-shadow: rgba(255, 42, 191, 0.4);
  --scrollbar-shadow: rgba(0, 234, 255, 0.35);
  --glass-light: rgba(8, 20, 39, 0.72);
  --glass-lighter: rgba(11, 29, 52, 0.82);
  --photo-dot: rgba(0, 234, 255, 0.35);
  --photo-dot-active: rgba(255, 42, 191, 0.95);
  --site-admin-bar-bg: #061227;
  --site-admin-bar-hamburger-bg: #5ad9ff;
  --bg-start: #02030b;
  --bg-end: #120525;
  --bg-pattern: url("../img/pattern.svg");
  --font-body: "Rajdhani", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-heading: "Orbitron", "Eurostile", "Avenir Next", sans-serif;
  --font-mono: "Share Tech Mono", "IBM Plex Mono", "Menlo", "Consolas", "Courier New", monospace;
  --radius-sm: 10px;
  --radius-md: 13px;
  --radius-lg: 16px;
  --radius-xl: 19px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--ink);
  background-image: radial-gradient(circle at 18% 15%, rgba(0, 234, 255, 0.18) 0%, rgba(0, 234, 255, 0) 28%),
    radial-gradient(circle at 82% 8%, rgba(255, 42, 191, 0.22) 0%, rgba(255, 42, 191, 0) 32%),
    linear-gradient(125deg, var(--bg-start) 0%, #07132a 48%, var(--bg-end) 100%),
    var(--bg-pattern);
  background-attachment: fixed;
  font-family: var(--font-body);
  line-height: 1.6;
}

.theme-webstead {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

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

a:hover,
a:focus {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--accent-deep);
  color: var(--inverse-text);
  border-radius: var(--radius-pill);
  z-index: 10;
}

.skip-link:focus {
  left: 1rem;
}

.site-header {
  padding: 3rem 6vw 2rem;
  border-bottom: 1px solid var(--line);
}

.site-title a {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 3.25rem);
  letter-spacing: 0.02em;
  color: var(--ink);
}

.site-tagline {
  max-width: 55ch;
  margin-top: 0.5rem;
  color: var(--muted);
}

.site-nav {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 6px 18px var(--shadow);
}

.site-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 6vw 4rem;
}

.site-footer {
  padding: 2.5rem 6vw 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-meta,
.footer-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-admin a {
  font-size: 0.9rem;
  color: var(--muted);
}

.author-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 30px var(--shadow);
  animation: rise 0.6s ease;
}

.author-details h1 {
  font-family: var(--font-heading);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.author-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.author-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 3rem;
}

.section-link {
  font-size: 0.9rem;
  color: var(--muted);
}

.recent-post-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.recent-post-list li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.entry-header h1,
.entry-header h3 {
  font-family: var(--font-heading);
}

.entry-article .entry-header,
.entry-note .entry-header {
  margin-bottom: 0.95rem;
}

.entry-article .entry-header h1.p-name,
.entry-note .entry-header h1.p-name,
.entry-summary .entry-header h3.p-name {
  margin: 0;
  line-height: 1.2;
}

.entry-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.entry-article,
.entry-activity,
.entry-note,
.entry-summary,
.entry-photo,
.entry-like,
.entry-bookmark,
.entry-reply,
.entry-repost {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 24px var(--shadow);
  animation: rise 0.6s ease;
}

.entry-summary .entry-link {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 500;
}

.entry-note .entry-meta,
.entry-photo .entry-meta {
  margin-top: 1rem;
}

.entry-article .e-content,
.entry-note .e-content {
  line-height: 1.7;
}

.entry-article .entry-meta,
.entry-note .entry-meta {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.indieauth-approve {
  max-width: 720px;
  margin: 0 auto 2rem;
  display: grid;
  gap: 1.5rem;
}

.indieauth-header h1 {
  margin: 0;
}

.indieauth-subtitle {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.indieauth-client {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-cream);
}

.indieauth-client-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  object-fit: cover;
  background: var(--panel);
}

.indieauth-client-meta {
  display: grid;
  gap: 0.25rem;
}

.indieauth-client-name {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
}

.indieauth-client-id {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--font-mono);
  word-break: break-all;
}

.indieauth-request {
  margin: 0;
  font-size: 0.98rem;
}

.indieauth-scopes {
  display: grid;
  gap: 0.6rem;
}

.indieauth-scopes-label {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.indieauth-scopes ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.indieauth-scopes li {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface-accent-soft);
  color: var(--accent-deep);
  font-size: 0.85rem;
  font-weight: 600;
}

.indieauth-form {
  display: grid;
  gap: 1rem;
}

.indieauth-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.indieauth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.indieauth-button {
  border: none;
  background: var(--accent);
  color: var(--inverse-text);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 18px var(--accent-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.indieauth-button:hover,
.indieauth-button:focus {
  background: var(--accent-deep);
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 12px 22px var(--accent-shadow-strong);
}

.indieauth-button--deny {
  background: var(--panel);
  color: var(--accent-deep);
  border: 1px solid var(--line);
  box-shadow: none;
}

.indieauth-button--deny:hover,
.indieauth-button--deny:focus {
  background: var(--surface-accent-hover);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}

.e-content pre,
.p-content pre {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-warm);
  overflow-x: auto;
  max-width: 100%;
}

.e-content pre code,
.p-content pre code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  white-space: pre;
}

.e-content pre.code-with-lines code,
.p-content pre.code-with-lines code {
  counter-reset: line;
}

.e-content pre.code-with-lines .code-line,
.p-content pre.code-with-lines .code-line {
  display: block;
  padding-left: 3.5ch;
  position: relative;
}

.e-content pre.code-with-lines .code-line::before,
.p-content pre.code-with-lines .code-line::before {
  counter-increment: line;
  content: counter(line);
  position: absolute;
  left: 0;
  width: 3ch;
  text-align: right;
  color: var(--muted);
  opacity: 0.6;
}

.tags {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags a {
  background: var(--surface-warm);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--accent-deep);
  cursor: pointer;
}

.post-filter {
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--glass-light);
}

.author-card + .post-filter,
.home-page-content + .post-filter {
  margin-top: 2rem;
}

.post-filter form {
  display: grid;
  gap: 1rem;
}

.filter-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.filter-title {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.filter-clear {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
}

.filter-toggle {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
}

.filter-body {
  display: grid;
  gap: 1rem;
}

html.js-enabled .post-filter.is-collapsed .filter-body {
  display: none;
}

html.js-enabled .post-filter.is-collapsed .filter-header {
  cursor: pointer;
}

.filter-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.filter-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-kinds legend {
  font-weight: 600;
  margin-right: 0.75rem;
}

.filter-chip {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--glass-lighter);
  border: 1px solid var(--line);
  font-size: 0.85rem;
}

.filter-tags {
  display: grid;
  gap: 0.6rem;
}

.filter-feed {
  display: flex;
  align-items: center;
}

.filter-feed-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.filter-feed-link:hover,
.filter-feed-link:focus-visible {
  background: var(--panel);
}

.filter-feed-icon {
  width: 16px;
  height: 16px;
}

.filter-label {
  font-weight: 600;
}

.tag-input {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
}

.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-chip {
  border: none;
  background: var(--surface-warm);
  color: var(--accent-deep);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
}

.tag-input input {
  border: none;
  background: transparent;
  min-width: 140px;
  flex: 1;
  padding: 0.2rem;
  font-size: 0.9rem;
}

.tag-input input:focus {
  outline: none;
}

.tag-suggestions {
  display: block;
}

.tag-suggestions__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-suggestion {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  color: var(--ink);
}

.paginator {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.pagination-item {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--panel);
}

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

.photo-slider {
  margin: 2rem 0;
  padding: 1rem 1.25rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 12px 24px var(--shadow);
  overflow: hidden;
}

.slides {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(100%, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-shadow) transparent;
}

html[data-motion="full"] .photo-slider.is-enhanced .slides {
  scroll-behavior: smooth;
}

.slide,
.slides > li {
  scroll-snap-align: start;
}

.photo-frame,
.photo-container {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: var(--panel);
  border: none;
  box-shadow: none;
}

.photo-frame::before,
.photo-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--photo-image);
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.05);
  transform: scale(1.1);
  opacity: 0.45;
}

.photo-frame img,
.photo-container img {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(16rem, 65vh, 40rem);
  object-fit: contain;
}

.photo-frame img {
  border-radius: 14px;
}

.slider-controls {
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.slider-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--accent-deep);
  font-size: 0.85rem;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border 0.2s ease,
    color 0.2s ease;
}

.slider-button:hover,
.slider-button:focus {
  transform: translateY(-1px);
  background: var(--accent);
  color: var(--inverse-text);
  border-color: var(--accent);
  outline: none;
}

.slider-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  background: var(--panel);
  color: var(--muted);
}

.slider-counter {
  color: var(--muted);
  font-size: 0.85rem;
}

.slider-nav ol {
  list-style: none;
  padding: 0;
  margin: 0.55rem 0 0;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}

.slider-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--accent-deep);
  font-size: 0.7rem;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border 0.2s ease;
}

.slider-nav a[aria-current="true"] {
  background: var(--accent);
  color: var(--inverse-text);
  border-color: var(--accent);
}

.slider-nav a:hover,
.slider-nav a:focus {
  transform: translateY(-1px);
  background: var(--accent);
  color: var(--inverse-text);
  border-color: var(--accent);
  outline: none;
}

.photo-slider figcaption {
  margin-top: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface-accent-soft);
  color: var(--muted);
  font-size: 0.85rem;
}

.entry-activity {
  background: linear-gradient(160deg, var(--activity-surface) 0%, var(--panel) 85%);
  border-color: var(--activity-border);
}

.entry-activity .entry-header,
.entry-repost .entry-header,
.entry-reply .entry-header,
.entry-like .entry-header,
.entry-bookmark .entry-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.activity-kicker,
.interaction-kicker {
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface-accent-soft-alt);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.interaction-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  background: var(--interaction-surface);
  box-shadow: 0 8px 24px var(--interaction-shadow);
  margin: 1.25rem 0;
}

.interaction-card--quote {
  border-left: 4px solid var(--accent-deep);
}

.interaction-card__header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.interaction-card__meta {
  min-width: 140px;
}

.interaction-card__main {
  min-width: 0;
}

.interaction-source {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.interaction-byline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.interaction-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  object-fit: cover;
}

.interaction-author {
  font-weight: 600;
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.interaction-title {
  margin: 0;
  font-weight: 600;
  overflow: hidden;
}

.interaction-card__content {
  margin-top: 0.75rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.interaction-summary {
  margin: 0 0 0.75rem;
}

.interaction-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-deep);
  background: var(--panel);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.interaction-read-more:hover {
  background: var(--surface-accent-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.interaction-read-more__icon {
  display: inline-flex;
}

.interaction-read-more__icon svg {
  width: 0.7rem;
  height: 0.7rem;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}

.entry-activity .entry-header h1.p-name,
.entry-activity .entry-header h3.p-name {
  margin: 0;
}

.activity-map {
  height: clamp(16rem, 45vh, 30rem);
  margin: 1.25rem 0 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 18px 32px var(--shadow);
  background: linear-gradient(145deg, var(--map-surface) 0%, var(--panel) 100%);
  z-index: 0;
}

.activity-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.9rem;
  margin: 0.75rem 0 1.5rem;
  padding: 0;
}

.activity-stats div {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  background: var(--panel);
  box-shadow: 0 10px 20px var(--shadow);
}

.activity-stats dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.activity-stats dd {
  margin: 0.35rem 0 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.activity-elevation {
  margin: 0.5rem 0 1.5rem;
  padding: 0.9rem 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 12px 24px var(--shadow);
}

.activity-elevation__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.activity-elevation__header p {
  margin: 0;
}

.activity-elevation__totals strong {
  color: var(--ink);
}

.activity-elevation__chart {
  width: 100%;
  height: 8rem;
  display: block;
}

.activity-elevation__fill {
  fill: var(--accent-shadow);
}

.activity-elevation__line {
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
}

.activity-elevation__cursor {
  fill: var(--accent);
  stroke: var(--panel);
  stroke-width: 2;
  display: none;
}

.activity-elevation__overlay {
  fill: transparent;
  cursor: crosshair;
}

.activity-elevation__empty {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.activity-track {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.activity-track--missing {
  opacity: 0.8;
  font-style: italic;
}

.staff-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.button-secondary {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.interaction-form-card {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 12px 24px var(--shadow);
}

.interaction-form-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.interaction-form-title {
  margin: 0;
  font-family: var(--font-heading);
}

.interaction-form-toggle {
  display: none;
  align-items: center;
  gap: 0.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.2rem;
}

html.js-enabled .interaction-form-toggle {
  display: inline-flex;
}

.interaction-toggle-button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.interaction-toggle-button.is-active {
  background: var(--accent);
  color: var(--inverse-text);
}

.interaction-toggle-button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.interaction-form-panels {
  display: grid;
  gap: 1rem;
}

.interaction-form-panel h3 {
  margin-top: 0;
  font-family: var(--font-heading);
}

html.js-enabled .interaction-form-panel.is-hidden {
  display: none;
}

.webmention-send,
.comments-form,
.comments {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 12px 24px var(--shadow);
}

.webmention-send h2,
.comments-form h2,
.comments h2 {
  margin-top: 0;
  font-family: var(--font-heading);
}

.interaction-form-panel form,
.webmention-send form,
.comments-form form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.interaction-form-panel label,
.webmention-send label,
.comments-form label {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
}

.interaction-form-panel input,
.interaction-form-panel select,
.interaction-form-panel textarea,
.webmention-send input,
.webmention-send select,
.comments-form input,
.comments-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-cream);
  color: var(--ink);
  font-size: 0.95rem;
  box-shadow: inset 0 1px 2px var(--input-shadow);
}

.interaction-form-panel input:focus,
.interaction-form-panel select:focus,
.interaction-form-panel textarea:focus,
.webmention-send input:focus,
.webmention-send select:focus,
.comments-form input:focus,
.comments-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-shadow);
}

.interaction-form-panel button,
.webmention-send button,
.comments-form button {
  justify-self: start;
  border: none;
  background: var(--accent);
  color: var(--inverse-text);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 18px var(--accent-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.interaction-form-panel button:hover,
.interaction-form-panel button:focus,
.webmention-send button:hover,
.comments-form button:hover,
.webmention-send button:focus,
.comments-form button:focus {
  background: var(--accent-deep);
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 12px 22px var(--accent-shadow-strong);
}

.comment-field-group,
.interaction-form-panel form > *,
.webmention-send form > * {
  display: grid;
  gap: 0.4rem;
}

.comment-turnstile {
  display: flex;
  justify-content: flex-start;
}

.comments-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 1rem;
}

.comment {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-cream);
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.85rem;
}

.comment-meta strong {
  color: var(--ink);
}

.comment-body {
  margin: 0.75rem 0 0;
}

.error-page {
  text-align: center;
  padding: 4rem 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 2.5rem 6vw 1.5rem;
  }

  .author-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author-links {
    justify-content: center;
  }

  .entry-article,
  .entry-activity,
  .entry-note,
  .entry-summary,
  .entry-photo {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }

  .entry-photo .photo-slider {
    position: relative;
    margin: 0 -1.5rem 1.25rem;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .entry-photo .slides {
    grid-auto-columns: 100%;
    gap: 0;
    padding: 0;
    scroll-padding: 0;
    scrollbar-width: none;
  }

  .entry-photo .slides::-webkit-scrollbar {
    display: none;
  }

  .entry-photo .slide figure {
    margin: 0;
  }

  .entry-photo .photo-frame {
    padding: 0;
    border-radius: 0;
    background: var(--photo-dark);
    box-shadow: none;
    aspect-ratio: 4 / 5;
  }

  .entry-photo .photo-frame img {
    border-radius: 0;
    height: 100%;
    max-height: none;
    object-fit: cover;
    background: var(--photo-dark);
  }

  .entry-photo .photo-frame::before {
    display: none;
  }

  .entry-photo .slider-controls {
    display: none;
  }

  .entry-photo .slider-nav ol {
    margin-top: 0.6rem;
    gap: 0.35rem;
  }

  .entry-photo .slider-nav a {
    width: 0.55rem;
    height: 0.55rem;
    border: none;
    background: var(--photo-dot);
    color: transparent;
  }

  .entry-photo .slider-nav a[aria-current="true"] {
    background: var(--photo-dot-active);
  }

  .entry-photo .photo-slider figcaption {
    display: block;
    margin: 0.6rem 1.5rem 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--ink);
    font-size: 0.95rem;
  }

  .slider-controls {
    flex-wrap: wrap;
    justify-content: center;
  }

  .interaction-card__header {
    grid-template-columns: 1fr;
  }

  .interaction-card__meta {
    min-width: 0;
  }
}

/* Event details */
.event-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.9rem;
  margin: 0.75rem 0 1.5rem;
  padding: 0;
}

.event-details div {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  background: var(--panel);
  box-shadow: 0 10px 20px var(--shadow);
}

.event-details dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.event-details dd {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  min-width: 0;
}

.event-details time {
  display: block;
  line-height: 1.35;
}

.event-details__url {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
}

.theme-webstead::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 234, 255, 0.06) 3px
  );
  mix-blend-mode: screen;
  opacity: 0.24;
  z-index: -1;
}

a {
  text-shadow: 0 0 8px rgba(0, 234, 255, 0.22);
}

.site-header,
.site-footer {
  background: linear-gradient(135deg, rgba(8, 20, 39, 0.68), rgba(19, 40, 71, 0.36));
  backdrop-filter: blur(5px);
}

.site-title a {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  text-shadow: 0 0 14px rgba(0, 234, 255, 0.4), 0 0 34px rgba(255, 42, 191, 0.2);
}

.site-nav a,
.indieauth-button,
.filter-clear,
.filter-toggle,
.filter-feed-link,
.slider-button,
.slider-nav a,
.pagination-item,
.tag-suggestion {
  border-color: color-mix(in srgb, var(--line) 70%, var(--accent) 30%);
  background: linear-gradient(165deg, rgba(19, 40, 71, 0.7), rgba(8, 20, 39, 0.9));
  box-shadow: inset 0 0 0 1px rgba(0, 234, 255, 0.22), 0 0 18px rgba(0, 234, 255, 0.17);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.filter-clear:hover,
.filter-toggle:hover,
.filter-feed-link:hover,
.filter-feed-link:focus-visible,
.slider-button:hover,
.slider-button:focus-visible,
.slider-nav a:hover,
.slider-nav a:focus-visible,
.pagination-item:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 42, 191, 0.45), 0 0 20px rgba(255, 42, 191, 0.28);
}

.entry-article,
.entry-activity,
.entry-note,
.entry-summary,
.entry-photo,
.entry-like,
.entry-bookmark,
.entry-reply,
.entry-repost,
.author-card,
.post-filter,
.photo-slider,
.event-details div,
.indieauth-client {
  background: linear-gradient(160deg, rgba(11, 29, 52, 0.84) 0%, rgba(8, 20, 39, 0.94) 100%);
  border-color: color-mix(in srgb, var(--line) 64%, var(--accent) 36%);
  box-shadow: 0 0 0 1px rgba(0, 234, 255, 0.2), 0 12px 34px rgba(0, 0, 0, 0.66), 0 0 24px rgba(0, 234, 255, 0.12);
}

.entry-activity {
  background: linear-gradient(150deg, rgba(19, 40, 71, 0.92) 0%, rgba(8, 20, 39, 0.95) 100%);
}

.activity-kicker,
.interaction-kicker,
.tags a,
.tag-chip,
.indieauth-scopes li,
.photo-slider figcaption {
  border-color: color-mix(in srgb, var(--accent-deep) 45%, var(--line) 55%);
  background: rgba(20, 49, 83, 0.7);
  color: var(--ink);
  box-shadow: inset 0 0 10px rgba(255, 42, 191, 0.12);
}

input,
textarea,
select,
.tag-input {
  background: rgba(4, 11, 24, 0.9);
  color: var(--ink);
  border-color: color-mix(in srgb, var(--line) 74%, var(--accent) 26%);
  box-shadow: inset 0 0 0 1px rgba(0, 234, 255, 0.14);
}

input:focus,
textarea:focus,
select:focus,
.tag-input:focus-within {
  box-shadow: inset 0 0 0 1px rgba(255, 42, 191, 0.34), 0 0 0 3px rgba(255, 42, 191, 0.19);
}

.e-content pre,
.p-content pre,
code,
pre code {
  background: rgba(2, 8, 18, 0.96);
  border-color: color-mix(in srgb, var(--line) 66%, var(--accent-deep) 34%);
  color: #84f6ff;
  text-shadow: 0 0 7px rgba(0, 234, 255, 0.28);
}

.photo-frame::before,
.photo-container::before {
  filter: blur(24px) saturate(1.22) hue-rotate(-9deg);
  opacity: 0.55;
}

.entry-header h1,
.entry-header h3,
.author-details h1 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 0 0 12px rgba(0, 234, 255, 0.22);
}

html[data-motion="full"] .site-title a {
  animation: neon-flicker 3s steps(24, end) infinite;
}

@keyframes neon-flicker {
  0%,
  9%,
  12%,
  16%,
  65%,
  67%,
  91%,
  100% {
    opacity: 1;
    filter: brightness(1);
  }
  10%,
  15%,
  66%,
  90% {
    opacity: 0.92;
    filter: brightness(1.2);
  }
}

/* Checkin */
.checkin-venue {
  margin: 0.35rem 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
}

.checkin-venue-label {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkin-place-name {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 600;
}

.checkin-venue .u-checkin {
  color: var(--ink);
  text-decoration: none;
}

.checkin-map {
  height: 300px;
  border-radius: var(--radius-lg, 1rem);
  border: 1px solid var(--line);
  margin: 0.5rem 0 0;
  overflow: hidden;
}

.checkin-map-caption {
  margin: 0;
  padding: 0.65rem 0 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkin-map-caption__place {
  font-weight: 600;
  color: var(--ink);
}

.checkin-map-caption__coords {
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
