@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=Inter:wght@400;500;600&display=swap");
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: #111; font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
img { display: block; width: 100%; object-fit: cover; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.top { border-bottom: 1px solid #111; }
.top-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 14px; }
.date { font-size: 13px; color: #555; text-transform: capitalize; }
.logo { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 52px; letter-spacing: -1.5px; line-height: 1; }
.search { justify-self: end; width: 100%; max-width: 240px; border: 1px solid #ccc; padding: 8px 10px; font: inherit; font-size: 14px; border-radius: 2px; }
.search:focus { border-color: #111; outline: none; }
.nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 0; border-top: 1px solid #e5e5e5; padding-top: 10px; padding-bottom: 10px; }
.nav button { font-size: 14px; font-weight: 500; padding: 2px 16px; border-left: 1px solid #ddd; color: #333; }
.nav button:first-child { border-left: 0; }
.nav button:hover, .nav button.on { color: #000; text-decoration: underline; text-underline-offset: 5px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 36px; padding-bottom: 64px; }
section { margin-top: 48px; }
.sec { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border-top: 2px solid #111; padding-top: 10px; margin: 0 0 22px; }
.more { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #555; }
.img-btn { display: block; width: 100%; }
.src { margin: 8px 0 0; font-size: 12px; letter-spacing: .02em; color: #6b6b6b; text-transform: uppercase; }
.editor, .login { display: flex; flex-direction: column; gap: 16px; margin: 16px 0; }
.editor label, .login label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #444; }
.editor input, .editor textarea, .login input { font: inherit; font-size: 16px; padding: 10px; border: 1px solid #ccc; border-radius: 2px; width: 100%; }
.ed-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ed-btn { font: inherit; font-size: 14px; padding: 9px 16px; border: 1px solid #111; background: #fff; color: #111; cursor: pointer; margin-bottom: 16px; }
.ed-btn.primary { background: #111; color: #fff; }
.err { color: #b00020; font-size: 14px; }
.hint-n { font-size: 13px; color: #666; }
.foot-link { font-size: 14px; text-decoration: underline; }
.login { max-width: 360px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: #666; margin: 12px 0 6px; }
.cat { font-weight: 600; color: #111; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
h1, h3, .ranked { font-family: "Source Serif 4", Georgia, serif; }
.hero img { aspect-ratio: 16 / 9; }
.hero h1 { font-size: 40px; line-height: 1.12; margin: 4px 0 12px; letter-spacing: -.5px; }
.lead { font-size: 18px; color: #333; margin: 0; max-width: 720px; }

.list-n { display: flex; flex-direction: column; }
.card-n h3 { font-size: 20px; line-height: 1.25; margin: 0 0 6px; }
.sum { margin: 0; color: #444; font-size: 15px; }
.card-n.compact { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid #e5e5e5; }
.card-n.compact:first-child { padding-top: 0; }
.card-n.compact .meta { margin-top: 0; }
.card-n img { aspect-ratio: 3 / 2; }
.grid-n { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.side .sec { margin-top: 0; }
.side { position: relative; }
.ranked { margin: 0 0 40px; padding-left: 22px; }
.ranked li { padding: 10px 0; border-bottom: 1px solid #eee; font-size: 16px; line-height: 1.3; }

.ad { margin: 40px 0; }
.ad-label { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #888; margin-bottom: 6px; }
.ad-box { background: #f4f4f4; border: 1px solid #e8e8e8; }
.ad-wide .ad-box { height: 90px; max-width: 728px; margin: 0 auto; }
.ad-wide { text-align: center; }
.ad-side .ad-box { height: 250px; }
.side .ad { position: sticky; top: 20px; margin: 0; }

.full h1 { font-size: 38px; line-height: 1.15; margin: 4px 0 14px; }
.full img { margin: 28px 0; aspect-ratio: 16 / 9; }
.body { font-family: "Source Serif 4", Georgia, serif; font-size: 19px; line-height: 1.65; max-width: 680px; color: #222; }
.back { margin-top: 24px; font-size: 14px; color: #555; }
.cat-title { font-size: 40px; margin: 0 0 28px; }
.empty-n { color: #555; }

.foot { border-top: 1px solid #111; padding: 24px 0; font-size: 13px; color: #666; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot strong { font-family: "Source Serif 4", Georgia, serif; color: #111; font-size: 18px; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .side { display: none; }
  .grid-n { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .top-row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .logo { font-size: 42px; }
  .search { justify-self: stretch; max-width: none; }
  .nav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
  .nav button { white-space: nowrap; padding: 2px 12px; }
  .hero h1, .full h1, .cat-title { font-size: 28px; }
  .grid-n { grid-template-columns: 1fr; }
  .card-n.compact { grid-template-columns: 110px 1fr; gap: 14px; }
  .card-n.compact .sum { display: none; }
  .card-n.compact h3 { font-size: 17px; }
  .ad-wide .ad-box { height: 100px; }
}
