/* Techartist site styles (Customizer → Additional CSS, written by wp/setup.php; edit here, not in the Customizer).
   Brand: Inter (self-hosted, variable weight + optical size, so large headings get the Display cut); sizes, weights
   and the brand colours (--ink, --amber, …) are GeneratePress settings written by setup.php. */
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/site-assets/fonts/inter-latin-ext-opsz-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/site-assets/fonts/inter-latin-opsz-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
body { font-optical-sizing: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: #FF9B3D; color: #0D0B12; }

/* Demos page: card grid */
.ta-demos { padding: clamp(0px, 1vw, 16px) 0 clamp(40px, 6vw, 96px); }
.ta-demos__head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.ta-demos__head h1 { margin: 0 0 12px; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
.ta-demos__head p { margin: 0; font-size: 18px; color: var(--mist); }
.ta-demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.ta-demo-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; text-decoration: none;
  background: var(--ink-raised); border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s, box-shadow .35s;
}
.ta-demo-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.ta-demo-card__body { padding: 20px 22px 22px; }
.ta-demo-card h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.2; letter-spacing: -0.018em; color: #fff; }
.ta-demo-card p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.55; color: var(--mist); }
.ta-demo-card__go { font-size: 14px; font-weight: 600; color: var(--amber); }
.ta-demo-card:focus-visible, .ta-demo-card.ta-demo-card:hover:not(:active) {
  transform: translateY(-4px); border-color: rgba(255, 155, 61, 0.45);
  box-shadow: 0 18px 50px -20px rgba(255, 94, 91, 0.45);
}
.ta-demo-card:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* Demo pages: the app fills the window (header and footer are off for these pages) */
.ta-demo-frame {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50;
  display: block; width: 100%; height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px)); border: 0; background: #0D0B12;
}
body:has(.ta-demo-frame) { overflow: hidden; }

/* Home: the hero runs edge to edge, flush under the header */
.home .site-content, .home .inside-article, .home .entry-content { padding: 0 !important; margin: 0 !important; max-width: none; }
.home .site-main { margin: 0 !important; }

/* never a sideways scroll. clip, not hidden: hidden would make the page body its own scroller and stop the sticky
   header sticking (the phone menu's script puts overflow-x: hidden on body, hence the second rule) */
html, body, body.offside-js--init { overflow-x: clip; }

/* Footer: the site links, © and the social icons together in the centre, one row: Home · Demos · Blog | © | icons.
   On phones the links and icons share the top row (wrapping if they must) and the © sits under them. The links
   (.ta-footer-links, from the site plugin) live in the Footer Bar with the icons; display: contents lets each be
   placed on its own. */
body .site-info .inside-site-info { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; padding-top: 16px; padding-bottom: 16px; }
body .site-info .footer-bar { display: contents; }
body .site-info .footer-bar::before { content: none; }
body .site-info .ta-footer-links { order: 0; display: flex; align-items: center; gap: 2px 16px; }
body .site-info .copyright-bar { order: 1; margin: 0; text-align: center; }
body .site-info .footer-bar .widget { order: 2; display: flex; align-items: center; gap: 18px; }
body .site-info .ta-footer-links::after, body .site-info .footer-bar .widget::before { content: ''; width: 1px; height: 18px; background: rgba(255, 255, 255, 0.12); }
body .site-info .ta-footer-links::after { margin-left: 2px; }
body .site-info .ta-footer-links a { padding: 2px 0; font-size: 14px; font-weight: 500; color: var(--mist); }   /* even padding (the underline sits in the bottom 2 px), so the words centre on the © line */
.ta-footer-links a:hover, .ta-footer-links a:focus-visible { color: var(--white); }
@media (max-width: 768px) {
  body .site-info .inside-site-info { gap: 0 14px; padding-top: 10px; padding-bottom: 16px; }
  body .site-info .copyright-bar { order: 3; flex-basis: 100%; }
  body .site-info .ta-footer-links::after, body .site-info .footer-bar .widget::before { display: none; }
}
.ta-social { display: flex; align-items: center; gap: 4px; }
.ta-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--mist); transition: color .2s ease, background-color .2s ease; }
.ta-social a:hover, .ta-social a:focus-visible { color: var(--white); background: rgba(255, 255, 255, 0.07); }
.ta-social a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ta-social svg { width: 18px; height: 18px; fill: currentColor; }
.ta-social svg.ta-stroke { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.footer-bar .widget { margin: 0; padding: 0; }

/* Hover: links come alive in the brand gradient (gold → amber → coral → magenta). The "travelling boundary" is a
   conic gradient with a spinning start angle, masked down to a thin ring, so a bright comet orbits the edge. */
@property --ta-spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes ta-spin { to { --ta-spin: 360deg; } }
.ta-ring-host { position: relative; }
.main-navigation .main-nav > ul > li > a::before, .ta-demo-card::before, .ta-social a::before {
  content: ''; position: absolute; pointer-events: none; padding: 1.5px; border-radius: 999px;
  background: conic-gradient(from var(--ta-spin), rgba(255, 255, 255, 0.08) 0 50%, #FFE08A 66%, #FF9B3D 77%, #FF5E5B 88%, #C2246B 97%, rgba(255, 255, 255, 0.08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s ease, transform 0.45s cubic-bezier(.2, .8, .2, 1);
  animation: ta-spin 2.4s linear infinite paused;
}
.main-navigation .main-nav > ul > li > a:focus-visible::before, .ta-demo-card:focus-visible::before, .ta-social a:focus-visible::before { opacity: 1; animation-play-state: running; }
@media (hover: hover) {   /* only devices that really hover, so a tapped card doesn't stay lit on a phone */
  .main-navigation .main-nav > ul > li > a:hover::before, .ta-demo-card:hover::before, .ta-social a:hover::before { opacity: 1; animation-play-state: running; }
}

/* menu: a pill traced round the word (desktop menu only; the phone menu is a list) */
@media (min-width: 769px) {
  .main-navigation .main-nav > ul > li > a { position: relative; transition: color 0.25s ease; }
  .main-navigation .main-nav > ul > li > a::before { left: 4px; right: 4px; top: 50%; height: 40px; transform: translateY(-50%) scale(0.9); }
  .main-navigation .main-nav > ul > li > a:hover::before, .main-navigation .main-nav > ul > li > a:focus-visible::before { transform: translateY(-50%) scale(1); }
  .main-navigation .main-nav > ul > li.current-menu-item > a::after {
    content: ''; position: absolute; left: 50%; bottom: calc(50% - 17px); width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
    background: linear-gradient(#FFE08A, #FF9B3D); box-shadow: 0 0 8px rgba(255, 155, 61, 0.7);
  }
}
.main-navigation .main-nav > ul > li > a:focus-visible { outline: none; }

/* demo cards: the ring traces the card, the picture eases in, the arrow steps forward */
.ta-demo-card { position: relative; }
.ta-demo-card::before { inset: 0; border-radius: 18px; z-index: 2; }
.ta-demo-card img { transition: transform 0.7s cubic-bezier(.2, .8, .2, 1), filter 0.5s ease; }
.ta-demo-card:hover img, .ta-demo-card:focus-visible img { transform: scale(1.045); filter: saturate(1.12) brightness(1.06); }
.ta-demo-card__go { display: inline-block; transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), color 0.25s ease; }
.ta-demo-card:hover .ta-demo-card__go { transform: translateX(5px); color: var(--gold); }
.ta-demo-card:hover, .ta-demo-card:focus-visible { border-color: transparent; }

/* footer icons: a ring orbits the circle, the icon lifts */
.ta-social a { position: relative; }
.ta-social a::before { inset: 0; border-radius: 50%; transform: scale(0.8); }
.ta-social a:hover::before, .ta-social a:focus-visible::before { transform: scale(1); }
.ta-social svg { transition: transform 0.35s cubic-bezier(.2, .8, .2, 1); }
.ta-social a:hover svg, .ta-social a:focus-visible svg { transform: translateY(-2px) scale(1.08); }
.ta-social a:hover, .ta-social a:focus-visible { background: rgba(255, 255, 255, 0.04); }

/* text links in page content: a brand-gradient underline drawn left to right */
.entry-content p a:not([class]), .entry-content li a:not([class]), .site-info a:not([class]) {
  text-decoration: none; background: linear-gradient(90deg, #FFE08A, #FF9B3D, #FF5E5B, #C2246B) no-repeat 0 100% / 0% 1.5px;
  transition: background-size 0.45s cubic-bezier(.2, .8, .2, 1), color 0.25s ease; padding-bottom: 2px;
}
.entry-content p a:not([class]):hover, .entry-content li a:not([class]):hover, .site-info a:not([class]):hover { background-size: 100% 1.5px; }

@media (prefers-reduced-motion: reduce) {
  .main-navigation .main-nav > ul > li > a::before, .ta-demo-card::before, .ta-social a::before { animation: none; transition: opacity 0.2s ease; }
  .ta-demo-card img, .ta-demo-card__go, .ta-social svg { transition: none; }
  .ta-demo-card:hover img, .ta-demo-card:hover .ta-demo-card__go, .ta-social a:hover svg { transform: none; }
}

/* Phone menu: GP Premium's off-canvas panel (Menu Plus) as a floating liquid-glass card. It blooms out of the menu
   button (a circle reveal centred on the button, --bx/--by set by the Techartist Site plugin) and shrinks back into it
   on close; its × sits exactly where the menu button was. The page shows through, blurred and colour-lifted; a bright
   rim and a sheen of light catch the edges; where the browser can (Chromium), the edges bend the page behind like a
   lens (the #ta-liquid SVG filter, printed by the plugin). Only as tall as its links. GP opens it by adding .is-open
   (and briefly .slideout-transition, so the open state waits a frame) and keeps it displayed 500 ms after closing. */
:root { --gp-slideout-width: min(78vw, 300px) !important; }
.slideout-navigation.main-navigation.offside {
  --bx: 85%; --by: 38px; --ta-top: calc(12px + var(--wp-admin--admin-bar--height, 0px));
  top: var(--ta-top) !important; right: 12px !important; left: auto !important; bottom: auto !important;
  width: var(--gp-slideout-width); height: auto !important; max-height: calc(100svh - var(--ta-top) - 12px); overflow: hidden auto;
  transform: none !important; border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03) 40%, rgba(255, 255, 255, 0.02) 70%, rgba(255, 255, 255, 0.07)), rgba(22, 18, 28, 0.44) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.7) brightness(1.05); backdrop-filter: blur(22px) saturate(1.7) brightness(1.05);
  backdrop-filter: url(#ta-liquid) blur(18px) saturate(1.7) brightness(1.05);   /* Chromium: lens-bent edges; others keep the line above */
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.3), inset -1px -1px 0 rgba(255, 255, 255, 0.08), inset 0 0 40px -18px rgba(255, 255, 255, 0.25),
    0 30px 70px -20px rgba(0, 0, 0, 0.6);
  clip-path: circle(22px at var(--bx) var(--by)); opacity: 0;
  transition: clip-path 0.44s cubic-bezier(.6, 0, .8, .3), opacity 0.12s ease 0.34s;                     /* closing: back into the button, solid until the end */
}
.slideout-navigation.main-navigation.offside.is-open:not(.slideout-transition) {
  clip-path: circle(128% at var(--bx) var(--by)); opacity: 1;                                               /* 128%: just past the far corner */
  transition: clip-path 0.7s cubic-bezier(.45, .05, .2, 1), opacity 0.14s ease;                             /* opening: grows out of the button */
}
/* the sheen: light caught across the top-left and down the rim */
.slideout-navigation.main-navigation::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(110% 45% at 15% 0%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 62%),
              linear-gradient(90deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 16%);
}
.slideout-navigation.is-open.main-navigation::before { animation: ta-glass-sheen 1s 0.2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ta-glass-sheen { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.slideout-navigation .inside-navigation { position: relative; padding: 76px 0 22px !important; }
.slideout-navigation .main-nav ul li a { padding: 10px 28px; font-size: 30px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; color: var(--white); background: none !important; }
.slideout-navigation .main-nav ul li.current-menu-item > a { color: var(--gold); }
.slideout-navigation .main-nav ul li a::after { content: ' →'; opacity: 0; display: inline-block; transform: translateX(-6px); transition: opacity 0.25s ease, transform 0.3s ease; color: var(--amber); }
.slideout-navigation .main-nav ul li a:hover::after, .slideout-navigation .main-nav ul li a:focus-visible::after { opacity: 1; transform: none; }
.slideout-navigation.is-open .main-nav ul li { animation: ta-menu-in 0.55s cubic-bezier(.2, .8, .2, 1) both; }
.slideout-navigation.is-open .main-nav ul li:nth-child(1) { animation-delay: 0.16s; }
.slideout-navigation.is-open .main-nav ul li:nth-child(2) { animation-delay: 0.23s; }
.slideout-navigation.is-open .main-nav ul li:nth-child(3) { animation-delay: 0.30s; }
.slideout-navigation.is-open .main-nav ul li:nth-child(4) { animation-delay: 0.37s; }
@keyframes ta-menu-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.slideout-navigation button.slideout-exit {
  position: absolute; top: calc(var(--by) - 23px); left: calc(var(--bx) - 23px); right: auto; width: 46px; height: 46px; padding: 0 !important; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04) !important; color: var(--white) !important;
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), border-color 0.25s ease;
}
.slideout-navigation button.slideout-exit .gp-icon { font-size: 18px; }
.slideout-navigation.is-open button.slideout-exit { animation: ta-x-in 0.5s 0.05s cubic-bezier(.2, .8, .2, 1) both; }
.slideout-navigation button.slideout-exit:hover, .slideout-navigation button.slideout-exit:focus-visible { transform: rotate(90deg); border-color: rgba(255, 155, 61, 0.6); }
@keyframes ta-x-in { from { opacity: 0; transform: rotate(-90deg) scale(0.6); } to { opacity: 1; transform: none; } }
.slideout-overlay { background-color: rgba(13, 11, 18, 0.3) !important; transition: visibility 0.4s ease, opacity 0.4s ease; }   /* light, so the glass has a page to show */
@media (max-width: 768px) {
  .main-navigation .menu-toggle { background: none !important; padding: 0 14px; color: var(--white); }
  .main-navigation .menu-toggle .gp-icon svg { display: none; }
  .main-navigation .menu-toggle .gp-icon {
    position: relative; display: inline-block; width: 24px; height: 16px; vertical-align: middle;
    background: linear-gradient(currentColor, currentColor) right center / 70% 2px no-repeat; transition: background-size 0.3s ease;
  }
  .main-navigation .menu-toggle .gp-icon::before, .main-navigation .menu-toggle .gp-icon::after {
    content: ''; position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform 0.4s cubic-bezier(.2, .8, .2, 1), top 0.4s cubic-bezier(.2, .8, .2, 1);
  }
  .main-navigation .menu-toggle .gp-icon::before { top: 0; }
  .main-navigation .menu-toggle .gp-icon::after { top: 14px; }
  .main-navigation .menu-toggle:hover .gp-icon { background-size: 100% 2px; }
  .slide-opened .main-navigation .menu-toggle .gp-icon, .main-navigation .menu-toggle[aria-expanded="true"] .gp-icon { background-size: 0 2px; }
  .slide-opened .main-navigation .menu-toggle .gp-icon::before, .main-navigation .menu-toggle[aria-expanded="true"] .gp-icon::before { top: 7px; transform: rotate(45deg); }
  .slide-opened .main-navigation .menu-toggle .gp-icon::after, .main-navigation .menu-toggle[aria-expanded="true"] .gp-icon::after { top: 7px; transform: rotate(-45deg); }
}
@media (prefers-reduced-motion: reduce) {
  .slideout-navigation.is-open .main-nav ul li, .slideout-navigation.is-open button.slideout-exit, .slideout-navigation.is-open.main-navigation::before { animation: none; }
  .slideout-navigation.main-navigation.offside, .slideout-navigation.main-navigation.offside.is-open:not(.slideout-transition) { transition: opacity 0.2s ease; clip-path: none; }
  .main-navigation .menu-toggle .gp-icon, .main-navigation .menu-toggle .gp-icon::before, .main-navigation .menu-toggle .gp-icon::after { transition: none; }
}

/* ===== Posts and normal pages (blog posts, About, …): a reading column in the brand, so a post is just text and
   media. Only standard blocks that sit directly in the content are styled, so the home hero, the Demos grid and the
   full-window demo pages (custom HTML) are untouched. Type sizes and weights come from the GeneratePress settings
   (setup.php); spacing, colour and every block's look are here. ===== */
:root { --ta-read: #D6D5DD; --ta-col: 720px; --ta-wide: 1040px; }   /* --ta-read: Mist lifted toward White for long reading */
:is(.single-post, .page:not(.home):not(:has(.ta-demos))) .site-content { padding-left: 24px; padding-right: 24px; }
:is(.single-post, .page:not(.home):not(:has(.ta-demos))) .inside-article { padding: clamp(4px, 1vw, 12px) 0 clamp(48px, 7vw, 104px); }   /* the theme's 40 px content padding already sits above */
.single-post .entry-header, :is(.single-post, .page) .entry-content > :is(p, h1, h2, h3, h4, h5, h6, ul, ol, dl, blockquote, pre, hr, figure, table, details, address, .wp-block-image, .wp-block-gallery, .wp-block-embed, .wp-block-video, .wp-block-audio, .wp-block-buttons, .wp-block-columns, .wp-block-group, .wp-block-media-text, .wp-block-file, .wp-block-separator, .wp-block-pullquote, .wp-block-table, .wp-block-code, .wp-block-quote, .wp-block-list, .wp-block-heading),
.single-post footer.entry-meta, .single-post .post-navigation, :is(.single-post, .page) .comments-area {
  max-width: var(--ta-col); margin-left: auto; margin-right: auto;
}
:is(.single-post, .page) .entry-content > :is(.alignwide) { max-width: var(--ta-wide); }
:is(.single-post, .page) .entry-content > :is(.alignfull) { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
:is(.single-post, .page) .entry-content { color: var(--ta-read); }

/* reading time beside the date ("· 4 min read"), on posts and Blog cards */
.entry-meta .ta-read-time { margin-left: 6px; white-space: nowrap; }
.single-post .entry-header .entry-meta .ta-read-time { margin-left: -8px; }   /* that meta row already spaces its items */
.entry-meta .ta-read-time > span { margin-right: 4px; opacity: 0.7; }

/* the title block */
.single-post .entry-header { margin-bottom: 0; }
.single-post .entry-title { margin-bottom: 18px; color: var(--white); text-wrap: balance; }
.single-post .entry-header .entry-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; font-weight: 500; letter-spacing: 0.02em; color: var(--mist); }
.single-post .entry-header .entry-meta a { color: var(--mist); }
.single-post .featured-image { max-width: var(--ta-wide); margin: clamp(28px, 4vw, 44px) auto clamp(32px, 5vw, 52px); }
.single-post .featured-image img { width: 100%; border-radius: 18px; }
.single-post .featured-image + .entry-content, .single-post .entry-header + .entry-content { margin-top: 0; }
.single-post .entry-header + .entry-content { padding-top: 28px; }

/* text */
:is(.single-post, .page) .entry-content > p { margin-bottom: 1.4em; }
:is(.single-post, .page) .entry-content > p:first-child { font-size: 1.12em; line-height: 1.65; color: var(--white); }  /* the opening paragraph leads in */
:is(.single-post, .page) .entry-content strong { color: var(--white); font-weight: 650; }
:is(.single-post, .page) .entry-content :is(h1, h2, h3, h4, h5, h6) { color: var(--white); text-wrap: balance; margin-bottom: 0.55em; }
:is(.single-post, .page) .entry-content > h2 { margin-top: 2.1em; }
:is(.single-post, .page) .entry-content > h3 { margin-top: 1.9em; }
:is(.single-post, .page) .entry-content > :is(h4, h5) { margin-top: 1.7em; }
:is(.single-post, .page) .entry-content > h6 { margin-top: 2em; color: var(--mist); }
:is(.single-post, .page) .entry-content > :is(h1, h2, h3, h4, h5, h6):first-child { margin-top: 0; }
:is(.single-post, .page) .entry-content > :is(h2, h3, h4) + :is(h3, h4, h5, h6) { margin-top: 0.6em; }

/* links in text: a quiet amber underline at rest (not colour alone), the brand gradient drawn in on hover */
:is(.single-post, .page) .entry-content :is(p, li, td, figcaption, cite) a:not([class]) {
  color: var(--amber); text-decoration: none; padding-bottom: 1px;
  background: linear-gradient(90deg, #FFE08A, #FF9B3D, #FF5E5B, #C2246B) no-repeat 0 100% / 0% 2px,
              linear-gradient(rgba(255, 155, 61, 0.42), rgba(255, 155, 61, 0.42)) no-repeat 0 100% / 100% 1px;
  transition: background-size 0.45s cubic-bezier(.2, .8, .2, 1), color 0.25s ease;
}
:is(.single-post, .page) .entry-content :is(p, li, td, figcaption, cite) a:not([class]):hover { color: var(--gold); background-size: 100% 2px, 100% 1px; }

/* media: images and video round off; every figure keeps the same breathing room above and below, and its caption
   sits close beneath it (14 px) under a small gold-to-amber rule */
:is(.single-post, .page) .entry-content > :is(figure, .wp-block-image, .wp-block-gallery, .wp-block-embed, .wp-block-video, .wp-block-table, .wp-block-media-text) { margin-top: 2.4em; margin-bottom: 2.4em; }
:is(.single-post, .page) .entry-content :is(.wp-block-image, .wp-block-gallery) img, :is(.single-post, .page) .entry-content video { border-radius: 14px; }
:is(.single-post, .page) .entry-content .alignfull img, :is(.single-post, .page) .entry-content .alignfull video { border-radius: 0; }
:is(.single-post, .page) .entry-content .wp-block-image img { display: block; margin-left: auto; margin-right: auto; height: auto; }
:is(.single-post, .page) .entry-content :is(figcaption, .wp-element-caption):not(.wp-block-gallery .wp-block-image figcaption) {
  max-width: 600px; margin: 14px auto 0; font-size: 14.5px; line-height: 1.55; color: var(--mist); text-align: center; font-style: normal;
}
:is(.single-post, .page) .entry-content :is(.wp-block-image, .wp-block-embed, .wp-block-video, .wp-block-table) > :is(figcaption, .wp-element-caption)::before,
:is(.single-post, .page) .entry-content .wp-block-gallery > .blocks-gallery-caption::before {
  content: ''; display: block; width: 28px; height: 2px; margin: 0 auto 10px; border-radius: 2px; background: linear-gradient(90deg, #FFE08A, #FF9B3D);
}
:is(.single-post, .page) .entry-content .alignfull > :is(figcaption, .wp-element-caption) { padding: 0 24px; }
/* gallery: per-image captions ride on the picture, the gallery's own caption sits below like any other */
:is(.single-post, .page) .entry-content .wp-block-gallery { gap: 12px; }
:is(.single-post, .page) .entry-content .wp-block-gallery .wp-block-image figcaption {
  font-size: 13px; line-height: 1.4; padding: 28px 12px 10px; border-radius: 0 0 14px 14px; text-align: left;
  background: linear-gradient(to top, rgba(13, 11, 18, 0.85), rgba(13, 11, 18, 0));
}
:is(.single-post, .page) .entry-content .wp-block-embed iframe { width: 100%; border-radius: 14px; }

/* quotes */
:is(.single-post, .page) .entry-content blockquote:not(.wp-block-pullquote blockquote) {
  position: relative; margin-top: 2.2em; margin-bottom: 2.2em; padding: 2px 0 2px 26px; border: 0; background: none;
  font-size: 1.2em; line-height: 1.55; font-style: normal; color: var(--white);
}
:is(.single-post, .page) .entry-content blockquote:not(.wp-block-pullquote blockquote)::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: linear-gradient(#FFE08A, #FF9B3D, #FF5E5B, #C2246B);
}
:is(.single-post, .page) .entry-content blockquote p:last-of-type { margin-bottom: 0; }
:is(.single-post, .page) .entry-content blockquote cite, :is(.single-post, .page) .entry-content .wp-block-pullquote cite {
  display: block; margin-top: 12px; font-size: 14px; font-style: normal; font-weight: 500; letter-spacing: 0.02em; color: var(--mist);
}
:is(.single-post, .page) .entry-content .wp-block-pullquote {
  margin-top: 2.6em; margin-bottom: 2.6em; padding: 32px 0; border: 0; text-align: center; position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
:is(.single-post, .page) .entry-content .wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; background: none; }
:is(.single-post, .page) .entry-content .wp-block-pullquote p { font-size: clamp(24px, 3vw, 30px); line-height: 1.3; font-weight: 600; letter-spacing: -0.018em; color: var(--white); font-style: normal; margin-bottom: 0; }

/* lists */
:is(.single-post, .page) .entry-content > :is(ul, ol) { padding-left: 1.3em; margin-left: auto; }
:is(.single-post, .page) .entry-content :is(ul, ol) li { margin-bottom: 0.45em; padding-left: 0.2em; }
:is(.single-post, .page) .entry-content ul li::marker { color: var(--amber); }
:is(.single-post, .page) .entry-content ol li::marker { color: var(--mist); font-weight: 600; font-variant-numeric: tabular-nums; }
:is(.single-post, .page) .entry-content li > :is(ul, ol) { margin-top: 0.45em; margin-bottom: 0; }

/* code */
:is(.single-post, .page) .entry-content code { font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86em; padding: 0.15em 0.42em; border-radius: 6px; background: var(--ink-raised); color: var(--gold); }
:is(.single-post, .page) .entry-content pre {
  margin-top: 2em; margin-bottom: 2em; padding: 20px 22px; overflow-x: auto; border-radius: 14px;
  background: var(--ink-raised); border: 1px solid rgba(255, 255, 255, 0.07); font-size: 15px; line-height: 1.65; color: var(--ta-read);
}
:is(.single-post, .page) .entry-content pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
:is(.single-post, .page) .entry-content :is(pre, pre code, .wp-block-code code) { font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; } /* core sets code blocks to inherit the body font */

/* tables */
:is(.single-post, .page) .entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; margin-bottom: 0; }
:is(.single-post, .page) .entry-content :is(th, td) { padding: 12px 14px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); text-align: left; }
:is(.single-post, .page) .entry-content th { color: var(--white); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; border-bottom-color: rgba(255, 255, 255, 0.18); }
:is(.single-post, .page) .entry-content .wp-block-table { overflow-x: auto; }
:is(.single-post, .page) .entry-content .wp-block-table :is(thead, tfoot) { border: 0; }   /* core draws a 3 px rule here */

/* separator: a hairline that fades at both ends */
:is(.single-post, .page) .entry-content > :is(hr, .wp-block-separator) {
  height: 1px; margin-top: 3em; margin-bottom: 3em; border: 0; opacity: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}

/* buttons block: the home page's amber pill */
:is(.single-post, .page) .entry-content > .wp-block-buttons { margin-top: 2em; margin-bottom: 2em; }
:is(.single-post, .page) .entry-content .wp-block-button__link {
  padding: 14px 24px; border-radius: 999px; background: var(--amber); color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
:is(.single-post, .page) .entry-content .wp-block-button__link:hover { background: var(--gold); color: var(--ink); transform: translateY(-1px); }
:is(.single-post, .page) .entry-content .is-style-outline .wp-block-button__link { background: none; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.18); }

/* after the post: categories and tags as pills, then next / previous */
.single-post footer.entry-meta { margin-top: 3em; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 14px; color: var(--mist); }
.single-post footer.entry-meta :is(.cat-links, .tags-links) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.single-post footer.entry-meta :is(.cat-links, .tags-links) a { display: inline-block; padding: 5px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); color: var(--mist); font-size: 13px; transition: border-color 0.25s ease, color 0.25s ease; }
.single-post footer.entry-meta :is(.cat-links, .tags-links) a:hover { border-color: rgba(255, 155, 61, 0.6); color: var(--white); }
.single-post .post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.single-post .post-navigation :is(.nav-previous, .nav-next) { padding: 16px 18px; border-radius: 14px; background: var(--ink-raised); border: 1px solid rgba(255, 255, 255, 0.06); }
.single-post .post-navigation .nav-next { text-align: right; grid-column: 2; }
.single-post .post-navigation a { color: var(--white); font-weight: 600; }
.single-post .post-navigation a:hover { color: var(--gold); }

/* comments */
:is(.single-post, .page) .comments-area { margin-top: 3.5em; }
:is(.single-post, .page) .comments-area :is(.comments-title, .comment-reply-title) { font-size: 24px; color: var(--white); }
:is(.single-post, .page) .comments-area :is(input[type="text"], input[type="email"], input[type="url"], textarea) { border-radius: 12px; }

/* the blog listing (Blog page, categories, tags, search): post cards, the same as the Demos page. The whole card is
   the link (the title's link stretches over it), with the travelling ring on hover. Posts without a featured image
   get a quiet nib panel instead. */
:is(.blog, .archive, .search) .site-main { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; align-items: stretch; }
:is(.blog, .archive, .search) .site-main > :not(article) { grid-column: 1 / -1; }
:is(.blog, .archive, .search) .site-content { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(48px, 7vw, 96px); }
:is(.blog, .archive, .search) .page-header { margin: 0 0 clamp(4px, 1vw, 16px); padding: 0; background: none; }
:is(.blog, .archive, .search) .page-header .page-title { margin: 0; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; color: var(--white); }
:is(.blog, .archive, .search) .taxonomy-description { margin-top: 12px; font-size: 18px; color: var(--mist); }
.ta-blog-head { margin-bottom: clamp(4px, 1vw, 16px); }
:is(.blog, .archive, .search) .site-main > article { margin: 0 !important; padding: 0 !important; border: 0 !important; }   /* the theme's own post spacing would widen the grid gaps */
:is(.blog, .archive, .search) .site-main > article .inside-article {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 0 !important; overflow: hidden;
  border-radius: 18px; background: var(--ink-raised); border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), border-color 0.35s, box-shadow 0.35s;
}
:is(.blog, .archive, .search) .site-main > article .inside-article:has(:focus-visible) {
  transform: translateY(-4px); border-color: transparent; box-shadow: 0 18px 50px -20px rgba(255, 94, 91, 0.45);
}
@media (hover: hover) {
  :is(.blog, .archive, .search) .site-main > article .inside-article:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 18px 50px -20px rgba(255, 94, 91, 0.45); }
}
:is(.blog, .archive, .search) .site-main > article .post-image { order: -2; margin: 0 !important; overflow: hidden; }
:is(.blog, .archive, .search) .site-main > article .post-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; transition: transform 0.7s cubic-bezier(.2, .8, .2, 1), filter 0.5s ease; }
@media (hover: hover) { :is(.blog, .archive, .search) .site-main > article .inside-article:hover .post-image img { transform: scale(1.045); filter: saturate(1.12) brightness(1.06); } }
:is(.blog, .archive, .search) .site-main > article:not(.has-post-thumbnail) .inside-article > .entry-header::before {
  content: ''; display: block; order: -2; aspect-ratio: 16 / 10; margin: 0 -22px 20px;   /* before the date */
  background: url(/site-assets/brand/mark.svg) center / 56px no-repeat, radial-gradient(60% 70% at 50% 45%, rgba(255, 155, 61, 0.16), rgba(194, 36, 107, 0.08) 55%, rgba(26, 22, 32, 0) 80%), #15111b;
}
:is(.blog, .archive, .search) .site-main > article .entry-header { display: flex; flex-direction: column; padding: 20px 22px 0; margin: 0; }
:is(.blog, .archive, .search) .site-main > article:not(.has-post-thumbnail) .entry-header { padding-top: 0; }
:is(.blog, .archive, .search) .site-main > article .entry-header .entry-meta { order: -1; margin: 0 0 6px; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--mist); }
:is(.blog, .archive, .search) .site-main > article .entry-title { margin: 0 0 8px; font-size: 24px; line-height: 1.22; letter-spacing: -0.018em; }
:is(.blog, .archive, .search) .site-main > article .entry-title a { color: var(--white); text-decoration: none; }
:is(.blog, .archive, .search) .site-main > article .entry-title a::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: 18px; }
:is(.blog, .archive, .search) .site-main > article .entry-title a:focus-visible { outline: none; }
:is(.blog, .archive, .search) .site-main > article .entry-title a:focus-visible::after { outline: 2px solid var(--amber); outline-offset: 3px; }
:is(.blog, .archive, .search) .site-main > article .entry-summary { flex: 1; display: flex; flex-direction: column; margin: 0; padding: 0 22px 22px; }
:is(.blog, .archive, .search) .site-main > article .entry-summary p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.55; color: var(--mist); }
:is(.blog, .archive, .search) .site-main > article .entry-summary :is(.read-more, .read-more-container) { display: none; }
:is(.blog, .archive, .search) .site-main > article .entry-summary::after {
  content: 'Read post →'; margin-top: auto; font-size: 14px; font-weight: 600; color: var(--amber);
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), color 0.25s ease;
}
:is(.blog, .archive, .search) .site-main > article .inside-article:has(:focus-visible) .entry-summary::after { transform: translateX(5px); color: var(--gold); }
@media (hover: hover) { :is(.blog, .archive, .search) .site-main > article .inside-article:hover .entry-summary::after { transform: translateX(5px); color: var(--gold); } }
:is(.blog, .archive, .search) .site-main > article footer.entry-meta { display: none; }
/* the card's ring: the same travelling boundary as the demo cards */
:is(.blog, .archive, .search) .site-main > article .inside-article::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; padding: 1.5px; border-radius: 18px;
  background: conic-gradient(from var(--ta-spin), rgba(255, 255, 255, 0.08) 0 50%, #FFE08A 66%, #FF9B3D 77%, #FF5E5B 88%, #C2246B 97%, rgba(255, 255, 255, 0.08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s ease; animation: ta-spin 2.4s linear infinite paused;
}
:is(.blog, .archive, .search) .site-main > article .inside-article:has(:focus-visible)::before { opacity: 1; animation-play-state: running; }
@media (hover: hover) { :is(.blog, .archive, .search) .site-main > article .inside-article:hover::before { opacity: 1; animation-play-state: running; } }
/* category chips (All · Code · News …): on the Blog page and each category page */
.ta-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ta-chip {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12); color: var(--mist); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}
.ta-chip:hover, .ta-chip:focus-visible { border-color: rgba(255, 155, 61, 0.6); color: var(--white); }
.ta-chip.is-current { border-color: transparent; background: var(--amber); color: var(--ink); font-weight: 600; }
.ta-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* an empty listing: the header and chips stay, with a plain note instead of the theme's "Nothing Found" box */
.ta-empty { grid-column: 1 / -1; margin: 8px 0 0; font-size: 18px; color: var(--mist); }
.ta-empty a { color: var(--amber); font-weight: 600; margin-left: 6px; }
.ta-empty a:hover { color: var(--gold); }
.site-main:has(.ta-empty) .no-results { display: none; }
/* page numbers */
:is(.blog, .archive, .search) .paging-navigation .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
:is(.blog, .archive, .search) .paging-navigation :is(.page-numbers) { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); color: var(--mist); font-weight: 600; font-size: 15px; }
:is(.blog, .archive, .search) .paging-navigation .page-numbers.current { border-color: transparent; background: var(--amber); color: var(--ink); }
:is(.blog, .archive, .search) .paging-navigation a.page-numbers:hover { border-color: rgba(255, 155, 61, 0.6); color: var(--white); }
:is(.blog, .archive, .search) .no-results { max-width: var(--ta-col); }
@media (prefers-reduced-motion: reduce) {
  :is(.blog, .archive, .search) .site-main > article .inside-article::before { animation: none; }
  :is(.blog, .archive, .search) .site-main > article .inside-article, :is(.blog, .archive, .search) .site-main > article .post-image img { transition: none; }
}

@media (max-width: 768px) {
  :is(.single-post, .page:not(.home):not(:has(.ta-demos))) .site-content { padding-left: 20px; padding-right: 20px; }
  :is(.single-post, .page) .entry-content > p:first-child { font-size: 1.06em; }
  :is(.single-post, .page) .entry-content blockquote:not(.wp-block-pullquote blockquote) { font-size: 1.1em; padding-left: 20px; }
  .single-post .post-navigation { grid-template-columns: 1fr; }
  .single-post .post-navigation .nav-next { grid-column: 1; text-align: left; }
}

/* ===== 404: "This page fell far from the tree." The 0 is an apple that drops in from above the screen, squashes on
   landing and bounces twice; both 4s flinch away; its shadow grows as it nears the floor. Tap to replay. ===== */
.site-main:has(.ta-404) > .inside-article { display: none; }   /* the theme's default "Oops!" */
.error404 .site-content { padding-top: 0; padding-bottom: 0; }
.error404 .site-main { margin: 0; }
.ta-404 {
  position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: max(420px, calc(100svh - 190px)); padding: clamp(12px, 3vh, 28px) 0 clamp(16px, 4vh, 40px); overflow: hidden;   /* the script sets the exact space between header and footer */
}
.ta-404::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 42%; width: min(780px, 100%); aspect-ratio: 1.4; transform: translate(-50%, -50%);   /* fades out before the column's edge */
  background: radial-gradient(closest-side, rgba(255, 155, 61, 0.13), rgba(194, 36, 107, 0.06) 55%, rgba(13, 11, 18, 0)); pointer-events: none; }
.ta-404__eyebrow { margin: 0 0 clamp(8px, 1.6vh, 14px); font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mist); }
/* sized by width and height, so the whole page fits short windows too */
.ta-404 { --ta-404-digit: clamp(96px, min(26vw, 27vh), 290px); }
.ta-404__stage { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: clamp(4px, 1.5vw, 18px); height: calc(var(--ta-404-digit) * 0.93); margin-bottom: clamp(14px, 2.5vh, 30px); }
.ta-404__four { display: block; font-size: var(--ta-404-digit); line-height: 0.8; font-weight: 700; letter-spacing: -0.04em; color: #fff; transform-origin: 50% 100%;
  background: linear-gradient(180deg, #fff 40%, #c9c6d4); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* the apple is a button: keep the theme's button colours (a gold square on hover) off it */
.ta-404 .ta-404__apple, .ta-404 .ta-404__apple:hover, .ta-404 .ta-404__apple:focus, .ta-404 .ta-404__apple:active {
  background: none !important; border: 0 !important; padding: 0 !important; color: inherit !important; box-shadow: none !important;
}
.ta-404__apple { position: relative; z-index: 2; width: calc(var(--ta-404-digit) * 0.73); margin: 0 0 clamp(2px, 0.6vw, 8px); padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 100%; }
.ta-404__apple svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(194, 36, 107, 0.35)); transition: transform 0.3s ease; }
.ta-404__apple:hover svg { transform: rotate(-6deg) scale(1.03); }
.ta-404__apple:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 50%; }
.ta-404__shadow { position: absolute; z-index: 1; left: 50%; bottom: -6px; width: calc(var(--ta-404-digit) * 0.58); height: 16px; margin-left: calc(var(--ta-404-digit) * -0.29); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)); }
.ta-404.is-landing .ta-404__apple { animation: ta-404-drop 1.5s 0.25s both; }
.ta-404.is-landing .ta-404__shadow { animation: ta-404-shadow 1.5s 0.25s both; }
.ta-404.is-landing .ta-404__four { animation: ta-404-flinch 0.7s 0.86s both; }
.ta-404.is-landing .ta-404__four--right { animation-name: ta-404-flinch-r; }
@keyframes ta-404-drop {
  0% { transform: translateY(-115vh) rotate(-40deg); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  42% { transform: translateY(0) rotate(6deg) scale(1.12, 0.84); animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  58% { transform: translateY(-22%) rotate(-5deg) scale(0.96, 1.05); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  70% { transform: translateY(0) scale(1.06, 0.93); animation-timing-function: cubic-bezier(0, .55, .45, 1); }
  79% { transform: translateY(-7%) rotate(2deg); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  88% { transform: translateY(0) scale(1.02, 0.98); }
  100% { transform: none; }
}
@keyframes ta-404-shadow { 0% { opacity: 0; transform: scale(0.2); } 42% { opacity: 1; transform: scale(1.15, 1); } 58% { opacity: 0.6; transform: scale(0.8); } 70%, 100% { opacity: 1; transform: none; } }
@keyframes ta-404-flinch { 0% { transform: none; } 25% { transform: translateX(-8px) rotate(-9deg) scale(1, 0.96); } 60% { transform: translateX(2px) rotate(2deg); } 100% { transform: none; } }
@keyframes ta-404-flinch-r { 0% { transform: none; } 25% { transform: translateX(8px) rotate(9deg) scale(1, 0.96); } 60% { transform: translateX(-2px) rotate(-2deg); } 100% { transform: none; } }
.ta-404__title { margin: 0 0 10px; font-size: clamp(28px, min(4.6vw, 6vh), 52px); line-height: 1.08; letter-spacing: -0.028em; color: #fff; text-wrap: balance; }
.ta-404__lede { max-width: 34ch; margin: 0 0 clamp(16px, 3vh, 28px); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--mist); }
.ta-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.ta-404__home { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: var(--amber); color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none;
  box-shadow: 0 10px 30px -12px rgba(255, 155, 61, 0.6); transition: background-color 0.25s ease, transform 0.25s ease; }
.ta-404__home:hover { background: var(--gold); color: var(--ink); transform: translateY(-1px); }
.ta-404__home span { transition: transform 0.35s cubic-bezier(.2, .8, .2, 1); }
.ta-404__home:hover span { transform: translateX(4px); }
.ta-404__alt { position: relative; display: inline-flex; align-items: center; padding: 13px 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); color: #E9E7EF; font-weight: 500; font-size: 15px; text-decoration: none; transition: border-color 0.25s ease, color 0.25s ease; }
.ta-404__alt:hover { border-color: rgba(255, 155, 61, 0.6); color: #fff; }
.ta-404__quip { min-height: 1.5em; margin: clamp(12px, 2.5vh, 26px) 0 0; font-size: 14px; color: var(--mist); font-style: italic; }
@media (max-width: 600px) { .ta-404 .ta-404__actions { gap: 8px; } .ta-404 .ta-404__home { padding: 13px 20px; } .ta-404 .ta-404__alt { padding: 12px 16px; font-size: 14px; } }
@media (max-width: 600px) and (max-height: 740px) {   /* short phones: a tighter block so it all fits */
  .ta-404 .ta-404__eyebrow { display: none; }
  .ta-404 .ta-404__title { font-size: 26px; margin-bottom: 6px; }
  .ta-404 .ta-404__lede { font-size: 15px; margin-bottom: 14px; }
  .ta-404 .ta-404__home { padding: 11px 18px; font-size: 15px; } .ta-404 .ta-404__alt { padding: 10px 14px; font-size: 13.5px; }
  .ta-404 .ta-404__quip { margin-top: 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ta-404.is-landing .ta-404__apple, .ta-404.is-landing .ta-404__shadow, .ta-404.is-landing .ta-404__four { animation: none; }
}

/* after the Back button: no hover until the mouse moves (see the Techartist Site plugin) */
.ta-stale-hover body { pointer-events: none; }

/* demo pages: the compact "‹ Demos" pill back to the Demos page, clear liquid glass over the demo: the demo shows through, lightly blurred and
   colour-lifted; a bright rim and a sheen catch the edges; in Chromium the rim also bends the demo behind like a lens
   (#ta-liquid-pill, a gentler copy of the phone menu's filter, printed by the plugin). Arrow + nib only on phones. */
.ta-back {
  position: fixed; z-index: 60; top: calc(12px + var(--wp-admin--admin-bar--height, 0px)); left: 12px;
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 10px; border-radius: 999px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.07) 45%, rgba(255, 255, 255, 0.03) 70%, rgba(255, 255, 255, 0.13));
  -webkit-backdrop-filter: blur(5px) saturate(1.6) brightness(1.06); backdrop-filter: blur(5px) saturate(1.6) brightness(1.06);
  backdrop-filter: url(#ta-liquid-pill) blur(4px) saturate(1.6) brightness(1.06);   /* Chromium: lens-bent rim; others keep the line above */
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.55), inset -1px -1px 0 rgba(255, 255, 255, 0.16), inset 0 0 18px -8px rgba(255, 255, 255, 0.5), 0 8px 24px -12px rgba(0, 0, 0, 0.55);
  color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55); font: 500 14px/1 Inter, system-ui, sans-serif; text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.3s cubic-bezier(.2, .8, .2, 1);
}
.ta-back:hover, .ta-back:focus-visible { color: #fff; border-color: rgba(255, 224, 138, 0.75); background-color: rgba(255, 255, 255, 0.06); transform: translateX(-2px); }
.ta-back svg { filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.45)); }
.ta-back:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.ta-back__arrow { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ta-back__nib { width: 16px; height: 16px; }
@media (max-width: 600px) { .ta-back { gap: 5px; padding: 0 12px 0 9px; } .ta-back span { display: none; } }

/* ===== Breadcrumbs: "Home › Blog › Code" above a post's title and a category's name (from the site plugin) ===== */
.ta-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; font-size: 13.5px; font-weight: 500; letter-spacing: 0.02em; }
.ta-crumbs li { display: flex; align-items: center; }
.ta-crumbs li + li::before { content: '›'; margin: 0 9px; color: rgba(255, 255, 255, 0.3); }
.ta-crumbs li:last-child::after { content: '›'; margin-left: 9px; color: rgba(255, 255, 255, 0.3); }   /* points on to the title below */
.ta-crumbs a { padding: 6px 0; color: var(--mist); text-decoration: none; transition: color 0.2s ease; }
.ta-crumbs a:hover, .ta-crumbs a:focus-visible { color: var(--white); }
.single-post .ta-crumbs { margin-bottom: 12px; }
:is(.archive, .blog) .ta-crumbs { margin-bottom: 10px; }

/* ===== Related posts ("Keep reading") at the end of a post: the Demos page's cards ===== */
.ta-related { max-width: var(--ta-wide); margin: clamp(56px, 8vw, 96px) auto 0; }
.ta-related > h2 { margin: 0 0 20px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); }
.ta-related .ta-demo-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.ta-related .ta-demo-card__body { flex: 1; display: flex; flex-direction: column; }
.ta-related .ta-demo-card h3 { margin: 0 0 14px; font-size: 20px; line-height: 1.25; letter-spacing: -0.012em; color: #fff; }
.ta-related .ta-demo-card .ta-related__meta { margin: 0 0 6px; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; }
.ta-related .ta-demo-card__go { margin-top: auto; }
.ta-card-nib { display: block; aspect-ratio: 16 / 10; background: url(/site-assets/brand/mark.svg) center / 48px no-repeat, radial-gradient(60% 70% at 50% 45%, rgba(255, 155, 61, 0.16), rgba(194, 36, 107, 0.08) 55%, rgba(26, 22, 32, 0) 80%), #15111b; }
@media (max-width: 600px) {   /* phones: compact rows (thumbnail, date, title) rather than three tall cards */
  .ta-related .ta-demo-grid { gap: 12px; }
  .ta-related .ta-demo-card { display: block; min-height: 88px; padding-left: 116px; }   /* the text sets the height; the picture fills the left edge */
  .ta-related .ta-demo-card > img, .ta-related .ta-card-nib { position: absolute; left: 0; top: 0; bottom: 0; width: 116px; height: 100%; aspect-ratio: auto; object-fit: cover; }
  .ta-related .ta-card-nib { background-size: 30px, auto, auto; }
  .ta-related .ta-demo-card__body { justify-content: center; padding: 14px 16px; }
  .ta-related .ta-demo-card h3 { margin: 0; font-size: 17px; }
  .ta-related .ta-demo-card .ta-related__meta { margin-bottom: 4px; font-size: 12px; }
  .ta-related .ta-demo-card__go { display: none; }
}

/* ===== The header on pages you scroll (not Home, not demos): it stays at the top as glass once the page moves,
   slides away while you read down and comes back when you scroll up (classes set by the site plugin) ===== */
body:not(.home) .site-header {
  position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 90;
  transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}
body:not(.home) .site-header.ta-stuck {
  background-color: rgba(13, 11, 18, 0.72); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07), 0 14px 34px -22px rgba(0, 0, 0, 0.9);
}
body:not(.home) .site-header.ta-stuck :is(.inside-header, .main-navigation, .inside-navigation) { background-color: transparent; }   /* the theme paints these solid */
body:not(.home) .site-header.ta-tuck { transform: translateY(calc(-100% - 2px)); }
/* the reading line on posts: how far through the text you are, in the brand gradient along the top */
.ta-progress {
  position: fixed; z-index: 95; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0; height: 2px; pointer-events: none;
  transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, #FFE08A, #FF9B3D 35%, #FF5E5B 70%, #C2246B);
  box-shadow: 0 0 10px rgba(255, 155, 61, 0.45);
}

/* ===== The home page's warm glow behind the Demos, Blog and category headers, so every page shares its light ===== */
:is(.blog, .category, .page:has(.ta-demos)) .site-content { position: relative; isolation: isolate; }
:is(.blog, .category, .page:has(.ta-demos)) .site-content::before {
  content: ''; position: absolute; z-index: -1; top: 0; left: 50%; width: 100vw; margin-left: -50vw; height: 680px; pointer-events: none;   /* the full window width, so it has no edges */
  background: radial-gradient(min(640px, 46vw) 270px at max(18%, calc(50% - 440px)) 40%, rgba(255, 155, 61, 0.13), rgba(194, 36, 107, 0.06) 52%, rgba(13, 11, 18, 0) 100%);   /* gone before the top, so no seam under the header */
}

/* ===== Demos: the newest demo (the first card) as a wide feature across the top; the rest in the grid ===== */
.ta-demos .ta-demo-grid > .ta-demo-card:first-child .ta-demo-card__body::before {
  content: 'Newest'; display: block; margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
@media (min-width: 900px) {
  .ta-demos .ta-demo-grid > .ta-demo-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .ta-demos .ta-demo-grid > .ta-demo-card:first-child img { height: 100%; }
  .ta-demos .ta-demo-grid > .ta-demo-card:first-child .ta-demo-card__body { align-self: center; padding: clamp(28px, 3.4vw, 52px); }
  .ta-demos .ta-demo-grid > .ta-demo-card:first-child h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.022em; margin-bottom: 14px; }
  .ta-demos .ta-demo-grid > .ta-demo-card:first-child p { font-size: 17px; margin-bottom: 22px; }
}

/* ===== Page changes cross-fade instead of blinking (browsers with cross-page view transitions; others load as usual) ===== */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.28s; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  body:not(.home) .site-header { transition: none; }
  .ta-crumbs a { transition: none; }
}

/* ===== A demo's poster: shown instead of the app when the browser has no graphics acceleration (the site plugin
   decides; Google's page renderer is one such browser). The share picture beside the title, description and
   "Open anyway", full window under the Demos pill. ===== */
.ta-poster { display: none; }
body.ta-poster-on .ta-poster {
  position: fixed; z-index: 55; inset: var(--wp-admin--admin-bar--height, 0px) 0 0 0; display: grid; place-items: center; overflow: auto;
  padding: 72px 20px 32px; background: radial-gradient(60% 55% at 30% 40%, rgba(255, 155, 61, 0.12), rgba(194, 36, 107, 0.05) 55%, rgba(13, 11, 18, 0) 80%), #0D0B12;
}
body.ta-poster-on .ta-demo-frame { display: none; }
.ta-poster__card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 48px); width: min(1000px, 100%); }
.ta-poster__img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 70px -30px rgba(0, 0, 0, 0.9); }
.ta-poster__eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist, #8E93AA); }
.ta-poster .ta-poster__title { margin: 0 0 12px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -0.022em; color: #fff; }
.ta-poster__desc { margin: 0 0 24px; font-size: 17px; line-height: 1.55; color: #D6D5DD; }
.ta-poster .ta-poster__open {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; text-decoration: none;
  background: #FF9B3D; color: #0D0B12; font-size: 16px; font-weight: 600; box-shadow: 0 10px 30px -12px rgba(255, 155, 61, 0.6);
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.ta-poster .ta-poster__open:hover, .ta-poster .ta-poster__open:focus-visible { background: #FFE08A; color: #0D0B12; transform: translateY(-1px); }
.ta-poster .ta-poster__open:focus-visible { outline: 2px solid #FFE08A; outline-offset: 3px; }
.ta-poster__note { margin: 16px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--mist, #8E93AA); }
@media (max-width: 760px) {
  .ta-poster__card { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  body.ta-poster-on .ta-poster { align-items: start; padding-top: 64px; }
}
