/*
Theme Name: Liberty Field Notes Final
Author: Harbor Pine Studio
Description: A classic PHP WordPress theme for teamliberty.net with dynamic menus, dynamic categories, Customizer controls, and a Lofty Lab inspired editorial layout.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: tlb-theme
*/

@font-face {
  font-family: "New Title";
  src: url("assets/fonts/new-title.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  --tlb-bg: #ffffff;
  --tlb-surface: #f1f2f3;
  --tlb-text: #02091d;
  --tlb-heading: #030f2e;
  --tlb-muted: #596078;
  --tlb-blue: #2d69ff;
  --tlb-orange: #ff742e;
  --tlb-purple: #e5a0fa;
  --tlb-green: #4aa97d;
  --tlb-yellow: #f8f47c;
  --tlb-card: #ffffff;
  --tlb-border: rgba(3, 15, 46, 0.12);
  --tlb-shadow: 0 24px 80px rgba(2, 9, 29, 0.12);
  --tlb-body-font: "Inter", Arial, sans-serif;
  --tlb-heading-font: "New Title", "Inter Display", Arial, sans-serif;
  --tlb-body-size: 16px;
  --tlb-hero-title-size: 76px;
  --tlb-hero-height: 460px;
  --tlb-section-spacing: 110px;
  --tlb-overlay-opacity: 0.52;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--tlb-bg);
  color: var(--tlb-text);
  font-family: var(--tlb-body-font);
  font-size: var(--tlb-body-size);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.tlb-screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tlb-screen-reader-text:focus {
  z-index: 10000;
  top: 18px;
  left: 18px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: var(--tlb-yellow);
  color: var(--tlb-heading);
  border-radius: 999px;
}

.tlb-site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;
  padding: 18px clamp(16px, 3vw, 42px) 0;
  pointer-events: none;
}

.tlb-header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 10px 12px 10px 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--tlb-border);
  border-radius: 999px;
  box-shadow: 0 18px 60px rgba(2, 9, 29, 0.12);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.tlb-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-family: var(--tlb-heading-font);
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 700;
  color: var(--tlb-heading);
}

.tlb-brand a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tlb-brand img {
  max-height: 48px;
  width: auto;
}

.tlb-brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tlb-desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.tlb-nav-menu,
.tlb-footer-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tlb-nav-menu a,
.tlb-page-fallback a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--tlb-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.tlb-nav-menu > li:nth-child(4n+1) > a,
.tlb-page-fallback > li:nth-child(4n+1) > a {
  background: var(--tlb-blue);
  color: #ffffff;
}

.tlb-nav-menu > li:nth-child(4n+2) > a,
.tlb-page-fallback > li:nth-child(4n+2) > a {
  background: var(--tlb-orange);
}

.tlb-nav-menu > li:nth-child(4n+3) > a,
.tlb-page-fallback > li:nth-child(4n+3) > a {
  background: var(--tlb-purple);
}

.tlb-nav-menu > li:nth-child(4n+4) > a,
.tlb-page-fallback > li:nth-child(4n+4) > a {
  background: var(--tlb-green);
}

.tlb-nav-menu a:hover,
.tlb-nav-menu a:focus-visible,
.tlb-page-fallback a:hover,
.tlb-page-fallback a:focus-visible,
.tlb-category-button:hover,
.tlb-category-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(2, 9, 29, 0.16);
  outline: 0;
}

.tlb-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tlb-category-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid var(--tlb-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--tlb-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  backdrop-filter: blur(14px);
}

.tlb-icon-button {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  border: 0;
  border-radius: 999px;
  background: var(--tlb-heading);
  color: #ffffff;
  cursor: pointer;
}

.tlb-menu-line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.tlb-mobile-panel {
  width: min(560px, calc(100% - 32px));
  margin: 10px auto 0;
  padding: 20px;
  border: 1px solid var(--tlb-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--tlb-shadow);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.tlb-mobile-panel[hidden] {
  display: none;
}

.tlb-mobile-nav .tlb-nav-menu,
.tlb-mobile-nav .tlb-page-fallback {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.tlb-mobile-nav a {
  width: 100%;
}

.tlb-main {
  min-height: 60vh;
}

.tlb-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: var(--tlb-hero-height);
  padding: 152px clamp(18px, 5vw, 72px) 52px;
  overflow: hidden;
  background-color: var(--tlb-heading);
  background-image:
    linear-gradient(115deg, rgba(2, 9, 29, var(--tlb-overlay-opacity)) 0%, rgba(2, 9, 29, 0.26) 42%, rgba(2, 9, 29, 0.1) 100%),
    radial-gradient(circle at 18% 18%, rgba(248, 244, 124, 0.85), transparent 24%),
    radial-gradient(circle at 78% 16%, rgba(229, 160, 250, 0.78), transparent 27%),
    linear-gradient(135deg, var(--tlb-blue), var(--tlb-green));
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.tlb-hero::after {
  content: "";
  position: absolute;
  inset: auto clamp(18px, 4vw, 60px) 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.32);
}

.tlb-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(760px, 100%);
  margin: 0;
  gap: 28px;
}

.tlb-hero-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--tlb-heading);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.tlb-hero-title {
  max-width: 760px;
  margin: 0;
  font-family: var(--tlb-heading-font);
  font-size: clamp(42px, 7vw, var(--tlb-hero-title-size));
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: pre-line;
}

.tlb-hero-description {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.45;
}

.tlb-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tlb-button,
.tlb-card-link,
.tlb-post-navigation a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--tlb-yellow);
  color: var(--tlb-heading);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tlb-button:hover,
.tlb-button:focus-visible,
.tlb-card-link:hover,
.tlb-card-link:focus-visible,
.tlb-post-navigation a:hover,
.tlb-post-navigation a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(2, 9, 29, 0.2);
  outline: 0;
}

.tlb-section {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
  padding: var(--tlb-section-spacing) 0 0;
}

.tlb-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.tlb-kicker {
  display: block;
  margin: 0 0 14px;
  color: var(--tlb-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tlb-section-title {
  margin: 0;
  color: var(--tlb-heading);
  font-family: var(--tlb-heading-font);
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0;
}

.tlb-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: stretch;
}

.tlb-intro-copy {
  display: grid;
  max-width: 760px;
  gap: 28px;
  align-content: center;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 24px;
  background: var(--tlb-surface);
}

.tlb-intro-text {
  margin: 0;
  color: var(--tlb-heading);
  font-size: clamp(26px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.02;
}

.tlb-about-text {
  margin: 0;
  color: var(--tlb-muted);
  font-size: clamp(16px, 1.8vw, 20px);
}

.tlb-post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tlb-post-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--tlb-border);
  border-radius: 24px;
  background: var(--tlb-card);
  box-shadow: 0 12px 40px rgba(2, 9, 29, 0.08);
}

.tlb-post-image-link {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--tlb-purple), var(--tlb-yellow));
}

.tlb-post-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.tlb-post-card:hover .tlb-post-image-link img {
  transform: scale(1.04);
}

.tlb-post-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), transparent 26%),
    linear-gradient(135deg, var(--tlb-blue), var(--tlb-green));
}

.tlb-post-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.tlb-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--tlb-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tlb-post-category {
  color: var(--tlb-heading);
}

.tlb-post-title {
  margin: 0;
  color: var(--tlb-heading);
  font-family: var(--tlb-heading-font);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1;
}

.tlb-post-excerpt {
  margin: 0;
  color: var(--tlb-muted);
  font-size: 15px;
}

.tlb-card-link {
  width: fit-content;
  margin-top: auto;
  background: var(--tlb-heading);
  color: #ffffff;
}

.tlb-category-section {
  padding-bottom: var(--tlb-section-spacing);
}

.tlb-category-cloud {
  padding: clamp(22px, 4vw, 42px);
  border-radius: 24px;
  background: var(--tlb-heading);
}

.tlb-category-cloud .tlb-section-title,
.tlb-category-cloud .tlb-kicker {
  color: #ffffff;
}

.tlb-category-cloud .tlb-category-list {
  margin-top: 28px;
}

.tlb-category-cloud .tlb-category-button {
  background: #ffffff;
}

.tlb-category-cloud .tlb-nav-menu,
.tlb-category-cloud .tlb-page-fallback {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tlb-category-cloud .tlb-nav-menu a,
.tlb-category-cloud .tlb-page-fallback a {
  min-height: 36px;
  padding: 9px 16px;
  border: 0;
  box-shadow: none;
}

.tlb-archive-hero,
.tlb-single-hero {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 160px 0 44px;
}

.tlb-archive-title,
.tlb-single-title {
  margin: 0;
  color: var(--tlb-heading);
  font-family: var(--tlb-heading-font);
  font-size: clamp(48px, 9vw, 116px);
  line-height: 0.95;
  letter-spacing: 0;
}

.tlb-loop {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 var(--tlb-section-spacing);
}

.tlb-loop .tlb-post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tlb-single-shell {
  width: min(840px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 var(--tlb-section-spacing);
}

.tlb-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  color: var(--tlb-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.tlb-entry-content {
  color: var(--tlb-text);
  font-size: clamp(17px, 1.8vw, 20px);
}

.tlb-entry-content > * {
  margin-top: 0;
  margin-bottom: 1.25em;
}

.tlb-entry-content h2,
.tlb-entry-content h3,
.tlb-entry-content h4 {
  color: var(--tlb-heading);
  font-family: var(--tlb-heading-font);
  line-height: 1.05;
}

.tlb-entry-content h2 {
  font-size: clamp(34px, 5vw, 56px);
}

.tlb-entry-content a {
  color: var(--tlb-blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.tlb-entry-content img,
.tlb-entry-content figure {
  border-radius: 18px;
}

.tlb-post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 56px;
}

.tlb-post-navigation .tlb-nav-next {
  text-align: right;
}

.tlb-pagination {
  margin-top: 34px;
}

.tlb-pagination h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tlb-pagination > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tlb-pagination a,
.tlb-pagination span {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--tlb-surface);
  color: var(--tlb-heading);
  font-weight: 800;
}

.tlb-pagination [aria-current="page"] {
  background: var(--tlb-heading);
  color: #ffffff;
}

.tlb-empty-state {
  padding: 36px;
  border-radius: 24px;
  background: var(--tlb-surface);
  color: var(--tlb-muted);
}

.tlb-site-footer {
  background: var(--tlb-heading);
  color: #ffffff;
}

.tlb-footer-shell {
  display: grid;
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(60px, 9vw, 120px) 0 24px;
  gap: 44px;
}

.tlb-footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}

.tlb-footer-brand {
  font-family: var(--tlb-heading-font);
  font-size: clamp(44px, 8vw, 104px);
  font-weight: 700;
  line-height: 0.9;
}

.tlb-footer-copy {
  max-width: 560px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.tlb-footer-menu {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tlb-footer-menu a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.tlb-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.tlb-footer-bottom a {
  color: #ffffff;
}

@media (max-width: 1100px) {
  .tlb-post-grid,
  .tlb-loop .tlb-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .tlb-site-header {
    padding-top: 12px;
  }

  .tlb-header-shell {
    padding: 8px 8px 8px 14px;
  }

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

  .tlb-icon-button {
    display: inline-flex;
  }

  .tlb-hero {
    min-height: max(430px, var(--tlb-hero-height));
    padding: 124px 18px 42px;
  }

  .tlb-hero-title {
    font-size: clamp(38px, 12vw, 68px);
  }

  .tlb-section {
    width: min(100% - 28px, 1200px);
    padding-top: 72px;
  }

  .tlb-section-header,
  .tlb-footer-top,
  .tlb-intro-grid {
    grid-template-columns: 1fr;
  }

  .tlb-section-header {
    display: grid;
  }

  .tlb-intro-copy {
    padding: 26px;
  }

  .tlb-post-grid,
  .tlb-loop .tlb-post-grid {
    grid-template-columns: 1fr;
  }

  .tlb-archive-hero,
  .tlb-single-hero {
    padding-top: 130px;
  }

  .tlb-post-navigation {
    grid-template-columns: 1fr;
  }

  .tlb-post-navigation .tlb-nav-next {
    text-align: left;
  }

  .tlb-footer-menu {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .tlb-brand {
    max-width: calc(100vw - 112px);
    font-size: 22px;
  }

  .tlb-mobile-nav .tlb-nav-menu,
  .tlb-mobile-nav .tlb-page-fallback {
    grid-template-columns: 1fr;
  }

  .tlb-hero-description {
    font-size: 16px;
  }

  .tlb-button,
  .tlb-card-link,
  .tlb-post-navigation a {
    width: 100%;
  }
}
