/* Logus — posts 4:5 (exportáveis) */

.post-frame {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 24px 56px rgba(7, 7, 8, 0.16),
    0 8px 18px rgba(7, 7, 8, 0.06);
  background:
    linear-gradient(165deg, rgba(255,255,255,0.35) 0%, transparent 35%),
    var(--bone);
  color: var(--ink);
}

.post-frame--void {
  background:
    radial-gradient(ellipse 60% 45% at 70% 25%, rgba(226, 255, 61, 0.1), transparent 55%),
    var(--void);
  color: var(--bone);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 28px 60px rgba(7, 7, 8, 0.4);
}

.post-frame__inner {
  position: absolute;
  inset: 0;
  padding: 9%;
  display: flex;
  flex-direction: column;
}

.post-frame__label {
  font-family: var(--font-ui);
  font-size: clamp(9px, 2.2cqi, 11px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.post-frame--void .post-frame__label { color: rgba(230, 225, 214, 0.55); }

.post-frame__counter {
  font-family: var(--font-micro);
  font-size: clamp(10px, 2.4cqi, 12px);
  letter-spacing: 0.08em;
  color: var(--graphite);
  margin-left: auto;
}

.post-frame__top {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.post-frame__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.post-frame__quote {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 7.6cqi, 2.7rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.post-frame__quote .ink { color: var(--ink); font-weight: 700; }
.post-frame__quote .graphite { color: var(--graphite); font-weight: 400; }
.post-frame--void .post-frame__quote .ink { color: var(--bone); }
.post-frame--void .post-frame__quote .signal {
  color: var(--signal);
  font-weight: 700;
}

.post-frame__quote em {
  font-family: var(--font-serif-accent);
  font-style: italic;
  font-weight: 400;
}

.post-frame .signal-orb {
  width: 0.42em;
  height: 0.42em;
}

/* Post 03 split */
.post-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  position: relative;
}
.post-split__palco {
  background: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8%;
}
.post-split__campo {
  background: var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8%;
}
.post-split__word {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 9cqi, 3.2rem);
  letter-spacing: -0.04em;
  font-weight: 700;
  line-height: 0.9;
}
.post-split__palco .post-split__word {
  color: var(--graphite);
  text-decoration: line-through;
  text-decoration-thickness: 0.06em;
}
.post-split__campo .post-split__word { color: var(--ink); }
.post-split__footer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 4.5% 6%;
  background: linear-gradient(transparent, rgba(7,7,8,0.55));
  font-family: var(--font-ui);
  font-size: clamp(0.7rem, 3.2cqi, 0.95rem);
  letter-spacing: -0.02em;
  color: var(--bone);
  line-height: 1.25;
}

/* Post 04 method stack */
.post-method {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  flex: 1;
  overflow: hidden;
  position: relative;
}
.post-method__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.post-method__card:first-child {
  background: linear-gradient(90deg, var(--signal) 0%, var(--bone) 70%);
  border-color: transparent;
}
.post-method__card span {
  font-weight: 600;
  font-size: clamp(0.8rem, 3.4cqi, 1rem);
  letter-spacing: -0.02em;
}
.post-method__card.is-clipped {
  opacity: 0.55;
  transform: translateY(30%);
  mask-image: linear-gradient(to bottom, #000 20%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 85%);
}

/* Post 05 phone */
.post-phone-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}
.post-phone-wrap .device-phone {
  width: min(52%, 200px);
  transform: scale(1);
}

/* Post 06 modules mini */
.post-mods {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 8px;
  flex: 1;
  margin-top: 12px;
}
.post-mods__tracao {
  grid-row: 1 / 4;
  background: var(--ink);
  color: var(--bone);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
}
.post-mods__tracao strong {
  font-size: clamp(1.2rem, 5cqi, 1.7rem);
  letter-spacing: -0.03em;
  margin-top: 8px;
}
.post-mods__tracao p {
  margin-top: auto;
  font-size: 0.75rem;
  color: rgba(230,225,214,0.65);
  line-height: 1.3;
}
.post-mods__item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: clamp(0.75rem, 3.2cqi, 0.95rem);
  letter-spacing: -0.02em;
}
.post-mods__item small {
  display: block;
  font-family: var(--font-micro);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
  font-weight: 400;
  margin-bottom: 4px;
}

/* Post 07 decision log */
.post-log {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.post-log li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(0.9rem, 3.6cqi, 1.1rem);
  letter-spacing: -0.02em;
}
.post-log li em {
  font-family: var(--font-micro);
  font-size: 0.7em;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* Post 08 big type */
.post-big {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 8.5cqi, 2.9rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 700;
}

/* Post 09 end */
.post-end {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 16px;
}
.post-end__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 9.5cqi, 3.4rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 700;
  color: var(--bone);
}
.post-end__tag {
  color: var(--graphite);
  font-size: clamp(0.85rem, 3.4cqi, 1.05rem);
}
.post-end__symbol {
  width: 40px;
  height: 40px;
  color: var(--bone);
  margin-bottom: auto;
}

/* Grid on /campo */
.posts-grid-section {
  padding: 80px 20px 100px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.posts-grid-section__head {
  width: min(var(--max-w), 100%);
  margin: 0 auto 36px;
}
.posts-grid-section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-top: 12px;
}
.posts-grid {
  width: min(var(--max-w), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .posts-grid { grid-template-columns: 1fr; max-width: 360px; }
}
.posts-grid a.post-card-link {
  display: block;
  color: inherit;
  transition: transform 0.25s var(--ease);
}
.posts-grid a.post-card-link:hover {
  transform: translateY(-4px);
}
.posts-grid a.post-card-link:hover .post-frame {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.45) inset,
    0 32px 64px rgba(7, 7, 8, 0.2);
}
.posts-grid .post-frame {
  max-width: none;
  container-type: inline-size;
}

/* Standalone post page */
.post-page {
  min-height: 100dvh;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 16px 40px;
  gap: 20px;
}
.post-page__nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(7,7,8,0.9);
  color: var(--graphite);
  font-family: var(--font-micro);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 10;
}
.post-page__nav a { color: var(--bone); }
.post-page .post-frame {
  width: min(100%, 420px);
  container-type: inline-size;
}


/* Studio vignette on post frames */
.post-frame::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse 90% 80% at 50% 45%, transparent 45%, rgba(7, 7, 8, 0.07) 100%);
  border-radius: inherit;
}
.post-frame--void::before {
  background:
    radial-gradient(ellipse 70% 50% at 75% 20%, rgba(226, 255, 61, 0.06), transparent 50%),
    radial-gradient(ellipse 90% 80% at 50% 50%, transparent 40%, rgba(7, 7, 8, 0.35) 100%);
}
.post-frame__inner { z-index: 1; }
