/*
Theme Name: Transcendent Modern
Theme URI: https://transcendentsoftware.com/blog/
Author: Transcendent Software
Description: A lightweight editorial theme aligned with the Transcendent Software website.
Version: 0.1.0
Text Domain: transcendent-modern
*/

:root {
  --tm-bg: #f4f7fb;
  --tm-surface: #fff;
  --tm-ink: #243746;
  --tm-muted: #61788b;
  --tm-navy: #10273c;
  --tm-brand: #14a2dc;
  --tm-brand-dark: #1178a5;
  --tm-line: rgba(36,55,70,.13);
  --tm-shadow: 0 14px 36px rgba(16,39,60,.10);
  --tm-shell: min(1140px, calc(100% - 2rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: linear-gradient(180deg,#f7fbff 0%,var(--tm-bg) 100%); color: var(--tm-ink); font-family: "Source Sans 3",system-ui,sans-serif; font-size: 18px; line-height: 1.65; }
a { color: var(--tm-brand-dark); }
img { max-width: 100%; height: auto; }
.tm-shell { width: var(--tm-shell); margin: 0 auto; }
.tm-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--tm-line); box-shadow: 0 4px 18px rgba(16,39,60,.05); }
.tm-nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tm-brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--tm-ink); text-decoration: none; min-width: 0; }
.tm-brand img { width: auto; height: 58px; object-fit: contain; }
.tm-brand span { font-family: Manrope,system-ui,sans-serif; font-size: .92rem; font-weight: 800; line-height: 1.1; }
.tm-menu { display: flex; align-items: center; gap: 1.05rem; }
.tm-menu a { color: var(--tm-ink); font-size: .95rem; font-weight: 700; text-decoration: none; }
.tm-menu a:hover { color: var(--tm-brand-dark); }
.tm-menu-toggle { display: none; border: 1px solid var(--tm-line); border-radius: 999px; background: #fff; color: var(--tm-ink); padding: .65rem 1rem; font-weight: 800; }
.tm-cta { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: .7rem 1.05rem; background: var(--tm-brand); color: #fff !important; box-shadow: 0 10px 22px rgba(20,162,220,.2); }
.tm-hero { position: relative; overflow: hidden; padding: 4.5rem 0 3.5rem; background: linear-gradient(135deg,#10273c,#184767); color: #fff; }
.tm-hero:after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 15%,rgba(20,162,220,.24),transparent 25%),linear-gradient(90deg,rgba(16,39,60,.8),rgba(16,39,60,.35)); pointer-events: none; }
.tm-hero-inner { position: relative; z-index: 1; }
.tm-eyebrow { margin: 0 0 .8rem; color: #7fd7ff; font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.tm-hero h1 { max-width: 16ch; margin: 0; color: #fff; font-family: Manrope,system-ui,sans-serif; font-size: clamp(2.4rem,6vw,4.2rem); line-height: 1.06; letter-spacing: -.035em; }
.tm-hero p { max-width: 60ch; margin: 1rem 0 0; color: rgba(255,255,255,.82); font-size: 1.08rem; }
.tm-main { padding: 3rem 0 5rem; }
.tm-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 2rem; align-items: start; }
.tm-card { background: var(--tm-surface); border: 1px solid var(--tm-line); border-radius: 20px; box-shadow: var(--tm-shadow); }
.tm-post-card { overflow: hidden; }
.tm-post-card img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.tm-post-card-body { padding: 1.4rem 1.5rem 1.6rem; }
.tm-meta { color: var(--tm-muted); font-size: .88rem; }
.tm-post-card h2 { margin: .35rem 0 .55rem; font-family: Manrope,system-ui,sans-serif; font-size: clamp(1.35rem,3vw,2rem); line-height: 1.15; }
.tm-post-card h2 a { color: var(--tm-navy); text-decoration: none; }
.tm-post-card h2 a:hover { color: var(--tm-brand-dark); }
.tm-excerpt { color: var(--tm-muted); }
.tm-read-more { font-weight: 800; text-decoration: none; }
.tm-sidebar { padding: 1.35rem; }
.tm-sidebar h2 { margin-top: 0; font-family: Manrope,system-ui,sans-serif; font-size: 1.2rem; }
.tm-sidebar ul { margin: 0; padding-left: 1.1rem; }
.tm-article { padding: clamp(1.4rem,4vw,3rem); }
.tm-article h1 { margin: .25rem 0 1rem; color: var(--tm-navy); font-family: Manrope,system-ui,sans-serif; font-size: clamp(2.2rem,5vw,4rem); line-height: 1.08; letter-spacing: -.035em; }
.tm-article-content { max-width: 72ch; }
.tm-article-content h2,.tm-article-content h3 { color: var(--tm-navy); font-family: Manrope,system-ui,sans-serif; line-height: 1.2; }
.tm-article-content blockquote { margin: 2rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--tm-brand); background: var(--tm-bg); color: var(--tm-muted); }
.tm-article-content pre,.tm-article-content code { max-width: 100%; overflow-x: auto; }
.tm-pagination { display: flex; gap: .75rem; margin-top: 2rem; }
.tm-pagination a,.tm-pagination span { padding: .55rem .9rem; border: 1px solid var(--tm-line); border-radius: 999px; background: #fff; text-decoration: none; }
.tm-footer { padding: 3.5rem 0; background: var(--tm-navy); color: rgba(255,255,255,.78); }
.tm-footer a { color: #fff; }
.tm-footer img { width: 220px; margin-bottom: 1rem; }
.tm-footer p { max-width: 48ch; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 820px) {
  .tm-nav { min-height: 72px; }
  .tm-brand img { height: 48px; }
  .tm-menu-toggle { display: inline-flex; }
  .tm-menu { display: none; position: absolute; left: 1rem; right: 1rem; top: calc(100% + .5rem); flex-direction: column; align-items: stretch; padding: 1rem; border: 1px solid var(--tm-line); border-radius: 18px; background: #fff; box-shadow: var(--tm-shadow); }
  .tm-menu.is-open { display: flex; }
  .tm-menu a { padding: .45rem .2rem; }
  .tm-layout { grid-template-columns: 1fr; }
  .tm-sidebar { order: 2; }
  .tm-hero { padding: 3.2rem 0 2.8rem; }
}

/* Shared polish with the main site shell. */
.tm-brand img { height: 64px; max-width: 250px; }
.tm-brand span { max-width: 15rem; }
.tm-footer { padding: 2rem 0 1.4rem; }
.tm-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.tm-footer-logo { width: auto; max-width: 290px; max-height: 84px; object-fit: contain; }
.tm-footer h2 { margin: 0 0 .65rem; color: #fff; font-family: Manrope,system-ui,sans-serif; font-size: 1.1rem; }
.tm-footer p, .tm-footer-links a { color: rgba(255,255,255,.78); }
.tm-footer-links { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.tm-footer-meta { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; margin-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); }
@media (max-width: 820px) {
  .tm-nav { min-height: 72px; align-items: center; }
  .tm-brand { flex: 1 1 auto; gap: 0; min-width: 0; }
  .tm-brand img { height: 50px; max-width: 175px; }
  .tm-brand span { display: none; }
  .tm-menu-toggle { flex: 0 0 auto; min-width: 118px; min-height: 50px; }
  .tm-menu { top: calc(100% + .55rem); right: 0; left: auto; width: min(290px, calc(100vw - 2rem)); padding: .9rem 1.1rem 1.1rem; }
  .tm-hero { padding: 2.8rem 0 2.4rem; }
  .tm-hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .tm-hero p { font-size: 1rem; }
  .tm-footer-grid { grid-template-columns: 1fr; gap: 1.35rem; }
  .tm-footer-meta { flex-direction: column; align-items: flex-start; }
}

.tm-menu-toggle { gap: .65rem; }
.tm-menu-label { line-height: 1; }
.tm-menu-icon { width: 1.05rem; height: .75rem; position: relative; display: inline-block; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.tm-menu-icon::after { content: ""; position: absolute; left: 0; right: 0; top: .22rem; border-top: 2px solid currentColor; }
.tm-footer-socials { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .45rem .9rem; }
.tm-footer-socials a { color: rgba(255,255,255,.92); text-decoration: none; }
.tm-footer-socials a:hover { color: #7fd7ff; }
.tm-social-divider { color: rgba(255,255,255,.35); }
.tm-footer p, .tm-footer a { overflow-wrap: anywhere; }
@media (max-width: 820px) {
  .tm-footer-socials { justify-content: flex-start; gap: .5rem .8rem; }
  .tm-social-divider { display: none; }
  .tm-footer-meta { gap: .8rem; }
}
