/*
Theme Name: UNC MODE
Theme URI: https://uncmode.com
Author: UNC MODE
Author URI: https://uncmode.com
Description: Custom theme for UNCMODE.COM — Saved. Tried. Reviewed.
Version: 1.0
License: GNU General Public License v2 or later
Tags: minimal, blog, custom
*/

/* ── RESET & ROOT ── */
:root {
  --black: #111110;
  --white: #faf9f7;
  --warm: #f0ece4;
  --accent: #c84b2f;
  --muted: #888580;
  --border: #e2ddd6;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── NAV ── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,249,247,0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.site-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--black);
}

.site-logo span { color: var(--accent); }

#primary-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}

#primary-nav a {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

#primary-nav a:hover { color: var(--black); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--black);
  padding: 4px;
}

/* ── HERO ── */
.hero {
  padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 80px) clamp(40px, 6vw, 80px);
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}

.hero-left { animation: fadeUp 0.7s ease both; }

.hero-eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  font-family: 'Lora', serif;
  font-weight: 400;
  color: var(--accent);
}

.hero-desc {
  font-size: 1.05rem;
  color: #555;
  max-width: 420px;
  line-height: 1.75;
}

.hero-right {
  animation: fadeUp 0.7s 0.15s ease both;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  background: var(--warm);
}

.hero-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ── STATUS PILLS ── */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Syne', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
}

.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-saved    { background: #f0f0f0; color: #888; }
.status-saved::before { background: #bbb; }
.status-tried    { background: #fff4e0; color: #b06000; }
.status-tried::before { background: #f0a030; }
.status-reviewed { background: #e8f5e9; color: #2e7d32; }
.status-reviewed::before { background: #4caf50; }

/* ── SECTION DIVIDER ── */
.section-divider {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-divider-line { flex: 1; height: 1px; background: var(--border); }

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ── POSTS GRID ── */
.grid-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 80px;
}

/* ── POST CARD ── */
.post-card {
  background: var(--white);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s;
  animation: fadeUp 0.5s ease both;
}

.post-card:hover { background: var(--warm); }

.post-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.post-thumbnail-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--warm);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.post-card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.post-card-excerpt {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.65;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* Featured card */
.post-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 36px;
}

.post-card.featured .post-thumbnail,
.post-card.featured .post-thumbnail-placeholder {
  aspect-ratio: 4/3;
  height: 100%;
}

.post-card.featured .post-card-title { font-size: 1.5rem; }

/* ── CATEGORY TAGS ── */
.tag {
  font-family: 'Syne', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}

.tag-dgo     { background: #d4edda; color: #2d6a4f; }
.tag-gas     { background: #dce8f5; color: #1a4a7a; }
.tag-yum     { background: #fff0d4; color: #7a4a00; }
.tag-diy     { background: #fde8cc; color: #8b4513; }
.tag-default { background: #f0f0f0; color: #555; }

/* ── CATEGORIES SECTION ── */
.categories-grid {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 clamp(20px, 5vw, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.cat-card {
  padding: 24px 20px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.cat-card:hover { background: var(--warm); border-color: var(--black); }

.cat-icon { font-size: 1.4rem; }

.cat-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.cat-count { font-size: 0.75rem; color: var(--muted); }

/* ── ABOUT STRIP ── */
.about-strip {
  background: var(--black);
  color: var(--white);
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 80px);
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
}

.about-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.about-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
}

.about-text {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

.about-text strong { color: var(--white); }

/* ── SINGLE POST ── */
.single-post {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 clamp(20px, 5vw, 80px);
  animation: fadeUp 0.6s ease both;
}

.single-post-header { margin-bottom: 32px; }

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.single-post-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.single-post-excerpt {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.75;
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 32px;
}

.single-post-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 40px;
}

.single-post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #333;
  max-width: 720px;
}

.single-post-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 40px 0 16px;
}

.single-post-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 32px 0 12px;
}

.single-post-content p { margin-bottom: 20px; }

.single-post-content ul,
.single-post-content ol {
  margin: 0 0 20px 24px;
}

.single-post-content li { margin-bottom: 8px; }

.single-post-content img {
  width: 100%;
  margin: 32px 0;
}

.single-post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── ARCHIVE / CATEGORY PAGE ── */
.archive-header {
  max-width: 1100px;
  margin: 60px auto 40px;
  padding: 0 clamp(20px, 5vw, 80px);
}

.archive-eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.archive-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* ── FOOTER ── */
#site-footer {
  border-top: 1px solid var(--border);
  padding: 24px clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.post-card:nth-child(1) { animation-delay: 0.05s; }
.post-card:nth-child(2) { animation-delay: 0.10s; }
.post-card:nth-child(3) { animation-delay: 0.15s; }
.post-card:nth-child(4) { animation-delay: 0.20s; }
.post-card:nth-child(5) { animation-delay: 0.25s; }

/* ── WORDPRESS CORE OVERRIDES ── */
.wp-site-blocks,
.is-layout-flow,
.is-layout-constrained,
.entry-content,
.wp-block-post-content,
.wp-block-group {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.single .wp-block-post-content > *,
body.single .entry-content > * {
  max-width: none !important;
}
/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .post-card.featured { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 24px; }
  .nav-toggle { display: block; }
  #primary-nav { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 20px clamp(20px,5vw,80px); }
  #primary-nav.open { display: block; }
  #primary-nav ul { flex-direction: column; gap: 16px; }
}

/* ── FORCE FULL WIDTH ON ALL PAGE TYPES ── */
body.single,
body.single #page,
body.single #content,
body.single #primary,
body.single .site-main,
body.page #page,
body.page #content,
body.page #primary,
body.page .site-main {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* WordPress block editor content width override */
:root {
  --wp--style--global--content-size: 1100px !important;
  --wp--style--global--wide-size: 1400px !important;
}

.wp-block-post,
.wp-block-post-content,
.wp-block-group.is-layout-constrained > *,
.is-layout-constrained > * {
  max-width: none !important;
}