@import url("https://fonts.googleapis.com/css2?family=Special+Elite&display=swap");

:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #777777;
  --card: #ffffff;
  --parchment: #f5ecd7;
  --divider: #eeeeee;
}

[data-theme="dark"] {
  --bg: #121212;
  --fg: #f1f1f1;
  --muted: #b0b0b0;
  --card: #1a1a1a;
  --parchment: #3a3124;
  --divider: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background: var(--bg);
  color: var(--fg);
  margin: 0;
  display: flex;
  justify-content: center;
}

.page {
  width: 100%;
  max-width: 980px;
  padding: 56px 40px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 58px;
  font-size: 14px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.title {
  font-size: 18px;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.tagline {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.theme-toggle {
  border: 0;
  background: transparent;
  color: var(--fg);
  padding: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle .icon {
  width: 20px;
  height: 20px;
  display: block;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle.is-dark .icon-sun {
  display: block;
}

.theme-toggle.is-dark .icon-moon {
  display: none;
}

.grid {
  column-count: 3;
  column-gap: 16px;
}

@media (max-width: 980px) {
  .page {
    max-width: 900px;
    padding: 48px 28px;
  }
}

@media (max-width: 820px) {
  .grid {
    column-count: 2;
  }

  .page {
    padding: 40px 22px;
  }
}

@media (max-width: 520px) {
  .grid {
    column-count: 1;
  }

  .page {
    padding: 28px 16px;
  }

  .header {
    margin-bottom: 48px;
  }
}

.item {
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 16px;
  break-inside: avoid;
}

.item img {
  width: 100%;
  height: auto;
  max-height: 980px;
  object-fit: cover;
  display: block;
}

.item.allow-tall img {
  max-height: none;
}

.media-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content {
  padding: 14px;
  font-size: 14px;
  line-height: 1.4;
}

.text-only {
  background: var(--parchment);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  font-weight: 400;
  font-family: "Special Elite", "Courier New", Courier, monospace;
}

.text-only .content {
  font-family: "Special Elite", "Courier New", Courier, monospace;
}

.image-text {
  display: flex;
  flex-direction: column;
  background: var(--card);
}

.image-text img {
  height: auto;
  flex-shrink: 0;
}

.image-text .content {
  border-top: 1px solid var(--divider);
}
