@font-face {
  font-family: "FoxSerif";
  src: local("Georgia");
}

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --border: #e6e6e6;
  --border2: #d8d8d8;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.4;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.utility__left,
.utility__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #222;
  background: transparent;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.icon:hover {
  border-color: var(--border2);
  background: #fafafa;
}

.masthead {
  text-align: center;
  padding: 2px 0 12px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.masthead__title {
  font-family: "FoxSerif", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 46px;
  letter-spacing: -0.02em;
  line-height: 1;
  padding-top: 10px;
}

.masthead__sub {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.cats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.cats a {
  color: #111;
  text-decoration: none;
}

.cats a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.main {
  padding: 18px 0 32px;
}

.mag {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 22px;
  align-items: start;
  padding-top: 18px;
}

@media (max-width: 980px) {
  .mag {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.rail {
  display: grid;
  gap: 18px;
}

.story {
  border: 1px solid var(--border);
  padding: 12px;
  background: #fff;
}

.thumb {
  border: 1px solid var(--border);
  background: #f4f4f4;
}

.thumb--small {
  height: 150px;
  margin-bottom: 10px;
}

.thumb--hero {
  height: 360px;
}

.thumb--a {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.05), transparent 50%),
    radial-gradient(600px 200px at 40% 30%, rgba(0, 0, 0, 0.06), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='500'%3E%3Crect width='800' height='500' fill='%23e9e9e9'/%3E%3Cpath d='M0 380 C180 320 240 480 420 410 C560 360 620 420 800 360' stroke='%23cfcfcf' stroke-width='18' fill='none'/%3E%3C/svg%3E");
  background-size: cover;
}

.thumb--b {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.05), transparent 50%),
    radial-gradient(600px 200px at 40% 30%, rgba(0, 0, 0, 0.06), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='500'%3E%3Crect width='800' height='500' fill='%23ededed'/%3E%3Ccircle cx='560' cy='210' r='120' fill='%23d8d8d8'/%3E%3C/svg%3E");
  background-size: cover;
}

.thumb--c {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.05), transparent 50%),
    radial-gradient(600px 200px at 40% 30%, rgba(0, 0, 0, 0.06), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='500'%3E%3Crect width='800' height='500' fill='%23efefef'/%3E%3Cpath d='M80 420 L300 220 L520 420 Z' fill='%23d0d0d0'/%3E%3Cpath d='M360 420 L520 260 L720 420 Z' fill='%23c9c9c9'/%3E%3C/svg%3E");
  background-size: cover;
}

.thumb--hero {
  background:
    radial-gradient(900px 500px at 35% 30%, rgba(0, 0, 0, 0.1), transparent 55%),
    radial-gradient(900px 500px at 70% 55%, rgba(0, 0, 0, 0.08), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800'%3E%3Crect width='1200' height='800' fill='%23eaeaea'/%3E%3Ccircle cx='600' cy='360' r='220' fill='%23d8d8d8'/%3E%3Ccircle cx='600' cy='360' r='140' fill='%23cfcfcf'/%3E%3C/svg%3E");
  background-size: cover;
}

.h2 {
  font-family: "FoxSerif", Georgia, "Times New Roman", serif;
  font-size: 22px;
  margin: 10px 0 8px;
  text-align: center;
}

.h3 {
  font-family: "FoxSerif", Georgia, "Times New Roman", serif;
  font-size: 16px;
  margin: 0 0 6px;
}

.h3 a {
  color: #111;
  text-decoration: none;
}

.h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.excerpt {
  color: #555;
  font-size: 12px;
  line-height: 1.45;
  margin: 0 0 10px;
}

.excerpt--center {
  text-align: center;
}

.meta {
  color: #777;
  font-size: 11px;
}

.feature {
  border: 1px solid var(--border);
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow);
}

.feature__image {
  display: block;
  text-decoration: none;
}

.feature__text {
  padding-top: 10px;
}

.postgrid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 22px;
  align-items: start;
  padding-top: 18px;
}

@media (max-width: 980px) {
  .postgrid {
    grid-template-columns: 1fr;
  }
}

.postmain {
  border: 1px solid var(--border);
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow);
}

.posttitle {
  font-family: "FoxSerif", Georgia, "Times New Roman", serif;
  font-size: 28px;
  margin: 8px 0 12px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.content {
  color: #333;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 12px;
}

.content p {
  margin: 0 0 12px;
}

.postside {
  display: grid;
  gap: 18px;
}

.sidebox {
  border: 1px solid var(--border);
  background: #fff;
  padding: 12px;
}

.sidebox__title {
  font-family: "FoxSerif", Georgia, "Times New Roman", serif;
  font-size: 14px;
  margin-bottom: 10px;
}

.sidelink {
  display: block;
  color: #111;
  text-decoration: none;
  font-size: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.sidelink:first-of-type {
  border-top: none;
  padding-top: 0;
}

.sidelink:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sidepill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--border);
  font-size: 11px;
  margin: 6px 6px 0 0;
  background: #fafafa;
}

.aboutgrid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 22px;
  align-items: start;
  padding-top: 18px;
}

@media (max-width: 980px) {
  .aboutgrid {
    grid-template-columns: 1fr;
  }
}

.aboutmain {
  border: 1px solid var(--border);
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow);
}

.aboutside {
  display: grid;
  gap: 18px;
}
