/*
Theme Name: The Summit
Theme URI: https://thesummit.ro/
Author: The Summit
Description: Custom editorial theme for TheSummit.ro — ink, bone and ember palette, oversized Syne typography.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: thesummit
*/

:root {
	--ink: #0F0F12;
	--ink-2: #2A2A30;
	--ink-3: #3A3A42;
	--bone: #EEEAE2;
	--bone-2: #E2DDD3;
	--stone: #B9B3A8;
	--stone-2: #C9C3B8;
	--muted: #6B665E;
	--soft: #CFC9BE;
	--ember: #FF5A1F;
	--ember-tint: #FFD9C9;
	--display: "Syne", "Helvetica Neue", Arial, sans-serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
	--serif: "Newsreader", Georgia, serif;
	--wrap: 1320px;
	--gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bone); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; }
button, input { font: inherit; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--ember); color: var(--ink); padding: 10px 16px; width: auto; height: auto; clip: auto; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--ember); }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 0.92; }
.ember { color: var(--ember); }

/* ---------- Dark top / header ---------- */
.dark { background: var(--ink); color: var(--bone); }
.topbar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--ink-2); color: var(--stone); }
.site-header { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding: 22px 0; }
.site-header.bordered { border-bottom: 1px solid var(--ink-2); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 3px; text-transform: uppercase; }
.brand .custom-logo { max-height: 44px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.main-nav a { display: inline-block; padding: 10px 0; transition: color .2s; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-cat > a, .main-nav .current-post-ancestor > a { color: var(--ember); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--ink-3); background: transparent; color: var(--bone); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.btn-ember { display: inline-block; background: var(--ember); color: var(--ink); padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform .2s; }
.btn-ember:hover { transform: translateY(-2px); }
.search-drawer { display: none; padding: 0 0 22px; }
.search-drawer.open { display: block; }
.search-form { display: flex; border-bottom: 2px solid currentColor; }
.search-form input[type="search"] { flex: 1 1 auto; min-width: 0; height: 56px; border: 0; background: transparent; color: inherit; font-size: 22px; }
.search-form input[type="search"]::placeholder { color: var(--stone); }
.search-form button { border: 0; background: transparent; color: inherit; font-family: var(--display); font-weight: 800; font-size: 18px; padding: 0 8px 0 16px; cursor: pointer; }

.progress { height: 4px; background: var(--ink-2); position: sticky; top: 0; z-index: 50; }
.progress span { display: block; height: 4px; width: 0; background: var(--ember); }

/* ---------- Cover ---------- */
.cover { display: flex; flex-wrap: wrap; gap: 48px; padding: 56px 0 72px; align-items: flex-end; }
.cover-text { flex: 999 1 560px; min-width: 0; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; color: var(--stone); }
.meta-line .tag { color: var(--ember); }
.cover-title { font-size: clamp(48px, 7.4vw, 104px); letter-spacing: -0.04em; margin: 24px 0 28px; }
.cover-title a:hover { color: var(--ember); }
.cover-foot { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.cover-foot p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--soft); max-width: 460px; flex: 1 1 300px; }
.link-line { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; border-bottom: 2px solid var(--ember); padding: 10px 0; }
.link-line span { color: var(--ember); transition: transform .2s; }
.link-line:hover span { transform: translateX(6px); }
.offset-media { flex: 1 1 360px; min-width: 0; position: relative; padding: 0 0 24px 24px; }
.offset-media::before { content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 70%; background: var(--ember); }
.offset-media .media { position: relative; height: 460px; background: var(--ink-2); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Marquee ---------- */
.marquee-band { background: var(--ember); color: var(--ink); padding: 14px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 48px; width: max-content; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; animation: summit-marquee 40s linear infinite; }
.marquee-track a:hover { color: #fff; }
@keyframes summit-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Sections ---------- */
.section { padding-top: 96px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 20px; }
.section-title { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 0.92; letter-spacing: -0.03em; margin-top: 12px; }

.index { display: flex; flex-wrap: wrap; gap: 48px; }
.index-intro { flex: 1 1 260px; min-width: 0; }
.index-intro .section-title { font-size: clamp(30px, 2.8vw, 40px); line-height: 1; overflow-wrap: break-word; }
.ember-band h2 { font-size: clamp(40px, 5vw, 72px); }
.index-list { flex: 999 1 640px; min-width: 0; border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 140px 28px; gap: 20px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--stone-2); transition: background .25s, color .25s, padding .25s; }
.row:hover { background: var(--ink); color: var(--bone); padding-left: 20px; padding-right: 12px; }
.row .num { font-family: var(--mono); font-size: 14px; }
.row .t { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.05; letter-spacing: -0.01em; }
.row .arr { font-size: 24px; transition: transform .25s, color .25s; }
.row:hover .arr { color: var(--ember); transform: translateX(6px); }

.cards { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 32px; }
.card { display: flex; flex-direction: column; gap: 16px; }
.card .media { height: 380px; background: var(--ink-2); overflow: hidden; }
.card .media img { transition: transform .6s ease; }
.card:hover .media img { transform: scale(1.04); }
.card .t { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.05; letter-spacing: -0.01em; }
.card:hover .t { color: var(--ember); }
.card .mono { color: var(--muted); }
.cards.stagger .card:nth-child(3n+2) { padding-top: 64px; }
.cards.small .card .media { height: 260px; }
.cards.small .card .t { font-size: 24px; }
.placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 64px; color: var(--ember); background: var(--ink-2); }

.camps { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 2px solid var(--ink); }
.camp { padding: 28px 24px 32px; border-right: 1px solid var(--stone-2); display: flex; flex-direction: column; gap: 40px; transition: background .25s, color .25s; }
.camp:last-child { border-right: 0; }
.camp:hover { background: var(--ink); color: var(--bone); }
.camp .n { font-family: var(--display); font-weight: 800; font-size: 88px; line-height: 0.8; color: var(--ember); }
.camp .l { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.1; }

/* ---------- Newsletter / follow ---------- */
.ember-band { margin-top: 104px; background: var(--ember); color: var(--ink); }
.ember-band .inner { padding: 72px var(--gutter); display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; }
.ember-band h2 { flex: 999 1 560px; min-width: 0; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6vw, 80px); line-height: 0.9; letter-spacing: -0.04em; }
.ember-band .side { flex: 1 1 340px; display: flex; flex-direction: column; gap: 12px; }
.follow { display: flex; flex-wrap: wrap; gap: 10px; }
.follow a { border: 2px solid var(--ink); border-radius: 999px; padding: 12px 20px; font-weight: 600; transition: background .2s, color .2s; }
.follow a:hover { background: var(--ink); color: var(--bone); }
.nl-row { display: flex; flex-wrap: wrap; border-bottom: 2px solid var(--ink); }
.nl-row input { flex: 1 1 200px; min-width: 0; height: 56px; border: 0; background: transparent; font-size: 20px; color: var(--ink); }
.nl-row input::placeholder { color: rgba(15, 15, 18, .6); }
.nl-row button { height: 56px; border: 0; background: transparent; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 18px; cursor: pointer; padding: 0 8px 0 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--stone); }
.site-footer .inner { padding: 64px var(--gutter) 32px; overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-top p { margin: 0; font-size: 14px; line-height: 1.6; max-width: 400px; flex: 1 1 300px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 15px; color: var(--bone); }
.footer-nav a:hover { color: var(--ember); }
.wordmark { margin-top: 56px; font-family: var(--display); font-weight: 800; font-size: min(8.4vw, 128px); line-height: 0.8; letter-spacing: -0.04em; color: var(--bone); white-space: nowrap; }
.footer-bottom { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ---------- Single ---------- */
.article-head { padding: 64px 0 0; }
.article-title { font-size: clamp(44px, 7.8vw, 112px); line-height: 0.88; letter-spacing: -0.04em; margin: 28px 0 32px; max-width: 1180px; }
.dek { margin: 0; font-size: 22px; line-height: 1.5; color: var(--soft); max-width: 680px; }
.hero-media { margin-top: 56px; position: relative; padding-right: 32px; }
.hero-media::before { content: ""; position: absolute; right: 0; top: 32px; width: 40%; height: calc(100% - 32px); background: var(--ember); }
.hero-media .media { position: relative; height: clamp(280px, 40vw, 560px); background: var(--ink-2); overflow: hidden; }
.hero-media figcaption { position: relative; padding: 10px 0 0; font-size: 13px; color: var(--stone); }
.article-body-wrap { padding-top: 80px; display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.article-aside { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 24px; }
.in-short { border-top: 2px solid var(--ink); }
.in-short div { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--stone-2); }
.in-short b { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--ember); line-height: 1; }
.in-short span { font-size: 16px; line-height: 1.45; font-weight: 500; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share a, .share button { height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; transition: background .2s, color .2s; }
.share a:hover, .share button:hover, .share .solid { background: var(--ink); color: var(--bone); }

.entry { flex: 999 1 560px; min-width: 0; max-width: 740px; font-family: var(--serif); font-size: 22px; line-height: 1.7; color: #1E1E22; }
.entry > *:first-child { margin-top: 0; }
.entry p { margin: 0 0 28px; }
.entry > p:first-of-type::first-letter { float: left; font-family: var(--display); font-weight: 800; font-size: 96px; line-height: 0.8; margin: 8px 14px 0 0; color: var(--ember); }
.entry h1, .entry h2 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.03em; margin: 56px 0 20px; color: var(--ink); }
.entry h3 { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.1; margin: 40px 0 16px; color: var(--ink); }
.entry ul, .entry ol { margin: 0 0 28px; padding-left: 26px; }
.entry li { margin-bottom: 8px; }
.entry li::marker { color: var(--ember); font-family: var(--display); font-weight: 800; }
.entry a { border-bottom: 1px solid var(--ember); transition: color .2s; }
.entry a:hover { color: var(--ember); }
.entry strong, .entry b { font-weight: 600; color: var(--ink); }
.entry blockquote { margin: 56px 0; padding: 32px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
.entry blockquote p { margin: 0; }
.entry img { margin: 40px 0; }
.entry table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 16px; margin: 0 0 28px; display: block; overflow-x: auto; }
.entry th, .entry td { border-bottom: 1px solid var(--stone-2); padding: 10px 12px; text-align: left; }
.entry p:last-child em a, .entry .source { font-family: var(--sans); }
.disclaimer { margin-top: 48px; padding: 24px; background: var(--bone-2); font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.disclaimer p { margin: 0; }
.tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--sans); }
.tags a { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; border: 1px solid var(--ink); padding: 6px 12px; border-radius: 999px; }
.tags a:hover { background: var(--ink); color: var(--bone); }

/* ---------- Archive ---------- */
.archive-head { padding: 64px 0 72px; }
.archive-head h1 { font-size: clamp(56px, 9vw, 128px); line-height: 0.85; letter-spacing: -0.05em; margin-top: 20px; }
.archive-head p { margin: 24px 0 0; font-size: 19px; color: var(--soft); max-width: 640px; }
.pagination { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 48px; height: 48px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 999px; font-weight: 600; }
.pagination .current, .pagination a:hover { background: var(--ink); color: var(--bone); }
.empty { padding: 64px 0; font-size: 20px; }

/* ---------- Generic page ---------- */
.page-content { padding: 80px 0 0; }
.page-content .entry { max-width: 780px; margin: 0 auto; }
.page-content .entry > p:first-of-type::first-letter { float: none; font: inherit; color: inherit; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	:root { --gutter: 20px; }
	.row { grid-template-columns: 40px minmax(0, 1fr) 24px; }
	.row .cat { display: none; }
	.cards.stagger .card:nth-child(3n+2) { padding-top: 0; }
	.card .media { height: 260px; }
	.offset-media .media { height: 320px; }
	.article-aside { position: static; order: 2; }
	.section { padding-top: 72px; }
	.camp { border-right: 0; border-bottom: 1px solid var(--stone-2); }
	.entry { font-size: 19px; }
}
@media (max-width: 600px) {
	.main-nav ul { gap: 0 18px; font-size: 14px; }
	.topbar span:last-child { display: none; }
	.cover { padding: 32px 0 48px; }
	.hero-media { padding-right: 16px; }
}
