:root {
  color-scheme: light;
  --paper: #f5f1e8;
  --paper-deep: #ebe4d6;
  --card: #fffdf8;
  --ink: #24221f;
  --muted: #6d675e;
  --line: #dcd3c4;
  --accent: #65533f;
  --focus: #285f86;
  --kinder-bg: #e7f0e6;
  --kinder-ink: #36583a;
  --ehe-bg: #f3e3df;
  --ehe-ink: #78463e;
  --glaube-bg: #e5e6f1;
  --glaube-ink: #4a4e78;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 280px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgb(255 255 255 / 52%), transparent 35rem),
    var(--paper);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgb(245 241 232 / 88%);
}

.header-inner,
.feed-shell,
.site-footer {
  width: min(100% - 2rem, 43rem);
  margin-inline: auto;
}

.header-inner {
  padding: 3rem 0 2.25rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 0.85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 12vw, 4.1rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.intro {
  max-width: 33rem;
  margin-bottom: 1.3rem;
  color: #4e4942;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  line-height: 1.55;
}

.feed-shell {
  padding: 2rem 0 3rem;
}

.feed-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-inline: 0.1rem;
}

.feed-heading h2 {
  margin-bottom: 0;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.feed-heading span {
  color: var(--muted);
  font-size: 0.75rem;
}

.feed {
  display: grid;
  gap: 0.8rem;
}

.post-card {
  position: relative;
  overflow: hidden;
  padding: 1.2rem 3.35rem 1.25rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--card);
}

.post-card:first-child {
  border-color: #b8aa95;
  box-shadow: 0 0.5rem 1.5rem rgb(73 59 40 / 7%);
}

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

.topic,
.new-label {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
}

.topic[data-topic="kinder"] {
  color: var(--kinder-ink);
  background: var(--kinder-bg);
}

.topic[data-topic="ehe"] {
  color: var(--ehe-ink);
  background: var(--ehe-bg);
}

.topic[data-topic="glaube"] {
  color: var(--glaube-ink);
  background: var(--glaube-bg);
}

.new-label {
  display: none;
  padding-inline: 0;
  color: var(--muted);
}

.post-card:first-child .new-label {
  display: inline-flex;
}

.post-text {
  max-width: 38rem;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 5vw, 1.27rem);
  line-height: 1.52;
  text-wrap: pretty;
}

.attribution {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.dismiss-button {
  position: absolute;
  top: 0.75rem;
  right: 0.65rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #898277;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.dismiss-button span {
  display: block;
  margin-top: -0.15rem;
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1;
}

.dismiss-button:hover {
  color: var(--ink);
  background: var(--paper);
}

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

.loading,
.empty-state,
.error-state {
  padding: 2rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.error-state {
  color: #7b332e;
}

.site-footer {
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 10;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin-inline: auto;
  padding: 0.75rem 1rem;
  border: 1px solid #393630;
  border-radius: 999px;
  color: #fff;
  background: #393630;
  box-shadow: 0 0.45rem 1.4rem rgb(0 0 0 / 16%);
  font-size: 0.78rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 42rem) {
  .header-inner {
    padding-top: 4.5rem;
  }

  .post-card {
    padding: 1.45rem 4rem 1.5rem 1.5rem;
  }

  .dismiss-button {
    top: 0.9rem;
    right: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
