/* sup.takaora.ru — simple reading layout; post markup is WordPress block HTML */
:root {
  color-scheme: light;
  --text: #333;
  --muted: #707070;
  --line: #e5e5e5;
  --bg: #f1f1f1;
  --paper: #fff;
  --link: #333;

  /* Theme palette used inside posts (Twenty Fifteen + core presets) */
  --wp--preset--color--black: #000;
  --wp--preset--color--dark-gray: #111;
  --wp--preset--color--light-gray: #f1f1f1;
  --wp--preset--color--white: #fff;
  --wp--preset--color--yellow: #f4ca16;
  --wp--preset--color--dark-brown: #352712;
  --wp--preset--color--medium-pink: #e53b51;
  --wp--preset--color--light-pink: #ffe5d1;
  --wp--preset--color--dark-purple: #2e2256;
  --wp--preset--color--purple: #674970;
  --wp--preset--color--blue-gray: #22313f;
  --wp--preset--color--bright-blue: #55c3dc;
  --wp--preset--color--light-blue: #e9f2f9;
  --wp--preset--color--vivid-red: #cf2e2e;
  --wp--preset--color--vivid-cyan-blue: #0693e3;
  --wp--preset--color--vivid-green-cyan: #00d084;
  --wp--preset--color--luminous-vivid-amber: #fcb900;
  --wp--preset--color--luminous-vivid-orange: #ff6900;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0 auto;
  max-width: 760px;
  background: var(--paper);
  color: var(--text);
  font: 17px/1.7 "Noto Serif", Georgia, "Times New Roman", serif;
  min-height: 100vh;
  overflow-wrap: break-word;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #000; }

header.site { padding: 40px 48px 24px; border-bottom: 1px solid var(--line); }
.site-title { font: 700 26px/1.2 "Noto Sans", system-ui, sans-serif; text-decoration: none; }
.site-desc { margin: 8px 0 0; color: var(--muted); font: 14px/1.5 "Noto Sans", system-ui, sans-serif; }
main { padding: 32px 48px 48px; }
footer.site { padding: 24px 48px 40px; border-top: 1px solid var(--line); color: var(--muted); font: 13px "Noto Sans", system-ui, sans-serif; }
footer.site a { color: var(--muted); }

.meta, .tags { color: var(--muted); font: 14px/1.5 "Noto Sans", system-ui, sans-serif; }
.meta a, .tags a { color: var(--muted); }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 0; }
.post-title { font: 700 22px/1.3 "Noto Sans", system-ui, sans-serif; text-decoration: none; }
.post-list p { margin: 10px 0 0; }

.entry-title, .archive-title { font: 700 32px/1.25 "Noto Sans", system-ui, sans-serif; margin: 0 0 8px; }
.archive-title { font-size: 24px; margin-bottom: 28px; }
.entry-content { margin-top: 28px; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: "Noto Sans", system-ui, sans-serif; line-height: 1.3; margin: 1.8em 0 .6em; }
.entry-content blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 4px solid var(--text); color: var(--muted); font-style: italic; }
.tags { margin-top: 32px; }

.post-nav { display: flex; gap: 24px; justify-content: space-between; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font: 15px/1.4 "Noto Sans", system-ui, sans-serif; }
.post-nav .next { margin-left: auto; text-align: right; }

/* Media */
img { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
figure { margin: 1.5em 0; }
figcaption, .wp-element-caption, .wp-caption-text { color: var(--muted); font: italic 14px/1.5 "Noto Sans", system-ui, sans-serif; margin-top: 6px; }
.wp-caption { max-width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.entry-content::after { content: ""; display: table; clear: both; }

/* Tables */
.wp-block-table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
table.has-fixed-layout { table-layout: fixed; }
td, th { border: 1px solid var(--line); padding: 6px 10px; vertical-align: top; }

/* Block colour classes */
.has-black-color { color: var(--wp--preset--color--black); }
.has-dark-gray-color { color: var(--wp--preset--color--dark-gray); }
.has-light-gray-color { color: var(--wp--preset--color--light-gray); }
.has-white-color { color: var(--wp--preset--color--white); }
.has-yellow-color { color: var(--wp--preset--color--yellow); }
.has-dark-brown-color { color: var(--wp--preset--color--dark-brown); }
.has-medium-pink-color { color: var(--wp--preset--color--medium-pink); }
.has-light-pink-color { color: var(--wp--preset--color--light-pink); }
.has-dark-purple-color { color: var(--wp--preset--color--dark-purple); }
.has-purple-color { color: var(--wp--preset--color--purple); }
.has-blue-gray-color { color: var(--wp--preset--color--blue-gray); }
.has-bright-blue-color { color: var(--wp--preset--color--bright-blue); }
.has-light-blue-color { color: var(--wp--preset--color--light-blue); }
.has-vivid-red-color { color: var(--wp--preset--color--vivid-red); }
.has-vivid-cyan-blue-color { color: var(--wp--preset--color--vivid-cyan-blue); }
.has-vivid-green-cyan-color { color: var(--wp--preset--color--vivid-green-cyan); }
.has-luminous-vivid-amber-color { color: var(--wp--preset--color--luminous-vivid-amber); }
.has-luminous-vivid-orange-color { color: var(--wp--preset--color--luminous-vivid-orange); }
.has-link-color a { color: inherit; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  header.site, main, footer.site { padding-left: 16px; padding-right: 16px; }
  .entry-title { font-size: 26px; }
  .alignleft, .alignright { float: none; margin: 1em 0; }
  .post-nav { flex-direction: column; }
}
