/*
Theme Name: WP Fediverse Theme
Theme URI: https://aandersen.eu
Author: Andreas Andersen
Author URI: https://aandersen.eu
Description: Et selvstændigt responsivt portaltema med fornyet moderne Mastodon-inspireret design til WP Fediverse plugin.
Version: 0.0.0.83
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: wp-fediverse-theme
*/
:root {
  color-scheme: light;
  --fed-radius: 18px;
  --fed-shadow: 0 4px 24px rgba(0,0,0,.06);
  --fed-bg: #f8f9fd;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fed-bg);
  color: #262833;
  font: 15.5px/1.62 "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html[data-wpfed-theme="dark"] { color-scheme: dark; }
html[data-wpfed-theme="dark"] body {
  background: #0f1015;
  color: #e8eaf2;
}
a { color: #6366f1; }
html[data-wpfed-theme="dark"] :is(.fed-article, .fed-site-header, .fed-site-footer, .fed-no-plugin) a { color: #a5a6ff; }
a:focus-visible {
  outline: 2px solid #a5a6ff;
  outline-offset: 3px;
  border-radius: 6px;
}
img { max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
.screen-reader-text:focus {
  width: auto;
  height: auto;
  clip: auto;
  z-index: 1000;
  background: #fff;
  padding: 12px;
  border-radius: 8px;
}
.fed-site-header {
  background: #fff;
  border-bottom: 1px solid #e8eaef;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.fed-site-header a {
  font-weight: 780;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.fed-site-header nav {
  display: flex;
  gap: 22px;
  font-size: 14.5px;
  font-weight: 540;
}
.fed-article {
  max-width: 760px;
  margin: 64px auto;
  background: #fff;
  padding: 48px;
  border-radius: 22px;
  border: 1px solid #e8eaef;
  box-shadow: var(--fed-shadow);
}
.fed-article h1 {
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 780;
}
.fed-article .entry-content,
.fed-article a { overflow-wrap: break-word; }
.fed-site-footer {
  text-align: center;
  padding: 36px;
  color: #6b7080;
  font-size: 13px;
}
.fed-site-footer a { text-decoration: none; }
.fed-no-plugin {
  max-width: 640px;
  margin: 10vh auto;
  padding: 64px;
  border-radius: 28px;
  border: 1px solid #e8eaef;
  background: #fff;
  text-align: center;
  box-shadow: var(--fed-shadow);
}
.fed-no-plugin h1 {
  font-size: 32px;
  letter-spacing: -0.035em;
  font-weight: 780;
}
.fed-no-plugin p { color: #5b5f72; }
html[data-wpfed-theme="dark"] .fed-article,
html[data-wpfed-theme="dark"] .fed-no-plugin,
html[data-wpfed-theme="dark"] .fed-site-header {
  background: #1a1c25;
  border-color: #2d303c;
  color: #e8eaf2;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
html[data-wpfed-theme="dark"] .fed-site-footer { color: #9196aa; }
body:has(.wpfed-app) > .fed-site-footer { display: none; }
@media (max-width: 760px) {
  .fed-article { margin: 24px 12px; padding: 28px; }
  .fed-site-header { padding: 16px 20px; flex-wrap: wrap; }
  .fed-no-plugin { margin: 6vh 12px; padding: 40px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.fed-article h1, .fed-no-plugin h1, .fed-site-header a {
  font-family: inherit;
  font-weight: 780;
  letter-spacing: -0.04em;
}

/* 0.0.0.77: respect motion preferences during portal navigation. */
@media (prefers-reduced-motion: reduce) { html {scroll-behavior:auto} }

/* 0.0.0.79: accessible navigation at small viewport sizes. */
@media(max-width:680px) { body { overflow-wrap:break-word; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
