:root {
	--atl-bg: #100e0c;
	--atl-bg2: #1a1713;
	--atl-panel: rgba(46, 41, 34, 0.72);
	--atl-gold: #e8a317;
	--atl-gold-soft: #f2c14e;
	--atl-cream: #f4efe6;
	--atl-muted: #a89f92;
	--atl-line: rgba(232, 163, 23, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

.atl-root {
	background:
		radial-gradient(900px 480px at 8% -10%, rgba(232, 163, 23, 0.12), transparent 55%),
		radial-gradient(600px 400px at 100% 0%, rgba(244, 239, 230, 0.06), transparent 45%),
		linear-gradient(185deg, var(--atl-bg), var(--atl-bg2) 45%, #0c0a08);
	color: var(--atl-cream);
}

.atl-body {
	margin: 0;
	min-height: 100vh;
	font-family: "Manrope", system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

.atl-wrap { width: min(1080px, 92vw); margin-inline: auto; }

.atl-skip {
	position: absolute;
	left: -999px;
	padding: 8px 12px;
	background: #fff;
	color: #000;
}
.atl-skip:focus { left: 12px; top: 12px; z-index: 9999; }

.atl-top {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(16, 14, 12, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(244, 239, 230, 0.08);
}
.atl-top__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
}
.atl-brand { display: flex; flex-direction: column; gap: 4px; }
.atl-wordmark {
	font-family: "Fraunces", Georgia, serif;
	font-weight: 700;
	font-size: 1.35rem;
	color: var(--atl-cream);
	text-decoration: none;
	letter-spacing: -0.02em;
}
.atl-wordmark:hover { color: var(--atl-gold-soft); }
.atl-sub {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--atl-muted);
}

.atl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none !important;
	border: none;
	cursor: pointer;
	background: linear-gradient(120deg, var(--atl-gold), var(--atl-gold-soft));
	color: #1a1206 !important;
	box-shadow: 0 14px 38px rgba(232, 163, 23, 0.28);
	transition: transform 0.15s ease;
}
.atl-btn:hover { transform: translateY(-2px); }
.atl-btn--small { padding: 9px 18px; font-size: 0.82rem; }

/* Doc frame */
.atl-frame {
	padding: 28px 0 56px;
}
.atl-frame__grid {
	display: grid;
	grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
	gap: 36px;
	align-items: start;
}
@media (max-width: 900px) {
	.atl-frame__grid { grid-template-columns: 1fr; }
	.atl-index { display: none; }
}

.atl-index__box {
	position: sticky;
	top: 86px;
	border: 1px solid var(--atl-line);
	border-radius: 14px;
	padding: 16px;
	background: rgba(26, 22, 18, 0.65);
}
.atl-index__title {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-weight: 700;
	margin: 0 0 10px;
	color: var(--atl-gold-soft);
}
.atl-index nav {
	display: grid;
	gap: 8px;
}
.atl-index nav a {
	display: flex;
	gap: 8px;
	align-items: baseline;
	text-decoration: none;
	color: var(--atl-muted);
	font-weight: 600;
	font-size: 0.86rem;
}
.atl-index nav a:hover { color: var(--atl-cream); }
.atl-index__n {
	font-variant-numeric: tabular-nums;
	font-size: 0.72rem;
	color: rgba(232, 163, 23, 0.75);
	min-width: 2ch;
}

/* Reading column */
.atl-reading {
	max-width: 740px;
	padding-bottom: 40px;
}
.atl-cover {
	padding-bottom: 36px;
	margin-bottom: 28px;
	border-bottom: 1px solid rgba(244, 239, 230, 0.1);
}
.atl-lead-label {
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.74rem;
	font-weight: 700;
	color: var(--atl-gold-soft);
	margin: 0 0 12px;
}
.atl-cover-title {
	font-family: "Fraunces", Georgia, serif;
	font-size: clamp(2rem, 4.8vw, 3rem);
	line-height: 1.06;
	font-weight: 700;
	margin: 0 0 14px;
}
.atl-cover-dek {
	font-size: 1.06rem;
	color: rgba(244, 239, 230, 0.84);
	max-width: 58ch;
	margin: 0 0 16px;
}
.atl-cover-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.atl-cover-meta span {
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid rgba(244, 239, 230, 0.12);
	font-size: 0.78rem;
	color: var(--atl-muted);
}

.atl-chapter {
	margin-bottom: 44px;
}
.atl-chapter__h {
	font-family: "Fraunces", Georgia, serif;
	font-size: clamp(1.45rem, 2.6vw, 1.95rem);
	margin: 0 0 16px;
	font-weight: 700;
}
.atl-chapter__no {
	color: rgba(242, 193, 78, 0.85);
	margin-right: 8px;
	font-family: ui-monospace, monospace;
	font-size: 0.85em;
}

.atl-prosecols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}
@media (max-width: 700px) { .atl-prosecols { grid-template-columns: 1fr; } }
.atl-runin {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.74rem;
	color: var(--atl-gold-soft);
	margin: 0 0 8px;
}
.atl-chapter p { margin: 0; color: var(--atl-muted); font-size: 0.93rem; }

.atl-sheet {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--atl-line);
	border-radius: 12px;
	overflow: hidden;
}
.atl-sheet th,
.atl-sheet td {
	vertical-align: top;
	padding: 14px 16px;
	text-align: left;
	border-bottom: 1px solid rgba(244, 239, 230, 0.08);
}
.atl-sheet tr:last-child th,
.atl-sheet tr:last-child td { border-bottom: none; }
.atl-sheet th {
	width: 160px;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--atl-gold-soft);
	background: rgba(0, 0, 0, 0.18);
	font-weight: 700;
}
.atl-sheet td {
	color: var(--atl-muted);
	font-size: 0.92rem;
}

.atl-pipeline {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 16px;
	padding: 0;
}
@media (max-width: 900px) {
	.atl-pipeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
	.atl-pipeline { grid-template-columns: 1fr; }
}
.atl-pipeline li {
	border: 1px solid var(--atl-line);
	border-radius: 12px;
	padding: 14px;
	background: rgba(24, 21, 18, 0.55);
}
.atl-pipeline span {
	display: block;
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--atl-cream);
	margin-bottom: 8px;
}
.atl-pipeline p { margin: 0; color: var(--atl-muted); font-size: 0.86rem; }

.atl-aside-quote {
	margin: 0;
	font-family: "Fraunces", Georgia, serif;
	font-size: 1.05rem;
	font-style: italic;
	color: rgba(244, 239, 230, 0.88);
}

.atl-closing h2 {
	font-family: "Fraunces", Georgia, serif;
	font-size: clamp(1.36rem, 2.6vw, 1.72rem);
	margin: 0 0 12px;
	font-weight: 700;
}

.atl-contact-sheet {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid rgba(244, 239, 230, 0.12);
}
.atl-contact-sheet th,
.atl-contact-sheet td {
	padding: 10px 12px;
	border-bottom: 1px solid rgba(244, 239, 230, 0.08);
}
.atl-contact-sheet tr:last-child th,
.atl-contact-sheet tr:last-child td { border-bottom: none; }
.atl-contact-sheet th {
	width: 130px;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--atl-gold-soft);
	text-align: left;
}
.atl-contact-sheet td { color: var(--atl-cream); font-size: 0.93rem; }
.atl-contact-sheet a {
	color: var(--atl-gold-soft);
	text-decoration: none;
	border-bottom: 1px solid rgba(242, 193, 78, 0.35);
}
.atl-micro { margin: 10px 0 0; color: var(--atl-muted); font-size: 0.84rem; }

.atl-foot {
	padding: 36px 0 48px;
	background: rgba(12, 10, 8, 0.95);
	border-top: 1px solid rgba(244, 239, 230, 0.06);
	font-size: 0.85rem;
	color: var(--atl-muted);
}
.atl-foot__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}
@media (max-width: 720px) { .atl-foot__grid { grid-template-columns: 1fr; } }
.atl-foot strong {
	color: var(--atl-cream);
	font-family: "Fraunces", Georgia, serif;
}
.atl-foot-kicker {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.72rem;
	color: var(--atl-gold-soft);
	margin: 0 0 6px;
}
.atl-copy {
	margin: 22px auto 0;
	padding-top: 18px;
	border-top: 1px solid rgba(244, 239, 230, 0.05);
	text-align: center;
	font-size: 0.73rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #6f675c;
}
