/* ===== VRMA Projects — Journal styles ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #0a0a0d; -webkit-text-size-adjust: 100%; }
:root {
  --bg: #0a0a0d;
  --fg: #ededed;
  --muted: rgba(237,237,237,0.64);
  --label: rgba(237,237,237,0.44);
  --faint: rgba(237,237,237,0.26);
  --hairline: rgba(237,237,237,0.10);
  --accent: #6f8bff;
  --label-track: 0.22em;
  --ease: cubic-bezier(0.22,1,0.36,1);
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-feature-settings: 'ss01','cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}
/* Static, very soft ambient wash — never animated, keeps reading calm */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 18% 0%, rgba(56,104,255,0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(99,102,241,0.08), transparent 60%);
}
.wrap { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ---- top bar ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 0;
}
.topbar .brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.topbar .brand img { width: 92px; height: auto; display: block; opacity: 0.95; transition: opacity 300ms var(--ease); }
.topbar .brand:hover img { opacity: 1; }
.topbar .back {
  font-size: 11px; letter-spacing: var(--label-track); text-transform: uppercase;
  color: var(--label); text-decoration: none; transition: color 300ms var(--ease);
}
.topbar .back:hover { color: var(--fg); }

/* ---- journal index ---- */
.j-head { padding: 72px 0 8px; }
.j-head h1 { font-size: clamp(34px,6vw,52px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.j-head p { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 540px; }

.post-list { padding: 40px 0 96px; }
.post-card {
  display: grid; grid-template-columns: 210px 1fr; gap: 28px; align-items: start;
  text-decoration: none; color: inherit;
  padding: 32px 0; border-top: 1px solid var(--hairline);
  transition: opacity 300ms var(--ease);
}
.post-list .post-card:last-child { border-bottom: 1px solid var(--hairline); }
.post-card:hover { opacity: 0.92; }
.post-card .thumb {
  width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  background: #14141a; border: 1px solid var(--hairline); display: block;
}
.post-card .thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 600ms var(--ease); will-change: transform;
}
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body-col { min-width: 0; }
@media (max-width: 640px) {
  .post-card { grid-template-columns: 1fr; gap: 14px; }
  .post-card .thumb { aspect-ratio: 16 / 9; }
}
.post-card .cat {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.post-card h2 {
  margin-top: 12px; font-size: clamp(22px,3.4vw,28px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.18;
}
.post-card .excerpt { margin-top: 12px; color: var(--muted); font-size: 16px; }
.post-card .meta { margin-top: 16px; font-size: 13px; color: var(--label); }
.post-card .more {
  margin-top: 14px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg);
  display: inline-flex; align-items: center; gap: 8px;
}
.post-card .more .arrow { transition: transform 300ms var(--ease); display: inline-block; }
.post-card:hover .more .arrow { transform: translateX(4px); }

/* ---- article hero ---- */
.hero-wrap { max-width: 880px; margin: 24px auto 0; padding: 0 24px; position: relative; z-index: 1; }
.hero {
  position: relative; width: 100%; height: clamp(260px, 44vw, 440px);
  overflow: hidden; border-radius: 18px; border: 1px solid var(--hairline);
}
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,13,0.10) 0%, rgba(10,10,13,0) 35%, rgba(10,10,13,0.60) 100%);
}

/* ---- Apple iOS frosted-glass summary ---- */
.summary {
  position: relative; z-index: 2;
  max-width: 720px; margin: -72px auto 0; padding: 24px 26px 26px;
  border-radius: 22px;
  background: rgba(20, 20, 27, 0.55);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
          backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 0 rgba(255,255,255,0.10) inset, 0 24px 60px rgba(0,0,0,0.45);
}
.summary .eyebrow {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: 9px;
}
.summary .eyebrow::before {
  content: ''; width: 15px; height: 15px; border-radius: 5px;
  background: linear-gradient(135deg, #6f8bff, #b0c0e6);
  box-shadow: 0 0 12px rgba(111,139,255,0.55);
}
.summary ul { list-style: none; margin: 15px 0 0; display: flex; flex-direction: column; gap: 11px; }
.summary li {
  font-size: 15px; line-height: 1.5; color: rgba(237,237,237,0.93);
  padding-left: 22px; position: relative;
}
.summary li::before {
  content: ''; position: absolute; left: 3px; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
@media (prefers-reduced-motion: reduce) { .post-card:hover .thumb img { transform: none; } }

/* ---- article ---- */
article { padding: 40px 0 40px; }
article .cat { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
article h1 {
  margin-top: 16px; font-size: clamp(30px,5.4vw,46px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08;
}
article .byline { margin-top: 20px; font-size: 14px; color: var(--label); }
article .body { margin-top: 40px; }
article .body p { font-size: 18px; line-height: 1.75; color: rgba(237,237,237,0.88); margin-bottom: 24px; }
article .body h2 {
  margin-top: 44px; margin-bottom: 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg);
}
article .body p:last-child { color: var(--muted); }

.article-foot {
  border-top: 1px solid var(--hairline); margin-top: 24px; padding: 40px 0 96px;
  display: flex; flex-direction: column; gap: 24px;
}
.article-foot .cta {
  font-size: 11px; letter-spacing: var(--label-track); text-transform: uppercase; color: var(--muted);
}
.article-foot a.email { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--faint); padding-bottom: 2px; }
.article-foot a.email:hover { border-color: var(--fg); }
.article-foot a.back {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); text-decoration: none;
}
.article-foot a.back:hover { color: var(--fg); }

/* ---- shared footer ---- */
.site-foot {
  position: relative; z-index: 1;
  border-top: 1px solid var(--hairline);
  padding: 28px 0; margin-top: 0;
  font-size: 11px; letter-spacing: var(--label-track); text-transform: uppercase; color: var(--label);
}
.site-foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--label); text-decoration: none; }
.site-foot a:hover { color: var(--fg); }

@media (max-width: 520px) {
  article .body p { font-size: 17px; }
  .site-foot .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
}
