@font-face {
  font-family: 'PolitonLogo';
  src: url('/assets/fonts/soehne-halbfett.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg:        #fafaf8;
  --fg:        #111111;
  --muted:     #666666;
  --rule:      #e0e0e0;
  --tag-bg:    #eeeeee;
  --tag-fg:    #555555;
  --max-width: 680px;
  --serif:     Georgia, 'Times New Roman', Times, serif;
  --sans:      system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
  padding: 0 1.5rem;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Wrapper ── */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── Header ── */

header {
  padding: 2rem 0 1.25rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
}

.site-name {
  font-family: 'PolitonLogo', var(--serif);
  font-size: 1.375rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.site-name a { text-decoration: none; }

.logo-politon { color: #3A2E28; }
.logo-io      { color: #4a44b5; }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

nav a {
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding-bottom: 0.1rem;
}

nav a:hover { color: var(--fg); }

nav a.active {
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
}

/* ── Site intro (home only) ── */

.site-intro {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

/* ── Feed ── */

.feed { display: flex; flex-direction: column; }

.feed-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}

.feed-item:last-child { border-bottom: 1px solid var(--rule); }

.item-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
}

.tag {
  font-size: 0.625rem;
  font-family: var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.175rem 0.5rem;
  background: var(--tag-bg);
  color: var(--tag-fg);
}

.item-date {
  font-size: 0.8125rem;
  color: var(--muted);
}

.item-title {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: normal;
  line-height: 1.4;
  margin-bottom: 0.375rem;
}

.item-title a:hover { text-decoration: underline; }

.item-source {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.item-summary {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Reading image ── */

.item-image {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 0.875rem;
}

/* ── Empty state ── */

.empty-state {
  padding: 2.5rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ── Page heading (tab pages) ── */

.page-head {
  margin-bottom: 2.5rem;
}

.page-head h1 {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: normal;
  margin-bottom: 0.375rem;
}

.page-head p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ── Mandate ── */

.mandate h1 {
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: normal;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.mandate-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  padding-bottom: 1.75rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.mandate-body {
  font-size: 1rem;
  line-height: 1.8;
}

.mandate-body h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: normal;
  margin: 2.25rem 0 0.75rem;
}

.mandate-body p { margin-bottom: 1rem; }

.mandate-body ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

.mandate-body li { margin-bottom: 0.375rem; }

/* ── Contact button ── */

.footer-contact { margin-top: 0.75rem; }

.contact-btn {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: none;
  border: 1px solid var(--rule);
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.contact-btn:hover { color: var(--fg); border-color: var(--fg); }

.copy-confirm {
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s;
  vertical-align: middle;
}
.copy-confirm.show { opacity: 1; }

/* ── Footer ── */

footer {
  margin-top: 5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── Responsive ── */

@media (max-width: 480px) {
  nav { gap: 0.25rem 1rem; }
  .item-title { font-size: 1rem; }
}
