/*
Theme Name: Northline Journal
Author: Rowan Field Studio
Description: A classic PHP editorial theme with dynamic WordPress menus, categories, Customizer controls, and a sharp editorial visual system.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: w3t-theme
*/

:root {
  --w3t-color-bg: #030303;
  --w3t-color-text: #f6f6f2;
  --w3t-color-muted: #9b9b93;
  --w3t-color-accent: #70ff1a;
  --w3t-color-border: #2d2d2d;
  --w3t-color-panel: #0b0b0b;
  --w3t-font: Arial, Helvetica, sans-serif;
  --w3t-base-size: 16px;
  --w3t-hero-mobile-size: 56px;
  --w3t-hero-desktop-size: 136px;
  --w3t-header-height: 74px;
  --w3t-site-gutter: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body.w3t-site {
  margin: 0;
  min-width: 320px;
  background: var(--w3t-color-bg);
  color: var(--w3t-color-text);
  font-family: var(--w3t-font);
  font-size: var(--w3t-base-size);
  line-height: 1.35;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

.w3t-site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--w3t-header-height);
  padding: 20px var(--w3t-site-gutter);
  color: var(--w3t-color-text);
}

.w3t-brand {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: lowercase;
}

.w3t-brand__image {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 42px;
}

.w3t-header__nav {
  display: none;
}

.w3t-nav__list,
.w3t-mobile-panel__list,
.w3t-footer__links {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.w3t-nav__item {
  position: relative;
}

.w3t-nav__link,
.w3t-mobile-panel__link,
.w3t-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--w3t-color-text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  transition: color 160ms ease, opacity 160ms ease;
}

.w3t-nav__link:hover,
.w3t-nav__link:focus-visible,
.w3t-mobile-panel__link:hover,
.w3t-mobile-panel__link:focus-visible,
.w3t-footer__link:hover,
.w3t-footer__link:focus-visible {
  color: var(--w3t-color-accent);
  outline: none;
}

.w3t-nav__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  display: grid;
  min-width: 190px;
  padding: 12px;
  margin: 0;
  list-style: none;
  background: var(--w3t-color-panel);
  border: 1px solid var(--w3t-color-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.w3t-nav__item:hover > .w3t-nav__submenu,
.w3t-nav__item:focus-within > .w3t-nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.w3t-menu-toggle {
  position: relative;
  z-index: 40;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: var(--w3t-color-text);
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(246, 246, 242, 0.38);
  border-radius: 4px;
}

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

.w3t-menu-toggle__line + .w3t-menu-toggle__line {
  margin-top: 4px;
}

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

.w3t-menu-toggle--active .w3t-menu-toggle__line:nth-of-type(1) {
  transform: translateY(6px) rotate(45deg);
}

.w3t-menu-toggle--active .w3t-menu-toggle__line:nth-of-type(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.w3t-mobile-panel {
  position: fixed;
  z-index: 25;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: stretch;
  padding: 94px var(--w3t-site-gutter) 28px;
  background: rgba(3, 3, 3, 0.96);
  border-bottom: 1px solid var(--w3t-color-border);
}

.w3t-mobile-panel[hidden] {
  display: none;
}

.w3t-mobile-panel__list {
  display: grid;
  width: 100%;
  gap: 0;
}

.w3t-mobile-panel__sublist {
  display: grid;
  gap: 0;
  padding: 0 0 0 18px;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--w3t-color-border);
}

.w3t-mobile-panel__item {
  border-top: 1px solid var(--w3t-color-border);
}

.w3t-mobile-panel__sublist .w3t-mobile-panel__item:first-child {
  border-top: 0;
}

.w3t-mobile-panel__item:last-child {
  border-bottom: 1px solid var(--w3t-color-border);
}

.w3t-mobile-panel__link {
  width: 100%;
  min-height: 58px;
  justify-content: space-between;
  font-size: 22px;
}

.w3t-main {
  overflow: hidden;
}

.w3t-container {
  width: min(100%, 1480px);
  margin-inline: auto;
  padding-inline: var(--w3t-site-gutter);
}

.w3t-hero {
  min-height: 100svh;
  padding-top: var(--w3t-header-height);
  background: var(--w3t-color-bg);
}

.w3t-hero__text {
  display: grid;
  gap: 18px;
  padding-top: 34px;
  padding-bottom: 30px;
}

.w3t-hero__eyebrow,
.w3t-section__eyebrow,
.w3t-card__date,
.w3t-category-index__number,
.w3t-single__meta,
.w3t-footer__meta {
  margin: 0;
  color: var(--w3t-color-text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.w3t-hero__eyebrow {
  color: var(--w3t-color-accent);
}

.w3t-hero__title {
  max-width: 980px;
  margin: 0;
  color: var(--w3t-color-text);
  font-size: var(--w3t-hero-mobile-size);
  font-weight: 950;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.w3t-hero__title strong,
.w3t-hero__title em {
  color: var(--w3t-color-accent);
  font-style: normal;
}

.w3t-hero__title::first-line {
  color: var(--w3t-color-accent);
}

.w3t-hero__subtitle {
  max-width: 560px;
  margin: 0;
  color: var(--w3t-color-muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.w3t-hero__media {
  position: relative;
  width: 100%;
  min-height: 300px;
  overflow: hidden;
  background: var(--w3t-color-panel);
  border-top: 1px solid var(--w3t-color-border);
  border-bottom: 1px solid var(--w3t-color-border);
}

.w3t-hero__link,
.w3t-hero__empty {
  display: block;
  width: 100%;
  min-height: 300px;
}

.w3t-hero__image {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.08);
}

.w3t-hero__empty {
  background:
    linear-gradient(90deg, rgba(112, 255, 26, 0.24), transparent 34%),
    linear-gradient(180deg, #111111, #030303);
}

.w3t-category-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--w3t-color-border);
}

.w3t-category-index__item {
  min-height: 130px;
  padding: 20px var(--w3t-site-gutter);
  border-right: 1px solid var(--w3t-color-border);
  border-bottom: 1px solid var(--w3t-color-border);
}

.w3t-category-index__item:nth-child(2n) {
  border-right: 0;
}

.w3t-category-index__link {
  display: grid;
  height: 100%;
  align-content: space-between;
  color: var(--w3t-color-text);
}

.w3t-category-index__name {
  color: var(--w3t-color-text);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.w3t-category-index__accent {
  color: var(--w3t-color-accent);
}

.w3t-section {
  padding-block: 56px;
}

.w3t-section--intro,
.w3t-section--about {
  border-bottom: 1px solid var(--w3t-color-border);
}

.w3t-section__header {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.w3t-section__title {
  max-width: 1000px;
  margin: 0;
  color: var(--w3t-color-text);
  font-size: 40px;
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.w3t-section__copy {
  max-width: 900px;
  color: var(--w3t-color-text);
  font-size: 24px;
  font-weight: 850;
  line-height: 1.08;
  text-transform: uppercase;
}

.w3t-section__copy p {
  margin: 0;
}

.w3t-section__copy p + p {
  margin-top: 18px;
}

.w3t-post-grid {
  display: grid;
  gap: 1px;
  background: var(--w3t-color-border);
  border: 1px solid var(--w3t-color-border);
}

.w3t-post-card {
  display: grid;
  min-width: 0;
  gap: 16px;
  align-content: start;
  padding: 14px;
  background: var(--w3t-color-bg);
}

.w3t-post-card__media {
  display: block;
  overflow: hidden;
  background: var(--w3t-color-panel);
  aspect-ratio: 4 / 3;
}

.w3t-post-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 240ms ease, opacity 240ms ease;
}

.w3t-post-card__media:hover .w3t-post-card__image,
.w3t-post-card__media:focus-visible .w3t-post-card__image {
  opacity: 0.82;
  transform: scale(1.035);
}

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

.w3t-post-card__title {
  margin: 0;
  color: var(--w3t-color-text);
  font-size: 24px;
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

.w3t-post-card__title a:hover,
.w3t-post-card__title a:focus-visible {
  color: var(--w3t-color-accent);
  outline: none;
}

.w3t-post-card__excerpt {
  margin: 0;
  color: var(--w3t-color-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.w3t-post-card__empty {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(112, 255, 26, 0.2), transparent 42%),
    var(--w3t-color-panel);
}

.w3t-single {
  padding-top: calc(var(--w3t-header-height) + 52px);
  padding-bottom: 80px;
}

.w3t-single__header {
  display: grid;
  gap: 18px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--w3t-color-border);
}

.w3t-single__title {
  max-width: 1120px;
  margin: 0;
  color: var(--w3t-color-text);
  font-size: 48px;
  font-weight: 950;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.w3t-single__meta {
  color: var(--w3t-color-muted);
}

.w3t-single__content {
  max-width: 860px;
  padding-top: 38px;
  color: var(--w3t-color-text);
  font-size: 18px;
  line-height: 1.65;
}

.w3t-single__content > *:first-child {
  margin-top: 0;
}

.w3t-single__content a {
  color: var(--w3t-color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.w3t-single__content img {
  display: block;
  margin: 28px 0;
  border: 1px solid var(--w3t-color-border);
}

.w3t-single__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 860px;
  padding-top: 30px;
  margin-top: 34px;
  border-top: 1px solid var(--w3t-color-border);
}

.w3t-term-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--w3t-color-text);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  border: 1px solid var(--w3t-color-border);
  border-radius: 4px;
}

.w3t-archive {
  padding-top: calc(var(--w3t-header-height) + 52px);
  padding-bottom: 80px;
}

.w3t-empty {
  padding: 40px 0;
  color: var(--w3t-color-muted);
  font-size: 18px;
  font-weight: 700;
}

.w3t-site-footer {
  border-top: 1px solid var(--w3t-color-border);
  background: var(--w3t-color-bg);
}

.w3t-site-footer__inner {
  display: grid;
  gap: 28px;
  padding-block: 34px;
}

.w3t-footer__brand {
  margin: 0;
  color: var(--w3t-color-text);
  font-size: 44px;
  font-weight: 950;
  line-height: 0.85;
  text-transform: uppercase;
}

.w3t-footer__links {
  flex-wrap: wrap;
  gap: 10px 18px;
}

.w3t-footer__meta {
  color: var(--w3t-color-muted);
}

@media (min-width: 680px) {
  :root {
    --w3t-site-gutter: 28px;
  }

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

  .w3t-category-index__item:nth-child(2n) {
    border-right: 1px solid var(--w3t-color-border);
  }

  .w3t-category-index__item:nth-child(4n) {
    border-right: 0;
  }

  .w3t-section__title {
    font-size: 72px;
  }

  .w3t-section__copy {
    font-size: 38px;
  }

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

  .w3t-single__title {
    font-size: 82px;
  }
}

@media (min-width: 920px) {
  .w3t-header__nav {
    display: block;
  }

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

  .w3t-mobile-panel {
    display: none;
  }

  .w3t-hero__text {
    min-height: 50svh;
    align-content: end;
    padding-top: 72px;
    padding-bottom: 52px;
  }

  .w3t-hero__title {
    font-size: var(--w3t-hero-desktop-size);
  }

  .w3t-hero__subtitle {
    margin-left: auto;
    font-size: 18px;
  }

  .w3t-hero__image,
  .w3t-hero__link,
  .w3t-hero__empty {
    height: 620px;
    min-height: 620px;
  }

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

  .w3t-site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

@media (min-width: 1240px) {
  :root {
    --w3t-site-gutter: 34px;
  }

  .w3t-section {
    padding-block: 82px;
  }

  .w3t-section__title {
    font-size: 104px;
  }

  .w3t-single__title {
    font-size: 116px;
  }
}

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