:root {
  color-scheme: dark;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #08090d;
  color: #f4f6fa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main,
footer {
  width: min(100% - 36px, 820px);
  margin: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid #252933;
}
header img {
  max-width: 180px;
  height: auto;
}
header span,
.hint,
time,
footer {
  color: #aeb7c6;
}
main {
  padding: 38px 0 20px;
}
h1 {
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 1.35rem;
  margin-top: 36px;
}
a {
  color: #18dbe8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #ed55d4;
  outline-offset: 5px;
}
.eyebrow {
  letter-spacing: 0.16em;
  color: #18dbe8;
  font-size: 0.75rem;
  font-weight: 800;
}
.creator {
  font-size: 1.15rem;
  font-weight: 700;
}
.handle {
  color: #aeb7c6;
}
.caption {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.post-preview {
  display: block;
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
  background: #11151e;
  border: 1px solid #252933;
  border-radius: 20px;
  margin: 24px 0;
}
.avatar {
  border-radius: 50%;
  object-fit: cover;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.button,
button {
  display: inline-block;
  border: 1px solid #18dbe8;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 700;
  color: #051114;
  background: #18dbe8;
  text-decoration: none;
  cursor: pointer;
}
.secondary {
  color: #f4f6fa;
  background: transparent;
  border-color: #465065;
}
.hint {
  line-height: 1.6;
  font-size: 0.9rem;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.post-card {
  border: 1px solid #252933;
  border-radius: 14px;
  overflow: hidden;
  color: #f4f6fa;
  background: #10141d;
}
.post-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: #151b25;
}
.post-card span {
  display: block;
  padding: 14px;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}
footer {
  border-top: 1px solid #252933;
  padding: 24px 0 36px;
  font-size: 0.8rem;
  line-height: 1.6;
}
footer > a {
  margin-right: 20px;
}
footer button {
  font-size: 0.8rem;
  padding: 8px 12px;
}
#analytics-status {
  display: block;
  margin-top: 10px;
}
@media (max-width: 540px) {
  header span {
    display: none;
  }
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .post-card span {
    padding: 10px;
  }
  .actions .button {
    width: 100%;
    text-align: center;
  }
}
