:root {
  --brand: #25408f;
  --brand-dark: #1a2f6b;
  --ink: #222;
  --muted: #666;
  --rule: #ddd;
  --soft: #f5f5f5;
  --note: #fff8d6;
  --font: "Noto Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 17px/1.6 var(--font); }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.topbar { background: var(--brand); color: #fff; }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-top: 10px; padding-bottom: 10px; }
.brand { color: #fff; font-weight: 700; font-size: 26px; text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
.topbar ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; }
.topbar nav a { color: #fff; text-decoration: none; font-size: 15px; }
.topbar nav a:hover { text-decoration: underline; }
.archive-note { background: var(--note); border-bottom: 1px solid #eadf9f; font-size: 14px; padding: 8px 0; }

/* Columns */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 28px 0 48px; }
.main { min-width: 0; }
.wrap > .main { max-width: 780px; padding: 28px 0 48px; }
@media (max-width: 900px) {
  .cols { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* Sidebar */
.sidebar { font-size: 15px; }
.sidebar section { border-top: 3px solid var(--brand); padding-top: 8px; margin-bottom: 28px; }
.sidebar h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 8px; color: var(--muted); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 3px 0; }
.sidebar .count { color: var(--muted); font-size: 13px; }
.sidebar .archives a { margin-right: 4px; }

/* Teasers */
.archive-head { border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.archive-head h1 { margin: 0 0 12px; font-size: 30px; }
.tease { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.tease.has-thumb { grid-template-columns: 220px minmax(0, 1fr); }
.tease .thumb img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tease h2 { font-size: 23px; line-height: 1.25; margin: 0 0 4px; }
.tease h2 a { color: var(--ink); text-decoration: none; }
.tease h2 a:hover { color: var(--brand); }
.excerpt p { margin: 0 0 10px; }
.more { margin: 0; font-size: 15px; }
@media (max-width: 600px) {
  .tease.has-thumb { grid-template-columns: minmax(0, 1fr); }
}
.kicker { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.kicker a { text-decoration: none; }
.byline { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.byline .sep { margin: 0 4px; }

/* Pager */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 24px 0; font-size: 15px; }
.pager span { color: var(--muted); }
.pager .older { margin-left: auto; }
.pager .newer + span { margin: 0 auto; }

/* Article */
.post h1 { font-size: 36px; line-height: 1.2; margin: 0 0 8px; }
@media (max-width: 600px) { .post h1 { font-size: 28px; } }
.entry { font-family: var(--serif); font-size: 19px; line-height: 1.65; }
.entry h2, .entry h3, .entry h4 { font-family: var(--font); line-height: 1.3; }
.entry blockquote { margin: 1.2em 0; padding: 0 0 0 18px; border-left: 4px solid var(--rule); color: #444; }
.entry table { border-collapse: collapse; width: 100%; font-family: var(--font); font-size: 15px; display: block; overflow-x: auto; }
.entry td, .entry th { border: 1px solid var(--rule); padding: 6px 8px; }
.hero { margin: 0 0 24px; }
.hero img { display: block; width: 100%; }
figure { margin: 0 0 1.2em; }
figcaption, .wp-caption-text { font-family: var(--font); font-size: 14px; line-height: 1.45; color: var(--muted); padding-top: 6px; }
.wp-caption { max-width: 100%; }
.wp-caption img { display: block; }
.alignleft { float: left; margin: 6px 24px 12px 0; max-width: 50%; }
.alignright { float: right; margin: 6px 0 12px 24px; max-width: 50%; }
.aligncenter, .alignnone { display: block; margin-left: auto; margin-right: auto; clear: both; }
@media (max-width: 600px) {
  .alignleft, .alignright { float: none; margin: 0 0 1.2em; max-width: 100%; }
}
.entry::after, .post-foot::before { content: ""; display: table; clear: both; }

.audio { background: var(--soft); padding: 12px 14px; border-left: 4px solid var(--brand); }
.audio figcaption { padding: 0 0 8px; color: var(--ink); font-weight: 700; }
.audio audio { width: 100%; }
.audio.alignright { width: 320px; }

.embed { margin: 0 0 1.2em; }
.embed-video { position: relative; aspect-ratio: 16 / 9; }
.embed-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-doc iframe { width: 100%; height: 600px; border: 1px solid var(--rule); }
.embed-link, .embed-note { font-family: var(--font); font-size: 14px; color: var(--muted); }
.embed-note { background: var(--soft); padding: 10px 14px; }
.embed-audio, .embed-generic, .asset-frame { display: block; width: 100%; border: 0; margin: 0 0 1.2em; }
.asset { margin: 0 0 1.2em; font-family: var(--font); overflow-x: auto; }
.tweettext { font-weight: 700; background: linear-gradient(transparent 60%, #e3e8f6 60%); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 0 0 1.2em; }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.twitter-tweet, .instagram-media { margin-left: 0 !important; }

.post-foot { margin-top: 28px; font-size: 15px; }
.filed { color: var(--muted); }
.related-topics { background: var(--soft); padding: 12px 16px; margin: 16px 0; }
.related-topics h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 4px; color: var(--muted); }
.related-topics ul { margin: 0; padding-left: 18px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 16px 0; margin: 28px 0; font-size: 15px; }
.post-nav a { text-decoration: none; color: var(--ink); }
.post-nav a:hover { color: var(--brand); }
.post-nav span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.post-nav .older { grid-column: 2; text-align: right; }
@media (max-width: 600px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .older { grid-column: 1; text-align: left; }
}

/* Topics */
.topic-list { list-style: none; padding: 0; margin: 0; }
.topic-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 19px; }
.topic-list a { text-decoration: none; font-weight: 700; }
.topic-list .count { display: block; font-size: 14px; color: var(--muted); }
.topic-posts h2 { font-size: 22px; border-top: 3px solid var(--brand); padding-top: 10px; margin-top: 40px; }

/* Search */
.search-form input { width: 100%; font: inherit; padding: 10px 12px; border: 2px solid var(--rule); border-radius: 4px; }
.search-form input:focus { border-color: var(--brand); outline: none; }
.search-status { color: var(--muted); font-size: 14px; }
.results { padding-left: 0; list-style: none; }
.results li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.results a { font-weight: 700; font-size: 18px; text-decoration: none; }
.results .d { color: var(--muted); font-size: 13px; display: block; }
.results p { margin: 4px 0 0; font-size: 15px; }

/* Footer */
.footer { background: var(--soft); border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; padding: 20px 0; }
.footer p { margin: 4px 0; }
