/*
Theme Name: Pack Up & Ride
Theme URI: https://packupandride.com/
Description: Rugged editorial child theme for Pack Up & Ride.
Author: Pack Up & Ride
Template: twentytwentyfive
Version: 0.3.3
Text Domain: pack-up-and-ride
*/

:root {
  --pur-shadow: 0 12px 28px rgba(16, 24, 32, 0.12);
}

body {
  text-rendering: optimizeLegibility;
}

a {
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.wp-site-blocks > header {
  border-bottom: 3px solid var(--wp--preset--color--adventure-orange);
}

.pur-site-header {
  background:
    radial-gradient(circle at 15% -40%, rgba(102, 112, 120, 0.22), transparent 42%),
    var(--wp--preset--color--midnight);
  border-bottom: 3px solid var(--wp--preset--color--adventure-orange);
  position: relative;
  z-index: 20;
}

.pur-site-header .wp-block-site-logo img {
  height: auto;
  max-height: 74px;
  width: auto;
}

.pur-site-header .wp-block-navigation-item__content {
  color: var(--wp--preset--color--white);
  font-family: var(--wp--preset--font-family--oswald);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-decoration: none;
  text-transform: uppercase;
}

.pur-site-header .wp-block-navigation-item__content:hover,
.pur-site-header .wp-block-navigation-item__content:focus-visible {
  color: var(--wp--preset--color--adventure-orange);
}

.pur-site-header .wp-block-navigation__responsive-container-open,
.pur-site-header .wp-block-navigation__responsive-container-close {
  color: var(--wp--preset--color--white);
}

.pur-site-footer {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.025), transparent 35%),
    var(--wp--preset--color--midnight);
  border-top: 4px solid var(--wp--preset--color--adventure-orange);
  padding-top: clamp(1.5rem, 3vw, 2.5rem) !important;
}

.pur-site-footer a {
  color: var(--wp--preset--color--white);
  text-decoration: none;
}

.pur-site-footer a:hover,
.pur-site-footer a:focus-visible {
  color: var(--wp--preset--color--adventure-orange);
}

.pur-footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pur-footer-nav li + li {
  margin-top: 0.45rem;
}

.pur-newsletter {
  background: linear-gradient(100deg, var(--wp--preset--color--trail-sand), var(--wp--preset--color--warm-white));
  border-radius: 6px;
}

.pur-newsletter-form {
  display: flex;
  margin: 0;
  max-width: 520px;
  width: 100%;
}

.pur-newsletter-form input {
  background: #fff;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 4px 0 0 4px;
  box-sizing: border-box;
  color: var(--wp--preset--color--charcoal);
  font: inherit;
  min-width: 0;
  padding: 0.75rem 1rem;
  width: 100%;
}

.pur-newsletter-form button {
  background: var(--wp--preset--color--adventure-orange);
  border: 0;
  border-radius: 0 4px 4px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  font-family: var(--wp--preset--font-family--inter);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  text-transform: uppercase;
}

.wp-block-button__link {
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.wp-block-post-featured-image img,
.pur-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.pur-pattern {
  position: relative;
  overflow: hidden;
}

.pur-pattern::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 96px;
  height: 96px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
}

.pur-eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pur-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.1rem;
  height: 2.35rem;
  justify-content: center;
  line-height: 1;
  width: 2.35rem;
}

.pur-card {
  height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.pur-card:hover {
  box-shadow: var(--pur-shadow);
  transform: translateY(-3px);
}

.pur-rule {
  height: 3px;
  margin: 0;
  width: 56px;
}

@media (max-width: 781px) {
  .pur-pattern {
    padding: 1.25rem !important;
  }

  .pur-site-header .wp-block-site-logo img {
    max-height: 58px;
  }

  .pur-newsletter-form {
    display: block;
  }

  .pur-newsletter-form input,
  .pur-newsletter-form button {
    border-radius: 4px;
    width: 100%;
  }

  .pur-newsletter-form button {
    margin-top: 0.5rem;
  }
}

@media (max-width: 599px) {
  .pur-site-header {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Single-post editorial template. */
.pur-post-shell {
  padding-bottom: clamp(3rem, 6vw, 6rem);
  padding-top: clamp(2rem, 5vw, 4.5rem);
}

.pur-post-header {
  border-bottom: 1px solid var(--wp--preset--color--border);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
}

.pur-post-header .wp-block-post-title {
  font-size: clamp(2.75rem, 5.5vw, 5.5rem);
  letter-spacing: -0.025em;
  max-width: 980px;
}

.pur-post-meta {
  color: var(--wp--preset--color--slate);
  font-size: 0.875rem;
}

.pur-post-featured img {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
  width: 100%;
}

.pur-article-content {
  font-size: 1.05rem;
  line-height: 1.75;
}

.pur-article-content > * {
  max-width: 780px;
}

.pur-article-content > .alignwide,
.pur-article-content > figure,
.pur-article-content > table,
.pur-article-content > .wp-block-table {
  max-width: 100%;
}

.pur-article-content h2 {
  border-top: 1px solid var(--wp--preset--color--border);
  margin-top: 3rem;
  padding-top: 1.5rem;
}

.pur-article-content h2::before {
  background: var(--wp--preset--color--adventure-orange);
  border-radius: 999px;
  content: "";
  display: inline-block;
  height: 0.55em;
  margin-right: 0.5rem;
  width: 0.55em;
}

.pur-article-content table {
  border-collapse: collapse;
  font-size: 0.9rem;
  width: 100%;
}

.pur-article-content th {
  background: var(--wp--preset--color--midnight);
  color: var(--wp--preset--color--white);
}

.pur-article-content th,
.pur-article-content td {
  border: 1px solid var(--wp--preset--color--border);
  padding: 0.7rem;
}

.pur-post-sidebar {
  align-self: flex-start;
  position: sticky;
  top: 2rem;
}

.admin-bar .pur-post-sidebar {
  top: 4rem;
}

.pur-sidebar-card {
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 6px;
  padding: 1.25rem;
}

.pur-sidebar-card h2,
.pur-sidebar-card h3 {
  font-size: 1.25rem;
  margin-top: 0;
}

.pur-toc-list,
.pur-toc-list ol,
.pur-toc-content .ez-toc-list,
.pur-toc-content .ez-toc-list-level-1 {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pur-toc-content li {
  border-bottom: 1px solid var(--wp--preset--color--border);
  font-size: 0.875rem;
  padding: 0.55rem 0;
}

.pur-toc-content li:last-child {
  border-bottom: 0;
}

.pur-toc-content a {
  color: var(--wp--preset--color--charcoal);
  text-decoration: none;
}

.pur-toc-content a:hover,
.pur-toc-content a:focus-visible {
  color: var(--wp--preset--color--adventure-orange);
}

.pur-toc-content .ez-toc-container-direction {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.pur-toc-content .ez-toc-title-container,
.pur-toc-content .ez-toc-title {
  display: none;
}

.pur-article-content > .ez-toc-v2_0_86,
.pur-article-content > [class*="ez-toc-v2_"] {
  display: none;
}

.pur-sidebar-cta {
  background: linear-gradient(145deg, var(--wp--preset--color--midnight), var(--wp--preset--color--charcoal));
  border-radius: 6px;
  color: var(--wp--preset--color--white);
  padding: 1.5rem;
}

.pur-sidebar-cta h3 {
  color: var(--wp--preset--color--white);
}

.pur-sidebar-posts .wp-block-post {
  border-bottom: 1px solid var(--wp--preset--color--border);
  padding-bottom: 0.85rem;
}

.pur-sidebar-posts .wp-block-post-title {
  font-size: 1rem;
}

.pur-author-box {
  background: var(--wp--preset--color--warm-white);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 6px;
  padding: 1.5rem;
}

.pur-post-navigation {
  border-bottom: 1px solid var(--wp--preset--color--border);
  border-top: 1px solid var(--wp--preset--color--border);
  padding: 1.5rem 0;
}

.pur-related-guides .wp-block-post {
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 6px;
  overflow: hidden;
}

@media (max-width: 960px) {
  .pur-post-layout {
    display: block !important;
  }

  .pur-post-sidebar {
    margin-top: 3rem;
    position: static;
  }
}

@media (max-width: 599px) {
  .pur-post-shell {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .pur-post-header .wp-block-post-title {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

  .pur-related-guides .wp-block-post-template {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pur-card { transition: none; }
}

.pur-home-hero {
  background:
    radial-gradient(circle at 78% 35%, rgba(232, 93, 24, 0.2), transparent 32%),
    linear-gradient(115deg, #101820 0%, #101820 56%, #252a2e 100%);
  min-height: 560px;
}

.pur-home-hero h1 {
  font-size: clamp(3.25rem, 7vw, 6.25rem);
  letter-spacing: -0.025em;
  max-width: 780px;
}

.pur-home-hero .pur-hero-art img {
  filter: brightness(1.3) contrast(1.15);
  max-height: 500px;
  object-fit: contain;
  opacity: 0.9;
}

.pur-home-section-title {
  max-width: 1100px !important;
  text-align: center;
}

.pur-home-section-title::after {
  background: var(--wp--preset--color--adventure-orange);
  content: "";
  display: block;
  height: 3px;
  margin: 0.55rem auto 0;
  width: 58px;
}

.pur-category-card {
  border-right: 1px solid var(--wp--preset--color--border);
  min-height: 200px;
}

.pur-category-card:last-child {
  border-right: 0;
}

.pur-category-card .pur-icon {
  background: transparent;
  color: var(--wp--preset--color--midnight);
  font-size: 2rem;
  height: 3rem;
  width: 3rem;
}

.pur-post-grid .wp-block-post {
  background: #fff;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.pur-post-grid .wp-block-post:hover {
  box-shadow: var(--pur-shadow);
  transform: translateY(-3px);
}

.pur-post-grid .wp-block-post > :not(.wp-block-post-featured-image) {
  margin-left: 1rem;
  margin-right: 1rem;
}

.pur-post-grid .wp-block-post-featured-image {
  margin-bottom: 1rem;
}

.pur-post-grid .wp-block-post-title a {
  color: var(--wp--preset--color--midnight);
  text-decoration: none;
}

.pur-home-cta {
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.98), rgba(16, 24, 32, 0.82)),
    url("https://packupandride.com/wp-content/uploads/2022/01/Motorcycle-Vintage-1.png") right center / auto 130% no-repeat;
}

.pur-trust-card {
  border-right: 1px solid var(--wp--preset--color--border);
  color: var(--wp--preset--color--charcoal);
  height: 100%;
}

.pur-trust-card:last-child {
  border-right: 0;
}

.pur-trust-section > .wp-block-columns {
  max-width: 1100px !important;
  width: calc(100% - 2rem);
}

.pur-trust-card h3 {
  color: var(--wp--preset--color--midnight);
}

.pur-trust-card p {
  color: var(--wp--preset--color--charcoal);
  margin-left: auto;
  margin-right: auto;
  max-width: 230px;
}

@media (max-width: 781px) {
  .pur-home-hero {
    min-height: auto;
  }

  .pur-home-hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.5rem);
  }

  .pur-category-card,
  .pur-trust-card {
    border-bottom: 1px solid var(--wp--preset--color--border);
    border-right: 0;
  }

  .pur-post-grid .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 599px) {
  .pur-post-grid .wp-block-post-template {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
