:root {
  --background: #060517;
  --foreground: #45cf6e;
  --muted-foreground: #dceee3;
  --card: #0c0b24;
  --surface: #12112e;
  --accent: #3c43e3;
  --wordmark: #dceee3;
  --radius-panel: 20px;
  --radius-ui: 10px;
  --measure: 42rem;
  --font-body: Monaco, Menlo, "Ubuntu Mono", "Roboto Mono", ui-monospace, monospace;
  --font-display: "Eczar", Georgia, serif;
  --font-wordmark: "Unifraktur Maguntia", "UnifrakturMaguntia", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

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

body.ulman-current {
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  width: min(var(--measure), calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  color: var(--wordmark);
  border-radius: 8px;
}

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

.panel {
  border: 1px solid var(--accent);
  border-radius: var(--radius-panel);
}

.site-header,
.site-footer {
  padding: clamp(0.75rem, 2.5vw + 0.35rem, 1.25rem);
}

.site-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw + 1.25rem, 4rem);
}

.site-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-title {
  margin: 0;
  font-family: var(--font-wordmark);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

.site-title a {
  color: var(--wordmark);
  text-decoration: none;
}

.site-title a:hover,
.site-title a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-eyebrow {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted-foreground);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-nav a[aria-current="page"] {
  color: var(--foreground);
  font-weight: 700;
}

.feed-list,
.archive,
.photos-page {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw + 1.25rem, 4rem);
}

.entry {
  padding: clamp(0.75rem, 2.5vw + 0.35rem, 1.25rem);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.entry-date {
  color: var(--muted-foreground);
  text-decoration: none;
}

.entry-date:hover,
.entry-date:focus-visible {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-tags a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--muted-foreground);
  font-size: 0.78rem;
  text-decoration: none;
}

.entry-title,
.page-title,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--foreground);
}

.entry-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.entry-title a {
  color: inherit;
  text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-title {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
}

.entry-body {
  max-width: 68ch;
}

.entry-body.without-title {
  font-size: 1.05rem;
}

.entry-body > *:first-child {
  margin-top: 0;
}

a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 4px;
}

a:hover,
a:focus-visible {
  text-decoration: none;
  color: color-mix(in srgb, var(--foreground) 90%, #ffffff);
}

.entry-body img,
.entry-body video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.1rem 0;
  border-radius: var(--radius-ui);
}

.entry-body iframe {
  width: 100%;
  min-height: 240px;
  margin: 1.1rem 0;
  border: 0;
  border-radius: var(--radius-ui);
}

.entry-body pre,
.entry-body code {
  font-family: var(--font-body);
  font-size: 0.9em;
}

.entry-body pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: var(--radius-ui);
  background: var(--card);
  border: 1px solid var(--accent);
}

.entry-body blockquote {
  margin: 1.2rem 0;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted-foreground);
}

.reply-to {
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.button,
.archive-categories .button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 1rem;
  border-radius: var(--radius-ui);
  background: var(--accent);
  color: var(--wordmark);
  text-decoration: none;
  font-weight: 600;
}

.button:hover,
.button:focus-visible {
  color: var(--wordmark);
  text-decoration: none;
  filter: brightness(1.08);
}

.archive,
.photos-page {
  padding: clamp(0.75rem, 2.5vw + 0.35rem, 1.25rem);
}

.archive-list,
.category-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--accent);
  font-size: 1rem;
}

.archive-list time {
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.photos-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-ui);
}

.site-footer {
  margin-top: clamp(2.5rem, 5vw + 1.25rem, 4rem);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.site-footer a {
  color: var(--foreground);
}

.footer-copy {
  margin: 0.75rem 0 0;
  color: var(--muted-foreground);
}

.empty-feed {
  color: var(--muted-foreground);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .page-shell {
    width: min(var(--measure), calc(100% - 1.25rem));
    padding-top: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
