/* Priority Resume — static magazine template */
:root {
  --bg: #f6f7fa;
  --surface: #ffffff;
  --text: #1a1f24;
  --text-muted: #5c5f68;
  --accent: #1e4a8c;
  --accent-hover: #163a70;
  --accent-soft: #e8eef7;
  --border: #e2e6ef;
  --header-h: 64px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --shadow: 0 1px 3px rgba(26, 31, 26, 0.08);
  --radius: 8px;
  --max: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}
.logo span {
  color: var(--accent);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: flex-end;
}

.nav-cats {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-cats--desktop {
  display: none;
}

.mobile-nav-details {
  position: relative;
}

.mobile-nav-details summary {
  list-style: none;
}

.mobile-nav-details summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.35rem 0;
  z-index: 120;
}

.nav-cats--stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-cats--stack a {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}

.nav-cats--stack li:last-child a {
  border-bottom: none;
}

.articles-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.articles-index-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.articles-index-meta {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.nav-cats a {
  display: block;
  padding: 0.45rem 0.65rem;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}
.nav-cats a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

.btn-icon,
.btn {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
}
.btn-icon:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1.1rem;
}
.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: #fff;
}

.menu-toggle {
  display: inline-flex;
}

@media (min-width: 900px) {
  .nav-cats,
  .nav-cats--desktop {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .mobile-nav-details {
    display: none;
  }
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem 1.25rem 1.25rem;
}
.mobile-panel.is-open {
  display: block;
}
.mobile-panel .nav-cats {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-panel .nav-cats a {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

/* Site search (client-side only) */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(26, 31, 26, 0.5);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 4.5rem 1rem 1rem;
  overflow-y: auto;
}
.search-overlay.is-open {
  display: flex;
}
.search-panel {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.25rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
}
.search-panel-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.search-panel-head input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
}
.search-panel-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.search-panel-close:hover {
  background: #d8ebe0;
}
.search-hint {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.search-results {
  max-height: min(55vh, 420px);
  overflow-y: auto;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}
.search-empty {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.search-hit {
  display: block;
  padding: 0.65rem 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
}
.search-hit:last-child {
  border-bottom: none;
}
.search-hit:hover {
  background: var(--accent-soft);
  text-decoration: none;
}
.search-hit-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.search-hit-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Main layout */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.hero {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.hero-feature {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-feature .thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #c5ddd0 0%, #e8f2ec 100%);
  object-fit: cover;
}
.hero-feature .body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.hero-feature h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
.hero-feature h1 a {
  color: inherit;
  text-decoration: none;
}
.hero-feature h1 a:hover {
  color: var(--accent);
}
.dek {
  color: var(--text-muted);
  margin: 0;
  font-size: 1rem;
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.side-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow);
}
.side-card-thumb-link {
  flex-shrink: 0;
  width: 96px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(145deg, #dde8e0, #eef4f0);
  box-shadow: inset 0 0 0 1px rgba(30, 92, 61, 0.08);
}
.side-card-thumb-link:hover {
  opacity: 0.92;
}
.side-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.side-card-body {
  min-width: 0;
  flex: 1;
}
.side-card .kicker {
  margin: 0 0 0.25rem;
}
.side-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  line-height: 1.25;
}
.side-card h3 a {
  color: inherit;
  text-decoration: none;
}
.side-card h3 a:hover {
  color: var(--accent);
}
.side-card .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.grid-articles {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .grid-articles {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .grid-articles {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(26, 31, 26, 0.1);
  transform: translateY(-2px);
}
.card .thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #dde8e0, #f0f5f2);
  object-fit: cover;
}
.card .body {
  padding: 1rem 1.1rem 1.15rem;
}
.card h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}
.card h2 a {
  color: inherit;
  text-decoration: none;
}
.card h2 a:hover {
  color: var(--accent);
}
.card .excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.65rem 0 0;
}

.site-footer {
  background: #1a2420;
  color: #c8d4cc;
  padding: 2.5rem 1.25rem;
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}
.site-footer a {
  color: #a8d4b8;
}
.site-footer .logo {
  color: #fff;
}
.footer-copy {
  font-size: 0.85rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  grid-column: 1 / -1;
}

.site-footer--extended {
  padding-top: 2.75rem;
  padding-bottom: 2rem;
}
.site-footer--extended .footer-inner-main {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .site-footer--extended .footer-inner-main {
    grid-template-columns: 1.15fr 1fr 1.15fr;
    align-items: start;
  }
}
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8faa9c;
  margin: 0 0 0.85rem;
}
.footer-col p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #b8c9bf;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin-bottom: 0.45rem;
}
.footer-col a {
  color: #c8e0d4;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-col a:hover {
  text-decoration: underline;
  color: #fff;
}
.footer-jacobs {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #9aaf9f;
  margin: 0;
}
.footer-jacobs strong {
  color: #c8d4cc;
  font-weight: 600;
}
.footer-bottom-bar {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #8a9a90;
  text-align: center;
}
.footer-bottom-bar a {
  color: #a8d4b8;
}

.legal-page {
  padding: 2rem 1.25rem 4rem;
}
.legal-inner {
  max-width: 720px;
  margin: 0 auto;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}
.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.75rem;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 1.75rem 0 0.65rem;
}
.legal-page p,
.legal-page li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}
.legal-page ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.legal-page a {
  color: var(--accent);
}
.header-legal {
  border-bottom: 1px solid var(--border);
}
.header-legal .header-inner {
  justify-content: space-between;
}
.header-legal nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.header-legal nav a:hover {
  color: var(--accent);
}

/* Article page */
.article-page .article-hero {
  margin-bottom: 1.5rem;
}
.article-page .article-hero .thumb {
  aspect-ratio: 21 / 9;
  max-height: 380px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #c5ddd0, #e8f2ec);
}
.article-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
}
.article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.article-body {
  max-width: 680px;
  font-size: 1.05rem;
}
.article-body p {
  margin: 0 0 1.1rem;
}
.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(26, 31, 26, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.modal-overlay.is-open {
  display: flex;
}
.modal {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.modal--subscribe {
  max-width: 920px;
  padding: 1.75rem 1.5rem 2rem;
}
.modal h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}
.modal--subscribe h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  text-align: center;
}
.modal > p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.modal--subscribe > p.sub-modal-lead {
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.sub-plan-fieldset {
  border: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.sub-plan-legend {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1rem;
  width: 100%;
}
.plan-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .plan-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}
.plan-card {
  position: relative;
  display: block;
  cursor: pointer;
  margin: 0;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.15rem 1rem 1.25rem;
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.2s;
}
.plan-card:hover {
  border-color: #b8d4c4;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.plan-card:has(input:checked),
.plan-card.plan-card--active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}
.plan-card:has(.plan-card-badge) {
  padding-top: 1.35rem;
}
.plan-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.plan-card-badge {
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-card-save {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}
.plan-card-head {
  text-align: center;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.plan-card--active .plan-card-head {
  border-bottom-color: rgba(30, 92, 61, 0.2);
}
.plan-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.plan-price {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.plan-price span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}
.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.plan-features li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.45rem;
}
.plan-features li:last-child {
  margin-bottom: 0;
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}
.form-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 520px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}
.modal--subscribe .form-actions .btn-primary {
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
}
.modal-wrap {
  position: relative;
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
}
.form-group.checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
}
.form-group.checkbox input {
  margin-top: 0.2rem;
}
.form-actions {
  margin-top: 1.25rem;
}
.form-actions .btn-primary {
  width: 100%;
  padding: 0.75rem;
}

.field-error {
  color: #b42318;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}
.field-error.is-visible {
  display: block;
}

/* Thanks page */
.thanks-page {
  text-align: center;
  padding: 3rem 1rem 4rem;
  max-width: 520px;
  margin: 0 auto;
}
.thanks-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.thanks-page p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Cookie consent bar */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 280;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(26, 31, 36, 0.12);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
}
.cookie-consent[hidden] {
  display: none !important;
}
.cookie-consent--visible {
  display: block;
}
.cookie-consent__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-consent__text {
  margin: 0;
  flex: 1 1 280px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 46rem;
}
.cookie-consent__text a {
  font-weight: 600;
}
.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex-shrink: 0;
}
.cookie-consent__btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.55rem 1rem;
  font-weight: 600;
}
.cookie-consent__btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.cookie-consent .btn-primary {
  padding: 0.55rem 1.15rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

