/*
Theme Name: The Atlas Post Daily
Description: Light, bilingual (EN/RU) IT blog theme: image slider, single topic, author card, Author and Write-to-us templates.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: theatlaspostdaily
*/

:root {
	--night: #0a1324;
	--night-2: #12203a;
	--sky: #2f7cf6;
	--cyan: #27c4f2;
	--paper: #f3f6fb;
	--white: #ffffff;
	--ink: #0f1a2c;
	--grey: #5b6a80;
	--edge: #dbe3ee;
	--f-display: 'Unbounded', 'Arial Black', sans-serif;
	--f-text: 'Onest', 'Segoe UI', Arial, sans-serif;
	--round: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 400 17px/1.7 var(--f-text); color: var(--ink); background: var(--paper); }
.ap-page { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 .55em; color: var(--ink); }
p { margin: 0 0 1em; }
.ap-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.ap-wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.ap-wrap--text { max-width: 820px; }
.ap-space { padding-block: 44px 64px; }

.ap-chip { display: inline-block; padding: 6px 12px; border-radius: 6px; background: #e6eefc; color: var(--sky); font: 600 12px/1 var(--f-text); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.ap-chip--glow { background: rgba(39, 196, 242, .16); color: #8fe3ff; border: 1px solid rgba(39, 196, 242, .45); }
.ap-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border: 0; border-radius: 8px; background: linear-gradient(90deg, var(--sky), var(--cyan)); color: #fff; font: 600 15px/1 var(--f-text); text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(47, 124, 246, .8); }
.ap-btn:hover { color: #fff; filter: brightness(1.08); }
.ap-btn--ghost { background: transparent; color: var(--sky); box-shadow: inset 0 0 0 2px var(--sky); }
.ap-btn--ghost:hover { color: var(--sky); background: #eaf1fe; }
.ap-arrow { font-weight: 600; text-decoration: none; }
.ap-arrow::after { content: " →"; }

/* Top bar */
.ap-bar { background: var(--night); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ap-bar__row { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.ap-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.ap-logo__name { font: 600 18px/1 var(--f-display); color: #fff; letter-spacing: -.02em; }
.ap-logo__name span { color: var(--cyan); }
.ap-logo__name small { margin-left: 6px; font: 500 11px/1 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: #8aa0bf; vertical-align: middle; }
.ap-drawer { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.ap-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.ap-links a { display: block; padding: 10px 14px; border-radius: 8px; color: #c7d3e6; font-weight: 500; font-size: 15px; text-decoration: none; }
.ap-links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.ap-links a.here, .ap-links .current-menu-item a { color: #fff; background: rgba(39, 196, 242, .14); }
.ap-langs { display: inline-flex; gap: 4px; }
.ap-langs a { padding: 6px 9px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 6px; color: #aebcd2; font: 600 12px/1 var(--f-text); text-transform: uppercase; text-decoration: none; }
.ap-langs a.on { border-color: var(--cyan); color: var(--cyan); }
.ap-menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; background: transparent; color: #fff; cursor: pointer; place-items: center; }

/* Slider */
.ap-slider { position: relative; background: var(--night); color: #d4def0; overflow: hidden; }
.ap-slider__track { position: absolute; inset: 0; }
.ap-slider__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity 1.2s ease; }
.ap-slider__img.on { opacity: 1; }
.ap-slider::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10, 19, 36, .92) 0%, rgba(10, 19, 36, .72) 38%, rgba(10, 19, 36, .1) 70%); }
.ap-slider__copy { position: relative; z-index: 2; min-height: clamp(420px, 38vw, 560px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.ap-slider__copy h1 { max-width: 620px; margin: 18px 0 14px; color: #fff; font-size: clamp(28px, 3.3vw, 44px); }
.ap-slider__copy p { max-width: 520px; font-size: 18px; margin-bottom: 28px; }
.ap-slider__nav { position: absolute; z-index: 3; right: 24px; bottom: 22px; display: flex; gap: 8px; }
.ap-slider__nav button { width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(10, 19, 36, .5); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

/* Intro (inner pages) */
.ap-intro { background: var(--night); color: #c7d3e6; padding: 46px 0 40px; background-image: radial-gradient(circle at 85% 0%, rgba(39, 196, 242, .22), transparent 45%); }
.ap-intro h1 { color: #fff; margin: 14px 0 0; font-size: clamp(26px, 3vw, 38px); }
.ap-intro p { margin: 12px 0 0; }
.ap-intro .ap-chip { background: rgba(255, 255, 255, .08); color: #8fe3ff; }
.ap-intro .ap-find { margin-top: 22px; max-width: 520px; }

/* Feed */
.ap-feed { padding-block: 52px 56px; }
.ap-feed__title { font-size: 24px; margin-bottom: 26px; display: flex; align-items: center; gap: 14px; }
.ap-feed__title::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--cyan), transparent); }
.ap-feed__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ap-tile { display: flex; flex-direction: column; border-radius: var(--round); background: var(--white); border: 1px solid var(--edge); overflow: hidden; transition: border-color .2s, transform .2s; }
.ap-tile:hover { border-color: #b7cbeb; transform: translateY(-2px); }
.ap-tile__pic { display: block; aspect-ratio: 16 / 10; background: var(--night-2); overflow: hidden; }
.ap-tile__pic img { width: 100%; height: 100%; object-fit: cover; }
.ap-tile__blank { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 30% 20%, #1d3768, var(--night)); }
.ap-tile__blank img { width: 64px; height: 64px; }
.ap-tile__info { padding: 18px 20px 22px; }
.ap-tile__when { display: block; margin-bottom: 8px; font-size: 13px; color: var(--grey); }
.ap-tile__when i { font-style: normal; color: var(--cyan); margin: 0 4px; }
.ap-tile__title { font-size: 17px; margin: 0; line-height: 1.35; }
.ap-tile__title a { color: var(--ink); text-decoration: none; }
.ap-tile__title a:hover { color: var(--sky); }
.ap-tile--big { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; }
.ap-tile--big .ap-tile__pic { aspect-ratio: auto; min-height: 320px; }
.ap-tile--big .ap-tile__info { display: flex; flex-direction: column; justify-content: center; padding: 34px; }
.ap-tile--big .ap-tile__title { font-size: 26px; margin-bottom: 12px; }
.ap-tile__lead { color: var(--grey); margin: 0; }
.ap-nothing { color: var(--grey); }
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 6px; }
.pagination .page-numbers { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 8px; background: var(--white); border: 1px solid var(--edge); color: var(--ink); text-decoration: none; font-weight: 600; }
.pagination .current { background: var(--night); border-color: var(--night); color: #fff; }

/* Author card */
.ap-feed__author { padding-bottom: 64px; }
.ap-person { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; padding: 28px; border-radius: var(--round); background: var(--night); color: #c7d3e6; }
.ap-person__img { width: 170px; height: 170px; border-radius: var(--round); object-fit: cover; box-shadow: 0 0 0 3px rgba(39, 196, 242, .5); }
.ap-person .ap-chip { background: rgba(39, 196, 242, .14); color: #8fe3ff; }
.ap-person__name { display: block; margin: 12px 0 2px; font: 600 22px/1.25 var(--f-display); color: #fff; }
.ap-person__job { display: block; margin-bottom: 12px; color: #8aa0bf; font-size: 14px; }
.ap-person p { margin: 0 0 10px; }
.ap-person .ap-arrow { color: var(--cyan); }
.ap-person--page { grid-template-columns: 320px 1fr; align-items: start; padding: 36px; }
.ap-person--page .ap-person__img { width: 320px; height: 320px; }
.ap-person--page .ap-person__name { font-size: 28px; }
.ap-person--page p { font-size: 18px; }
.ap-person--post { grid-template-columns: 110px 1fr; gap: 22px; padding: 22px; }
.ap-person--post .ap-person__img { width: 110px; height: 110px; }
.ap-person--post .ap-person__name { font-size: 18px; }
.ap-person--post p { font-size: 15px; }

.ap-band { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; padding: 24px 28px; border-radius: var(--round); background: var(--white); border: 1px solid var(--edge); }
.ap-band span { margin-right: auto; font: 600 18px/1.3 var(--f-display); }

/* Story */
.ap-story__meta { color: #8aa0bf; font-size: 14px; }
.ap-story__pic { margin-top: 32px; margin-bottom: 0; }
.ap-story__pic img { width: 100%; border-radius: var(--round); }
.ap-prose { padding-block: 30px 24px; font-size: 18px; }
.ap-prose h2 { font-size: 24px; margin-top: 1.6em; }
.ap-prose h3 { font-size: 19px; margin-top: 1.4em; }
.ap-prose ul, .ap-prose ol { padding-left: 1.3em; }
.ap-prose li::marker { color: var(--sky); }
.ap-prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-radius: var(--round); background: var(--night); color: #dbe5f5; border-left: 4px solid var(--cyan); }
.ap-prose blockquote p:last-child { margin: 0; }
.ap-prose code { padding: .15em .4em; border-radius: 5px; background: #e8eef8; font-size: .88em; }
.ap-prose pre { padding: 18px; border-radius: var(--round); background: var(--night); color: #dbe5f5; overflow-x: auto; font-size: 14.5px; }
.ap-prose pre code { background: none; padding: 0; }
.ap-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: 16px; }
.ap-prose th, .ap-prose td { padding: 10px; border-bottom: 1px solid var(--edge); text-align: left; }
.ap-story__end { padding-bottom: 56px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.post-navigation a { display: block; height: 100%; padding: 16px 18px; border-radius: var(--round); background: var(--white); border: 1px solid var(--edge); color: var(--ink); font-weight: 600; text-decoration: none; }
.post-navigation .nav-next { text-align: right; }
.ap-talk { margin-top: 36px; }
.ap-talk input[type="text"], .ap-talk input[type="email"], .ap-talk input[type="url"], .ap-talk textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--edge); border-radius: 8px; font: inherit; }
.ap-talk .submit { padding: 12px 22px; border: 0; border-radius: 8px; background: var(--sky); color: #fff; font-weight: 600; cursor: pointer; }

/* Forms */
.ap-find { display: flex; border: 1px solid var(--edge); border-radius: 10px; overflow: hidden; background: #fff; }
.ap-find input { flex: 1; min-width: 0; padding: 12px 14px; border: 0; font: inherit; outline: none; }
.ap-find button { width: 48px; border: 0; background: var(--sky); color: #fff; cursor: pointer; display: grid; place-items: center; }
.ap-form { display: grid; gap: 18px; padding: 28px; border-radius: var(--round); background: var(--white); border: 1px solid var(--edge); }
.ap-form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ap-form label { display: grid; gap: 6px; }
.ap-form label span { font-size: 14px; font-weight: 600; }
.ap-form input, .ap-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--edge); border-radius: 8px; font: 400 16px/1.5 var(--f-text); background: #fbfcfe; }
.ap-form input:focus, .ap-form textarea:focus { outline: 2px solid var(--cyan); outline-offset: -1px; }
.ap-form .ap-btn { justify-self: start; }
.ap-form__hide { position: absolute; left: -9999px; }
.ap-flash { margin-bottom: 18px; padding: 13px 16px; border-radius: 8px; font-weight: 600; }
.ap-flash--good { background: #e3f6ec; color: #17633f; }
.ap-flash--bad { background: #fdeceb; color: #9a2c22; }
.ap-lost { text-align: center; }
.ap-lost b { display: block; font: 600 88px/1 var(--f-display); background: linear-gradient(90deg, var(--sky), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-lost .ap-find { max-width: 460px; margin: 18px auto 22px; }

/* Footer */
.ap-end { background: var(--night); color: #8aa0bf; }
.ap-end__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 34px 22px; }
.ap-end .ap-links a { padding: 8px 10px; }
.ap-end__copy { margin: 0 auto; padding-block: 16px 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }

/* Responsive */
@media (max-width: 960px) {
	.ap-menu-btn { display: grid; }
	.ap-bar__row { flex-wrap: wrap; }
	.ap-drawer { display: none; width: 100%; margin: 0; padding-bottom: 16px; flex-direction: column; align-items: flex-start; }
	.ap-drawer.show { display: flex; }
	.ap-drawer nav, .ap-drawer .ap-links { width: 100%; }
	.ap-drawer .ap-links { flex-direction: column; }
	.ap-feed__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ap-person--page { grid-template-columns: 240px 1fr; }
	.ap-person--page .ap-person__img { width: 240px; height: 240px; }
}

@media (max-width: 680px) {
	body { font-size: 16px; }
	.ap-wrap { padding-inline: 16px; }
	.ap-logo__name small { display: none; }
	.ap-slider::before { background: linear-gradient(0deg, rgba(10, 19, 36, .95) 0%, rgba(10, 19, 36, .75) 55%, rgba(10, 19, 36, .25) 100%); }
	.ap-slider__copy { min-height: 460px; justify-content: flex-end; padding-bottom: 36px; }
	.ap-slider__img { object-position: 70% center; }
	.ap-slider__copy p { font-size: 16px; }
	.ap-feed__grid { grid-template-columns: 1fr; }
	.ap-tile--big { display: flex; }
	.ap-tile--big .ap-tile__pic { min-height: 0; aspect-ratio: 16 / 10; }
	.ap-tile--big .ap-tile__info { padding: 20px; }
	.ap-tile--big .ap-tile__title { font-size: 20px; }
	.ap-person, .ap-person--page, .ap-person--post { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 24px 20px; }
	.ap-person--page .ap-person__img { width: 220px; height: 220px; }
	.ap-form { padding: 20px; }
	.ap-form__two { grid-template-columns: 1fr; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { text-align: left; }
	.ap-band span { width: 100%; }
	.ap-end__row { flex-direction: column; align-items: flex-start; }
}
