/* Blog index + post pages */

/* ─── Blog top bar (dark, oigoworks brand) ─── */
.blog-bar{
  position: sticky; top: 0; z-index: 50;
  display:flex; align-items:center; justify-content:space-between;
  padding: 10px 18px;
  background: var(--ink); color: var(--paper);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.blog-bar .lights{ display:flex; gap: 7px; align-items:center; }
.blog-bar .lights .lt{ width: 12px; height: 12px; border-radius: 999px; }
.blog-bar .lights .lt.r{ background:#ff5f57; cursor: pointer; }
.blog-bar .lights .lt.y{ background:#febc2e; }
.blog-bar .lights .lt.g{ background:#28c840; }
.blog-bar .title{ display:flex; align-items:center; gap: 12px; flex: 1; padding-left: 14px; font-family: var(--f-mono); font-size: 12px; opacity: 0.95; min-width: 0; white-space: nowrap; overflow: hidden; }
.blog-bar .title b{ font-family: var(--f-display); font-weight: 600; font-size: 15px; flex: 0 0 auto; }
.blog-bar .crumb{ display:inline-flex; align-items:center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.08); cursor: pointer; transition: background .12s; }
.blog-bar .crumb:hover{ background: rgba(255,255,255,0.18); }
.blog-bar .right{ display:flex; align-items:center; gap: 14px; font-family: var(--f-mono); font-size: 12px; }
.blog-bar .right .search{
  display:flex; align-items:center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16);
  width: 280px;
}
.blog-bar .right .search input{
  background: transparent; border: 0; outline: 0; color: inherit; font: inherit; flex: 1; font-size: 13px;
}
.blog-bar .right .search input::placeholder{ color: rgba(255,255,255,0.5); }

/* ─── Blog index hero ─── */
.blog-hero{
  padding: 64px 32px 36px;
  max-width: 1280px; margin: 0 auto;
}
.blog-hero .eye{ font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.blog-hero h1{
  font-family: var(--f-display); font-weight: 600; letter-spacing: -0.025em;
  font-size: 96px; line-height: 0.95; margin: 14px 0 0;
}
.blog-hero h1 .ink{ color: var(--ink-3); }
.blog-hero .lead{ font-size: 19px; color: var(--ink-2); max-width: 540px; line-height: 1.5; margin: 18px 0 0; }

/* ─── Category bar ─── */
.blog-cats{
  position: sticky; top: 49px; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 14px 32px;
}
.blog-cats .inner{
  max-width: 1280px; margin: 0 auto;
  display:flex; align-items:center; justify-content:space-between; gap: 16px;
  overflow-x: auto;
}
.blog-cats .tabs{ display:flex; gap: 4px; padding: 4px; background: var(--paper-2); border-radius: 999px; border: 1px solid var(--line); }
.blog-cats .tabs button{
  border: 0; background: transparent;
  padding: 7px 16px; border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  cursor: pointer; white-space: nowrap;
}
.blog-cats .tabs button:hover{ color: var(--ink); }
.blog-cats .tabs button.on{ background: var(--ink); color: var(--paper); }
.blog-cats .meta{ font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; }

/* ─── Featured posts (top of index) ─── */
.blog-featured{
  padding: 36px 32px 0;
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px;
}

.post-card{
  display: flex; flex-direction: column;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.post-card:hover{ transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.18); border-color: var(--rule); }
.post-card .cover{
  background: var(--p-accent, var(--ink));
  color: var(--p-accent-tx, var(--paper));
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.post-card.large .cover{ min-height: 360px; }
.post-card.medium .cover{ min-height: 220px; }
.post-card.small .cover{ min-height: 140px; }
.post-card .cover .tag{
  display:inline-flex; align-items:center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.18); color: inherit;
  font-family: var(--f-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.post-card.dark-cover .cover .tag{ background: rgba(255,255,255,0.18); }
.post-card .cover .deco{
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.9;
}
.post-card .body{ padding: 24px 26px 26px; flex: 1; display:flex; flex-direction:column; gap: 12px; }
.post-card.large .body{ padding: 32px; }
.post-card .meta{ display:flex; align-items:center; gap: 10px; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
.post-card .meta .cat{ color: var(--p-accent, var(--ink)); font-weight: 600; }
.post-card h3{
  font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.06; margin: 0;
  font-size: 24px;
  text-wrap: balance;
}
.post-card.large h3{ font-size: 38px; }
.post-card.medium h3{ font-size: 26px; }
.post-card.small h3{ font-size: 20px; }
.post-card .dek{ color: var(--ink-2); font-size: 15px; line-height: 1.45; margin: 0; }
.post-card.small .dek{ display: none; }
.post-card .foot{ display:flex; align-items:center; justify-content:space-between; margin-top: auto; padding-top: 6px; }
.post-card .author{ display:flex; align-items:center; gap: 8px; font-size: 13px; }
.post-card .avatar{
  width: 26px; height: 26px; border-radius: 999px; flex: 0 0 auto;
  background: var(--p-accent, var(--paper-3)); color: var(--p-accent-tx, var(--ink));
  display:flex; align-items:center; justify-content:center;
  font-family: var(--f-display); font-weight: 600; font-size: 10px;
}
.post-card .read{ font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }

/* ─── Grid (rest of posts) ─── */
.blog-grid{
  padding: 36px 32px 96px;
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}

/* Newsletter strip */
.blog-newsletter{
  background: var(--ink); color: var(--paper);
  padding: 60px 32px;
}
.blog-newsletter .inner{
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.blog-newsletter h2{
  font-family: var(--f-display); font-weight: 600; letter-spacing: -0.025em;
  font-size: 44px; line-height: 1.04; margin: 0 0 12px;
}
.blog-newsletter p{ opacity: 0.7; font-size: 15px; margin: 0; }
.blog-newsletter form{
  display: flex; gap: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px; padding: 6px;
}
.blog-newsletter form input{
  flex: 1; border: 0; background: transparent; color: var(--paper);
  font: inherit; font-size: 15px; outline: 0;
  padding: 10px 14px;
}
.blog-newsletter form input::placeholder{ color: rgba(255,255,255,0.5); }
.blog-newsletter form button{
  border: 0;
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 500;
  padding: 10px 20px; border-radius: 999px;
  cursor: pointer;
}
.blog-newsletter form button:hover{ background: var(--paper-2); }

/* ─── Cover decorations (per-post) ─── */
.cover-deco{
  position: absolute; inset: 0;
  display:flex; align-items:flex-end; justify-content:flex-end;
  padding: 28px;
  pointer-events: none;
}
.cover-deco .big{
  font-family: var(--f-display); font-weight: 600;
  font-size: 240px; letter-spacing: -0.05em; line-height: 0.8;
  opacity: 0.18;
  color: inherit;
}

/* Pricing chart on hotel post */
.deco-chart{ position: absolute; right: 0; bottom: 0; left: 30%; height: 60%; opacity: 0.85; }

/* ─── Single post page ─── */
.post-view{
  background: var(--paper);
}
.post-hero{
  background: var(--p-accent, var(--ink));
  color: var(--p-accent-tx, var(--paper));
  padding: 80px 32px 80px;
  position: relative;
  overflow: hidden;
}
.post-hero .inner{ max-width: 880px; margin: 0 auto; }
.post-hero .cat{
  display:inline-flex; align-items:center; gap: 8px;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.16); color: inherit;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 24px;
}
.post-hero h1{
  font-family: var(--f-display); font-weight: 600;
  font-size: 64px; line-height: 1.02; letter-spacing: -0.025em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.post-hero .dek{ font-size: 20px; line-height: 1.45; opacity: 0.9; margin: 0; max-width: 780px; }
.post-hero .meta{
  display:flex; align-items:center; gap: 14px; flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-family: var(--f-mono); font-size: 12px; opacity: 0.85;
}
.post-hero .author{ display:flex; align-items:center; gap: 10px; font-family: var(--f-body); font-size: 14px; }
.post-hero .author .avatar{
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(255,255,255,0.16);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--f-display); font-weight: 600; font-size: 13px;
}
.post-hero .author b{ display:block; font-family: var(--f-display); font-weight: 600; font-size: 14px; }
.post-hero .author span{ opacity: 0.75; font-size: 12px; }

/* Reader body */
.post-body{
  max-width: 720px; margin: 0 auto;
  padding: 72px 32px;
  font-size: 19px; line-height: 1.7;
  color: var(--ink-2);
}
.post-body > * + *{ margin-top: 1.4em; }
.post-body h2{
  font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em;
  font-size: 34px; line-height: 1.15;
  color: var(--ink);
  margin-top: 2.2em;
}
.post-body p{ margin: 0; }
.post-body p:first-of-type::first-letter{
  font-family: var(--f-display); font-weight: 600;
  font-size: 64px; float: left; line-height: 0.9;
  margin: 6px 12px 0 0; color: var(--p-accent, var(--ink));
}
.post-body .pull{
  border-left: 4px solid var(--p-accent, var(--ink));
  padding: 8px 0 8px 24px;
  font-family: var(--f-display); font-weight: 500;
  font-size: 26px; line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.post-body ol, .post-body ul{ padding-left: 1.4em; }
.post-body li{ margin-bottom: 0.6em; }

/* Article footer: tags, share */
.post-foot{
  max-width: 720px; margin: 0 auto;
  padding: 0 32px 60px;
  display:flex; justify-content:space-between; align-items:center; flex-wrap: wrap; gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.post-foot .tags{ display:flex; gap: 8px; }
.post-foot .tags .t{
  padding: 4px 12px; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
}
.post-foot .share{ display:flex; gap: 8px; font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); align-items:center; }
.post-foot .share a{
  width: 32px; height: 32px; display:flex; align-items:center; justify-content:center;
  border: 1px solid var(--line); border-radius: 999px;
}
.post-foot .share a:hover{ background: var(--paper-2); }

/* Related */
.post-related{
  background: var(--paper-2);
  padding: 60px 32px 80px;
  border-top: 1px solid var(--line);
}
.post-related .inner{ max-width: 1080px; margin: 0 auto; }
.post-related h3{
  font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em;
  font-size: 30px; margin: 0 0 24px;
}
.post-related .grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

/* Responsive */
@media (max-width: 1000px){
  .blog-hero h1{ font-size: 64px; }
  .blog-featured, .blog-grid{ grid-template-columns: 1fr 1fr; }
  .post-hero h1{ font-size: 48px; }
  .post-related .grid{ grid-template-columns: 1fr 1fr; }
  .blog-newsletter .inner{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .blog-bar .title > span:not(.crumb){ display: none; }
  .blog-featured, .blog-grid, .post-related .grid{ grid-template-columns: 1fr; }
  .blog-hero h1{ font-size: 48px; }
}
