/*
Theme Name: Northlane Review
Author: Harlan Vale
Description: A warm editorial classic theme with responsive layouts, Customizer controls, and block widget areas.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: w3t-theme
*/

:root {
  --w3t-background: #f2eee4;
  --w3t-surface: #fbf8ef;
  --w3t-text: #171612;
  --w3t-muted: #686258;
  --w3t-accent: #7b6a45;
  --w3t-line: #d7d0c1;
  --w3t-radius: 8px;
  --w3t-shadow: 0 24px 70px rgba(23, 22, 18, 0.14);
  --w3t-max: 1240px;
  --w3t-gutter: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--w3t-background);
  color: var(--w3t-text);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus {
  color: var(--w3t-accent);
}

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

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

.w3t-screen-reader-text,
.w3t-pagination h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.w3t-body {
  min-width: 320px;
}

.w3t-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.w3t-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: min(calc(100% - (var(--w3t-gutter) * 2)), var(--w3t-max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--w3t-line);
  background: color-mix(in srgb, var(--w3t-background) 92%, transparent);
  backdrop-filter: blur(18px);
}

.w3t-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--w3t-text);
  text-decoration: none;
}

.w3t-brand__name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.w3t-brand img {
  width: auto;
  max-height: 44px;
}

.w3t-menu-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--w3t-line);
  border-radius: var(--w3t-radius);
  background: var(--w3t-surface);
  color: var(--w3t-text);
  cursor: pointer;
}

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

.w3t-menu-open .w3t-menu-toggle__line:first-of-type {
  transform: translateY(7px) rotate(45deg);
}

.w3t-menu-open .w3t-menu-toggle__line:nth-of-type(2) {
  opacity: 0;
}

.w3t-menu-open .w3t-menu-toggle__line:last-of-type {
  transform: translateY(-7px) rotate(-45deg);
}

.w3t-primary-nav {
  display: none;
  position: absolute;
  inset: calc(100% + 1px) 0 auto 0;
  padding: 12px;
  border: 1px solid var(--w3t-line);
  border-radius: 0 0 var(--w3t-radius) var(--w3t-radius);
  background: var(--w3t-surface);
  box-shadow: var(--w3t-shadow);
}

.w3t-menu-open .w3t-primary-nav {
  display: block;
}

.w3t-menu,
.w3t-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.w3t-menu {
  display: grid;
  gap: 6px;
}

.w3t-menu a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--w3t-radius);
  color: var(--w3t-text);
  text-decoration: none;
}

.w3t-menu a:hover,
.w3t-menu a:focus {
  background: var(--w3t-background);
  color: var(--w3t-accent);
}

.w3t-main {
  padding-bottom: 48px;
}

.w3t-hero {
  width: min(calc(100% - (var(--w3t-gutter) * 2)), var(--w3t-max));
  margin: 28px auto 0;
  padding: 34px 0;
  border-bottom: 1px solid var(--w3t-line);
  display: grid;
  gap: 28px;
}

.w3t-kicker {
  margin: 0 0 18px;
  color: var(--w3t-accent);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.w3t-hero__title {
  margin: 0;
  max-width: 940px;
  font-size: 2.55rem;
  line-height: 1.05;
  font-weight: 500;
}

.w3t-hero__media {
  min-height: 260px;
  border: 1px solid var(--w3t-line);
  border-radius: var(--w3t-radius);
  background: var(--w3t-surface);
  overflow: hidden;
}

.w3t-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.w3t-hero--floating .w3t-hero__media {
  box-shadow: var(--w3t-shadow);
  transform: translateY(-4px);
}

.w3t-hero--inset .w3t-hero__media {
  padding: 10px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--w3t-line) 72%, transparent);
}

.w3t-hero--inset .w3t-hero__media img {
  border-radius: calc(var(--w3t-radius) - 2px);
}

.w3t-hero__media--empty {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--w3t-accent) 12%, transparent), transparent 38%),
    var(--w3t-surface);
}

.w3t-metrics {
  width: min(calc(100% - (var(--w3t-gutter) * 2)), var(--w3t-max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--w3t-line);
}

.w3t-metric {
  min-height: 132px;
  padding: 20px 0;
  border-top: 1px solid var(--w3t-line);
}

.w3t-metric:nth-child(odd) {
  padding-right: 14px;
  border-right: 1px solid var(--w3t-line);
}

.w3t-metric:nth-child(even) {
  padding-left: 14px;
}

.w3t-metric__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border: 1px solid var(--w3t-line);
  border-radius: 999px;
  color: var(--w3t-accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.w3t-metric__value {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  font-weight: 600;
}

.w3t-metric__label {
  margin: 8px 0 0;
  color: var(--w3t-muted);
  font-size: 0.95rem;
}

.w3t-widget-band,
.w3t-posts,
.w3t-archive-header,
.w3t-no-content {
  width: min(calc(100% - (var(--w3t-gutter) * 2)), var(--w3t-max));
  margin: 0 auto;
}

.w3t-widget-band {
  padding: 34px 0;
  border-bottom: 1px solid var(--w3t-line);
}

.w3t-widget {
  margin-bottom: 24px;
}

.w3t-widget:last-child {
  margin-bottom: 0;
}

.w3t-section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 34px 0 22px;
}

.w3t-section-mark {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--w3t-line);
  border-radius: 999px;
  color: var(--w3t-accent);
  font-size: 0.9rem;
}

.w3t-section-heading h2,
.w3t-archive-header h1,
.w3t-single__title {
  margin: 0;
  font-weight: 500;
  line-height: 1.08;
}

.w3t-section-heading h2 {
  font-size: 1.65rem;
}

.w3t-post-grid {
  display: grid;
  gap: 22px;
}

.w3t-post-card {
  display: grid;
  gap: 16px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--w3t-line);
}

.w3t-post-card__image {
  aspect-ratio: 16 / 10;
  border-radius: var(--w3t-radius);
  overflow: hidden;
  background: var(--w3t-surface);
  border: 1px solid var(--w3t-line);
}

.w3t-post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.w3t-post-card__image:hover img,
.w3t-post-card__image:focus img {
  transform: scale(1.025);
}

.w3t-post-card__image--empty {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--w3t-accent) 10%, transparent), transparent 42%),
    var(--w3t-surface);
}

.w3t-post-card__meta,
.w3t-single__meta {
  margin: 0 0 8px;
  color: var(--w3t-muted);
  font-size: 0.86rem;
}

.w3t-post-card__title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 500;
}

.w3t-post-card__title a {
  text-decoration: none;
}

.w3t-post-card__excerpt {
  margin: 10px 0 0;
  color: var(--w3t-muted);
}

.w3t-read-more {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: var(--w3t-text);
  font-weight: 700;
  text-decoration: none;
}

.w3t-read-more:hover,
.w3t-read-more:focus {
  color: var(--w3t-accent);
}

.w3t-pagination {
  margin-top: 28px;
}

.w3t-pagination__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.w3t-pagination a,
.w3t-pagination span {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--w3t-line);
  border-radius: var(--w3t-radius);
  background: var(--w3t-surface);
  text-decoration: none;
}

.w3t-archive-header {
  padding: 42px 0 18px;
  border-bottom: 1px solid var(--w3t-line);
}

.w3t-archive-header h1 {
  font-size: 2rem;
}

.w3t-archive-description {
  max-width: 760px;
  color: var(--w3t-muted);
}

.w3t-no-content {
  padding: 48px 0;
}

.w3t-single {
  width: min(80vw, 1120px);
  margin: 0 auto;
  padding: 42px 0 54px;
}

.w3t-single__header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--w3t-line);
}

.w3t-back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: var(--w3t-accent);
  font-weight: 700;
  text-decoration: none;
}

.w3t-single__title {
  max-width: 920px;
  font-size: 2.45rem;
}

.w3t-single__content {
  padding-top: 28px;
  font-size: 1.03rem;
}

.w3t-single__content > * {
  max-width: 760px;
}

.w3t-single__content h2,
.w3t-single__content h3,
.w3t-single__content h4 {
  margin-top: 2em;
  line-height: 1.18;
  font-weight: 550;
}

.w3t-single__content p {
  margin: 0 0 1.25em;
}

.w3t-single__content blockquote {
  margin: 1.6em 0;
  padding: 0 0 0 18px;
  border-left: 3px solid var(--w3t-accent);
  color: var(--w3t-muted);
}

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

.w3t-post-nav {
  width: min(80vw, 1120px);
  margin: 0 auto 52px;
  padding-top: 22px;
  border-top: 1px solid var(--w3t-line);
  display: grid;
  gap: 12px;
}

.w3t-post-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--w3t-text);
  font-weight: 700;
  text-decoration: none;
}

.w3t-post-nav a:hover,
.w3t-post-nav a:focus {
  color: var(--w3t-accent);
}

.w3t-site-footer {
  width: min(calc(100% - (var(--w3t-gutter) * 2)), var(--w3t-max));
  margin: 0 auto;
  padding: 42px 0 24px;
  border-top: 1px solid var(--w3t-line);
}

.w3t-footer__statement {
  max-width: 760px;
  margin: 0 0 26px;
  font-size: 1.45rem;
  line-height: 1.18;
  font-weight: 500;
}

.w3t-footer__widgets {
  margin-bottom: 28px;
}

.w3t-footer__bar {
  display: grid;
  gap: 16px;
  color: var(--w3t-muted);
  font-size: 0.92rem;
}

.w3t-footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.w3t-footer-menu a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: var(--w3t-muted);
  text-decoration: none;
}

.w3t-footer-menu a:hover,
.w3t-footer-menu a:focus {
  color: var(--w3t-accent);
}

@media (min-width: 720px) {
  :root {
    --w3t-gutter: 24px;
  }

  .w3t-hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
    align-items: end;
    padding: 54px 0 44px;
  }

  .w3t-hero__title {
    font-size: 4rem;
  }

  .w3t-hero__media,
  .w3t-hero__media img {
    min-height: 420px;
  }

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

  .w3t-metric {
    padding: 24px 20px;
    border-right: 1px solid var(--w3t-line);
  }

  .w3t-metric:nth-child(odd),
  .w3t-metric:nth-child(even) {
    padding-left: 20px;
    padding-right: 20px;
  }

  .w3t-metric:last-child {
    border-right: 0;
  }

  .w3t-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  .w3t-post-card {
    border-bottom: 0;
  }

  .w3t-section-heading h2 {
    font-size: 2rem;
  }

  .w3t-archive-header h1 {
    font-size: 2.6rem;
  }

  .w3t-single__title {
    font-size: 4rem;
  }

  .w3t-footer__bar {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .w3t-site-header {
    padding: 20px 0;
  }

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

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

  .w3t-menu {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .w3t-menu a {
    padding: 8px 12px;
  }

  .w3t-hero__title {
    font-size: 4.8rem;
  }

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

  .w3t-footer__statement {
    font-size: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
