/*
Theme Name: Nicole Sell Identity
Theme URI: https://nicole-sell.com
Author: Nicole Sell
Description: Industrial Editorial System. Radical Pragmatist portfolio.
Version: 4.0
*/

/* =========================
   0) TOKENS — v4.0 Light Field
   ========================= */
:root {
  /* Core — Light Field */
  --bg:       #ffffff;
  --bg2:      #fafafa;
  --surface:  #f5f5f7;
  --surface2: #ececef;
  --border:   #dcdce1;
  --border2:  #c8c8cf;

  /* Text */
  --text:   #111117;
  --text2:  #2d2d36;
  --muted:  #6f6f7d;
  --muted2: #9a9aab;

  /* Accent — Signal Only */
  --pink: #ff007a;

  /* Industrial Mode — Limited Use */
  --ind-bg:      #111117;
  --ind-surface: #17171f;
  --ind-border:  #2b2b33;
  --ind-text:    #f5f5f7;
  --ind-muted:   #c6c6d0;

  /* Effects */
  --shadow:    0 10px 28px rgba(17, 17, 23, 0.08);
  --pink-tint: rgba(255, 0, 122, 0.04);

  /* Reading */
  --base:    17px;
  --lh:      1.75;
  --measure: 74ch;
  --radius:  0px;        /* sharp edges — no soft rounded UI */

  /* Spacing scale */
  --s1: .5rem;
  --s2: .75rem;
  --s3: 1rem;
  --s4: 1.25rem;
  --s5: 1.75rem;
  --s6: 2.25rem;
  --s7: 3rem;
}

/* =========================
   1) BASE RESET
   ========================= */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  font-size: var(--base);
  line-height: var(--lh);
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 2px solid rgba(255, 0, 122, .7);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* =========================
   2) LINKS, SELECTION, SCROLLBAR
   ========================= */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 0, 122, .45);
  text-underline-offset: 3px;
  transition: color .15s ease, text-decoration-color .15s ease;
}

a:hover {
  color: var(--pink);
  text-decoration-color: rgba(255, 0, 122, .9);
}

::selection     { background: var(--pink); color: #fff; }
::-moz-selection { background: var(--pink); color: #fff; }

::-webkit-scrollbar       { width: 10px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb {
  background-color: var(--border2);
  border: 2px solid var(--surface);
}

/* =========================
   3) GLOBAL LAYOUT
   ========================= */
.site-container {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 640px) {
  .site-container { padding-left: 18px; padding-right: 18px; }
}

.site-container--wide { max-width: 80rem; }

.measure { max-width: var(--measure); }

/* =========================
   4) PAGE BACKGROUND
   ========================= */
body {
  background:
    radial-gradient(1200px 700px at 10% 5%, rgba(255, 0, 122, .04), transparent 55%),
    radial-gradient(900px 600px at 90% 15%, rgba(17, 17, 23, .025), transparent 60%),
    var(--bg);
}

/* =========================
   5) WORDPRESS CONTENT WRAPPERS
   ========================= */
.site, #page { min-height: 100vh; }
.site-content, #content, #primary, .content-area { width: 100%; }

.entry-content,
.wp-site-blocks,
.site-main { width: 100%; }

.entry-content {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
  padding-top: var(--s5);
  padding-bottom: var(--s6);
}

.entry-content > * { margin-top: 0; margin-bottom: 0; }
.entry-content > * + * { margin-top: 1.1rem; }

.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}

/* =========================
   6) TYPOGRAPHY
   ========================= */
.entry-content p {
  color: var(--text2);
  font-size: 1rem;
  line-height: 1.8;
}

.entry-content strong { color: var(--text); font-weight: 800; }
.entry-content em     { color: var(--text2); }

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--text);
  line-height: 1.1;
  margin-top: var(--s6);
  margin-bottom: var(--s3);
}

.entry-content h1 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.entry-content h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.entry-content h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  font-weight: 800;
}

.entry-content h4 {
  font-size: 1.05rem;
  font-weight: 800;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25rem;
  color: var(--text2);
}

.entry-content li + li { margin-top: .35rem; }

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  background: var(--bg);
}

.entry-content th,
.entry-content td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.entry-content th {
  text-align: left;
  color: var(--text);
  font-weight: 800;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--surface);
}

.entry-content td { color: var(--text2); }

.entry-content blockquote {
  margin: var(--s5) 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--pink);
  background: var(--pink-tint);
  color: var(--text2);
}

.entry-content code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .9em;
  padding: .1em .35em;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.entry-content pre {
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: auto;
  line-height: 1.6;
}

/* =========================
   7) COMPONENTS
   ========================= */

/* Card */
.card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 20px;
}

.card:hover { border-color: rgba(255, 0, 122, .35); }

/* Marker — pink left border emphasis */
.marker {
  border-left: 4px solid var(--pink);
  padding-left: 12px;
  margin-top: 14px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.5;
  font-size: .9rem;
}

/* Tag / Label */
.tag {
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 6px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  display: inline-block;
}

/* Module */
.module {
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow);
  padding: 22px;
}

.module-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.module-title::before {
  content: "";
  width: 12px; height: 12px;
  border: 2px solid var(--pink);
  display: inline-block;
  flex-shrink: 0;
}

/* Industrial Panel — limited use */
.ind-panel {
  background: var(--ind-bg);
  color: var(--ind-text);
  border: 1px solid var(--ind-border);
}

/* System label */
.sysline {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
}

.sysline::before {
  content: "";
  width: 24px; height: 2px;
  background: var(--pink);
  display: inline-block;
  flex-shrink: 0;
}

/* =========================
   8) HEADER / NAV
   ========================= */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

@media (max-width: 640px) {
  .site-header__inner { padding: 0 18px; }
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.site-logo__bar {
  width: 3px;
  height: 40px;
  background: var(--pink);
  flex-shrink: 0;
}

.site-logo__name {
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}

.site-logo__id {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-top: 3px;
}

.header-spacer { height: 80px; }

/* =========================
   9) NAVIGATION
   ========================= */
.primary-menu a {
  color: var(--pink);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: none;
  transition: color .15s ease;
}

.primary-menu a:hover { color: var(--text); }

/* Sub-menus */
.primary-menu .sub-menu,
.mobile-menu .sub-menu { display: none; }

.primary-menu li.menu-open > .sub-menu,
.mobile-menu li.menu-open > .sub-menu { display: block; }

/* Mobile toggle */
.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--text);
  transition: border-color .15s ease;
}

.mobile-menu-btn:hover { border-color: var(--pink); }

/* Mobile panel */
.mobile-nav-panel {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* =========================
   10) BREADCRUMBS
   ========================= */
.breadcrumbs {
  font-size: .7rem;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted2);
  margin-bottom: var(--s5);
}

.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--pink); }

.crumb-sep { margin: 0 .35em; color: var(--border2); }

.current-crumb { color: var(--text2); }

/* =========================
   11) MARQUEE
   ========================= */
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: marquee 22s linear infinite;
  will-change: transform;
}

.marquee__set {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* =========================
   12) UTILITY
   ========================= */
hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 122, .35), transparent);
  margin: var(--s6) 0;
}

small { color: var(--muted2); }

.entry-content--fullbleed {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.entry-content .embed-wide {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

body.page.no-site-header .site-header { display: none; }
