/*
Theme Name: NomadTails Lab
Theme URI: https://www.nomadtailslab.com
Author: NomadTails Lab
Description: Minimal visual theme for practical maker projects, van life, dogs, outdoor gear and 3D printed solutions.
Version: 0.1.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nomadtails-lab
*/

:root {
  --ntl-black: #050504;
  --ntl-ink: #15150f;
  --ntl-olive: #8b921f;
  --ntl-forest: #263015;
  --ntl-orange: #f28b24;
  --ntl-cream: #f5efe0;
  --ntl-muted: #bdb49f;
  --ntl-line: rgba(245, 239, 224, 0.18);
  --ntl-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ntl-black);
  color: var(--ntl-cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--ntl-line);
  background: rgba(5, 5, 4, 0.88);
  backdrop-filter: blur(16px);
}

.site-header__inner,
.section-inner {
  width: min(var(--ntl-max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark img {
  width: 48px;
  aspect-ratio: 1;
  object-fit: contain;
}

.brand-mark span {
  display: block;
  font-size: 18px;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ntl-muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav li {
  list-style: none;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
  color: var(--ntl-orange);
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--ntl-line);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero__copy {
  max-width: 720px;
}

.kicker {
  margin: 0 0 16px;
  color: var(--ntl-orange);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(48px, 9vw, 112px);
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--ntl-olive);
}

.hero__lede {
  max-width: 620px;
  margin: 24px 0 0;
  color: #e5ddc7;
  font-size: clamp(18px, 2.2vw, 23px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ntl-line);
  border-radius: 6px;
  background: transparent;
  color: var(--ntl-cream);
  font-weight: 900;
  text-transform: uppercase;
}

.button--primary {
  border-color: var(--ntl-orange);
  background: var(--ntl-orange);
  color: var(--ntl-black);
}

.hero__logo {
  justify-self: center;
  width: min(100%, 420px);
  filter: drop-shadow(0 24px 46px rgba(0, 0, 0, 0.42));
}

.section {
  padding: 74px 0;
}

.section--cream {
  background: var(--ntl-cream);
  color: var(--ntl-ink);
}

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

.section-heading h2 {
  font-size: clamp(32px, 5vw, 64px);
  text-transform: uppercase;
}

.section-heading p {
  max-width: 430px;
  margin: 0;
  color: rgba(245, 239, 224, 0.72);
}

.section--cream .section-heading p {
  color: rgba(21, 21, 15, 0.66);
}

.focus-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.focus-item,
.project-card {
  border: 1px solid var(--ntl-line);
  border-radius: 8px;
  overflow: hidden;
}

.focus-item {
  min-height: 178px;
  padding: 22px;
  background: #10100c;
}

.focus-item strong {
  display: block;
  color: var(--ntl-orange);
  font-size: 12px;
  text-transform: uppercase;
}

.focus-item h3 {
  margin-top: 12px;
  font-size: 26px;
}

.focus-item p {
  margin: 14px 0 0;
  color: var(--ntl-muted);
}

.project-card {
  background: #10100c;
  display: flex;
  height: 100%;
}

.project-card > a {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
}

.project-card__media {
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  flex: 0 0 auto;
  background: #1d1d16;
}

.project-card__media img {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.project-card__fallback {
  width: 96px !important;
  height: 96px !important;
  object-fit: contain !important;
  opacity: 0.78;
}

.project-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 18px;
}

.project-card__body h3 {
  font-size: 24px;
}

.project-card__body p {
  margin: 12px 0 0;
  color: var(--ntl-muted);
}

.taxonomy-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.project-card__body .taxonomy-list {
  margin-top: auto;
  padding-top: 16px;
}

.taxonomy-list a,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(139, 146, 31, 0.55);
  border-radius: 999px;
  color: var(--ntl-cream);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section--cream .pill {
  color: var(--ntl-ink);
}

.problem-solution {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(21, 21, 15, 0.16);
  border-radius: 8px;
  overflow: hidden;
}

.problem-solution > div {
  padding: clamp(24px, 5vw, 48px);
}

.problem-solution > div:first-child {
  background: var(--ntl-ink);
  color: var(--ntl-cream);
}

.problem-solution h2 {
  font-size: clamp(30px, 4vw, 54px);
  text-transform: uppercase;
}

.problem-solution p {
  margin: 18px 0 0;
  font-size: 18px;
}

.site-footer {
  border-top: 1px solid var(--ntl-line);
  padding: 34px 0;
  color: var(--ntl-muted);
  font-size: 14px;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.site-footer__brand {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer__credit {
  max-width: 420px;
  text-align: right;
}

.project-hero {
  padding: 64px 0 42px;
  border-bottom: 1px solid var(--ntl-line);
}

.project-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: clamp(28px, 6vw, 68px);
  align-items: center;
}

.project-hero h1 {
  font-size: clamp(42px, 7vw, 92px);
  text-transform: uppercase;
}

.project-hero p {
  max-width: 620px;
  color: var(--ntl-muted);
  font-size: 19px;
}

.project-content {
  width: min(840px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.project-content h2 {
  margin-top: 36px;
  font-size: 34px;
}

.project-content p,
.project-content li {
  color: #e0d8c4;
  font-size: 18px;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(var(--ntl-max), calc(100% - 32px));
  margin: 0 auto 56px;
}

.meta-tile {
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--ntl-line);
  border-radius: 8px;
  background: #10100c;
}

.meta-tile strong {
  display: block;
  color: var(--ntl-orange);
  font-size: 12px;
  text-transform: uppercase;
}

.meta-tile span {
  display: block;
  margin-top: 10px;
  color: var(--ntl-cream);
}

.empty-state {
  padding: 36px;
  border: 1px solid var(--ntl-line);
  border-radius: 8px;
  color: var(--ntl-muted);
}

@media (max-width: 860px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: auto;
  }

  .hero__grid,
  .project-hero__grid,
  .problem-solution {
    grid-template-columns: 1fr;
  }

  .hero__logo {
    width: min(80vw, 340px);
  }

  .focus-grid,
  .project-grid,
  .project-meta-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__credit {
    text-align: left;
  }
}
