/* ══════════════════════════════════════════════════════════════════
   Styles Barber Shop — Blog / Journal stylesheet
   Shares the art-deco system of the homepage (same tokens & fonts).
   ══════════════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink:        #15110d;
  --ink-2:      #1d1813;
  --ink-3:      #261f18;
  --ink-4:      #2f2720;
  --bone:       #f4ecdd;
  --bone-dim:   #c3b6a1;
  --muted:      #8c8071;
  --red:        #cf2231;
  --red-deep:   #9c1722;
  --blue:       #2452a6;
  --blue-light: #5a8aE8;
  --brass:      #c9a227;
  --brass-light:#ecca5e;
  --rose:       #d98a9a;
  --line:       rgba(244,236,221,0.10);
  --line-soft:  rgba(244,236,221,0.06);
  --serif: 'Fraunces', Georgia, serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --display: 'Anton', Impact, sans-serif;
  --fancy: 'Abril Fatface', Georgia, serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  background: var(--ink);
  color: var(--bone);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--brass); color: var(--ink); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ink-2); }
::-webkit-scrollbar-thumb { background: var(--red); }
a { color: inherit; }
img { max-width: 100%; display: block; }

[data-es] { display: none; }
.lang-es [data-en] { display: none; }
.lang-es [data-es] { display: revert; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 40px;
  background: rgba(21,17,13,0.82);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
  transition: padding 0.3s, background 0.3s;
}
nav.scrolled { padding: 11px 40px; background: rgba(21,17,13,0.96); }
.nav-logo {
  font-family: var(--display); font-size: 1.55rem; letter-spacing: 2px;
  text-decoration: none; color: var(--bone); text-transform: uppercase;
  display: flex; align-items: center; gap: 9px; line-height: 1;
}
.nav-logo .blade { width: 11px; height: 26px; background: linear-gradient(180deg,var(--red),var(--blue)); display: inline-block; transform: skewX(-12deg); }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
  color: var(--bone-dim); text-decoration: none;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 1.5px;
  text-transform: uppercase; transition: color 0.3s; position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--brass); transition: width 0.3s;
}
.nav-links a:hover { color: var(--bone); }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; gap: 0; overflow: hidden; flex-shrink: 0; border: 1px solid var(--line); }
.lang-btn {
  padding: 7px 13px; font-family: var(--mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 2px; cursor: pointer; background: transparent;
  color: var(--muted); border: none; transition: all 0.25s;
}
.lang-btn.active { background: var(--bone); color: var(--ink); }
.lang-btn:hover:not(.active) { color: var(--bone); }

/* ── SOCIAL ICONS ── */
.social-row { display: flex; align-items: center; gap: 10px; }
.social-ic {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--bone-dim);
  transition: all 0.3s; border-radius: 2px;
}
.social-ic svg { width: 17px; height: 17px; }
.social-ic.ig:hover { color: var(--bone); border-color: var(--rose); background: linear-gradient(135deg, rgba(217,138,154,0.22), rgba(207,34,49,0.22)); transform: translateY(-2px); }
.social-ic.fb:hover { color: var(--bone); border-color: var(--blue-light); background: rgba(36,82,166,0.25); transform: translateY(-2px); }

/* ── PROGRESS BAR ── */
.read-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300; background: linear-gradient(90deg, var(--red), var(--brass)); transition: width 0.1s linear; }

/* ── ARTICLE HERO ── */
.art-hero { position: relative; min-height: 74vh; display: flex; align-items: flex-end; overflow: hidden; padding: 130px 40px 56px; }
.art-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(0.15) contrast(1.05); }
.art-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,17,13,0.55) 0%, rgba(21,17,13,0.72) 45%, rgba(21,17,13,0.97) 100%);
}
.art-hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; width: 100%; }
.crumbs { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--bone-dim); margin-bottom: 20px; }
.crumbs a { color: var(--bone-dim); text-decoration: none; }
.crumbs a:hover { color: var(--brass-light); }
.art-cat {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; color: var(--ink);
  background: var(--brass); padding: 6px 14px; margin-bottom: 20px; font-weight: 700;
}
.art-cat.rose { background: var(--rose); }
.art-cat.blue { background: var(--blue-light); }
.art-cat.red  { background: var(--red); color: var(--bone); }
.art-title {
  font-family: var(--display); font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.92; letter-spacing: 1px; text-transform: uppercase; color: var(--bone);
}
.art-title em { font-family: var(--fancy); font-style: italic; text-transform: none; color: var(--brass-light); font-weight: 400; }
.art-dek { font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 2.2vw, 1.4rem); color: var(--bone-dim); margin-top: 22px; max-width: 620px; }
.art-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.art-meta .dot { width: 4px; height: 4px; background: var(--red); border-radius: 50%; }

/* ── ARTICLE BODY ── */
.article { max-width: 720px; margin: 0 auto; padding: 64px 24px 40px; }
.article p { font-size: 1.12rem; color: #e7ddca; margin-bottom: 1.5em; }
.article p.lead { font-size: 1.32rem; line-height: 1.6; color: var(--bone); }
.article p.lead::first-letter {
  font-family: var(--fancy); float: left; font-size: 4.4rem; line-height: 0.78;
  padding: 6px 14px 0 0; color: var(--red);
}
.article h2 {
  font-family: var(--display); font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  letter-spacing: 0.5px; text-transform: uppercase; color: var(--bone);
  margin: 2em 0 0.6em; line-height: 1;
}
.article h2 em { font-family: var(--fancy); font-style: italic; text-transform: none; color: var(--brass-light); font-weight: 400; }
.article h2::before { content: '✦'; color: var(--red); font-size: 0.9rem; margin-right: 12px; vertical-align: middle; }
.article ul { margin: 0 0 1.6em 0; padding-left: 0; list-style: none; }
.article li { font-size: 1.1rem; color: #e7ddca; padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line-soft); }
.article li::before { content: '▸'; color: var(--brass); position: absolute; left: 6px; top: 8px; }
.article a.inline { color: var(--blue-light); text-decoration: none; border-bottom: 1px solid rgba(90,138,232,0.4); }
.article a.inline:hover { color: var(--brass-light); border-color: var(--brass-light); }

.pull {
  font-family: var(--fancy); font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.28;
  color: var(--bone); border-left: 3px solid var(--red); padding: 6px 0 6px 26px; margin: 1.8em 0;
}
.pull span { color: var(--brass-light); }

.art-figure { margin: 2.4em 0; }
.art-figure img { width: 100%; border: 1px solid var(--line); filter: grayscale(0.1); }
.art-figure figcaption { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.5px; color: var(--muted); margin-top: 12px; text-align: center; }

/* social note box */
.note-box {
  border: 1px solid var(--line); background: var(--ink-2); padding: 26px 28px; margin: 2.4em 0;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.note-box .nb-txt { flex: 1; min-width: 200px; }
.note-box .nb-txt b { font-family: var(--display); font-size: 1.2rem; letter-spacing: 1px; text-transform: uppercase; display: block; margin-bottom: 6px; }
.note-box .nb-txt span { font-size: 0.98rem; color: var(--bone-dim); }

/* CTA */
.art-cta { text-align: center; padding: 30px 0 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 16px 30px;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none; transition: all 0.3s; cursor: pointer;
  border: none; margin: 6px;
}
.btn-primary { background: var(--red); color: var(--bone); }
.btn-primary:hover { background: var(--red-deep); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(207,34,49,0.35); }
.btn-ghost { background: transparent; color: var(--bone); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-light); transform: translateY(-3px); }

.pole { height: 1px; width: 100%; background: linear-gradient(90deg, transparent, var(--brass) 18%, var(--brass) 82%, transparent); opacity: 0.45; }

/* ── RELATED / MORE ── */
.more { max-width: 1140px; margin: 0 auto; padding: 70px 24px; }
.more-head { font-family: var(--display); font-size: 1.8rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 30px; }
.more-head em { font-family: var(--fancy); font-style: italic; text-transform: none; color: var(--brass-light); font-weight: 400; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--line); background: var(--ink-2); overflow: hidden;
  transition: transform 0.4s, border-color 0.4s;
}
.post-card:hover { transform: translateY(-6px); border-color: var(--brass); }
.post-card .pc-img { aspect-ratio: 16/10; overflow: hidden; background: var(--ink-3); }
.post-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; filter: grayscale(0.15); }
.post-card:hover .pc-img img { transform: scale(1.06); filter: grayscale(0); }
.post-card .pc-body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.pc-cat { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 2px; text-transform: uppercase; color: var(--brass-light); margin-bottom: 10px; }
.pc-title { font-family: var(--display); font-size: 1.4rem; line-height: 1; letter-spacing: 0.5px; text-transform: uppercase; color: var(--bone); margin-bottom: 12px; }
.pc-ex { font-size: 0.94rem; color: var(--bone-dim); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.pc-more { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--red); }
.post-card:hover .pc-more { color: var(--brass-light); }

/* ── FOOTER ── */
footer { background: var(--ink-2); border-top: 1px solid var(--line-soft); }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 46px 40px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; }
.footer-logo { font-family: var(--display); font-size: 1.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--bone); }
.footer-logo span { color: var(--brass-light); }
.footer-copy { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 1px; line-height: 1.8; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 880px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .post-grid { grid-template-columns: 1fr; }
  .art-hero { padding: 120px 22px 44px; }
}
@media (max-width: 600px) {
  .article { padding: 48px 20px 30px; }
  .article p { font-size: 1.06rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
