/* KSM × TECH / POLICY + MEANING PAGE STYLES */

/* ─── POLICY PAGES ──────────────────────────────────── */
.policy-page { background: var(--ground, var(--paper)); padding-top: 0; }

.policy-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 180px 32px 120px;
    position: relative;
    z-index: 2;
    color: var(--text-soft);
}

.policy-content h1 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(40px, 5vw, 56px);
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.policy-content > p:first-of-type {
    font-family: var(--ui);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--art-a);
    margin-bottom: 6px;
}

.policy-content h2 {
    font-family: var(--display);
    font-weight: 500;
    font-size: 26px;
    line-height: 1.2;
    color: var(--text);
    margin-top: 56px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.policy-content h3 {
    font-family: var(--display);
    font-weight: 600;
    font-style: italic;
    font-size: 19px;
    color: var(--art-a);
    margin-top: 28px;
    margin-bottom: 10px;
}

.policy-content p {
    font-family: var(--ui);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 16px;
    color: var(--text-soft);
}

.policy-content p strong {
    color: var(--text);
    font-weight: 600;
}

.policy-content ul {
    margin: 12px 0 24px;
    padding-left: 0;
    list-style: none;
}

.policy-content li {
    position: relative;
    padding: 6px 0 6px 22px;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.65;
}

.policy-content li::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 8px;
    color: var(--art-a);
}

.policy-content hr {
    margin: 56px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.policy-content a {
    color: var(--art-a);
    border-bottom: 1px solid var(--art-a);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.policy-content a:hover {
    color: var(--text);
    border-bottom-color: var(--text);
}

/* MEANING PAGE — special editorial treatment */
.meaning-page .policy-content {
    max-width: 720px;
}

.meaning-page .policy-content h1 {
    font-size: clamp(44px, 6vw, 64px);
    margin-bottom: 56px;
    text-align: center;
}

.meaning-page .policy-content h1 em {
    font-style: italic;
    color: var(--art-a);
    font-weight: 400;
}

.meaning-page .policy-content p {
    font-family: var(--ui);
    font-size: 18px;
    line-height: 1.85;
    margin-bottom: 24px;
    color: var(--text-soft);
}

.meaning-page .policy-content p:first-of-type {
    font-family: var(--ui);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--art-a);
    text-align: center;
    margin-bottom: 56px;
}

/* MEANING & ABOUT PAGE — letter & name highlights */
.meaning-letter {
    font-family: var(--display);
    font-style: italic;
    font-weight: 600;
    color: var(--art-a) !important;
    font-size: 1.35em;
    margin-right: 4px;
}

.meaning-name {
    font-family: var(--display);
    font-weight: 600;
    font-style: italic;
    /* --art-a, not --terracotta: this page is Night, where terracotta is
       1.91:1 and the register's art colour is marigold at 5.22:1 */
    color: var(--art-a) !important;
}

.about-page strong {
    color: var(--art-a);
    font-weight: 600;
}

/* ABOUT PAGE — RESUME HEADER STYLING */
.about-page .resume-header {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.about-page .resume-name {
    font-family: var(--display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 500;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.about-page .resume-role {
    font-family: var(--ui);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--art-a);
    margin-bottom: 16px;
    font-weight: 500;
}

.about-page .resume-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-family: var(--ui);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.about-page .resume-link {
    color: var(--text-soft);
    border-bottom: 1px solid var(--line);
    transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.about-page .resume-link:hover {
    color: var(--art-a);
    border-bottom-color: var(--art-a);
}

.about-page .sep {
    color: var(--art-a);
    opacity: 0.7;
}

/* Ensure summary paragraph on About page is normal body serif text, not uppercase mono gold */
.about-page .policy-content > p:first-of-type,
.about-page .policy-content p {
    font-family: var(--ui);
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: normal;
    text-transform: none;
    color: var(--text-soft);
    margin-top: 24px;
    margin-bottom: 24px;
}

.meaning-divider {
    text-align: center;
    margin: 48px 0;
    color: var(--art-a);
    font-size: 18px;
    letter-spacing: 0.6em;
}

.closing-mantra {
    text-align: center;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}

.closing-mantra .devanagari {
    font-family: var(--devanagari);
    font-size: 22px;
    color: var(--art-a) !important;
    letter-spacing: 0.02em;
    display: block;
    margin-bottom: 8px;
}

/* /meaning/ ends on .closing-mantra, which is the same mantra the shared
   footer prints. Keep the page's own — it carries the transliteration —
   and suppress the footer repeat, so the mantra appears exactly once. */
.meaning-page .footer-mantra { display: none; }

.closing-mantra .translit {
    font-family: var(--ui);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .policy-content { padding: 140px 22px 80px; }
}

/* ─── WRITING PAGE ─────────────────────────────────── */
.writing-page .policy-content {
    max-width: 760px;
}

.writing-page .policy-content h1 {
    font-size: clamp(44px, 6vw, 64px);
    margin-bottom: 56px;
    text-align: center;
}

.writing-page .policy-content > p:first-of-type {
    text-align: center;
    margin-bottom: 64px;
}

.writing-list {
    margin-top: 24px;
}

.writing-entry {
    border-top: 1px solid var(--line);
}

.writing-entry:last-child {
    border-bottom: 1px solid var(--line);
}

.writing-entry a {
    display: block;
    padding: 36px 0;
    border-bottom: none;
    transition: background 0.3s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.writing-entry a:hover {
    background: var(--paper-sunken);
    padding-left: 24px;
    padding-right: 24px;
    margin-left: -24px;
    margin-right: -24px;
}

.writing-entry time {
    display: block;
    font-family: var(--ui);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--art-a);
    margin-bottom: 10px;
}

.writing-entry h2 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--text);
    margin-top: 0;
    margin-bottom: 10px;
    transition: color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.writing-entry a:hover h2 {
    color: var(--art-a);
}

.writing-entry p {
    font-family: var(--ui);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 0;
}
