/* Glimpse blog. Tokens, nav and footer come from site.css; this file only styles the article and index layouts. */

:root {
    --bg: #010e0f;
    --card: #06181a;
    --card-2: #0a2224;
    --pill: #0d2a2c;
    --pill-2: #143b3d;
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.16);
    --text: #ffffff;
    --text-2: #9fb8b5;
    --text-3: #6e8683;
    --cyan: #5cebd6;
    --cyan-deep: #23a9a0;
    --cyan-soft: rgba(92,235,214,0.14);
    --cyan-line: rgba(92,235,214,0.28);
    --radius-card: 28px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


::selection { background: var(--cyan); color: #001217; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── PAGE HEAD ── */
.page-top { position: relative; padding: 168px 0 0; overflow: hidden; }
.page-glow {
    position: absolute; left: 50%; top: -260px; transform: translateX(-50%);
    width: 1100px; height: 700px; pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(92,235,214,0.13) 0%, rgba(10,168,196,0.05) 38%, transparent 70%);
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 12px; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase; color: #b5f2e6;
    background: var(--cyan-soft); border: 1px solid var(--cyan-line);
    border-radius: 999px; padding: 8px 16px;
}
html:lang(ja) .eyebrow { letter-spacing: 0.1em; }
.hud-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
    box-shadow: 0 0 8px 1px rgba(92,235,214,0.8);
    animation: navpulse 2.4s ease-in-out infinite;
}

.page-title {
    font-family: var(--head); font-weight: 600;
    font-size: clamp(38px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.035em;
    margin-top: 26px; max-width: 900px;
}
html:lang(ja) .page-title { line-height: 1.2; letter-spacing: -0.02em; }
.page-lede {
    margin-top: 22px; max-width: 660px;
    font-size: 20px; line-height: 1.6; color: var(--text-2); letter-spacing: -0.012em;
}

/* ── BLOG INDEX ── */
.post-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
    margin: 64px 0 0;
}
.post-card {
    display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-card); padding: 32px 30px 30px;
    transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.post-card:hover { border-color: var(--border-hover); background: var(--card-2); transform: translateY(-3px); }
.post-card.featured { grid-column: 1 / -1; }
.post-tag {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--cyan);
}
html:lang(ja) .post-tag { letter-spacing: 0.08em; }
.post-card h2 {
    font-family: var(--head); font-weight: 600; letter-spacing: -0.025em;
    font-size: 25px; line-height: 1.18; margin-top: 14px;
}
.post-card.featured h2 { font-size: clamp(28px, 3.4vw, 38px); }
html:lang(ja) .post-card h2 { line-height: 1.35; letter-spacing: -0.01em; }
.post-card p { margin-top: 14px; color: var(--text-2); font-size: 16px; line-height: 1.65; }
.post-meta {
    margin-top: auto; padding-top: 22px;
    display: flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 12px; color: var(--text-3); letter-spacing: 0.04em;
}
.post-meta .sep { opacity: 0.5; }
.post-more {
    margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
    color: var(--cyan); font-size: 15px; font-weight: 500;
}
.post-more svg { width: 15px; height: 15px; transition: transform 0.25s ease; }
.post-card:hover .post-more svg { transform: translateX(4px); }

/* ── ARTICLE ── */
/* An article header shares the body's reading column, so the title, the meta
   line and the prose all sit on one left edge. 720 + 24 of padding each side. */
.article-top .container { max-width: 768px; }

.article-meta {
    margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: 13px; color: var(--text-3); letter-spacing: 0.04em;
}
.article-meta .sep { opacity: 0.5; }

/* 768 = a 720px measure plus the 24px gutters, matching .article-top .container
   under border-box sizing so the header and the prose share one left edge. */
.article-body {
    max-width: 768px; margin: 0 auto; padding: 60px 24px 0;
    font-size: 18.5px; line-height: 1.78; color: #d6d6d6; letter-spacing: -0.005em;
}
html:lang(ja) .article-body { font-size: 17px; line-height: 1.95; letter-spacing: 0; }
.article-body > * + * { margin-top: 26px; }
.article-body h2 {
    font-family: var(--head); font-weight: 600; color: #fff;
    font-size: 31px; line-height: 1.18; letter-spacing: -0.028em;
    margin-top: 58px; padding-top: 6px;
}
html:lang(ja) .article-body h2 { font-size: 27px; line-height: 1.4; letter-spacing: -0.01em; }
.article-body h3 {
    font-family: var(--head); font-weight: 600; color: #fff;
    font-size: 21px; line-height: 1.3; letter-spacing: -0.02em; margin-top: 40px;
}
.article-body strong { color: #fff; font-weight: 600; }
.article-body a:not(.btn):not(.cta-card a) {
    color: var(--cyan); text-decoration: underline;
    text-decoration-color: rgba(92,235,214,0.4); text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}
.article-body a:not(.btn):not(.cta-card a):hover { text-decoration-color: var(--cyan); }

.article-body ul, .article-body ol { padding-left: 4px; list-style: none; }
.article-body ol { counter-reset: step; }
.article-body li { position: relative; padding-left: 32px; margin-top: 14px; }
.article-body ul > li::before {
    content: ''; position: absolute; left: 6px; top: 12px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--cyan); box-shadow: 0 0 8px 1px rgba(92,235,214,0.5);
}
.article-body ol > li::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: 2px;
    font-family: var(--mono); font-size: 13px; color: var(--cyan);
    width: 22px; text-align: center;
}

.lede-para { font-size: 21px; line-height: 1.68; color: #e8e8e8; }
html:lang(ja) .lede-para { font-size: 19px; }

blockquote {
    border-left: 2px solid var(--cyan-line);
    padding: 4px 0 4px 26px; margin-top: 34px;
    font-family: var(--head); font-weight: 500;
    font-size: 23px; line-height: 1.45; letter-spacing: -0.02em; color: #fff;
}
html:lang(ja) blockquote { font-size: 20px; line-height: 1.7; }

.callout {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 22px; padding: 28px 30px; margin-top: 36px;
    font-size: 17px; line-height: 1.7;
}
.callout h3 { margin-top: 0 !important; font-size: 18px; }
.callout > * + * { margin-top: 14px; }
.callout.tip { border-color: var(--cyan-line); background: rgba(92,235,214,0.05); }

.cta-card {
    margin: 64px auto 0; max-width: 768px;
    background: linear-gradient(160deg, #101010 0%, #0a0a0a 100%);
    border: 1px solid var(--cyan-line); border-radius: var(--radius-card);
    padding: 42px 38px; text-align: center;
}
.cta-card h3 {
    font-family: var(--head); font-weight: 600; color: #fff;
    font-size: 27px; line-height: 1.2; letter-spacing: -0.028em; margin: 0;
}
html:lang(ja) .cta-card h3 { font-size: 23px; line-height: 1.45; }
.cta-card p { margin-top: 14px; color: var(--text-2); font-size: 16.5px; line-height: 1.65; }
.cta-row { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 15px 28px; border-radius: 16px;
    font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #fff; color: #000 !important; }
.btn-primary:hover { background: #e8e8e8; }
.btn-ghost { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); }

/* ── RELATED ── */
.related { max-width: 768px; margin: 76px auto 0; padding: 0 24px; }
.related h2 {
    font-family: var(--head); font-weight: 600; font-size: 15px;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3);
}
html:lang(ja) .related h2 { letter-spacing: 0.08em; }
.related-list { margin-top: 22px; display: grid; gap: 12px; }
.related-list a {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 18px; padding: 22px 24px;
    font-family: var(--head); font-weight: 500; font-size: 18px;
    letter-spacing: -0.02em; line-height: 1.3;
    transition: border-color 0.25s ease, background 0.25s ease;
}
html:lang(ja) .related-list a { line-height: 1.5; font-size: 16px; }
.related-list a:hover { border-color: var(--border-hover); background: var(--card-2); }
.related-list svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--cyan); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .post-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .page-top { padding-top: 128px; }
    .article-body { font-size: 17.5px; padding-top: 46px; }
    .article-body h2 { font-size: 26px; margin-top: 46px; }
    .cta-card { padding: 34px 26px; }
    .post-card { padding: 28px 24px 26px; }
}
