@import url("/client/ui/share-palette.css");

@font-face {
  font-family: "Source Sans 3";
  src: url("/vendor/source-sans-3/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --background: light-dark(var(--wiredove-light-background), var(--wiredove-dark-background));
  --foreground: light-dark(var(--wiredove-light-foreground), var(--wiredove-dark-foreground));
  --card: light-dark(var(--wiredove-light-card), var(--wiredove-dark-card));
  --muted: light-dark(var(--wiredove-light-muted), var(--wiredove-dark-muted));
  --muted-foreground: light-dark(var(--wiredove-light-muted-foreground), var(--wiredove-dark-muted-foreground));
  --border: light-dark(var(--wiredove-light-border), var(--wiredove-dark-border));
  --bar: light-dark(var(--wiredove-light-sidebar), var(--wiredove-dark-sidebar));
  --button: light-dark(var(--wiredove-light-primary), var(--wiredove-dark-primary));
  --button-text: light-dark(var(--wiredove-light-primary-foreground), var(--wiredove-dark-primary-foreground));
  font-family: "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--foreground); }
.bar { border-bottom: 1px solid var(--border); background: var(--bar); }
.bar > div { display: flex; min-height: 3rem; align-items: center; justify-content: space-between; padding: 0.25rem 0.75rem; }
.bar-brand { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; }
.bar-brand svg { width: 1rem; height: 1rem; }
@media (min-width: 40rem) { .bar > div { padding-inline: 1.5rem; } }
.button { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.5rem; background: var(--button); color: var(--button-text); text-decoration: none; }
.button svg { width: 1rem; height: 1rem; }
main { width: min(100%, 42rem); margin-inline: auto; padding: 1rem; display: grid; gap: 1rem; }
.card { min-width: 0; padding: 0.75rem; border-radius: 0.875rem; background: var(--card); border: 1px solid var(--border); font-size: 0.875rem; }
.card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.avatar { display: grid; place-items: center; flex: 0 0 2rem; height: 2rem; border-radius: 50%; background: var(--muted); color: var(--muted-foreground); text-decoration: none; font-weight: 600; overflow: hidden; }
.avatar img { display: block; width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; }
.author, .date { display: block; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.author { font-weight: 600; }
.date, .key { color: var(--muted-foreground); }
h1, p { margin: 0; }
h1 { font-size: 1.125rem; }
.key { overflow-wrap: anywhere; }
.author:hover, .date:hover { text-decoration: underline; }
.body { overflow-x: auto; overflow-wrap: anywhere; }
.body a { color: inherit; text-underline-offset: 2px; }
.body p { white-space: pre-wrap; }
.body > * { margin: 0; }
.body > * + * { margin-top: 0.5rem; }
.body pre, .body :not(pre) > code { background: var(--muted); padding: 0.125rem 0.25rem; border-radius: 0.25rem; }
.body pre { padding: 0.5rem; overflow-x: auto; }
.body blockquote { border-inline-start: 2px solid var(--border); padding-inline-start: 0.75rem; }
.body :is(th, td) { border: 1px solid var(--border); padding: 0.25rem 0.5rem; }
.profile .body { margin-top: 0.5rem; }
.profile { padding: 1.5rem; }
.profile-header { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem; }
.profile-avatar, .profile-avatar img { width: 4rem; height: 4rem; }
.profile-avatar { flex-basis: 4rem; font-size: 1.25rem; }
.profile-heading { min-width: 0; flex: 1 1 8rem; }
.profile h1 { font-size: 1.5rem; line-height: 1.2; overflow-wrap: anywhere; }
.profile .key { display: block; margin-top: .25rem; font-size: .75rem; }
.profile .body { margin-top: 1rem; }
.profile-follow, .join-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .5rem .875rem; border-radius: .5rem; background: var(--button); color: var(--button-text); font-weight: 600; text-decoration: none; }
.profile-links { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.profile-links a { display: inline-block; max-width: 100%; padding: .4rem .7rem; border: 1px solid var(--border); border-radius: .5rem; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.profile-links a:hover, .profile-follow:hover, .join-button:hover { opacity: .8; }
.join-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; }
.join-card h2 { margin: 0; font-size: 1rem; }
.join-card p { color: var(--muted-foreground); }
.join-heading { display: flex; align-items: center; gap: .375rem; }
.anproto-help { position: relative; display: inline-flex; }
.anproto-help button { display: grid; place-items: center; width: 2rem; height: 2rem; padding: .5rem; border: 0; border-radius: .5rem; background: transparent; color: var(--muted-foreground); cursor: help; }
.anproto-help button:hover { background: var(--muted); }
.anproto-help button svg, .join-button svg { width: 1rem; height: 1rem; flex: none; }
.anproto-help [role="tooltip"] { display: none; position: absolute; z-index: 10; top: calc(100% + .4rem); left: 0; width: min(19rem, 75vw); padding: .75rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--card); color: var(--foreground); box-shadow: 0 4px 16px #0003; font-size: .875rem; }
.anproto-help:hover [role="tooltip"], .anproto-help:focus-within [role="tooltip"] { display: block; }
.anproto-help button:focus-visible { outline: 3px solid #796afd; outline-offset: 3px; }
.profile a:focus-visible, .join-card a:focus-visible { outline: 3px solid #796afd; outline-offset: 3px; }
@media (min-width: 40rem) { .profile-avatar, .profile-avatar img { width: 5rem; height: 5rem; } .profile-avatar { flex-basis: 5rem; } }
.body img { display: block; max-width: 100%; height: auto; border-radius: 0.5rem; }
.body .playback audio { display: block; width: 100%; max-width: 24rem; }
.body .playback video { display: block; width: 100%; max-height: 70vh; background: #000; border-radius: 0.5rem; }
.site-actions { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 0.75rem; }
.site-actions a { color: inherit; text-underline-offset: 0.15em; overflow-wrap: anywhere; }
