/*
Theme Name: VacationByBus
Theme URI: https://vacationbybus.com
Author: Codex
Description: A lightweight WordPress theme for a bus-travel blog with newsletter signup and author access pages.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: vacationbybus
*/

:root {
  --color-ink: #17313e;
  --color-accent: #d85d2d;
  --color-accent-dark: #a5431d;
  --color-sand: #f6efdf;
  --color-sun: #ffd16a;
  --color-sky: #dceff4;
  --color-surface: #fffdf8;
  --color-border: #dfd2b8;
  --color-muted: #5f6f77;
  --shadow-soft: 0 20px 45px rgba(23, 49, 62, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--color-ink);
  background:
    radial-gradient(circle at top left, rgba(255, 209, 106, 0.45), transparent 32%),
    linear-gradient(180deg, #f7f1e4 0%, #fbf8f1 40%, #fffdf8 100%);
  line-height: 1.65;
}

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

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

.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;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 253, 248, 0.9);
  border-bottom: 1px solid rgba(223, 210, 184, 0.8);
}

.site-header__inner,
.site-footer__inner,
.section,
.content-grid,
.post-layout,
.hero,
.feature-strip,
.newsletter-band__inner {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-mark__name {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark__tag {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  background: var(--color-sky);
  color: var(--color-ink);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--color-ink);
  color: #fff;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: 4rem 0 3rem;
}

.hero__eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--color-accent-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1,
.archive-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.98;
}

.hero p,
.page-hero p,
.archive-hero p {
  margin: 0;
  max-width: 60ch;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.hero__actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  background: var(--color-accent-dark);
}

.button--secondary {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-border);
}

.hero-card,
.card,
.signup-card,
.post-card,
.widget-area > section,
.content-panel {
  background: var(--color-surface);
  border: 1px solid rgba(223, 210, 184, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  padding: 1.2rem;
  overflow: hidden;
}

.hero-card__route {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  background:
    linear-gradient(145deg, rgba(220, 239, 244, 0.9), rgba(255, 255, 255, 0.95)),
    var(--color-surface);
  border-radius: calc(var(--radius-lg) - 8px);
}

.route-stop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(23, 49, 62, 0.18);
}

.route-stop:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.route-stop strong,
.stat strong {
  display: block;
  font-size: 1.1rem;
}

.route-stop span,
.stat span,
.meta,
.post-meta,
.muted {
  color: var(--color-muted);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-bottom: 2.5rem;
}

.card {
  padding: 1.4rem;
}

.card h3,
.post-card h2,
.post-card h3 {
  margin-top: 0;
}

.section {
  padding: 2rem 0 3rem;
}

.section__heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section__heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.posts-grid,
.category-grid,
.resource-grid,
.form-grid {
  display: grid;
  gap: 1.2rem;
}

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

.category-grid,
.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
  overflow: hidden;
}

.post-card__body {
  padding: 1.3rem;
}

.post-card__badge {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--color-sky);
  color: var(--color-ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.placeholder-image {
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(216, 93, 45, 0.15), rgba(255, 209, 106, 0.35)),
    linear-gradient(180deg, rgba(23, 49, 62, 0.12), rgba(23, 49, 62, 0));
}

.page-hero,
.archive-hero {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 3rem 0 1.5rem;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.content-panel,
.signup-card {
  padding: 1.6rem;
}

.newsletter-band {
  margin: 1rem 0 3rem;
}

.newsletter-band__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 209, 106, 0.55), rgba(220, 239, 244, 0.85));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(223, 210, 184, 0.9);
  box-shadow: var(--shadow-soft);
}

.signup-form,
.login-form,
.search-form {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  color: var(--color-ink);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.notice {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(220, 239, 244, 0.8);
  border: 1px solid rgba(23, 49, 62, 0.12);
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(223, 210, 184, 0.9);
  background: rgba(23, 49, 62, 0.04);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 1rem;
  padding: 2rem 0;
}

.site-footer h3 {
  margin-top: 0;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
  max-width: 68ch;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.35rem;
}

.entry-content li + li {
  margin-top: 0.45rem;
}

.entry-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-accent);
  background: rgba(220, 239, 244, 0.55);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.entry-content hr {
  border: 0;
  border-top: 1px solid rgba(223, 210, 184, 0.9);
  margin: 2rem 0;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.widget-area {
  display: grid;
  gap: 1rem;
}

.widget-area > section {
  padding: 1.2rem;
}

@media (max-width: 900px) {
  .hero,
  .content-grid,
  .post-layout,
  .newsletter-band__inner,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .feature-strip,
  .category-grid,
  .resource-grid,
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.75rem);
    display: none;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 253, 248, 0.98);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

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