/* ============================================================
   RoflDna — Modern Editorial Blog
   ============================================================ */

:root {
  --bg:         #fafaf7;
  --bg-elev:   #ffffff;
  --bg-muted:  #f0efea;
  --fg:         #141414;
  --fg-muted:  #5a5a5a;
  --fg-dim:    #8a8a8a;
  --border:     #e3e1dc;
  --border-strong: #cfcdc6;
  --accent:     #c53030;
  --accent-2:   #ff6b35;
  --accent-soft: #fdeaea;
  --shadow-sm: 0 1px 2px rgba(16,16,16,.04), 0 2px 6px rgba(16,16,16,.04);
  --shadow-md: 0 6px 20px rgba(16,16,16,.07), 0 2px 6px rgba(16,16,16,.05);
  --shadow-lg: 0 20px 50px rgba(16,16,16,.12);
  --radius:   14px;
  --radius-sm:  8px;
  --maxw:      1240px;
  --font-serif: 'Fraunces', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg:         #0d0d0f;
  --bg-elev:   #16161a;
  --bg-muted:  #1c1c21;
  --fg:         #f4f3ef;
  --fg-muted:  #b9b7b0;
  --fg-dim:    #7a7872;
  --border:     #26262c;
  --border-strong: #353540;
  --accent:     #ff6b6b;
  --accent-2:   #ffb86b;
  --accent-soft: #2a1515;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 2px 6px rgba(0,0,0,.2);
  --shadow-md: 0 6px 20px rgba(0,0,0,.4), 0 2px 6px rgba(0,0,0,.3);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.5);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .3s ease, color .3s ease;
}
img, picture, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent); }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--fg); }
p { margin: 0 0 1em; }

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

/* ---------- Top strip ---------- */
.top-strip {
  background: var(--fg);
  color: var(--bg);
  font-size: 13px;
  padding: 10px 0;
  overflow: hidden;
}
[data-theme="dark"] .top-strip { background: var(--bg-muted); color: var(--fg); border-bottom: 1px solid var(--border); }
.top-strip .container { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.top-strip .date { opacity: .75; white-space: nowrap; }
.top-strip .ticker {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  position: relative;
}
.top-strip .ticker-label {
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
  flex-shrink: 0;
}
.ticker-track {
  display: flex;
  gap: 32px;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}
.ticker-track a { opacity: .9; }
.ticker-track a:hover { opacity: 1; color: var(--accent-2); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.top-strip .social { display: flex; gap: 14px; flex-shrink: 0; }
.top-strip .social a { opacity: .75; }
.top-strip .social a:hover { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.4) blur(10px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}
.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.brand img.logo { height: 42px; width: auto; display: block; }
[data-theme="dark"] .brand img.logo { filter: brightness(0) invert(1); }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(197,48,48,.25);
  font-family: var(--font-sans);
  letter-spacing: 0;
}
.brand-name span.dot { color: var(--accent); }
.site-footer .brand img.logo { filter: brightness(0) invert(1); }

/* ---------- Main nav ---------- */
.main-nav {
  display: flex;
  justify-content: center;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-list a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  border-radius: 8px;
  position: relative;
}
.nav-list a:hover { background: var(--bg-muted); color: var(--fg); }
.nav-list .has-sub { position: relative; }
.nav-list .has-sub > a::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 6px;
  opacity: .55;
}
.nav-list .sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  list-style: none;
  padding: 6px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all .18s ease;
}
.nav-list .has-sub:hover .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-list .sub a { display: block; padding: 8px 12px; }

.header-tools { display: flex; gap: 10px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: var(--bg-muted);
  color: var(--fg);
  transition: all .18s ease;
}
.icon-btn:hover { background: var(--accent); color: #fff; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 32px 0 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  min-height: 540px;
}
.hero-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-muted);
  min-height: 540px;
  box-shadow: var(--shadow-md);
}
.hero-main .cover {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .8s ease;
}
.hero-main:hover .cover { transform: scale(1.03); }
.hero-main::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.85) 100%);
}
.hero-main .content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px;
  color: #fff;
  z-index: 2;
}
.hero-main h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-main h2 a { color: #fff; }
.hero-main .meta { opacity: .9; font-size: 13px; }

.hero-side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 16px; }
.hero-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-muted);
  min-height: 170px;
  box-shadow: var(--shadow-sm);
}
.hero-card .cover { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s ease; }
.hero-card:hover .cover { transform: scale(1.04); }
.hero-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.85) 100%); }
.hero-card .content { position: absolute; inset: auto 0 0 0; padding: 20px; color: #fff; z-index: 2; }
.hero-card h3 { font-size: 1.1rem; color: #fff; margin-bottom: 6px; }
.hero-card h3 a { color: #fff; }
.hero-card .meta { font-size: 12px; opacity: .9; }

/* ---------- Category tags ---------- */
.cat-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.cat-tag.games        { background: #7c3aed; }
.cat-tag.tech         { background: #0ea5e9; }
.cat-tag.health       { background: #10b981; }
.cat-tag.beauty       { background: #ec4899; }
.cat-tag.business     { background: #f59e0b; }
.cat-tag.automotive   { background: #475569; }
.cat-tag.food         { background: #f97316; }
.cat-tag.travel       { background: #14b8a6; }
.cat-tag.entertainment { background: #e11d48; }
.cat-tag.sport        { background: #16a34a; }
.cat-tag.arts         { background: #8b5cf6; }
.cat-tag.crypto       { background: #eab308; color: #000; }
.cat-tag.marketing    { background: #06b6d4; }
.cat-tag.movies       { background: #be185d; }
.cat-tag.books        { background: #92400e; }

/* ---------- Section headings ---------- */
.section {
  padding: 48px 0;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--fg);
}
[data-theme="dark"] .section-head { border-bottom-color: var(--fg); }
.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  margin: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  width: 6px; height: 24px;
  background: var(--accent);
  border-radius: 3px;
  display: inline-block;
}
.section-head .link-more {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.section-head .link-more:hover { color: var(--accent); }

/* ---------- Content layout (main + aside) ---------- */
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 24px 0 64px;
}

/* ---------- Post card ---------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.posts-grid.three { grid-template-columns: repeat(3, 1fr); }
.post-card {
  background: var(--bg-elev);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.post-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-muted);
}
.post-card .thumb .cover {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .6s ease;
}
.post-card:hover .thumb .cover { transform: scale(1.05); }
.post-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-card h3 {
  font-size: 1.25rem;
  margin: 10px 0 10px;
}
.post-card h3 a:hover { color: var(--accent); }
.post-card .excerpt {
  color: var(--fg-muted);
  font-size: 14.5px;
  margin: 0 0 16px;
}
.post-card .meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--fg-dim);
}
.post-card .meta .dot { opacity: .5; }

/* ---------- Mixed layout: featured + list ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
.feature-card {
  background: var(--bg-elev);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.feature-card .thumb { aspect-ratio: 4 / 3; background: var(--bg-muted); overflow: hidden; }
.feature-card .thumb .cover { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform .6s ease; }
.feature-card:hover .thumb .cover { transform: scale(1.03); }
.feature-card .body { padding: 28px; }
.feature-card h3 { font-size: 1.75rem; margin: 12px 0 12px; }
.feature-card .excerpt { color: var(--fg-muted); font-size: 15.5px; }

.post-list { display: flex; flex-direction: column; gap: 20px; }
.post-list-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: all .2s ease;
}
.post-list-item:hover { transform: translateX(4px); border-color: var(--accent); }
.post-list-item .thumb {
  width: 120px; height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-muted);
}
.post-list-item .thumb .cover { width: 100%; height: 100%; background-size: cover; background-position: center; }
.post-list-item h4 { font-size: 1rem; margin: 2px 0 6px; line-height: 1.3; }
.post-list-item .meta { font-size: 12px; color: var(--fg-dim); }

/* ---------- Sidebar ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 100px;
  align-self: start;
}
.widget {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.widget h4 {
  font-size: 1.05rem;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget h4::before {
  content: '';
  width: 5px; height: 16px;
  background: var(--accent);
  border-radius: 2px;
}
.search-form {
  display: flex;
  gap: 8px;
}
.search-form input {
  flex: 1;
  padding: 11px 14px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--fg);
  font-family: inherit;
  outline: none;
  transition: all .18s ease;
}
.search-form input:focus { border-color: var(--accent); background: var(--bg); }
.search-form button {
  padding: 0 16px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}
.search-form button:hover { background: var(--accent); color: #fff; }
.widget .recent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.widget .recent-list li { padding-bottom: 14px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 60px 1fr; gap: 12px; }
.widget .recent-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.widget .recent-list .thumb { width: 60px; height: 60px; border-radius: 8px; overflow: hidden; background: var(--bg-muted); }
.widget .recent-list .thumb .cover { width: 100%; height: 100%; background-size: cover; background-position: center; }
.widget .recent-list a { font-weight: 500; font-size: 14px; display: block; line-height: 1.35; }
.widget .recent-list .meta { font-size: 11px; color: var(--fg-dim); margin-top: 4px; }
.tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 5px 11px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--fg-muted);
}
.tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.newsletter-widget { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: #fff; border: 0; }
.newsletter-widget h4 { color: #fff; border-bottom-color: rgba(255,255,255,.3); }
.newsletter-widget h4::before { background: #fff; }
.newsletter-widget p { opacity: .95; font-size: 14px; }
.newsletter-widget input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  margin-bottom: 10px;
  outline: none;
}
.newsletter-widget input::placeholder { color: rgba(255,255,255,.7); }
.newsletter-widget button {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  border-radius: 8px;
  font-size: 14px;
}
.newsletter-widget button:hover { background: #141414; color: #fff; }

/* ---------- Category band ---------- */
.cat-band {
  background: var(--bg-muted);
  padding: 56px 0;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}
.cat-chip {
  background: var(--bg-elev);
  padding: 24px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.cat-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 0;
}
.cat-chip:hover::before { opacity: 1; }
.cat-chip > * { position: relative; z-index: 1; }
.cat-chip:hover { transform: translateY(-4px); border-color: transparent; }
.cat-chip:hover * { color: #fff; }
.cat-chip .emoji { font-size: 32px; margin-bottom: 10px; }
.cat-chip .name { font-weight: 600; font-size: 15px; display: block; margin-bottom: 2px; }
.cat-chip .count { font-size: 12px; color: var(--fg-dim); }

/* ---------- Article page ---------- */
.article {
  padding: 48px 0 64px;
  max-width: 820px;
  margin: 0 auto;
}
.article-header { margin-bottom: 36px; }
.article-header h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  margin: 14px 0 18px;
}
.article-meta {
  display: flex;
  gap: 20px;
  color: var(--fg-muted);
  font-size: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.article-meta .author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--fg);
}
.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-muted);
  margin: 36px 0;
}
.article-body { font-size: 17px; line-height: 1.75; color: var(--fg); }
.article-body p { margin: 0 0 1.4em; }
.article-body h2 { font-size: 1.75rem; margin: 2em 0 .8em; }
.article-body h3 { font-size: 1.3rem; margin: 1.6em 0 .6em; }
.article-body blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  border-left: 4px solid var(--accent);
  background: var(--bg-muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--fg);
}
.article-body ul, .article-body ol { padding-left: 1.4em; margin-bottom: 1.4em; }
.article-body li { margin-bottom: .5em; }
.article-body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 20px 0;
  font-size: 13px;
  color: var(--fg-muted);
}
.breadcrumb a { color: var(--fg-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }

/* ---------- Page header for category/about ---------- */
.page-head {
  padding: 48px 0 32px;
  text-align: center;
  position: relative;
}
.page-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0 0 10px;
}
.page-head p {
  color: var(--fg-muted);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0a0a0b;
  color: #d6d4ce;
  padding: 72px 0 24px;
  margin-top: 48px;
}
[data-theme="dark"] .site-footer { background: #050506; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.site-footer h5 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 18px;
}
.site-footer .brand-name,
.site-footer .brand span.dot { color: #fff; }
.site-footer .foot-about p { color: #a7a59f; font-size: 14.5px; max-width: 320px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #d6d4ce; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.foot-bottom {
  border-top: 1px solid #1e1e21;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #85837d;
}
.foot-social { display: flex; gap: 10px; }
.foot-social a {
  width: 36px; height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  transition: all .18s ease;
}
.foot-social a:hover { background: var(--accent); color: #fff; }

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .posts-grid.three { grid-template-columns: repeat(2, 1fr); }
  .feature-split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .menu-toggle { display: inline-grid; }
  .main-nav {
    position: fixed;
    top: 70px; left: 0; right: 0; bottom: 0;
    background: var(--bg-elev);
    padding: 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 40;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list a { font-size: 16px; padding: 12px 14px; }
  .nav-list .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 16px; }
  .top-strip .date, .top-strip .social { display: none; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-main { min-height: 400px; }
  .posts-grid, .posts-grid.three { grid-template-columns: 1fr; }
  .section { padding: 32px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-bottom { flex-direction: column; text-align: center; }
  .post-list-item { grid-template-columns: 90px 1fr; }
  .post-list-item .thumb { width: 90px; height: 70px; }
  .article-meta { flex-wrap: wrap; gap: 12px; }
  .brand { font-size: 24px; }
  .brand-mark { width: 36px; height: 36px; font-size: 16px; }
}

/* ---------- Fade-in on scroll (optional, requires JS) ---------- */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .01em;
  transition: all .2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--fg); color: var(--bg); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--fg); }
.btn-outline:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- Contact / About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 32px 0 64px;
}
.about-grid .img {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  position: relative;
  overflow: hidden;
}
.about-grid .img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.3) 0%, transparent 40%);
}
.about-grid h2 { font-size: 2.5rem; margin-bottom: 20px; }
.about-grid p { color: var(--fg-muted); font-size: 16.5px; line-height: 1.8; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 32px 0; }
.about-stats .stat { text-align: center; }
.about-stats .stat .num { font-family: var(--font-serif); font-size: 2.8rem; font-weight: 700; color: var(--accent); line-height: 1; }
.about-stats .stat .label { color: var(--fg-muted); margin-top: 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 32px 0 64px;
}
.contact-info { padding: 32px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); }
.contact-info h3 { font-size: 1.4rem; }
.contact-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--bg-muted);
  display: inline-grid;
  place-items: center;
  color: var(--accent);
}
.contact-item .label { font-size: 13px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: .05em; }
.contact-item .value { font-weight: 500; }
.contact-form { padding: 32px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .05em; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  color: var(--fg);
  font-size: 15px;
  outline: none;
  transition: all .18s ease;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--accent); background: var(--bg); }
.form-row textarea { resize: vertical; min-height: 140px; }
@media (max-width: 820px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}
