/*
Theme Name: TechForYears
Theme URI: https://techforyears.com
Author: TechForYears
Description: Trust-first senior technology guidance theme.
Version: 0.1.6
Text Domain: techforyears
*/

:root {
  --tfy-ink: #172033;
  --tfy-muted: #526070;
  --tfy-line: #d9e2ea;
  --tfy-soft: #f6f8f5;
  --tfy-panel: #ffffff;
  --tfy-primary: #0f766e;
  --tfy-primary-dark: #115e59;
  --tfy-accent: #b7791f;
  --tfy-accent-soft: #fff7e6;
  --tfy-danger: #b91c1c;
  --tfy-radius: 8px;
  --tfy-shadow: 0 10px 30px rgba(23, 32, 51, 0.08);
}

* { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0;
  color: var(--tfy-ink);
  background: var(--tfy-soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--tfy-primary-dark); }
a:hover { color: var(--tfy-primary); }
a:focus-visible,
.button:focus-visible,
.wp-block-button__link:focus-visible,
.route-card:focus-visible {
  outline: 3px solid #f3c661;
  outline-offset: 3px;
}

img { max-width: 100%; height: auto; }

.skip-link {
  left: -999px;
  position: absolute;
  top: 0;
  z-index: 100;
}

.skip-link:focus {
  background: #fff;
  border: 2px solid var(--tfy-primary);
  left: 1rem;
  padding: .5rem .75rem;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--tfy-line);
}

.header-inner,
.footer-inner,
.container {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 1.1rem;
  width: 100%;
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  color: var(--tfy-ink);
  font-weight: 800;
  text-decoration: none;
}

.brand span {
  color: var(--tfy-primary);
}

.tagline {
  color: var(--tfy-muted);
  display: block;
  font-size: .82rem;
  font-weight: 500;
  margin-top: .08rem;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--tfy-ink);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-menu a:hover { color: var(--tfy-primary); }

.hero {
  background: #fff;
  border-bottom: 1px solid var(--tfy-line);
  padding: 3rem 0 2.4rem;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
}

.hero-grid > *,
.card-grid > *,
.route-grid > *,
.post-list > *,
.article-layout > * {
  min-width: 0;
}

.eyebrow {
  color: var(--tfy-primary-dark);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .03em;
  margin: 0 0 .7rem;
  text-transform: uppercase;
}

h1, h2, h3 {
  color: var(--tfy-ink);
  line-height: 1.15;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.05rem, 4vw, 3.7rem);
  letter-spacing: 0;
  margin: 0 0 1rem;
}

h2 { font-size: clamp(1.45rem, 2.5vw, 2.1rem); margin: 0 0 .75rem; }
h3 { font-size: 1.12rem; margin: 0 0 .45rem; }

.lede {
  color: var(--tfy-muted);
  font-size: 1.12rem;
  margin: 0 0 1.3rem;
  max-width: 720px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.2rem;
}

.button,
.wp-block-button__link {
  align-items: center;
  background: var(--tfy-primary);
  border: 1px solid var(--tfy-primary);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: .62rem 1rem;
  text-decoration: none;
  text-align: center;
}

.button.secondary {
  background: #fff;
  color: var(--tfy-primary-dark);
}

.button:hover,
.wp-block-button__link:hover {
  background: var(--tfy-primary-dark);
  color: #fff;
}

.trust-panel {
  background: #fff;
  border: 1px solid var(--tfy-line);
  border-left: 5px solid var(--tfy-primary);
  border-radius: var(--tfy-radius);
  padding: 1.1rem;
}

.trust-panel ul,
.check-list {
  list-style: none;
  margin: .8rem 0 0;
  padding: 0;
}

.trust-panel li,
.check-list li {
  margin: .55rem 0;
  padding-left: 1.65rem;
  position: relative;
}

.trust-panel li::before,
.check-list li::before {
  color: var(--tfy-primary);
  content: "✓";
  font-weight: 900;
  left: 0;
  position: absolute;
}

.section { padding: 2.4rem 0; }
.section.white { background: #fff; border-bottom: 1px solid var(--tfy-line); border-top: 1px solid var(--tfy-line); }

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.article-card,
.callout,
.disclosure-box {
  background: var(--tfy-panel);
  border: 1px solid var(--tfy-line);
  border-radius: var(--tfy-radius);
  padding: 1.1rem;
}

.card.featured,
.callout {
  box-shadow: var(--tfy-shadow);
}

.card p,
.article-card p { color: var(--tfy-muted); margin: .35rem 0 0; }

.audience-routes { background: #eef8f5; border-bottom: 1px solid #cce5dd; }

.route-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.route-card {
  background: #fff;
  border: 1px solid #bfe3d8;
  border-radius: var(--tfy-radius);
  color: var(--tfy-ink);
  display: block;
  min-height: 150px;
  padding: 1.1rem;
  text-decoration: none;
}

.route-card span {
  color: var(--tfy-primary-dark);
  display: block;
  font-size: .82rem;
  font-weight: 850;
  margin-bottom: .5rem;
  text-transform: uppercase;
}

.route-card strong {
  display: block;
  font-size: 1.12rem;
  line-height: 1.3;
}

.route-card:hover {
  border-color: var(--tfy-primary);
  box-shadow: var(--tfy-shadow);
  color: var(--tfy-ink);
}

.kicker {
  color: var(--tfy-primary-dark);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.article-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 720px) minmax(240px, 1fr);
  padding: 2rem 0 3rem;
}

.article-content {
  background: #fff;
  border: 1px solid var(--tfy-line);
  border-radius: var(--tfy-radius);
  padding: clamp(1rem, 3vw, 2rem);
}

.article-content h1 { font-size: clamp(2rem, 3.2vw, 3rem); }
.article-content p { margin: 0 0 1rem; }
.article-content h2 { margin-top: 2rem; }
.article-content li { margin-bottom: .4rem; }

.sidebar {
  align-self: start;
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

.resource-box {
  background: #eef8f5;
  border: 1px solid #bfe3d8;
  border-radius: var(--tfy-radius);
  padding: 1rem;
}

.warning-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--tfy-radius);
  padding: 1rem;
}

.disclosure-box {
  background: #fbfcfd;
  color: var(--tfy-muted);
  font-size: .9rem;
}

.post-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer {
  background: #172033;
  color: #dce6ef;
  margin-top: 2rem;
  padding: 2rem 0;
}

.site-footer a { color: #b6f0df; }

.footer-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1.3fr 1fr 1fr;
}

.footer-note {
  color: #b8c5d1;
  font-size: .86rem;
}

@media (max-width: 820px) {
  html { font-size: 17px; }
  .header-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-bottom: 1rem; padding-top: 1rem; }
  .hero-grid,
  .article-layout,
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid,
  .route-grid,
  .post-list { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 520px) {
  html { font-size: 16px; }
  .container,
  .header-inner,
  .footer-inner { padding-left: 1rem; padding-right: 1rem; }
  .hero { padding: 2rem 0 1.7rem; }
  h1 { font-size: 1.95rem; line-height: 1.1; }
  h2 { font-size: 1.45rem; }
  .lede { font-size: 1.03rem; }
  .hero-actions,
  .button-row { flex-direction: column; }
  .button,
  .wp-block-button__link { width: 100%; }
  .route-card { min-height: 0; }
}

@media (max-width: 360px) {
  h1 { font-size: 1.62rem; line-height: 1.12; }
  .eyebrow { font-size: .76rem; }
  .container,
  .header-inner,
  .footer-inner { padding-left: .85rem; padding-right: .85rem; }
}

@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .site-header,
  .site-footer,
  .sidebar,
  .hero-actions,
  .button-row,
  .button { display: none !important; }
  .container,
  .article-content { border: 0; max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  .resource-box,
  .warning-box,
  .disclosure-box { border: 1px solid #888; background: #fff; }
}
