/* tex.how welcome page. Colors, borders, shadows and spacing follow TCR Theme
   (projects/tcr-website-next/wp/tcr-theme: theme.json and style.css), so it reads as the same site. */

/* Headlines. GROBOLD is not served here: its free version is for personal use only
   (projects/tcr-website-next/docs/font-licenses.md). Poppins Black, under the SIL Open Font License,
   stands in. To swap the headline font later, change only this src line. */
@font-face { font-family: 'TCRDisplay'; src: url('fonts/Poppins-Black.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/Poppins-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/Poppins-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/Poppins-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --white: #fff; --black: #000; --blue: #0075E1; --blue-dark: #005DB2; --gold: #E2A856;
  --tan: #D9CFC6; --paper: #E4DCD4; --charcoal: #2D2926; --gray-light: #E5E5E5;
  --display: 'TCRDisplay', 'Arial Black', sans-serif;
  --body: Poppins, 'Segoe UI', Arial, sans-serif;
  --shadow: 6px 6px 0 #000; --shadow-large: 10px 10px 0 #000;
  --ticker-height: 130px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-bottom: calc(var(--ticker-height) + 12px); }
body { margin: 0; padding-bottom: var(--ticker-height); background: var(--paper); color: var(--charcoal); font: 400 17px/1.65 var(--body); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0 0 .5rem; letter-spacing: -.005em; }
h1 { font-size: clamp(40px, 6.2vw, 74px); }
h2 { font-size: clamp(28px, 4.4vw, 46px); }
h3 { font-size: clamp(19px, 2vw, 22px); line-height: 1.2; }
p { margin: 0 0 1rem; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; }
:is(.dark, .site-header, .site-footer, .ticker) :focus-visible { outline-color: var(--gold); }
.wrap { max-width: 1208px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--gold); color: var(--black); padding: 10px 16px; font-weight: 700; }
.skip:focus { left: 12px; top: 12px; }

/* Header, as on texthetech.com */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 24px; background: var(--black); color: var(--white); border-bottom: 3px solid var(--black); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-size: clamp(18px, 1.8vw, 21px); line-height: 1.1; }
.brand img { width: 76px; height: auto; }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
.site-header nav a { text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.site-header nav a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.site-header nav a.phone { color: var(--gold); font-family: var(--display); font-weight: 400; font-size: 16px; }
.header-call, .menu-btn { display: none; }
@media (max-width: 1100px) {
  .site-header { flex-wrap: wrap; padding-inline: 16px; }
  .header-call, .menu-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 3px solid var(--gold); border-radius: 4px; font: 400 15px var(--display); text-decoration: none; cursor: pointer; }
  .header-call { margin-left: auto; color: var(--gold); }
  .menu-btn { background: var(--gold); color: var(--black); }
  .no-js .menu-btn { display: none; }
  .site-header nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-header nav { display: none; }
  .js .site-header.open nav { display: flex; }
  .site-header nav a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.2); }
}
@media (max-width: 480px) {
  .site-header { gap: 8px; padding-inline: 12px; }
  .brand { flex: 1 1 0; min-width: 0; gap: 8px; font-size: 15px; }
  .brand img { width: 54px; flex: none; }
  .brand span { max-width: 8.5em; }
  .header-call, .menu-btn { padding: 0 9px; font-size: 14px; }
}
@media (max-width: 359px) { .brand { font-size: 13px; gap: 6px; } .brand img { width: 44px; } .header-call, .menu-btn { padding: 0 7px; font-size: 13px; } }

/* Buttons, cards, labels */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border: 3px solid var(--black); border-radius: 4px; background: var(--blue); color: var(--white); box-shadow: var(--shadow); font: 400 16px/1.2 var(--display); letter-spacing: .02em; text-transform: uppercase; text-decoration: none; text-align: center; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-large); color: var(--white); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.btn.gold, .btn.gold:hover { background: var(--gold); color: var(--black); }
.acts { display: flex; flex-wrap: wrap; gap: 18px; margin: 1.6rem 0 0; }
.acts.center { justify-content: center; margin-top: 2.8rem; }
.eyebrow { display: inline-block; padding: 6px 16px; border: 3px solid var(--black); border-radius: 4px; background: var(--blue); color: var(--white); font: 400 12px/1.5 var(--display); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.eyebrow.gold { background: var(--gold); color: var(--black); }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0; background: linear-gradient(180deg, var(--tan), var(--paper)); border-bottom: 3px solid var(--black); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 mark { display: inline-block; line-height: 1.2; margin-top: .08em; padding: 0 .14em; border-radius: 4px; background: var(--blue); color: var(--white); }
.lede { font-size: clamp(17px, 2vw, 21px); max-width: 54ch; }
.logo-card { justify-self: center; width: min(100%, 430px); padding: 28px; background: var(--white); border: 3px solid var(--black); border-radius: 4px; box-shadow: var(--shadow-large); transform: rotate(2deg); }
.logo-card img { display: block; width: 100%; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .logo-card { order: -1; width: min(64%, 300px); padding: 14px; }
  .hero { padding-top: 1.75rem; }
}
/* A phone held sideways: words beside the logo, so the welcome shows first */
@media (max-height: 500px) and (min-width: 560px) {
  .hero { padding: 1.25rem 0 2rem; }
  .hero-grid { grid-template-columns: 1.5fr .5fr; gap: 24px; align-items: start; }
  .hero h1 { font-size: 40px; margin-bottom: .75rem; }
  .hero .eyebrow { margin-bottom: .5rem; }
  .logo-card { order: 0; width: 100%; padding: 8px; }
}

/* Sections */
.band { padding: clamp(3.5rem, 7vw, 5.5rem) 0; border-bottom: 3px solid var(--black); }
.band.tan { background: var(--tan); }
.band.dark { background: var(--charcoal); color: var(--white); }

/* Short links: no card is left alone on a row (12 cards in 4, 3, 2 or 1 columns) */
.links { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.links a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; background: var(--white); border: 3px solid var(--black); border-radius: 4px; box-shadow: var(--shadow); text-decoration: none; transition: transform .14s, box-shadow .14s; }
.links a:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-large); }
.links .hot a { border-top: 12px solid var(--blue); }
.slug { font: 400 clamp(22px, 2.1vw, 26px)/1.15 var(--display); color: var(--blue-dark); overflow-wrap: anywhere; }
.slug small { display: block; font-size: 14px; color: var(--charcoal); }
.what { font-size: 15px; font-weight: 600; line-height: 1.4; }
@media (max-width: 1060px) { .links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .links a { padding: 14px; } .slug { font-size: 20px; } .slug small { font-size: 12px; } .what { font-size: 14px; } }
@media (max-width: 359px) { .links { grid-template-columns: 1fr; } }

/* Post previews */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 2rem; }
.post { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--white); color: var(--charcoal); border: 3px solid var(--black); border-radius: 4px; box-shadow: var(--shadow); transition: transform .14s, box-shadow .14s; }
.post:hover, .post:focus-within { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--gold); }
.art { position: relative; aspect-ratio: 16 / 9; border-bottom: 3px solid var(--black); background-size: 18px 18px; }
.art svg { display: block; width: 100%; height: 100%; }
.art-text { font-family: var(--display); }
.art-blue { background-color: var(--blue); background-image: radial-gradient(rgba(255,255,255,.3) 2px, transparent 2.5px); }
.art-gold { background-color: var(--gold); background-image: radial-gradient(rgba(0,0,0,.2) 2px, transparent 2.5px); }
.art-black { background-color: var(--black); background-image: radial-gradient(rgba(255,255,255,.22) 2px, transparent 2.5px); }
.art::after { content: ""; position: absolute; right: 10px; bottom: 10px; width: 46px; height: 46px; border: 2px solid var(--black); border-radius: 50%; background: var(--white) url('tcr-icon.png') center / 82% no-repeat; }
.post-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.post-body p { font-size: 15px; }
.post h3 a { text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; }   /* the whole card is the link */
.post:hover h3 a { color: var(--blue-dark); text-decoration: underline; }
.post .more { margin: auto 0 0; font: 400 15px var(--display); color: var(--blue-dark); text-transform: uppercase; }
.chip { align-self: flex-start; padding: 3px 12px; border: 2px solid var(--black); border-radius: 99px; font-weight: 700; line-height: 1.5; }
.post-body p.chip { font-size: 13px; }
.chip.blue { background: var(--blue); color: var(--white); }
.chip.gold { background: var(--gold); color: var(--black); }
.chip.dark { background: var(--charcoal); color: var(--white); }
@media (max-width: 940px) { .posts { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* Footer, as on texthetech.com */
.site-footer { background: var(--black); color: var(--white); padding: 4rem 0 2.5rem; }
.foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.site-footer h2 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.site-footer li { padding: 3px 0; }
.site-footer p { font-size: 14px; }
.site-footer a:hover { color: var(--gold); }
.social { display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 600; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 24px; margin-top: 2rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* The bottom ticker */
.ticker { position: fixed; inset: auto 0 0 0; z-index: 100; background: var(--black); color: var(--white); border-top: 4px solid var(--gold); padding-bottom: env(safe-area-inset-bottom, 0px); }
.progress { height: 8px; background: #3a3532; }
.progress span { display: block; height: 100%; background: var(--blue); transform-origin: left; transition: transform .3s linear; }
.ticker-row { display: grid; grid-template-columns: auto minmax(0, auto) auto; justify-content: center; align-items: center; gap: 12px 34px; padding: 14px 20px 18px; }
.count { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 118px; padding: 4px 12px 8px; background: var(--gold); color: var(--black); border: 3px solid var(--white); border-radius: 6px; line-height: 1; }
#count { display: block; font: 400 clamp(46px, 6vw, 66px)/1.05 var(--display); font-variant-numeric: tabular-nums; }
#count.tick { animation: tick .35s ease-out; }
@keyframes tick { from { transform: scale(1.22); } to { transform: scale(1); } }
.unit { font: 400 12px var(--display); text-transform: uppercase; letter-spacing: .08em; }
.ticker-text { margin: 0; line-height: 1.2; }
#ticker-lead { display: block; font-size: clamp(14px, 1.7vw, 19px); font-weight: 600; }
#forward-link { display: inline-block; padding: 2px 0; font: 400 clamp(20px, 3.4vw, 40px)/1.2 var(--display); color: var(--gold); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
#forward-link:hover { color: var(--white); }
.ticker .btn { box-shadow: 4px 4px 0 var(--blue); border-color: var(--white); }
.stopped .count, .stopped .progress { visibility: hidden; }
.stopped .count { display: none; }
.stopped .ticker-row { grid-template-columns: minmax(0, auto) auto; }
.nojs-only, .no-js .js-only, .no-js .count, .no-js .progress, .no-js #stay { display: none; }
.no-js .nojs-only { display: inline; }
.no-js .ticker-row { grid-template-columns: auto; }
@media (max-width: 700px) {
  .ticker-row { grid-template-columns: auto minmax(0, 1fr); justify-content: stretch; gap: 10px 12px; padding: 10px 12px 14px; }
  .count { min-width: 76px; padding: 2px 6px 6px; }
  #count { font-size: 40px; }
  .unit { font-size: 10px; }
  #forward-link { font-size: clamp(18px, 5.6vw, 28px); }
  .ticker .btn { grid-column: 1 / -1; min-height: 44px; padding-block: 8px; font-size: 14px; }
  .stopped .ticker-row, .no-js .ticker-row { grid-template-columns: 1fr; text-align: center; }
}
/* A phone held sideways: one slim row, so the page still shows */
@media (max-height: 500px) and (min-width: 560px) {
  .ticker-row { grid-template-columns: auto minmax(0, auto) auto; justify-content: center; gap: 8px 18px; padding: 6px 12px 8px; }
  .progress { height: 5px; }
  .count { min-width: 70px; padding: 0 6px 3px; }
  #count { font-size: 30px; }
  .unit { font-size: 9px; }
  #forward-link { font-size: 22px; }
  .ticker .btn { grid-column: auto; min-height: 40px; padding: 6px 14px; font-size: 13px; }
  .stopped .ticker-row { grid-template-columns: minmax(0, auto) auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .links a, .post, .progress span { transition: none; }
  .btn:hover, .btn:active, .links a:hover, .post:hover, .post:focus-within, .logo-card { transform: none; }
  #count.tick { animation: none; }
  .progress { display: none; }
}
@media print { .ticker { display: none; } body { padding-bottom: 0; } }
