/*
Theme Name: Northline Journal
Author: Rowan Vale
Description: A classic editorial WordPress theme for Uruvideo with dynamic categories, responsive cards, and a soft visual mosaic layout.
Version: 1.0.0
Requires at least: 6.0
Text Domain: urv-theme
*/

:root {
  --urv-bg: #f7f8fd;
  --urv-surface: #ffffff;
  --urv-ink: #010101;
  --urv-muted: #686f7a;
  --urv-soft: #e9edf5;
  --urv-chip: #f4f6fa;
  --urv-lime: #dfff4f;
  --urv-lime-strong: #caff2f;
  --urv-shadow: 0 22px 70px rgba(32, 45, 68, 0.12);
  --urv-shadow-soft: 0 16px 48px rgba(32, 45, 68, 0.08);
  --urv-radius-xl: 34px;
  --urv-radius-lg: 28px;
  --urv-radius-md: 18px;
}

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

html {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--urv-bg);
  color: var(--urv-ink);
  font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

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

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

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

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

.urv-body {
  overflow-x: hidden;
}

.urv-shell {
  width: min(92vw, 1080px);
  margin-inline: auto;
}

.urv-site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(247, 248, 253, 0.98), rgba(247, 248, 253, 0.76));
  backdrop-filter: blur(18px);
}

.urv-head-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 94px;
  gap: 18px;
}

.urv-brand {
  justify-self: start;
  color: var(--urv-ink);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.urv-nav-wrap {
  justify-self: center;
}

.urv-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(205, 214, 229, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 34px rgba(37, 48, 70, 0.06);
}

.urv-nav-link,
.urv-nav-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #242936;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.urv-nav-link:hover,
.urv-nav-link:focus-visible,
.urv-nav-trigger:hover,
.urv-nav-trigger:focus-visible,
.urv-nav-group[open] > .urv-nav-trigger {
  background: var(--urv-surface);
  color: var(--urv-ink);
  box-shadow: 0 9px 22px rgba(31, 38, 55, 0.08);
  outline: 0;
}

.urv-nav-group {
  position: relative;
}

.urv-nav-group summary {
  list-style: none;
}

.urv-nav-group summary::-webkit-details-marker {
  display: none;
}

.urv-nav-arrow {
  width: 14px;
  height: 14px;
  margin-left: 6px;
  transition: transform 180ms ease;
}

.urv-nav-group[open] .urv-nav-arrow {
  transform: rotate(180deg);
}

.urv-nav-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  display: grid;
  min-width: 210px;
  padding: 10px;
  border: 1px solid rgba(211, 218, 231, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--urv-shadow-soft);
  transform: translateX(-50%);
}

.urv-nav-panel-link {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 16px;
  color: #303644;
  font-size: 14px;
  font-weight: 600;
}

.urv-nav-panel-link:hover,
.urv-nav-panel-link:focus-visible {
  background: var(--urv-chip);
  outline: 0;
}

.urv-head-action,
.urv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 10px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--urv-ink);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(1, 1, 1, 0.16);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.urv-head-action {
  justify-self: end;
}

.urv-button:hover,
.urv-button:focus-visible,
.urv-head-action:hover,
.urv-head-action:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(1, 1, 1, 0.2);
  outline: 0;
}

.urv-button-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
}

.urv-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--urv-ink);
  cursor: pointer;
}

.urv-menu-lines,
.urv-menu-lines::before,
.urv-menu-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.urv-menu-lines {
  position: relative;
}

.urv-menu-lines::before,
.urv-menu-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.urv-menu-lines::before {
  top: -6px;
}

.urv-menu-lines::after {
  top: 6px;
}

.urv-menu-toggle[aria-expanded="true"] .urv-menu-lines {
  background: transparent;
}

.urv-menu-toggle[aria-expanded="true"] .urv-menu-lines::before {
  transform: translateY(6px) rotate(45deg);
}

.urv-menu-toggle[aria-expanded="true"] .urv-menu-lines::after {
  transform: translateY(-6px) rotate(-45deg);
}

.urv-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 70px;
}

.urv-hero::before {
  position: absolute;
  inset: 0 50% auto;
  width: min(680px, 88vw);
  height: 520px;
  background:
    linear-gradient(rgba(207, 217, 232, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(207, 217, 232, 0.5) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(circle at 50% 46%, #000 0, transparent 72%);
  opacity: 0.62;
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}

.urv-hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 92vw);
  margin: 0 auto;
  text-align: center;
}

.urv-aperture {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(33, 43, 63, 0.1);
}

.urv-aperture::before {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: conic-gradient(from 24deg, #010101 0 13%, transparent 13% 20%, #010101 20% 33%, transparent 33% 40%, #010101 40% 53%, transparent 53% 60%, #010101 60% 73%, transparent 73% 80%, #010101 80% 93%, transparent 93% 100%);
  content: "";
}

.urv-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 16px;
  border: 1px solid rgba(226, 231, 239, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #323948;
  box-shadow: 0 10px 28px rgba(34, 46, 70, 0.06);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.urv-hero-title {
  margin: 42px 0 12px;
  font-size: clamp(3rem, 7vw, 5.15rem);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: 0;
}

.urv-hero-text {
  width: min(520px, 86vw);
  margin: 0 auto;
  color: var(--urv-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  line-height: 1.5;
}

.urv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.urv-hero-visual {
  position: relative;
  z-index: 2;
  width: min(880px, 92vw);
  margin: 68px auto 0;
}

.urv-float {
  position: absolute;
  z-index: 3;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef7;
  box-shadow: 0 14px 38px rgba(38, 49, 70, 0.12);
}

.urv-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.urv-float-one {
  top: -78px;
  left: -18px;
  width: 98px;
  height: 98px;
}

.urv-float-two {
  top: -95px;
  right: 18px;
  width: 106px;
  height: 106px;
}

.urv-float-three {
  top: 32px;
  left: -42px;
  width: 112px;
  height: 112px;
}

.urv-float-four {
  right: -28px;
  bottom: 86px;
  width: 86px;
  height: 86px;
}

.urv-mosaic {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.9fr;
  grid-template-rows: 132px 132px;
  gap: 14px;
  width: min(620px, 76vw);
  margin: 0 auto;
}

.urv-mosaic-item {
  overflow: hidden;
  border-radius: var(--urv-radius-lg);
  background: #e8edf6;
  box-shadow: var(--urv-shadow-soft);
}

.urv-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.urv-mosaic-large {
  grid-row: 1 / span 2;
}

.urv-mosaic-tall {
  grid-row: 1 / span 2;
}

.urv-chip-row {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 42px 0 18px;
}

.urv-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 9px 20px;
  border: 1px solid rgba(219, 225, 236, 0.78);
  border-radius: 999px;
  background: var(--urv-surface);
  color: #1d2330;
  box-shadow: 0 12px 28px rgba(35, 47, 68, 0.07);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.urv-chip:hover,
.urv-chip:focus-visible {
  border-color: rgba(190, 214, 76, 0.8);
  background: var(--urv-lime);
  outline: 0;
}

.urv-chip-accent {
  background: var(--urv-lime);
  border-color: rgba(196, 237, 52, 0.55);
}

.urv-section {
  padding: 42px 0 72px;
}

.urv-section-head {
  width: min(640px, 92vw);
  margin: 0 auto 36px;
  text-align: center;
}

.urv-section-title {
  margin: 16px 0 10px;
  color: #222936;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 750;
  line-height: 1.08;
}

.urv-section-text {
  margin: 0;
  color: var(--urv-muted);
  font-size: 1.05rem;
}

.urv-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.urv-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  padding: 12px;
  border: 1px solid rgba(228, 233, 242, 0.74);
  border-radius: var(--urv-radius-xl);
  background: var(--urv-surface);
  box-shadow: var(--urv-shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.urv-card:hover,
.urv-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--urv-shadow);
}

.urv-card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.34 / 1;
  border-radius: 25px;
  background: #e8edf6;
}

.urv-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.urv-card:hover .urv-card-media img,
.urv-card:focus-within .urv-card-media img {
  transform: scale(1.035);
}

.urv-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px 8px 8px;
}

.urv-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.urv-card-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 24px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2f8;
  color: #425064;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.urv-card-label:hover,
.urv-card-label:focus-visible {
  background: var(--urv-lime);
  color: var(--urv-ink);
  outline: 0;
}

.urv-card-title {
  margin: 0 0 12px;
  color: var(--urv-ink);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.16;
}

.urv-card-title a:focus-visible {
  outline: 2px solid var(--urv-lime-strong);
  outline-offset: 4px;
}

.urv-card-excerpt {
  margin: 0;
  color: #56606e;
  font-size: 0.96rem;
  line-height: 1.55;
}

.urv-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  color: #596475;
  font-size: 13px;
  font-weight: 600;
}

.urv-meta-icon {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.8;
}

.urv-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9ca6b5;
}

.urv-spotlight {
  display: grid;
  grid-template-columns: 1.65fr 0.9fr;
  gap: 18px;
  margin-top: 54px;
  align-items: stretch;
}

.urv-wide-media,
.urv-lime-card {
  min-height: 270px;
  border-radius: var(--urv-radius-xl);
  box-shadow: var(--urv-shadow-soft);
}

.urv-wide-media {
  overflow: hidden;
  background: #e8edf6;
}

.urv-wide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.urv-lime-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 42px);
  background:
    radial-gradient(circle at 22% 15%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(135deg, #efff8e 0%, var(--urv-lime-strong) 100%);
}

.urv-lime-icon {
  display: inline-grid;
  width: 45px;
  height: 45px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--urv-ink);
  box-shadow: 0 12px 26px rgba(62, 91, 0, 0.14);
}

.urv-lime-title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 850;
  line-height: 1.08;
}

.urv-lime-text {
  margin: 0 0 22px;
  color: #28310d;
  font-size: 1rem;
  font-weight: 600;
}

.urv-archive-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 34px;
  text-align: center;
}

.urv-archive-hero::before {
  position: absolute;
  inset: 0 50% auto;
  width: min(660px, 90vw);
  height: 320px;
  background:
    linear-gradient(rgba(207, 217, 232, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(207, 217, 232, 0.5) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(circle at 50% 45%, #000 0, transparent 70%);
  opacity: 0.54;
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}

.urv-archive-title {
  position: relative;
  margin: 24px auto 10px;
  width: min(700px, 92vw);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.03;
}

.urv-archive-description {
  position: relative;
  width: min(560px, 88vw);
  margin: 0 auto;
  color: var(--urv-muted);
  font-size: 1.05rem;
}

.urv-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 36px;
  border-radius: var(--urv-radius-xl);
  background: var(--urv-surface);
  color: var(--urv-muted);
  text-align: center;
  box-shadow: var(--urv-shadow-soft);
}

.urv-single-main {
  padding: 62px 0 86px;
}

.urv-single-wrap {
  width: min(80vw, 980px);
  margin: 0 auto;
}

.urv-single-card {
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid rgba(228, 233, 242, 0.84);
  border-radius: var(--urv-radius-xl);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--urv-shadow-soft);
}

.urv-single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--urv-muted);
  font-size: 14px;
  font-weight: 700;
}

.urv-single-title {
  margin: 0 0 26px;
  color: var(--urv-ink);
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  font-weight: 850;
  line-height: 0.98;
}

.urv-single-content {
  color: #202633;
  font-size: clamp(1.04rem, 2vw, 1.18rem);
  line-height: 1.78;
}

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

.urv-single-content a {
  color: #111827;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.urv-single-content img {
  border-radius: 24px;
}

.urv-single-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
}

.urv-single-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--urv-surface);
  box-shadow: 0 10px 26px rgba(33, 45, 70, 0.08);
  color: #1f2735;
  font-size: 14px;
  font-weight: 800;
}

.urv-site-foot {
  padding: 0 0 34px;
}

.urv-foot-panel {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 20px;
  padding: 28px;
  border: 1px solid rgba(226, 232, 242, 0.8);
  border-radius: var(--urv-radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--urv-shadow-soft);
}

.urv-foot-brand {
  font-size: 19px;
  font-weight: 850;
}

.urv-foot-text,
.urv-foot-copy {
  margin: 8px 0 0;
  color: var(--urv-muted);
  font-size: 14px;
}

.urv-foot-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.urv-foot-links {
  display: grid;
  gap: 7px;
}

.urv-foot-link {
  color: #4e5868;
  font-size: 14px;
  font-weight: 700;
}

.urv-foot-link:hover,
.urv-foot-link:focus-visible {
  color: var(--urv-ink);
  outline: 0;
}

.urv-widget-area {
  margin-top: 34px;
}

@media (max-width: 920px) {
  .urv-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .urv-spotlight,
  .urv-foot-panel {
    grid-template-columns: 1fr;
  }

  .urv-mosaic {
    width: min(680px, 86vw);
  }
}

@media (max-width: 760px) {
  .urv-shell {
    width: min(88vw, 620px);
  }

  .urv-head-inner {
    display: flex;
    min-height: 78px;
    justify-content: space-between;
  }

  .urv-brand {
    font-size: 18px;
  }

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

  .urv-head-action {
    display: none;
  }

  .urv-nav-wrap {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
  }

  .urv-nav-wrap.urv-is-open {
    display: block;
  }

  .urv-nav {
    align-items: stretch;
    flex-direction: column;
    border-radius: 28px;
  }

  .urv-nav-link,
  .urv-nav-trigger {
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 12px 15px;
  }

  .urv-nav-panel {
    position: static;
    min-width: 0;
    margin: 6px 0 4px;
    border-radius: 20px;
    box-shadow: none;
    transform: none;
  }

  .urv-hero {
    padding: 48px 0 54px;
  }

  .urv-aperture {
    margin-bottom: 28px;
  }

  .urv-hero-title {
    margin-top: 28px;
    font-size: clamp(2.4rem, 12vw, 4.2rem);
  }

  .urv-hero-text {
    width: min(78vw, 430px);
  }

  .urv-hero-visual {
    width: 88vw;
    margin-top: 50px;
  }

  .urv-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 12px;
    width: min(78vw, 360px);
  }

  .urv-mosaic-item {
    aspect-ratio: 1.08 / 1;
  }

  .urv-mosaic-large,
  .urv-mosaic-tall {
    grid-row: auto;
  }

  .urv-mosaic-small {
    display: none;
  }

  .urv-float-one {
    top: -38px;
    left: -28px;
    width: 62px;
    height: 62px;
  }

  .urv-float-two {
    top: -54px;
    right: -18px;
    width: 72px;
    height: 72px;
  }

  .urv-float-three {
    display: none;
  }

  .urv-float-four {
    right: -20px;
    bottom: 28px;
    width: 58px;
    height: 58px;
  }

  .urv-chip-row {
    gap: 10px;
    margin-top: 28px;
  }

  .urv-chip {
    min-height: 33px;
    padding: 8px 14px;
    font-size: 12px;
  }

  .urv-post-grid {
    grid-template-columns: 1fr;
  }

  .urv-section {
    padding: 36px 0 58px;
  }

  .urv-card {
    border-radius: 30px;
  }

  .urv-card-title {
    font-size: 1.35rem;
  }

  .urv-wide-media,
  .urv-lime-card {
    min-height: 230px;
  }

  .urv-single-wrap {
    width: 80vw;
  }

  .urv-single-card {
    padding: 24px;
  }

  .urv-foot-panel {
    padding: 24px;
  }
}

@media (max-width: 430px) {
  .urv-shell {
    width: 88vw;
  }

  .urv-hero-title {
    font-size: 2.9rem;
  }

  .urv-hero-text {
    font-size: 0.98rem;
  }

  .urv-button {
    min-height: 42px;
    padding: 11px 18px;
    font-size: 13px;
  }

  .urv-card-body {
    padding-inline: 6px;
  }

  .urv-card-meta {
    font-size: 12px;
  }

  .urv-single-title {
    font-size: 2.35rem;
  }
}
