/* ppcwins.com - single stylesheet. Look follows the old Twenty Twenty-Five theme (Manrope, black on white). */
@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope-VariableFont_wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --text: #111;
  --muted: #555;
  --bg: #fff;
  --card: #fafafa;
  --line: #ddd;
  --code-bg: #f4f4f4;
  --measure: 645px;
  --wide: 1340px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 clamp(17px, 1.1rem + 0.2vw, 20px)/1.6 "Manrope", system-ui, sans-serif;
}
a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; }
strong, b { font-weight: 700; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); margin: 1.8em 0 0.5em; }
h3 { font-size: 1.3rem; margin: 1.5em 0 0.4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }

.wrap { max-width: calc(var(--measure) + 32px); margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding: 0 clamp(16px, 4vw, 50px); }

/* header */
.site-header { padding: 18px 0; margin-bottom: clamp(40px, 8vw, 110px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-title { font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; gap: 20px; align-items: center; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.has-sub { position: relative; }
.has-sub summary { cursor: pointer; list-style: none; }
.has-sub summary::-webkit-details-marker { display: none; }
.has-sub summary::after { content: " \25BE"; font-size: 0.8em; }
.has-sub .sub {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 10;
  background: var(--bg); border: 1px solid var(--line); padding: 8px 0; min-width: 190px;
}
.has-sub .sub a { display: block; padding: 6px 16px; }

/* posts */
.post-meta { font-size: 0.85rem; color: var(--muted); margin: 0.8em 0 2em; }
.hero { display: block; width: 100%; margin: 0 0 0.5em; }
.entry figure { margin: 1.5em 0; }
.entry figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.4em; }
.entry img.aligncenter, .entry figure.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry .alignleft { float: left; margin: 0.3em 1.2em 1em 0; }
.entry .alignright { float: right; margin: 0.3em 0 1em 1.2em; }
.entry::after { content: ""; display: table; clear: both; }
.entry table { border-collapse: collapse; width: 100%; font-size: 0.9rem; display: block; overflow-x: auto; }
.entry td, .entry th { border: 1px solid var(--line); padding: 6px 8px; }
.entry blockquote { margin: 1.5em 0; padding-left: 1em; border-left: 3px solid var(--text); }
pre.code {
  background: var(--code-bg); padding: 14px 16px; overflow-x: auto;
  font: 400 0.8rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }

.toc { background: var(--card); border: 1px solid var(--line); padding: 14px 20px; margin: 1.5em 0; font-size: 0.95rem; }
.toc-title { font-weight: 700; margin: 0 0 0.4em; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc ol ol { margin: 0.2em 0; }

.dynamic-content { display: none; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 1.5em 0; }
.card { background: var(--card); padding: 20px; }
.card img { display: block; width: 100%; height: auto; margin-bottom: 20px; }
.card h2 { font-size: 1.35rem; margin: 0; }
.all-link { font-weight: 600; }
.more { margin-top: 4em; }
.more-title { font-size: 0.85rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.more .card h2 { font-size: 1.1rem; }
@media (max-width: 767px) { .cards { grid-template-columns: 1fr; } }

/* footer */
.site-footer { margin-top: clamp(60px, 10vw, 120px); padding: 40px 0 60px; font-size: 0.9rem; }
.footer-title { font-size: 1.8rem; font-weight: 400; margin: 0 0 0.3em; }
.footer-title a { text-decoration: none; }

.video { display: block; position: relative; aspect-ratio: 16 / 9; margin: 1.5em 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
