/* ====================================================================
   TryHired content pages stylesheet
   Inherits the exact homepage design system (cream / gold / ink),
   built for long-form reading. Mobile-first.
   ==================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: light only;
  --ink: #1A1612;
  --paper: #FAF6EE;
  --paper-warm: #F4EEDD;
  --paper-deep: #EDE3D0;
  --accent: #D4A537;
  --gold-deep: #B8902E;
  --hi: #FFE8A0;
  --rule: rgba(26, 22, 18, 0.14);
  --muted: rgba(26, 22, 18, 0.62);
  --muted-strong: rgba(26, 22, 18, 0.82);
  --font-display: 'Instrument Serif', 'Fraunces', Georgia, serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 1px 1px, rgba(26, 22, 18, 0.05) 1px, transparent 0);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "liga" 1, "salt" 0, "titl" 0, "calt" 1;
  font-variation-settings: "WONK" 0, "SOFT" 50;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--hi); color: var(--ink); }

a { color: inherit; text-decoration: underline; text-decoration-color: rgba(26, 22, 18, 0.25); text-underline-offset: 3px; transition: color 0.15s ease; }
a:hover { text-decoration-color: var(--accent); color: var(--gold-deep); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 760px; margin: 0 auto; padding: 0 22px; }
.container-wide { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

@media (min-width: 768px) {
  .container { padding: 0 32px; }
  .container-wide { padding: 0 48px; }
  body { font-size: 19px; }
}

/* ==================== TOP BAR ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .topbar-inner { padding: 16px 48px; } }
.topbar-brand {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.topbar-brand .gold { color: var(--accent); }
.topbar-nav { display: flex; gap: 22px; align-items: center; }
.topbar-nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted-strong);
}
.topbar-nav a:hover { color: var(--gold-deep); }
.topbar-nav .nav-hide { display: none; }
@media (min-width: 640px) { .topbar-nav .nav-hide { display: inline; } }
.topbar-cta {
  font-family: var(--font-mono) !important;
  font-size: 12px !important;
  background: var(--ink);
  color: var(--paper) !important;
  padding: 9px 16px;
  border-radius: 2px;
  text-decoration: none !important;
}
.topbar-cta:hover { background: var(--gold-deep); color: var(--paper) !important; }

/* ==================== ARTICLE ==================== */
.article-head {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}
@media (min-width: 768px) { .article-head { padding: 72px 0 32px; } }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb .sep { margin: 0 8px; color: var(--accent); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); display: inline-block; }

h1.article-title {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 20px;
}
@media (min-width: 768px) { h1.article-title { font-size: 54px; } }
.article-title .it { font-style: italic; color: var(--gold-deep); }

.article-standfirst {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.45;
  color: var(--muted-strong);
  font-style: italic;
  margin-bottom: 24px;
}
@media (min-width: 768px) { .article-standfirst { font-size: 25px; } }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-meta a { color: var(--gold-deep); text-decoration: none; }

/* ==================== ARTICLE BODY ==================== */
.article-body { padding-bottom: 56px; }
.article-body > * + * { margin-top: 22px; }

.article-body h2 {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin-top: 48px;
  margin-bottom: 6px;
  padding-top: 8px;
}
@media (min-width: 768px) { .article-body h2 { font-size: 36px; } }

.article-body h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.25;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 4px;
}
@media (min-width: 768px) { .article-body h3 { font-size: 23px; } }

.article-body p { color: var(--ink); }
.article-body strong { font-weight: 600; }
.article-body em { font-style: italic; }

.article-body a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-decoration-color: rgba(184, 144, 46, 0.4);
}
.article-body a:hover { text-decoration-color: var(--gold-deep); }

.article-body ul, .article-body ol { padding-left: 0; list-style: none; }
.article-body li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 13px;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.article-body ol { counter-reset: li; }
.article-body ol li { counter-increment: li; }
.article-body ol li::before {
  content: counter(li, decimal-leading-zero);
  position: absolute;
  left: 0; top: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-deep);
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin: 28px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  color: var(--muted-strong);
}

/* Definition lead for glossary "what is" posts. The bold one-liner that
   answers the question up top, sized for scanning and AI citation. */
.def-lead {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 0 0 10px;
}
@media (min-width: 768px) { .def-lead { font-size: 22px; } }

/* Callout / key takeaway */
.callout {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 22px 24px;
  margin: 32px 0;
}
.callout .callout-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 10px;
}
.callout p { margin: 0; }

/* Code / prompt block */
.promptbox {
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  padding: 22px 24px;
  margin: 26px 0;
  position: relative;
}
.promptbox .promptbox-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.promptbox pre {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: rgba(250, 246, 238, 0.94);
}

/* Comparison table */
.table-wrap { overflow-x: auto; margin: 28px 0; }
table.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
table.cmp th, table.cmp td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.cmp thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border-bottom: 2px solid var(--accent);
}
table.cmp tbody tr:nth-child(even) { background: var(--paper-warm); }

/* In-article CTA */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  padding: 34px 28px;
  margin: 44px 0;
  text-align: left;
}
.cta-band .cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.cta-band h3 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.18;
  font-weight: 400;
  color: var(--paper);
  margin-bottom: 10px;
}
.cta-band .it { font-style: italic; color: var(--accent); }
.cta-band p { color: rgba(250, 246, 238, 0.82); font-size: 16px; margin-bottom: 20px; }
.cta-band a.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 3px;
  text-decoration: none;
}
.cta-band a.cta-btn:hover { background: var(--hi); color: var(--ink); }

/* Author box */
.author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
  margin: 44px 0;
}
.author-box .author-photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--paper-deep);
  flex-shrink: 0;
  object-fit: cover;
  object-position: 50% 15%;
}

/* About page headshot, larger */
.about-photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 15%;
  background: var(--paper-deep);
  border: 3px solid var(--paper-warm);
  box-shadow: 0 6px 24px rgba(26, 22, 18, 0.12);
  margin-bottom: 24px;
}
@media (min-width: 768px) {
  .about-photo { width: 156px; height: 156px; }
}
.author-box .author-name {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 4px;
}
.author-box .author-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.author-box .author-bio { font-size: 15px; color: var(--muted-strong); margin: 0; }

/* Related posts */
.related {
  padding: 40px 0 12px;
  border-top: 1px solid var(--rule);
}
.related-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 20px;
}
.related-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .related-grid { grid-template-columns: 1fr 1fr; } }
.related-card {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper-warm);
  transition: border-color 0.15s ease;
}
.related-card:hover { border-color: var(--accent); color: var(--ink); }
.related-card .rc-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}
.related-card .rc-title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
}

/* ==================== BLOG INDEX ==================== */
.blog-hero { padding: 56px 0 36px; border-bottom: 1px solid var(--rule); }
@media (min-width: 768px) { .blog-hero { padding: 84px 0 44px; } }
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 16px;
}
@media (min-width: 768px) { .blog-hero h1 { font-size: 62px; } }
.blog-hero h1 .it { font-style: italic; color: var(--gold-deep); }
.blog-hero p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  color: var(--muted-strong);
  max-width: 620px;
}

.post-list { padding: 36px 0 64px; }
.post-row {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}
.post-row:hover { color: var(--ink); }
.post-row:hover .pr-title { color: var(--gold-deep); }
.pr-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.pr-title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  transition: color 0.15s ease;
}
@media (min-width: 768px) { .pr-title { font-size: 34px; } }
.pr-dek { font-size: 16px; color: var(--muted-strong); max-width: 640px; }

/* ==================== FOOTER ==================== */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 52px 0 32px;
}
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr; gap: 48px; } }
.footer-brand { font-family: var(--font-display); font-size: 28px; margin-bottom: 14px; }
.footer-brand .gold { color: var(--accent); }
.footer-tagline { font-size: 15px; color: rgba(250, 246, 238, 0.72); max-width: 460px; margin-bottom: 14px; }
.footer-by { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: rgba(250, 246, 238, 0.6); }
.footer-by a { color: var(--accent); text-decoration: none; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 246, 238, 0.5);
  margin-bottom: 4px;
}
.footer-links a { color: rgba(250, 246, 238, 0.85); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  border-top: 1px solid rgba(250, 246, 238, 0.16);
  margin-top: 40px;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(250, 246, 238, 0.5);
}
