/*
Theme Name: Fieldline Daily
Author: Maren Whitfield
Description: A classic PHP editorial WordPress theme for flexible daily publishing.
Version: 1.0.0
Requires at least: 6.0
Text Domain: hpd-theme
*/

:root {
  --hpd-bg: #f3eee6;
  --hpd-surface: #fffaf2;
  --hpd-text: #17120f;
  --hpd-muted: #766a60;
  --hpd-line: rgba(23, 18, 15, 0.16);
  --hpd-strong-line: rgba(23, 18, 15, 0.72);
  --hpd-accent: #ef5d2f;
  --hpd-accent-dark: #b63820;
  --hpd-charcoal: #25201b;
  --hpd-radius: 8px;
  --hpd-font: "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--hpd-text);
  background: var(--hpd-bg);
  font-family: var(--hpd-font);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a:hover,
a:focus-visible {
  color: var(--hpd-accent-dark);
}

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

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

button {
  cursor: pointer;
}

.hpd-site {
  min-height: 100vh;
  overflow: hidden;
}

.hpd-skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 1000;
  display: inline-flex;
  padding: 10px 14px;
  border: 1px solid var(--hpd-text);
  border-radius: var(--hpd-radius);
  background: var(--hpd-surface);
  transition: top 160ms ease;
}

.hpd-skip-link:focus {
  top: 12px;
}

.hpd-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--hpd-bg);
  background: color-mix(in srgb, var(--hpd-bg) 92%, transparent);
  border-bottom: 1px solid var(--hpd-line);
  backdrop-filter: blur(18px);
}

.hpd-admin-bar .hpd-header {
  top: 46px;
}

.hpd-header-inner {
  width: min(100% - 28px, 1320px);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hpd-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hpd-logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.hpd-logo-image {
  width: auto;
  max-width: 150px;
  max-height: 42px;
}

.hpd-brand-text {
  display: inline-flex;
  align-items: center;
  color: var(--hpd-text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.hpd-brand-tagline {
  display: none;
  max-width: 220px;
  color: var(--hpd-muted);
  font-size: 12px;
  line-height: 1.2;
}

.hpd-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  color: var(--hpd-text);
  background: transparent;
  border: 1px solid var(--hpd-strong-line);
  border-radius: 999px;
}

.hpd-menu-icon {
  display: inline-grid;
  gap: 4px;
}

.hpd-menu-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hpd-menu-toggle[aria-expanded="true"] .hpd-menu-bar:first-child {
  transform: translateY(6px) rotate(45deg);
}

.hpd-menu-toggle[aria-expanded="true"] .hpd-menu-bar:nth-child(2) {
  opacity: 0;
}

.hpd-menu-toggle[aria-expanded="true"] .hpd-menu-bar:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.hpd-menu-label {
  color: var(--hpd-text);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hpd-nav {
  position: absolute;
  left: 14px;
  right: 14px;
  top: calc(100% + 8px);
  display: none;
  padding: 14px;
  background: var(--hpd-surface);
  border: 1px solid var(--hpd-line);
  border-radius: var(--hpd-radius);
  box-shadow: 0 22px 80px rgba(23, 18, 15, 0.12);
}

.hpd-nav.hpd-nav-open {
  display: block;
}

.hpd-menu,
.hpd-sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hpd-menu {
  display: grid;
  gap: 8px;
}

.hpd-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--hpd-radius);
  color: var(--hpd-text);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.hpd-menu a:hover,
.hpd-menu a:focus-visible,
.hpd-current-menu-item > a,
.hpd-current_page_item > a {
  background: var(--hpd-text);
  color: var(--hpd-surface);
}

.hpd-sub-menu {
  display: grid;
  gap: 4px;
  margin: 4px 0 4px 14px;
  padding-left: 10px;
  border-left: 1px solid var(--hpd-line);
}

.hpd-main {
  width: 100%;
}

.hpd-hero {
  width: min(100% - 28px, 1320px);
  margin: 22px auto 0;
  display: grid;
  gap: 20px;
}

.hpd-hero-copy {
  display: grid;
  align-content: end;
  gap: 16px;
  min-height: 56vh;
  padding: 24px 0 8px;
}

.hpd-kicker,
.hpd-section-index,
.hpd-card-number,
.hpd-single-kicker,
.hpd-footer-mark {
  margin: 0;
  color: var(--hpd-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hpd-hero-title {
  max-width: 980px;
  margin: 0;
  font-size: clamp(46px, 12vw, 154px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hpd-hero-intro {
  max-width: 760px;
  margin: 0;
  color: var(--hpd-charcoal);
  font-size: clamp(19px, 4vw, 34px);
  font-weight: 600;
  line-height: 1.12;
}

.hpd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hpd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--hpd-surface);
  background: var(--hpd-text);
  border: 1px solid var(--hpd-text);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.hpd-button:hover,
.hpd-button:focus-visible {
  color: var(--hpd-text);
  background: var(--hpd-accent);
  transform: translateY(-1px);
}

.hpd-button-alt {
  color: var(--hpd-text);
  background: transparent;
}

.hpd-button-alt:hover,
.hpd-button-alt:focus-visible {
  color: var(--hpd-surface);
  background: var(--hpd-text);
}

.hpd-hero-media {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: var(--hpd-accent);
  border-radius: var(--hpd-radius);
}

.hpd-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 18, 15, 0) 48%, rgba(23, 18, 15, 0.46));
  pointer-events: none;
}

.hpd-hero-image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
}

.hpd-hero-empty {
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 28px;
  color: var(--hpd-surface);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.hpd-category-bar,
.hpd-section,
.hpd-archive,
.hpd-footer-inner,
.hpd-footer-bottom {
  width: min(100% - 28px, 1320px);
  margin-inline: auto;
}

.hpd-category-bar {
  margin-top: 18px;
  padding: 14px 0 0;
}

.hpd-category-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: thin;
}

.hpd-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--hpd-line);
  border-radius: 999px;
  color: var(--hpd-text);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hpd-category-pill span {
  color: var(--hpd-accent-dark);
}

.hpd-category-pill:hover,
.hpd-category-pill:focus-visible {
  color: var(--hpd-surface);
  background: var(--hpd-text);
}

.hpd-section {
  margin-top: 72px;
  padding-top: 20px;
  border-top: 1px solid var(--hpd-strong-line);
}

.hpd-section-head,
.hpd-archive-header {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.hpd-section-title,
.hpd-archive-title {
  margin: 0;
  max-width: 900px;
  color: var(--hpd-text);
  font-size: clamp(38px, 8vw, 104px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hpd-section-copy,
.hpd-archive-description {
  max-width: 620px;
  margin: 0;
  color: var(--hpd-muted);
  font-size: 17px;
}

.hpd-post-grid {
  display: grid;
  gap: 14px;
}

.hpd-card {
  margin: 0;
}

.hpd-card-link {
  display: grid;
  min-height: 100%;
  overflow: hidden;
  background: var(--hpd-surface);
  border: 1px solid var(--hpd-line);
  border-radius: var(--hpd-radius);
  color: var(--hpd-text);
}

.hpd-card-link:hover,
.hpd-card-link:focus-visible {
  color: var(--hpd-text);
  border-color: var(--hpd-strong-line);
}

.hpd-card-media {
  margin: 0;
  overflow: hidden;
  background: var(--hpd-charcoal);
}

.hpd-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 260ms ease;
}

.hpd-card-link:hover .hpd-card-image,
.hpd-card-link:focus-visible .hpd-card-image {
  transform: scale(1.035);
}

.hpd-card-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

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

.hpd-card-title {
  margin: 0;
  font-size: clamp(24px, 8vw, 42px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.hpd-term-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hpd-term-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: var(--hpd-text);
  background: rgba(239, 93, 47, 0.12);
  border: 1px solid rgba(239, 93, 47, 0.28);
  border-radius: 999px;
}

.hpd-term-link:hover,
.hpd-term-link:focus-visible {
  color: var(--hpd-surface);
  background: var(--hpd-text);
  border-color: var(--hpd-text);
}

.hpd-empty-state {
  padding: 22px;
  background: var(--hpd-surface);
  border: 1px solid var(--hpd-line);
  border-radius: var(--hpd-radius);
  color: var(--hpd-muted);
}

.hpd-archive {
  margin-top: 44px;
}

.hpd-archive-list {
  display: grid;
  gap: 10px;
}

.hpd-archive-item {
  margin: 0;
  border-top: 1px solid var(--hpd-line);
}

.hpd-archive-link {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 16px 0;
  color: var(--hpd-text);
}

.hpd-archive-link:hover,
.hpd-archive-link:focus-visible {
  color: var(--hpd-accent-dark);
}

.hpd-archive-number {
  color: var(--hpd-muted);
  font-size: 13px;
  font-weight: 800;
}

.hpd-archive-entry-title {
  margin: 0;
  font-size: clamp(24px, 6vw, 52px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hpd-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--hpd-line);
}

.hpd-pagination-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--hpd-text);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hpd-single-wrap {
  width: min(80vw, 980px);
  margin: 44px auto 0;
}

.hpd-single {
  margin: 0;
}

.hpd-single-header {
  display: grid;
  gap: 16px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--hpd-strong-line);
}

.hpd-back-link {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  color: var(--hpd-text);
  border: 1px solid var(--hpd-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hpd-single-title {
  margin: 0;
  font-size: clamp(42px, 12vw, 118px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hpd-single-excerpt {
  max-width: 740px;
  margin: 0;
  color: var(--hpd-muted);
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 600;
  line-height: 1.18;
}

.hpd-entry-content {
  padding: 28px 0 16px;
  color: var(--hpd-charcoal);
  font-size: 18px;
  line-height: 1.75;
}

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

.hpd-entry-content h1,
.hpd-entry-content h2,
.hpd-entry-content h3,
.hpd-entry-content h4,
.hpd-entry-content h5,
.hpd-entry-content h6 {
  color: var(--hpd-text);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hpd-entry-content a {
  color: var(--hpd-accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.hpd-entry-content blockquote {
  margin-left: 0;
  padding-left: 18px;
  border-left: 3px solid var(--hpd-accent);
  color: var(--hpd-muted);
  font-size: 1.2em;
}

.hpd-entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.hpd-entry-content th,
.hpd-entry-content td {
  padding: 10px;
  border: 1px solid var(--hpd-line);
  text-align: left;
}

.hpd-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hpd-page-links a,
.hpd-page-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  border: 1px solid var(--hpd-line);
  border-radius: 999px;
}

.hpd-post-nav {
  display: grid;
  gap: 10px;
  width: min(80vw, 980px);
  margin: 20px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--hpd-line);
}

.hpd-post-nav a {
  display: block;
  padding: 14px;
  background: var(--hpd-surface);
  border: 1px solid var(--hpd-line);
  border-radius: var(--hpd-radius);
  color: var(--hpd-text);
  font-weight: 800;
}

.hpd-footer {
  margin-top: 86px;
  padding: 28px 0;
  color: var(--hpd-surface);
  background: var(--hpd-text);
}

.hpd-footer-inner {
  display: grid;
  gap: 24px;
}

.hpd-footer-title {
  max-width: 850px;
  margin: 0;
  font-size: clamp(42px, 12vw, 132px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hpd-footer-copy {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 250, 242, 0.72);
}

.hpd-footer .hpd-button {
  color: var(--hpd-text);
  background: var(--hpd-surface);
  border-color: var(--hpd-surface);
}

.hpd-footer .hpd-button:hover,
.hpd-footer .hpd-button:focus-visible {
  color: var(--hpd-surface);
  background: var(--hpd-accent);
  border-color: var(--hpd-accent);
}

.hpd-footer-nav .hpd-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hpd-footer-nav .hpd-menu a {
  color: var(--hpd-surface);
  border: 1px solid rgba(255, 250, 242, 0.18);
}

.hpd-footer-nav .hpd-menu a:hover,
.hpd-footer-nav .hpd-menu a:focus-visible {
  color: var(--hpd-text);
  background: var(--hpd-surface);
}

.hpd-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 250, 242, 0.18);
  color: rgba(255, 250, 242, 0.66);
  font-size: 13px;
}

@media (min-width: 680px) {
  .hpd-brand-tagline {
    display: block;
  }

  .hpd-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hpd-card:first-child {
    grid-column: span 2;
  }

  .hpd-card:first-child .hpd-card-link {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .hpd-card:first-child .hpd-card-image {
    height: 100%;
    min-height: 420px;
  }

  .hpd-card:first-child .hpd-card-body {
    align-content: end;
    padding: 24px;
  }

  .hpd-post-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 783px) {
  .hpd-admin-bar .hpd-header {
    top: 32px;
  }
}

@media (min-width: 920px) {
  .hpd-header-inner {
    min-height: 84px;
  }

  .hpd-menu-toggle {
    display: none;
  }

  .hpd-nav {
    position: static;
    display: block;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hpd-menu {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .hpd-menu a {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hpd-menu-item-has-children {
    position: relative;
  }

  .hpd-sub-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 210px;
    margin: 0;
    padding: 8px;
    background: var(--hpd-surface);
    border: 1px solid var(--hpd-line);
    border-radius: var(--hpd-radius);
    box-shadow: 0 18px 50px rgba(23, 18, 15, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .hpd-menu-item-has-children:hover > .hpd-sub-menu,
  .hpd-menu-item-has-children:focus-within > .hpd-sub-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hpd-hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.68fr);
    align-items: stretch;
    min-height: calc(100vh - 110px);
  }

  .hpd-hero-copy {
    min-height: auto;
    padding-bottom: 28px;
  }

  .hpd-hero-media,
  .hpd-hero-image,
  .hpd-hero-empty {
    min-height: calc(100vh - 132px);
  }

  .hpd-section-head,
  .hpd-archive-header {
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: start;
  }

  .hpd-section-copy,
  .hpd-archive-description {
    grid-column: 2;
  }

  .hpd-post-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hpd-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .hpd-card:first-child .hpd-card-link {
    grid-template-columns: 1fr;
  }

  .hpd-card:first-child .hpd-card-image {
    min-height: 360px;
  }

  .hpd-card:nth-child(2),
  .hpd-card:nth-child(3) {
    grid-column: span 1;
  }

  .hpd-card:nth-child(4) {
    grid-column: span 2;
  }

  .hpd-archive-link {
    grid-template-columns: 90px 1fr 210px;
    align-items: center;
  }

  .hpd-archive-link .hpd-card-meta {
    justify-content: flex-end;
  }

  .hpd-footer-inner {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: end;
  }

  .hpd-footer-nav {
    grid-column: span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
