/*
Theme Name: Tailwinds & Time RV-12iS
Theme URI: https://tailwindsandtime.com/
Author: Tailwinds & Time
Description: A purpose-built Van's RV-12iS construction log with project sections, build hours, and a clean aviation-inspired design.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tailwinds-rv12is
*/

:root {
  --navy: #10283f;
  --navy-deep: #091a2b;
  --sky: #3f83b7;
  --sky-light: #e7f2f8;
  --orange: #e4813e;
  --cream: #f7f3ea;
  --paper: #fffdf8;
  --ink: #263744;
  --muted: #687985;
  --line: #d9e1e5;
  --shadow: 0 18px 50px rgba(16, 40, 63, 0.12);
  --radius: 18px;
  --content: 1160px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--sky);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--orange);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.site-shell {
  min-height: 100vh;
  overflow: hidden;
}
.wrap {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}
.narrow {
  width: min(calc(100% - 40px), 780px);
  margin-inline: auto;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  width: auto;
  height: auto;
  clip: auto;
  padding: 12px 18px;
  background: white;
  z-index: 9999;
}

.site-header {
  position: relative;
  z-index: 20;
  color: white;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: white;
  text-decoration: none;
}
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}
.brand-mark svg {
  width: 34px;
}
.brand-copy {
  display: grid;
  line-height: 1.05;
}
.brand-copy strong {
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-copy span {
  margin-top: 6px;
  color: #a9c8db;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav a {
  color: #dceaf2;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: white;
}
.menu-toggle {
  display: none;
  padding: 10px;
  color: white;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
}

.hero {
  position: relative;
  color: white;
  background: linear-gradient(125deg, var(--navy-deep), #173e5d 68%, #285c7d);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background:
    radial-gradient(
      circle at 72% 35%,
      rgba(105, 182, 222, 0.35),
      transparent 27%
    ),
    linear-gradient(
      172deg,
      transparent 0 62%,
      rgba(255, 255, 255, 0.08) 62.2% 63%,
      transparent 63.2%
    );
}
.hero-inner {
  position: relative;
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
  padding-block: 90px 110px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}
.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(50px, 6vw, 84px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero .lede {
  max-width: 620px;
  margin: 28px 0 34px;
  color: #c9dce8;
  font-size: 20px;
  line-height: 1.6;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
  background: #f0904a;
  color: white;
}
.button.secondary {
  margin-left: 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.aircraft-line {
  position: relative;
  min-height: 290px;
  display: grid;
  place-items: center;
}
.aircraft-line svg {
  width: 100%;
  filter: drop-shadow(0 30px 20px rgba(0, 0, 0, 0.22));
}
.aircraft-line::after {
  content: "RV-12iS";
  position: absolute;
  right: 0;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.08);
  font-size: 78px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.stats-strip {
  position: relative;
  z-index: 4;
  margin-top: -42px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat {
  padding: 28px 30px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: 0;
}
.stat strong {
  display: block;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1.1;
}
.stat span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section {
  padding-block: 100px;
}
.section.soft {
  background: var(--cream);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}
.section-heading h2 {
  max-width: 680px;
  margin: 0;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: clamp(38px, 5vw, 55px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.section-heading p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
}
.text-link {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stage-card {
  position: relative;
  min-height: 205px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: inherit;
  text-decoration: none;
}
.stage-card::after {
  content: attr(data-number);
  position: absolute;
  right: 18px;
  bottom: -24px;
  color: var(--sky-light);
  font-family: Georgia, serif;
  font-size: 110px;
  line-height: 1;
}
.stage-card:hover {
  border-color: #9dbed1;
  color: inherit;
  box-shadow: 0 14px 35px rgba(16, 40, 63, 0.08);
}
.stage-card span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.stage-card h3 {
  position: relative;
  z-index: 1;
  margin: 44px 0 5px;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 500;
}
.stage-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 8px 24px rgba(16, 40, 63, 0.05);
}
.post-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--sky-light);
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-image img {
  transform: scale(1.03);
}
.post-card-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: #7da9c2;
}
.post-card-placeholder svg {
  width: 90px;
}
.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post-meta .hours {
  color: var(--orange);
}
.post-card h3 {
  margin: 12px 0 10px;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.2;
}
.post-card h3 a {
  color: var(--navy);
  text-decoration: none;
}
.post-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
}
.post-card .text-link {
  margin-top: auto;
}
.empty-log {
  grid-column: 1/-1;
  padding: 55px;
  border: 1px dashed #afc2cc;
  border-radius: var(--radius);
  text-align: center;
}
.empty-log h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 30px;
}
.empty-log p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  padding-block: 85px;
  color: white;
  background: var(--navy);
}
.page-hero h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(45px, 7vw, 72px);
  font-weight: 400;
  line-height: 1.04;
}
.page-hero p {
  max-width: 680px;
  margin: 18px 0 0;
  color: #c6dce8;
  font-size: 19px;
}
.content-area {
  padding-block: 80px 110px;
}
.entry-content > * {
  max-width: 780px;
  margin-inline: auto;
}
.entry-content > .alignwide {
  max-width: var(--content);
}
.entry-content h2,
.entry-content h3 {
  color: var(--navy);
  font-family: Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
}
.entry-content h2 {
  margin-top: 2em;
  font-size: 38px;
}
.entry-content h3 {
  margin-top: 1.7em;
  font-size: 27px;
}
.entry-content blockquote {
  padding: 22px 28px;
  border-left: 4px solid var(--orange);
  background: var(--cream);
  font-family: Georgia, serif;
  font-size: 21px;
}
.entry-content figure {
  margin-block: 34px;
}
.entry-content figcaption {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 24px;
  color: #c6dce8;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.log-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
}
.log-toolbar a {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.log-toolbar a:hover {
  color: white;
  background: var(--navy);
  border-color: var(--navy);
}
.pagination {
  margin-top: 45px;
}
.pagination .nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.pagination a,
.pagination .current {
  display: grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
}
.pagination .current {
  color: white;
  background: var(--navy);
  border-color: var(--navy);
}

.site-footer {
  padding-block: 65px 35px;
  color: #b8cbd7;
  background: var(--navy-deep);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.6fr;
  gap: 60px;
}
.footer-brand {
  color: white;
  font-family: Georgia, serif;
  font-size: 28px;
}
.footer-copy {
  max-width: 480px;
  margin-top: 14px;
}
.footer-heading {
  margin: 0 0 15px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links li {
  margin: 7px 0;
}
.footer-links a {
  color: #b8cbd7;
  text-decoration: none;
}
.footer-bottom {
  margin-top: 55px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }
  .primary-nav {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    padding: 22px 20px;
    background: var(--navy-deep);
  }
  .primary-nav.is-open {
    display: block;
  }
  .primary-nav ul {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
  }
  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 80px 115px;
  }
  .aircraft-line {
    min-height: 210px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .stage-grid,
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > :first-child {
    grid-column: 1/-1;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .wrap,
  .narrow {
    width: min(calc(100% - 28px), var(--content));
  }
  .brand-copy strong {
    font-size: 20px;
  }
  .brand-copy span {
    font-size: 9px;
  }
  .hero-inner {
    padding-top: 65px;
    gap: 25px;
  }
  .hero h1 {
    font-size: 49px;
  }
  .hero .lede {
    font-size: 17px;
  }
  .button.secondary {
    margin: 10px 0 0;
  }
  .stats-grid,
  .stage-grid,
  .post-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .stat:last-child {
    border-bottom: 0;
  }
  .stage-card {
    min-height: 170px;
  }
  .section {
    padding-block: 72px;
  }
  .page-hero {
    padding-block: 65px;
  }
  .content-area {
    padding-block: 55px 80px;
  }
  .footer-grid > :first-child {
    grid-column: auto;
  }
}
