:root {
  --bg: #fff8e8;
  --paper: #fffdf5;
  --text: #241f1a;
  --muted: #766b5f;
  --border: #2b2722;
  --soft-border: #e3d4b8;
  --accent: #24c9bc;
  --teal: #087a72;
  --gold: #f3b23c;
  --coral: #c7352f;
  --shadow: rgba(36, 31, 26, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  background:
    linear-gradient(rgba(36, 31, 26, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 31, 26, 0.025) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(36, 201, 188, 0.2), transparent 32rem),
    linear-gradient(135deg, #fff8e8 0%, #f7ebcf 48%, #dff3ef 100%);
  background-size: 28px 28px, 28px 28px, auto, auto;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.site-header,
.site-footer,
.site-main {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 2px solid var(--border);
  background: rgba(255, 253, 245, 0.88);
  box-shadow: 6px 6px 0 var(--border);
}

.site-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-title img {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--border);
  object-fit: cover;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}

.site-header nav a,
.hero-link,
.pagination a {
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--text);
  padding: 7px 10px;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--border);
}

.site-header nav a:hover,
.hero-link:hover,
.pagination a:hover {
  background: var(--gold);
  transform: translate(-1px, -1px);
}

.site-main {
  padding: 56px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 42px;
  padding: clamp(28px, 6vw, 64px);
  border: 2px solid var(--border);
  background:
    linear-gradient(90deg, rgba(36, 201, 188, 0.18), transparent 42%),
    var(--paper);
  box-shadow: 10px 10px 0 var(--border);
  animation: fade-up 520ms ease both;
}

.hero::after {
  content: "";
  position: absolute;
  right: clamp(18px, 4vw, 44px);
  bottom: clamp(18px, 4vw, 44px);
  width: clamp(76px, 16vw, 148px);
  aspect-ratio: 1;
  border: 2px solid var(--border);
  background:
    linear-gradient(45deg, var(--accent) 0 25%, transparent 25% 50%, var(--coral) 50% 75%, var(--gold) 75%),
    var(--paper);
  box-shadow: 6px 6px 0 var(--border);
  opacity: 0.9;
  transform: rotate(3deg);
}

.eyebrow,
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 700;
}

.eyebrow {
  color: var(--accent);
  margin: 0 0 14px;
}

.hero h1 {
  margin: 0 0 12px;
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.95;
}

.hero p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-link {
  display: inline-block;
  margin-top: 28px;
  font-weight: 700;
}

.section-kicker {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  color: var(--text);
}

.post-card {
  position: relative;
  margin-bottom: 18px;
  padding: 26px;
  border: 2px solid var(--border);
  background: rgba(255, 253, 245, 0.92);
  box-shadow: 5px 5px 0 var(--shadow);
  animation: fade-up 520ms ease both;
}

.post-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(var(--accent), var(--gold), var(--coral));
}

.post-card h2 {
  margin: 6px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.post-card h2 a {
  color: var(--text);
}

.post-card h2 a:hover {
  color: var(--accent);
}

.post-card p {
  margin: 0;
  color: var(--muted);
}

.post-date {
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.pagination a {
  font-weight: 650;
}

.post-header {
  position: relative;
  margin-bottom: 36px;
  padding: 18px 190px 28px 0;
  border-bottom: 2px solid var(--border);
}

.post-header h1 {
  margin: 8px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1;
}

.post-description {
  color: var(--muted);
  font-size: 20px;
}

.post-source-link {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-grid;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 42px;
  border: 2px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 48%),
    var(--accent);
  color: var(--text);
  padding: 10px 14px;
  box-shadow: 5px 5px 0 var(--border), inset 0 -3px 0 rgba(36, 31, 26, 0.18);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transform: rotate(1deg);
}

.post-source-link:hover {
  background: var(--gold);
  transform: translate(-2px, -2px) rotate(1deg);
}

.post-source-link:active {
  box-shadow: 2px 2px 0 var(--border), inset 0 2px 0 rgba(36, 31, 26, 0.16);
  transform: translate(2px, 2px) rotate(1deg);
}

.post-content h2 {
  margin-top: 40px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.2;
}

.post-content,
.site-main > h1,
.site-main > p,
.site-main > ul {
  max-width: 760px;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border: 2px solid var(--border);
  box-shadow: 5px 5px 0 var(--shadow);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 42px;
  border-top: 2px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero::after {
    display: none;
  }

  .pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-header {
    padding: 0 0 28px;
  }

  .post-source-link {
    position: static;
    margin-bottom: 16px;
  }

  .site-footer {
    flex-direction: column;
  }
}
