/*
 * WordTsar Phosphor - loaded after Simple's style.css.
 * Dark, amber accent (from the ASCII logo), IBM Plex Sans + Mono (bundled, SIL OFL 1.1).
 */

/* ---------------------------------------------------------------- fonts */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-700-normal.woff2") format("woff2"); }

/* ---------------------------------------------------------------- tokens */
:root:root {
  --wt-bg: #0d0d0f;
  --wt-bg-2: #111114;
  --wt-card: #141418;
  --wt-fg: #ececec;
  --wt-muted: #9a9aa3;
  --wt-accent: #ffb000;
  --wt-on-accent: #111;
  --wt-line: #25252b;
  --wt-line-strong: #3a3a42;
  --wt-radius: 8px;
  --wt-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wt-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;
  --wt-glow: 0 0 0 1px #222, 0 30px 80px -20px rgba(255, 176, 0, .25);

  /* Simple's variables */
  --page-bg: var(--wt-bg);
  --text-color: #d6d6db;
  --headings-color: var(--wt-fg);
  --link-color: var(--wt-accent);
  --link-color-hover: #ffc844;
  --color: var(--wt-accent);
  --nav-link-color: var(--wt-muted);
  --nav-link-color-hover: var(--wt-fg);
  --logo-color: var(--wt-fg);
  --light: var(--wt-line);
  --lighter: var(--wt-bg-2);
  --gray: var(--wt-muted);
  --dark: var(--wt-fg);
  --helper: var(--wt-bg);
  --body-font: var(--wt-sans);
  --heading-font: var(--wt-mono);
  --menu-font: var(--wt-sans);
  --logo-font: var(--wt-mono);
  --border-radius: 8px;
}

html { background: var(--wt-bg); color-scheme: dark; }
body { background: var(--wt-bg); color: var(--text-color); font-family: var(--wt-sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--wt-mono); font-weight: 700; letter-spacing: -.02em; color: var(--wt-fg); }
::selection { background: var(--wt-accent); color: var(--wt-on-accent); }
:focus-visible { outline: 2px solid var(--wt-accent); outline-offset: 3px; }

kbd {
  font: 600 .8rem/1 var(--wt-mono); display: inline-block; padding: .45em .6em; border-radius: 6px;
  background: #1a1a1f; color: var(--wt-accent); border: 1px solid var(--wt-line-strong); box-shadow: 0 2px 0 var(--wt-line-strong);
}

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 10; background: rgba(13, 13, 15, .85);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--wt-line);
}
.top .logo > img { height: 50px; width: auto; padding: 0; border-radius: 4px; }
.navbar .navbar__menu li a, .navbar .navbar__menu li span { font-size: .95rem; }
.navbar .navbar__menu > li.active > a, .navbar .navbar__menu > li.active > span { color: var(--wt-fg); font-weight: 600; }

/* ---------------------------------------------------------------- shared bits */
.wt-eyebrow {
  font: 600 .8rem/1.4 var(--wt-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--wt-accent); margin: 0 0 1rem;
}
.wt-btn {
  display: inline-block; padding: .85rem 1.4rem; border-radius: var(--wt-radius); font-weight: 600; line-height: 1.2;
  text-decoration: none !important; transition: transform .15s ease, background-color .15s ease;
}
.wt-btn--main { background: var(--wt-accent); color: var(--wt-on-accent) !important; }
.wt-btn--main:hover { background: #ffc233; transform: translateY(-1px); }
.wt-btn--alt { border: 1px solid var(--wt-line-strong); color: var(--wt-fg) !important; }
.wt-btn--alt:hover { border-color: var(--wt-accent); }
.wt-more { display: inline-block; margin-top: 1rem; font-weight: 600; }
.wt-window { border-radius: 10px; overflow: hidden; background: #000; box-shadow: var(--wt-glow); border: 1px solid var(--wt-line); }
.wt-window__bar { display: flex; gap: 6px; padding: 10px 12px; background: #1a1a1f; }
.wt-window__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--wt-line-strong); }
.wt-window img, .wt-crt img { display: block; width: 100%; height: auto; }

/* ---------------------------------------------------------------- home */
.wt-hero {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background:
    radial-gradient(900px 400px at 75% 30%, rgba(255, 176, 0, .10), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .015) 0 1px, transparent 1px 3px);
}
.wt-hero__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
@media (min-width: 60em) { .wt-hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.wt-hero__title { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.12; margin: 0 0 1.25rem; text-shadow: 0 0 24px rgba(255, 176, 0, .25); }
.wt-cursor { color: var(--wt-accent); animation: wt-blink 1s steps(1) infinite; }
@keyframes wt-blink { 50% { opacity: 0; } }
.wt-lede { font-size: 1.25rem; color: var(--wt-muted); max-width: 34rem; margin: 0; }
.wt-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin: 2rem 0; }
.wt-chips { display: flex; gap: .5rem; flex-wrap: wrap; }

.wt-thennow__in {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; padding-top: 3rem; padding-bottom: 3rem;
}
@media (min-width: 50em) { .wt-thennow__in { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } }
@media (min-width: 60em) { .wt-thennow__in--two { grid-template-columns: minmax(0, 1fr) auto minmax(0, 2fr); } }
.wt-thennow__shots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: center; }
@media (min-width: 40em) { .wt-thennow__in--two .wt-thennow__shots { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.wt-window__bar { align-items: center; }
.wt-window__bar span { margin-left: .5rem; font: 600 .75rem var(--wt-mono); color: var(--wt-muted); }
.wt-thennow figure { margin: 0; }
.wt-thennow figcaption { font: 600 1rem var(--wt-mono); margin-top: 1rem; color: var(--wt-muted); text-align: center; }
.wt-crt { border-radius: 14px; padding: 14px; background: #111; box-shadow: 0 0 60px rgba(255, 176, 0, .15); }
.wt-crt img { image-rendering: pixelated; border-radius: 6px; }
.wt-thennow__arrow { font-size: 2.5rem; color: var(--wt-accent); text-align: center; }
@media (max-width: 49.99em) { .wt-thennow__arrow { transform: rotate(90deg); } }

.wt-feats { padding: 4rem 0; }
.wt-feats__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 1.5rem; }
.wt-feat { padding: 1.75rem; border-radius: var(--wt-radius); background: var(--wt-card); border: 1px solid var(--wt-line); }
.wt-feat__n { font: 600 .8rem var(--wt-mono); color: var(--wt-accent); }
.wt-feat h3 { font-size: 1.15rem; margin: .75rem 0 .6rem; }
.wt-feat p { color: var(--wt-muted); margin: 0; }

.wt-keys { padding: 4rem 0; background: var(--wt-bg-2); border-top: 1px solid var(--wt-line); border-bottom: 1px solid var(--wt-line); }
.wt-keys__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
@media (min-width: 55em) { .wt-keys__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.wt-keys h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 1rem; }
.wt-keys p { color: var(--wt-muted); }
.wt-keytable { width: 100%; border-collapse: collapse; background: var(--wt-card); border: 1px solid var(--wt-line); border-radius: var(--wt-radius); overflow: hidden; }
.wt-keytable td { padding: .7rem 1.1rem; border-bottom: 1px solid var(--wt-line); }
.wt-keytable tr:last-child td { border-bottom: 0; }
.wt-keytable td:first-child { width: 7rem; }

.wt-dl { padding: 4rem 0; }
.wt-dl__in {
  display: flex; gap: 2.5rem; align-items: center; flex-wrap: wrap; padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 16px; background: var(--wt-card); border: 1px solid var(--wt-line);
}
.wt-dl__badge { width: 150px; height: auto; border-radius: 12px; }
.wt-dl h2 { margin: 0 0 .75rem; }
.wt-dl p { color: var(--wt-muted); overflow-wrap: anywhere; }

.wt-news { padding: 1rem 0 5rem; }
.wt-news h2 { margin-bottom: 1.25rem; }
.wt-news__list { list-style: none; padding: 0; margin: 0 0 1rem; border-top: 1px solid var(--wt-line); }
.wt-news__list li { display: flex; gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--wt-line); flex-wrap: wrap; margin: 0; }
.wt-news__list time { font: 500 .9rem var(--wt-mono); color: var(--wt-muted); min-width: 7rem; }

/* ---------------------------------------------------------------- pages (docs layout) */
.wt-phead {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; background: var(--wt-bg-2); border-bottom: 1px solid var(--wt-line);
}
.wt-phead h1 { margin: 0; font-size: clamp(2rem, 4.5vw, 3rem); }
.wt-doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; padding-top: 3rem; padding-bottom: 4rem; }
.wt-has-toc .wt-doc { align-items: start; }
@media (min-width: 60em) { .wt-has-toc .wt-doc { grid-template-columns: 14rem minmax(0, 1fr); } }
.wt-doc .entry-wrapper { margin: 0; max-width: var(--entry-width); width: 100%; padding: 0; }
.wt-toc { display: flex; flex-direction: column; gap: .6rem; font-size: .92rem; }
.wt-toc[hidden] { display: none; }
.wt-toc b { font: 600 .75rem var(--wt-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--wt-fg); }
.wt-toc a { color: var(--wt-muted); }
.wt-toc a:hover { color: var(--wt-accent); }
@media (min-width: 60em) { .wt-toc { position: sticky; top: 6rem; } }
.wt-prose h2 { scroll-margin-top: 6rem; }

/* ---------------------------------------------------------------- content (pages and posts) */
.content__entry a { text-decoration-color: rgba(255, 176, 0, .45); }
.content__entry table { width: 100%; border-collapse: collapse; border: 1px solid var(--wt-line); }
.content__entry td, .content__entry th { padding: .6rem 1.1rem; border: 0; border-bottom: 1px solid var(--wt-line); text-align: left; }
.content__entry .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--wt-card); }
.content__entry .wp-block-table td:first-child { font: 600 .9rem var(--wt-mono); color: var(--wt-accent); width: 9rem; }
.content__entry .wp-block-table { margin: 1.5rem 0; overflow-x: auto; }
.content__entry .wt-dot-table td:nth-child(2) { font: 500 .85rem var(--wt-mono); color: var(--wt-muted); width: 5rem; white-space: nowrap; }
.content__entry .wt-dot-table td:first-child { white-space: nowrap; }
.content__entry .wt-keys-table td:last-child { width: 7rem; text-align: center; color: var(--wt-accent); font-weight: 700; }
.content__entry .wt-keys-table tr:first-child td:last-child { font-weight: 400; }
.content__entry .wt-legend { list-style: none; padding: 1rem 1.25rem; margin: 1.5rem 0; border: 1px solid var(--wt-line); border-radius: var(--wt-radius); background: var(--wt-card); }
.content__entry .wt-legend li { margin: .3rem 0; padding: 0; }
.content__entry .wt-legend li::before { content: none; }
.content__entry .wt-legend strong { display: inline-block; width: 2rem; font-family: var(--wt-mono); color: var(--wt-accent); }
.content__entry pre, .content__entry code {
  font-family: var(--wt-mono); background: var(--wt-card); color: #e6e6e6; border-radius: 6px;
}
.content__entry pre {
  padding: 1rem 1.25rem; border: 1px solid var(--wt-line); white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem;
}
.content__entry pre code { background: none; padding: 0; }
.content__entry img { border-radius: 6px; }
.content__entry figure.post__image img, .content__entry .post__image img { box-shadow: var(--wt-glow); }
.content__entry hr { border-color: var(--wt-line); }

/* post and list heroes: same band as the page head */
.hero { background: var(--wt-bg-2); border-bottom: 1px solid var(--wt-line); padding-top: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 3rem; }
.hero--noimage:after { display: none; }
.post .hero, .posts .hero, .tag .hero { margin-top: 0; }
.hero__content h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.feed__date, .content__meta time { font-family: var(--wt-mono); font-style: normal; color: var(--wt-muted); }
.feed__date:before { background: var(--wt-line-strong); }
.feed__author { color: var(--wt-muted); }

/* Blog/News list */
.feed { max-width: calc(var(--entry-width) + 4rem); }
.feed__item { margin-top: 0; padding: 1.75rem; border: 1px solid var(--wt-line); border-radius: var(--wt-radius); background: var(--wt-card); }
.feed__item + .feed__item { margin-top: 1.5rem; }
.feed__title { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
.feed__title a { color: var(--wt-fg); }
.feed__title a:hover { color: var(--wt-accent); }
.readmore { font-family: var(--wt-mono); font-weight: 600; font-style: normal; color: var(--wt-accent); text-decoration: none; }
.readmore:hover { text-decoration: underline; }
.pagination .btn, .content__nav-link { color: var(--wt-fg); }

/* post footer */
.content__nav-link, .content__nav-link span { font-style: normal; }
.content__tag a, .btn--icon { border-color: var(--wt-line-strong); color: var(--wt-muted); }

/* footer */
.footer { border-top: 1px solid var(--wt-line); background: var(--wt-bg); color: var(--wt-muted); }
.footer__copyright { font-family: var(--wt-mono); font-size: .85rem; }

/* ---------------------------------------------------------------- screenshot zoom */
.content__entry .wt-post-shot { max-width: 420px; margin-left: auto; margin-right: auto; }
.wt-zoom { display: block; cursor: zoom-in; }
.wt-zoom:focus-visible { outline-offset: -3px; }
.wt-lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 2vmin; background: rgba(0, 0, 0, .88); cursor: zoom-out;
}
.wt-lightbox[hidden] { display: none; }
.wt-lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; box-shadow: var(--wt-glow); }
.wt-lightbox-open { overflow: hidden; }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  .wt-cursor { animation: none; }
  .wt-btn { transition: none; }
}
