/**
 * NARITA TIME - タイポグラフィ
 *
 * 雑誌レベルの文字組み。
 * BRUTUS、暮しの手帖の系譜にある読書体験。
 *
 * @package naritatime
 */

/* ============================================================
   見出し階層
   ============================================================ */

.ntm-theme h1,
.ntm-theme h2,
.ntm-theme h3,
.ntm-theme h4,
.ntm-theme h5,
.ntm-theme h6 {
    font-family: var(--ntm-font-serif);
    font-weight: 700;
    color: var(--ntm-text-primary);
    line-height: var(--ntm-leading-tight);
    letter-spacing: var(--ntm-tracking-tight);
    margin: 0 0 var(--ntm-space-5);
}

.ntm-theme h1 {
    font-size: var(--ntm-text-4xl);
    font-weight: 900;
}

.ntm-theme h2 {
    font-size: var(--ntm-text-3xl);
    line-height: var(--ntm-leading-tight);
}

.ntm-theme h3 {
    font-size: var(--ntm-text-2xl);
}

.ntm-theme h4 {
    font-size: var(--ntm-text-xl);
}

.ntm-theme h5 {
    font-size: var(--ntm-text-lg);
}

.ntm-theme h6 {
    font-size: var(--ntm-text-md);
}

/* ============================================================
   本文段落
   ============================================================ */

.ntm-theme p {
    font-family: var(--ntm-font-sans);
    font-size: var(--ntm-text-md);
    line-height: var(--ntm-leading-relaxed);
    color: var(--ntm-text-body);
    margin: 0 0 1.8em;
}

.ntm-theme p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   セクションタイトル(汎用)
   ============================================================ */

.ntm-section-title {
    display: flex;
    flex-direction: column;
    gap: var(--ntm-space-2);
    margin: 0;
    font-family: var(--ntm-font-sans);
    text-align: left;
}

.ntm-section-title-en {
    font-family: var(--ntm-font-en);
    font-size: var(--ntm-text-sm);
    font-weight: 500;
    letter-spacing: var(--ntm-tracking-widest);
    color: var(--ntm-gold);
    text-transform: uppercase;
}

.ntm-section-title-ja {
    font-family: var(--ntm-font-serif);
    font-size: var(--ntm-text-3xl);
    font-weight: 700;
    color: var(--ntm-sumi);
    letter-spacing: var(--ntm-tracking-tight);
    line-height: var(--ntm-leading-tight);
}

.ntm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--ntm-space-5);
    margin-bottom: var(--ntm-space-8);
    padding-bottom: var(--ntm-space-5);
    border-bottom: 1px solid var(--ntm-sumi);
}

.ntm-section-more {
    font-family: var(--ntm-font-sans);
    font-size: var(--ntm-text-sm);
    color: var(--ntm-text-secondary);
    letter-spacing: var(--ntm-tracking-wide);
    transition: color var(--ntm-transition-fast);
    flex-shrink: 0;
}

.ntm-section-more:hover {
    color: var(--ntm-gold);
}

/* ============================================================
   引用
   ============================================================ */

.ntm-theme blockquote {
    margin: var(--ntm-space-7) 0;
    padding: var(--ntm-space-5) 0 var(--ntm-space-5) var(--ntm-space-6);
    border-left: 3px solid var(--ntm-gold);
    font-family: var(--ntm-font-serif);
    font-size: var(--ntm-text-xl);
    line-height: var(--ntm-leading-relaxed);
    color: var(--ntm-text-primary);
    font-style: italic;
}

.ntm-theme blockquote p {
    font-family: var(--ntm-font-serif);
    font-size: inherit;
    line-height: inherit;
    margin-bottom: var(--ntm-space-3);
}

.ntm-theme blockquote cite {
    display: block;
    margin-top: var(--ntm-space-3);
    font-family: var(--ntm-font-sans);
    font-size: var(--ntm-text-sm);
    font-style: normal;
    color: var(--ntm-text-tertiary);
    letter-spacing: var(--ntm-tracking-wide);
}

.ntm-theme blockquote cite::before {
    content: "—— ";
}

/* ============================================================
   リンク
   ============================================================ */

.ntm-story-content a {
    color: var(--ntm-sumi);
    text-decoration: underline;
    text-decoration-color: var(--ntm-gold);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: all var(--ntm-transition-fast);
}

.ntm-story-content a:hover {
    color: var(--ntm-gold);
}

/* ============================================================
   強調
   ============================================================ */

.ntm-theme strong,
.ntm-theme b {
    font-weight: 700;
    color: var(--ntm-text-primary);
}

.ntm-theme em {
    font-style: italic;
}

/* ============================================================
   リスト(本文内)
   ============================================================ */

.ntm-story-content ul,
.ntm-story-content ol {
    margin: 0 0 1.8em;
    padding-left: 1.5em;
}

.ntm-story-content ul li,
.ntm-story-content ol li {
    font-family: var(--ntm-font-sans);
    font-size: var(--ntm-text-md);
    line-height: var(--ntm-leading-relaxed);
    color: var(--ntm-text-body);
    margin-bottom: 0.5em;
    padding-left: 0.3em;
}

.ntm-story-content ul {
    list-style: none;
}

.ntm-story-content ul li {
    position: relative;
}

.ntm-story-content ul li::before {
    content: "—";
    position: absolute;
    left: -1.5em;
    color: var(--ntm-gold);
}

.ntm-story-content ol {
    list-style-position: outside;
}

.ntm-story-content ol li::marker {
    color: var(--ntm-gold);
    font-family: var(--ntm-font-en);
    font-weight: 500;
}

/* ============================================================
   画像キャプション
   ============================================================ */

.ntm-story-content figure {
    margin: var(--ntm-space-7) 0;
}

.ntm-story-content figcaption {
    margin-top: var(--ntm-space-3);
    font-family: var(--ntm-font-sans);
    font-size: var(--ntm-text-sm);
    color: var(--ntm-text-tertiary);
    line-height: var(--ntm-leading-normal);
    text-align: left;
    letter-spacing: var(--ntm-tracking-wide);
}

/* ============================================================
   水平線
   ============================================================ */

.ntm-theme hr {
    margin: var(--ntm-space-10) auto;
    width: 60px;
    height: 1px;
    background: var(--ntm-gold);
    border: none;
}

/* ============================================================
   レスポンシブ:見出し調整
   ============================================================ */

@media (max-width: 768px) {
    .ntm-theme h1 {
        font-size: var(--ntm-text-3xl);
    }

    .ntm-theme h2 {
        font-size: var(--ntm-text-2xl);
    }

    .ntm-theme h3 {
        font-size: var(--ntm-text-xl);
    }

    .ntm-section-title-ja {
        font-size: var(--ntm-text-2xl);
    }

    .ntm-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--ntm-space-3);
    }

    .ntm-theme blockquote {
        font-size: var(--ntm-text-lg);
        padding-left: var(--ntm-space-5);
    }

    .ntm-theme p {
        font-size: var(--ntm-text-base);
    }
}
