:root {
  --nr-bg: #faf8f4;
  --nr-surface: #ffffff;
  --nr-ink: #17181c;
  --nr-ink-soft: #55575f;
  --nr-line: #e6e2d8;
  --nr-red: #e11d2e;
  --nr-red-soft: rgba(225, 29, 46, 0.08);
  --nr-max: 1360px;
  --nr-radius: 4px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--nr-bg);
  color: var(--nr-ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.nr-serif {
  font-family: "Fraunces", Georgia, serif;
}

.nr-mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.nr-kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--nr-red);
}

.nr-container {
  max-width: var(--nr-max);
  margin: 0 auto;
  padding: 0 32px;
}

.nr-topbar {
  border-bottom: 1px solid var(--nr-line);
  background: var(--nr-ink);
  color: #f3f1ea;
}

.nr-topbar-inner {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 8px 0;
}

.nr-topbar .nr-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nr-red);
  display: inline-block;
  margin-right: 8px;
}

.nr-ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: nr-scroll 32s linear infinite;
  padding-left: 100%;
}

.nr-ticker-item {
  padding: 0 28px;
  opacity: 0.85;
}

@keyframes nr-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.nr-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nr-line);
}

.nr-header-inner {
  padding: 22px 0;
  gap: 28px;
}

.nr-logo {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nr-logo .nr-logo-dot {
  color: var(--nr-red);
}

.nr-nav a {
  position: relative;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--nr-ink-soft);
  transition: color 0.15s ease;
}

.nr-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--nr-red);
  transition: width 0.2s ease;
}

.nr-nav a:hover {
  color: var(--nr-ink);
}

.nr-nav a:hover::after {
  width: 100%;
}

.nr-search-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--nr-line);
  background: var(--nr-surface);
  cursor: pointer;
  color: var(--nr-ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nr-search-toggle:hover {
  border-color: var(--nr-red);
  background: var(--nr-red-soft);
}

.nr-search-panel {
  max-height: 0;
  overflow: hidden;
  border-bottom: 1px solid transparent;
  background: var(--nr-surface);
  transition: max-height 0.25s ease, border-color 0.25s ease;
}

.nr-search-panel.is-open {
  max-height: 90px;
  border-color: var(--nr-line);
}

.nr-search-panel form {
  gap: 14px;
  padding: 18px 0;
}

.nr-search-panel input {
  border: none;
  background: transparent;
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  color: var(--nr-ink);
  outline: none;
  width: 100%;
}

.nr-search-panel button {
  border: none;
  background: var(--nr-red);
  color: #fff;
  padding: 10px 22px;
  border-radius: 40px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.nr-hero {
  position: relative;
  border-radius: var(--nr-radius);
  overflow: hidden;
  margin: 36px 0 56px;
  min-height: 560px;
  background: var(--nr-ink);
  display: flex;
  align-items: flex-end;
}

.nr-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.nr-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.nr-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 12, 0.94) 0%, rgba(10, 10, 12, 0.35) 55%, rgba(10, 10, 12, 0.05) 100%);
  z-index: 1;
}

.nr-hero-content {
  position: relative;
  z-index: 2;
  padding: 56px;
  max-width: 820px;
}

.nr-hero-content .nr-kicker {
  color: #ff8f8f;
}

.nr-hero-content h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.04;
  color: #fbfaf7;
  margin: 16px 0 18px;
}

.nr-hero-content h1 a:hover {
  color: #ffb3b3;
}

.nr-hero-content p {
  color: rgba(251, 250, 247, 0.75);
  font-size: 1.08rem;
  max-width: 620px;
  margin: 0 0 22px;
}

.nr-hero-byline {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(251, 250, 247, 0.6);
}

.nr-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--nr-ink);
}

.nr-section-head h2 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.7rem;
  margin: 0;
}

.nr-main-full {
  padding: 0 0 110px;
}

.nr-masonry {
  column-count: 3;
  column-gap: 30px;
}

.nr-masonry .nr-card {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 30px;
}

.nr-card {
  background: var(--nr-surface);
  border: 1px solid var(--nr-line);
  border-radius: var(--nr-radius);
  overflow: hidden;
}

.nr-card-media {
  overflow: hidden;
  background: var(--nr-line);
}

.nr-card-media img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.nr-card:hover .nr-card-media img {
  transform: scale(1.05);
}

.nr-card-body {
  padding: 22px 24px 26px;
}

.nr-card-body .nr-kicker {
  display: block;
  margin-bottom: 12px;
}

.nr-card-body h3 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.32;
  margin: 0 0 12px;
}

.nr-card:hover .nr-card-body h3 {
  color: var(--nr-red);
}

.nr-card-body p {
  color: var(--nr-ink-soft);
  font-size: 0.92rem;
  margin: 0;
}

.nr-card-plain .nr-card-body {
  padding: 24px 0 0;
  border: none;
}

.nr-card-plain {
  background: transparent;
  border: none;
  border-top: 1px solid var(--nr-line);
  border-radius: 0;
  padding-top: 24px;
}

.nr-pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 54px;
}

.nr-pagination a,
.nr-pagination span {
  padding: 10px 16px;
  border-radius: 40px;
  border: 1px solid var(--nr-line);
  font-size: 0.85rem;
  font-family: "JetBrains Mono", monospace;
  color: var(--nr-ink-soft);
  background: var(--nr-surface);
}

.nr-pagination a:hover {
  border-color: var(--nr-red);
  color: var(--nr-red);
}

.nr-pagination .current {
  background: var(--nr-ink);
  color: var(--nr-bg);
  border-color: var(--nr-ink);
  font-weight: 700;
}

.nr-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 56px;
  padding: 48px 0 110px;
  align-items: start;
}

.nr-sidebar {
  position: sticky;
  top: 110px;
}

.nr-widget-box {
  background: var(--nr-surface);
  border: 1px solid var(--nr-line);
  border-radius: var(--nr-radius);
  padding: 30px;
}

.nr-widget-item + .nr-widget-item {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--nr-line);
}

.nr-widget-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nr-red);
  margin-bottom: 22px;
}

.nr-widget-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nr-widget-box li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--nr-line);
}

.nr-widget-box li:first-child {
  border-top: none;
  padding-top: 0;
}

.nr-widget-index {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  color: var(--nr-red);
}

.nr-widget-box a {
  font-size: 0.94rem;
  font-weight: 500;
  display: block;
}

.nr-widget-box a:hover {
  color: var(--nr-red);
}

.nr-widget-date {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--nr-ink-soft);
  margin-top: 5px;
  text-transform: uppercase;
}

.nr-single {
  padding: 60px 0 110px;
}

.nr-single-header {
  max-width: 820px;
  margin: 0 auto 34px;
}

.nr-single-header .nr-kicker {
  display: block;
  margin-bottom: 18px;
}

.nr-byline {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--nr-ink-soft);
  display: flex;
  gap: 10px;
  align-items: center;
}

.nr-single-header h1 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  margin-bottom: 20px;
}

.nr-single-media {
  max-width: 980px;
  margin: 0 auto 40px;
  border-radius: var(--nr-radius);
  overflow: hidden;
  border: 1px solid var(--nr-line);
}

.nr-single-content {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.12rem;
}

.nr-single-content p { margin: 0 0 22px; }

.nr-single-content img {
  border-radius: 4px;
  margin: 26px 0;
}

.nr-single-content h2,
.nr-single-content h3 {
  font-family: "Fraunces", serif;
  margin: 36px 0 16px;
}

.nr-tags {
  max-width: 780px;
  margin: 34px auto 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nr-tags a {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  padding: 8px 16px;
  border-radius: 40px;
  background: var(--nr-surface);
  border: 1px solid var(--nr-line);
  color: var(--nr-ink-soft);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nr-tags a:hover {
  border-color: var(--nr-red);
  color: var(--nr-red);
}

.nr-page-header {
  padding: 54px 0 16px;
}

.nr-page-header h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.nr-empty {
  text-align: center;
  padding: 100px 0;
  color: var(--nr-ink-soft);
}

.nr-footer {
  border-top: 1px solid var(--nr-line);
  background: var(--nr-ink);
  color: #f3f1ea;
  padding: 50px 0;
}

.nr-footer .nr-logo {
  font-size: 1.4rem;
  color: #f3f1ea;
}

.nr-footer p {
  color: rgba(243, 241, 234, 0.6);
  font-size: 0.8rem;
  margin: 0;
  font-family: "JetBrains Mono", monospace;
}

@media (max-width: 1100px) {
  .nr-masonry { column-count: 2; }
}

@media (max-width: 980px) {
  .nr-layout { grid-template-columns: 1fr; }
  .nr-sidebar { position: static; }
  .nr-hero { min-height: 440px; }
  .nr-hero-content { padding: 36px; }
}

@media (max-width: 640px) {
  .nr-masonry { column-count: 1; }
  .nr-nav { gap: 18px; }
}
