/*
Theme Name: Nariway
Theme URI: https://nariway.com
Description: The Global Resource on Work — Kadence child theme for Nariway.
Author: Alina Okun
Author URI: https://alinaokun.com
Template: kadence
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: nariway
*/

/* ==========================================================================
   DESIGN SYSTEM
   Fonts: Newsreader (headlines, titles) · DM Sans (body, UI, labels, meta)
   ========================================================================== */

:root {
  /* Brand */
  --nw-navy: #14293D;
  --nw-amber: #B8860B;
  --nw-blue: #2B5B7A;
  --nw-green: #1E6B3F;
  --nw-terra: #B04A2E;

  /* Text */
  --nw-text: #1a1a1a;
  --nw-meta: #888;

  /* Surfaces */
  --nw-page: #F2F2F2;
  --nw-card: #fff;

  /* Layout */
  --nw-max: 1120px;
}

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

body {
  font-family: 'DM Sans', sans-serif !important;
  background: var(--nw-page) !important;
  color: var(--nw-text);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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


/* --- Kadence Overrides --- */

.site-header-wrap,
header.site-header,
.site-header-inner-wrap,
#masthead,
.site-footer-wrap,
footer.site-footer,
#colophon,
.kadence-breadcrumbs,
.entry-hero-container-inner {
  display: none !important;
}

.site,
.site-container,
.content-container {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.content-wrap,
.site-main,
.entry-content-wrap,
.entry-content,
.content-area,
article.entry {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.primary-sidebar {
  display: none !important;
}

.content-style-unboxed .entry-content {
  padding: 0 !important;
}

.hentry .entry-content {
  max-width: none !important;
}


/* --- Header --- */

.nw-header {
  padding: 24px 64px 0;
  max-width: var(--nw-max);
  margin: 0 auto;
}

.nw-logo {
  font-family: 'Newsreader', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--nw-navy);
  text-decoration: none;
}


/* --- Hero --- */

.nw-hero {
  max-width: var(--nw-max);
  margin: 0 auto;
  padding: 64px 64px 0;
  text-align: center;
}

.nw-hero-head {
  font-family: 'Newsreader', serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--nw-navy);
  line-height: 1.1;
  margin-bottom: 14px;
}

.nw-hero-head .dim {
  color: rgba(20, 41, 61, .25);
}

.nw-hero-head em {
  color: var(--nw-amber);
  font-style: italic;
}

.nw-hero-sub {
  font-family: 'Newsreader', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--nw-meta);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.55;
}


/* --- Timeline --- */

.nw-timeline {
  max-width: var(--nw-max);
  margin: 48px auto 0;
  padding: 22px 64px 0;
  border-top: 1px solid rgba(0, 0, 0, .06);
  display: flex;
  justify-content: center;
  gap: 44px;
}

.nw-tl-pt {
  cursor: default;
  transition: all .3s;
  text-align: center;
}

.nw-tl-pt:hover .nw-tl-yr {
  color: var(--nw-amber);
}

.nw-tl-pt:hover .nw-tl-nm {
  color: var(--nw-text);
}

.nw-tl-yr {
  font-family: 'Newsreader', serif;
  font-size: 20px;
  font-weight: 700;
  color: rgba(20, 41, 61, .22);
  line-height: 1;
  margin-bottom: 6px;
  transition: color .3s;
}

.nw-tl-nm {
  font-size: 11px;
  font-weight: 500;
  color: rgba(20, 41, 61, .18);
  transition: color .3s;
}


/* --- Cards --- */

.nw-card {
  background: var(--nw-card);
  border-radius: 16px;
  cursor: pointer;
  text-decoration: none;
  color: var(--nw-text);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05), 0 12px 40px rgba(0, 0, 0, .05);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}

.nw-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08), 0 24px 56px rgba(0, 0, 0, .12);
}

.nw-card-body {
  padding: 36px 34px 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.nw-card-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}

.nw-card-title {
  font-family: 'Newsreader', serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.nw-card-sub {
  font-family: 'Newsreader', serif;
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  color: var(--nw-meta);
  line-height: 1.5;
  flex-grow: 1;
}

.nw-card-bot {
  padding: 32px 34px;
  font-size: 12px;
  color: #bbb;
}

.nw-card-wide .nw-card-body {
  padding: 40px 44px 0;
}

.nw-card-wide .nw-card-title {
  font-size: 34px;
}

.nw-card-wide .nw-card-sub {
  font-size: 17px;
  max-width: 460px;
}

.nw-card-wide .nw-card-bot {
  padding: 32px 44px 36px;
}


/* --- Scroll animation --- */

.nw-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s, transform .5s;
}

.nw-fade.nw-vis {
  opacity: 1;
  transform: translateY(0);
}


/* --- Grid --- */

.nw-grid {
  max-width: var(--nw-max);
  margin: 0 auto;
  padding: 0 64px;
}

.nw-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.nw-grid-wide {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 36px;
}

.nw-spacer {
  height: 64px;
}


/* --- Interstitials --- */

.nw-inter {
  padding: 40px 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nw-inter-line {
  flex-grow: 1;
  height: 1px;
  background: #ddd;
}

.nw-inter-text {
  font-family: 'Newsreader', serif;
  font-size: 20px;
  font-weight: 500;
  font-style: italic;
  color: var(--nw-amber);
  white-space: nowrap;
}


/* --- Scroll number --- */

.nw-scroll-num-wrap {
  padding: 36px 0;
  text-align: center;
}

.nw-scroll-num {
  font-family: 'Newsreader', serif;
  font-size: 72px;
  font-weight: 700;
  color: var(--nw-amber);
  line-height: 1;
  opacity: .15;
}

.nw-scroll-num-cap {
  font-size: 14px;
  color: var(--nw-meta);
  margin-top: 8px;
}


/* --- Threads --- */

.nw-threads {
  max-width: var(--nw-max);
  margin: 0 auto;
  padding: 56px 64px 0;
}

.nw-threads-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--nw-meta);
  margin-bottom: 28px;
}

.nw-thread-card {
  background: var(--nw-card);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05), 0 12px 40px rgba(0, 0, 0, .05);
  overflow: hidden;
  margin-bottom: 24px;
  transition: box-shadow .2s;
}

.nw-thread-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08), 0 20px 48px rgba(0, 0, 0, .1);
}

.nw-thread-top {
  padding: 36px 40px 24px;
}

.nw-thread-q {
  font-family: 'Newsreader', serif;
  font-size: 26px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
  margin-bottom: 10px;
}

.nw-thread-desc {
  font-size: 14px;
  color: var(--nw-meta);
  line-height: 1.55;
}

.nw-thread-chips {
  padding: 0 40px 28px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nw-thread-chip {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 10px 16px;
  font-family: 'Newsreader', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--nw-text);
  text-decoration: none;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nw-thread-chip:hover {
  background: var(--nw-navy);
  color: white;
}

.nw-thread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}


/* --- Footnote --- */

.nw-footnote {
  max-width: var(--nw-max);
  margin: 0 auto;
  padding: 64px 64px 0;
  text-align: center;
}

.nw-footnote-text {
  font-family: 'Newsreader', serif;
  font-size: 17px;
  font-style: italic;
  color: #aaa;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

.nw-footnote-text em {
  color: var(--nw-meta);
  font-style: normal;
  font-weight: 600;
}


/* --- All-entries link --- */

.nw-all-link {
  text-align: center;
  padding: 56px 0 0;
}

.nw-all-link a {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--nw-text);
  text-decoration: none;
  border-bottom: 2px solid var(--nw-text);
  padding-bottom: 3px;
  transition: opacity .15s;
}

.nw-all-link a:hover {
  opacity: .6;
}


/* --- Footer --- */

.nw-footer {
  margin-top: 80px;
  background: #f5f5f5;
  padding: 44px 64px 52px;
}

.nw-ftr-inner {
  max-width: var(--nw-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 56px;
}

.nw-ftr-brand {
  font-family: 'Newsreader', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.nw-ftr-tag {
  font-size: 14px;
  color: var(--nw-meta);
}

.nw-ftr-cl {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--nw-meta);
  margin-bottom: 14px;
}

.nw-ftr-col a {
  display: block;
  font-size: 15px;
  color: var(--nw-text);
  text-decoration: none;
  margin-bottom: 9px;
  transition: opacity .15s;
}

.nw-ftr-col a:hover {
  opacity: .6;
}


/* --- Explore page --- */

.nw-explore-hero {
  max-width: var(--nw-max);
  margin: 0 auto;
  padding: 48px 64px 0;
  text-align: center;
}

.nw-explore-title {
  font-family: 'Newsreader', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--nw-navy);
  margin-bottom: 8px;
}

.nw-explore-sub {
  font-family: 'Newsreader', serif;
  font-size: 17px;
  font-style: italic;
  color: var(--nw-meta);
  margin-bottom: 36px;
}

.nw-search-wrap {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.nw-search-input {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  padding: 16px 54px 16px 22px;
  border: 2px solid var(--nw-navy);
  border-radius: 10px;
  background: white;
  color: var(--nw-text);
  outline: none;
  transition: box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.nw-search-input::placeholder {
  color: #aaa;
}

.nw-search-input:focus {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

.nw-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  background: var(--nw-navy);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.nw-search-btn:hover {
  background: #1e3a52;
}

.nw-search-btn svg {
  width: 18px;
  height: 18px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nw-filters {
  max-width: var(--nw-max);
  margin: 0 auto;
  padding: 40px 64px 0;
  display: flex;
  gap: 32px;
  justify-content: center;
}

.nw-filter-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--nw-meta);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 8px;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}

.nw-filter-btn:hover {
  color: var(--nw-text);
}

.nw-filter-btn.active {
  color: var(--nw-text);
  border-bottom-color: var(--nw-amber);
}

.nw-explore-grid {
  max-width: var(--nw-max);
  margin: 0 auto;
  padding: 40px 64px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}


/* --- Entry page --- */

.nw-entry-page {
  max-width: var(--nw-max);
  margin: 0 auto;
  padding: 0 64px;
}

.nw-entry-header {
  padding: 48px 0 0;
  max-width: 720px;
}

.nw-entry-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

.nw-entry-title {
  font-family: 'Newsreader', serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--nw-navy);
  margin-bottom: 14px;
}

.nw-entry-subtitle {
  font-family: 'Newsreader', serif;
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  color: var(--nw-meta);
  margin-bottom: 16px;
  line-height: 1.4;
}

.nw-entry-origin-line {
  font-size: 14px;
  color: var(--nw-meta);
  margin-bottom: 36px;
}

.nw-entry-surface {
  background: #f9f9f9;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04), 0 16px 48px rgba(0, 0, 0, .06);
  overflow: hidden;
  margin-top: 8px;
}

.nw-entry-surface-inner {
  padding: 56px 64px 64px;
  max-width: 720px;
}

.nw-origin-stmt {
  font-family: 'Newsreader', serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--nw-navy);
  margin-bottom: 36px;
  border-left: 3px solid var(--nw-amber);
  padding-left: 24px;
}

.nw-entry-body p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 24px;
  color: #333;
}

.nw-entry-body p:last-child {
  margin-bottom: 0;
}

.nw-il {
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: text-decoration-color .2s;
}

.nw-il-blue {
  color: var(--nw-blue);
  text-decoration-color: rgba(43, 91, 122, .3);
}

.nw-il-blue:hover {
  text-decoration-color: var(--nw-blue);
}

.nw-il-amber {
  color: var(--nw-amber);
  text-decoration-color: rgba(184, 134, 11, .3);
}

.nw-il-amber:hover {
  text-decoration-color: var(--nw-amber);
}

.nw-endnote-ref {
  font-size: 12px;
  color: var(--nw-amber);
  cursor: pointer;
  text-decoration: none;
  vertical-align: super;
  font-weight: 600;
  margin-left: 1px;
}

.nw-fact-moment {
  text-align: center;
  padding: 48px 0;
  margin: 36px 0;
  border-top: 1px solid rgba(0, 0, 0, .06);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.nw-fact-num {
  font-family: 'Newsreader', serif;
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}

.nw-fact-cap {
  font-size: 15px;
  color: var(--nw-meta);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.55;
}

.nw-etym-chain {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 36px 0;
}

.nw-etym-words {
  font-family: 'Newsreader', serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

.nw-etym-arrow {
  color: #ccc;
  margin: 0 8px;
  font-weight: 400;
}

.nw-etym-cap {
  font-size: 13px;
  color: var(--nw-meta);
  text-align: center;
  margin-top: 12px;
}

.nw-timeline-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.nw-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--nw-meta);
  margin-bottom: 24px;
}

.nw-tl-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: start;
}

.nw-tl-item:last-child {
  margin-bottom: 0;
}

.nw-tl-year {
  font-family: 'Newsreader', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--nw-navy);
}

.nw-tl-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.55;
}

.nw-endnotes-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.nw-endnote {
  font-size: 14px;
  color: #777;
  line-height: 1.55;
  margin-bottom: 10px;
  padding-left: 24px;
  text-indent: -24px;
}

.nw-endnote strong {
  color: #555;
  font-weight: 600;
}

.nw-related-section {
  max-width: var(--nw-max);
  margin: 0 auto;
  padding: 56px 64px 0;
}

.nw-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.nw-back-explore {
  max-width: var(--nw-max);
  margin: 0 auto;
  padding: 48px 64px 0;
  text-align: center;
}

.nw-back-explore a {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--nw-text);
  text-decoration: none;
  border-bottom: 2px solid var(--nw-text);
  padding-bottom: 3px;
  transition: opacity .15s;
}

.nw-back-explore a:hover {
  opacity: .6;
}


/* --- Responsive --- */

@media (max-width: 960px) {
  .nw-grid-3,
  .nw-explore-grid,
  .nw-related-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .nw-grid-wide {
    grid-template-columns: 1fr !important;
  }
  .nw-timeline {
    gap: 24px;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .nw-header {
    padding: 18px 24px 0;
  }
  .nw-hero {
    padding: 44px 24px 0;
  }
  .nw-hero-head {
    font-size: 36px;
  }
  .nw-timeline {
    padding: 18px 24px 0;
    margin-top: 36px;
    gap: 20px;
  }
  .nw-spacer {
    height: 44px;
  }
  .nw-grid,
  .nw-threads,
  .nw-footnote,
  .nw-explore-hero,
  .nw-filters,
  .nw-explore-grid,
  .nw-entry-page,
  .nw-related-section,
  .nw-back-explore {
    padding-left: 24px;
    padding-right: 24px;
  }
  .nw-grid-3,
  .nw-explore-grid,
  .nw-related-grid {
    grid-template-columns: 1fr !important;
  }
  .nw-entry-title {
    font-size: 36px;
  }
  .nw-entry-surface-inner {
    padding: 36px 28px 44px;
  }
  .nw-footer {
    padding: 32px 24px 40px;
  }
  .nw-ftr-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .nw-filters {
    gap: 16px;
    flex-wrap: wrap;
  }
}
