/*
Theme Name: CrossBorderOps
Theme URI: https://www.crossborderops.com/
Author: CrossBorderOps Editorial Team
Description: Independent field notes for cross-border DNS, CDN, routing, and access operations.
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: crossborderops
*/

:root {
	--ink: #071b22;
	--ink-soft: #15333c;
	--paper: #f4f1e8;
	--paper-bright: #fffdf7;
	--mint: #23c7a5;
	--mint-dark: #087c68;
	--line: #cbd8d2;
	--muted: #60756f;
	--orange: #e67b35;
	--radius: 18px;
	--shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	color: var(--ink);
	background: var(--paper);
	font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.75;
}
a { color: var(--mint-dark); text-underline-offset: .18em; }
a:hover { color: var(--orange); }
img { max-width: 100%; height: auto; }
.shell { width: var(--shell); margin-inline: auto; }
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip: auto;
	background: #fff;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	border-bottom: 1px solid rgba(203,216,210,.8);
	background: rgba(244,241,232,.92);
	backdrop-filter: blur(14px);
}
.header-inner {
	min-height: 76px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -.03em;
	text-decoration: none;
}
.brand-mark {
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: var(--paper-bright);
	background: var(--ink);
	font: 800 12px/1 ui-monospace, monospace;
}
.brand-mark::after { content: "↗"; }
.nav-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	padding: 0;
	margin: 0;
	list-style: none;
}
.nav-list a {
	color: var(--ink-soft);
	font-size: 14px;
	font-weight: 650;
	text-decoration: none;
}
.nav-list a:hover, .current-menu-item > a { color: var(--mint-dark); }
.header-cta, .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid var(--ink);
	border-radius: 999px;
	color: var(--paper-bright);
	background: var(--ink);
	font-weight: 750;
	text-decoration: none;
}
.header-cta:hover, .button:hover { color: var(--paper-bright); background: var(--mint-dark); border-color: var(--mint-dark); }
.button--light { color: var(--ink); background: var(--paper-bright); border-color: var(--paper-bright); }
.button--light:hover { color: var(--ink); background: var(--mint); border-color: var(--mint); }

.hero {
	position: relative;
	overflow: hidden;
	padding: clamp(70px,10vw,140px) 0 90px;
	color: var(--paper-bright);
	background: var(--ink);
}
.hero::before {
	content: "";
	position: absolute;
	inset: -20% -10% auto 50%;
	width: 720px;
	height: 720px;
	border: 1px solid rgba(35,199,165,.22);
	border-radius: 50%;
	box-shadow: 0 0 0 90px rgba(35,199,165,.04), 0 0 0 180px rgba(35,199,165,.03);
}
.hero-grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr);
	gap: clamp(40px,8vw,110px);
	align-items: end;
}
.eyebrow {
	margin: 0 0 18px;
	color: var(--mint);
	font: 750 12px/1.3 ui-monospace, monospace;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.hero h1 {
	max-width: 830px;
	margin: 0;
	font-size: clamp(46px,7vw,94px);
	line-height: .98;
	letter-spacing: -.065em;
}
.hero h1 em { color: var(--mint); font-style: normal; }
.hero-lead {
	max-width: 690px;
	margin: 30px 0;
	color: #b9ccc7;
	font-size: clamp(18px,2.2vw,22px);
}
.hero-side {
	padding: 26px;
	border: 1px solid #31515a;
	border-radius: var(--radius);
	background: rgba(12,42,50,.6);
}
.hero-side strong { display: block; margin-bottom: 14px; color: var(--mint); }
.hero-side ol { margin: 0; padding-left: 20px; color: #c5d6d2; }
.hero-side li { margin: 9px 0; }

.section { padding: clamp(62px,8vw,110px) 0; }
.section--white { background: var(--paper-bright); }
.section--mint { background: #d9efe9; }
.section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 38px;
}
.section-head h2 {
	margin: 0;
	font-size: clamp(34px,5vw,58px);
	line-height: 1.06;
	letter-spacing: -.045em;
}
.section-head p { max-width: 500px; margin: 0; color: var(--muted); }
.cards {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 18px;
}
.card {
	position: relative;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper-bright);
}
.card-num {
	display: block;
	margin-bottom: 36px;
	color: var(--mint-dark);
	font: 750 12px/1 ui-monospace, monospace;
}
.card h3 { margin: 0 0 12px; font-size: 24px; line-height: 1.2; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card a { font-weight: 700; text-decoration: none; }

.post-grid {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 18px;
}
.post-card {
	padding: 28px;
	border-top: 3px solid var(--mint);
	background: var(--paper-bright);
}
.post-card .meta, .article-meta {
	color: var(--muted);
	font: 650 12px/1.4 ui-monospace, monospace;
}
.post-card h2, .post-card h3 { margin: 14px 0; font-size: 24px; line-height: 1.28; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card p { color: var(--muted); }

.cta-band {
	padding: clamp(50px,7vw,88px) 0;
	color: var(--paper-bright);
	background: var(--ink-soft);
}
.cta-band__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}
.cta-band h2 { max-width: 750px; margin: 0; font-size: clamp(32px,5vw,54px); line-height: 1.08; letter-spacing: -.04em; }
.cta-band p { max-width: 620px; color: #c0d1cd; }

.page-hero {
	padding: clamp(60px,8vw,110px) 0 64px;
	color: var(--paper-bright);
	background: var(--ink);
}
.page-hero h1 {
	max-width: 920px;
	margin: 0;
	font-size: clamp(42px,6vw,76px);
	line-height: 1.02;
	letter-spacing: -.055em;
}
.page-hero__lead { max-width: 760px; color: #b9ccc7; font-size: 20px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: #9eb6b1; font-size: 13px; }
.breadcrumbs a { color: var(--mint); text-decoration: none; }
.content-layout { display: grid; grid-template-columns: minmax(0,760px) 280px; gap: 70px; align-items: start; }
.prose h2 { margin-top: 2em; font-size: 30px; line-height: 1.3; letter-spacing: -.025em; }
.prose h3 { margin-top: 1.7em; font-size: 22px; }
.prose p, .prose li { color: #2a4347; }
.prose table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; }
.prose th, .prose td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: #e6efeb; }
.prose blockquote { margin: 30px 0; padding: 20px 24px; border-left: 4px solid var(--mint); background: #e9f4f0; }
.aside-box { position: sticky; top: 100px; padding: 24px; border: 1px solid var(--line); background: var(--paper-bright); }
.aside-box h2 { margin-top: 0; font-size: 22px; }

.site-footer {
	padding: 60px 0 30px;
	color: #d5e1de;
	background: #041319;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; }
.footer-brand { color: #fff; font-size: 25px; font-weight: 800; text-decoration: none; }
.site-footer p, .site-footer a { color: #9fb3af; }
.site-footer a { text-decoration: none; }
.site-footer nav { display: grid; gap: 9px; }
.site-footer h2 { margin: 0 0 14px; color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.footer-bottom { margin-top: 46px; padding-top: 24px; border-top: 1px solid #21373e; font-size: 13px; }

.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span { padding: 8px 12px; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { color: #fff; background: var(--ink); }
.calculator {
	padding: clamp(24px,4vw,38px);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper-bright);
}
.calculator__grid {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 16px;
}
.calculator label { display: grid; gap: 7px; color: var(--ink-soft); font-weight: 700; }
.calculator label span { color: var(--muted); font-size: 12px; font-weight: 600; }
.calculator input {
	width: 100%;
	min-height: 50px;
	padding: 10px 13px;
	border: 1px solid #aebfba;
	border-radius: 9px;
	color: var(--ink);
	background: #fff;
	font: 700 18px/1.2 ui-monospace, monospace;
}
.calculator__results {
	display: grid;
	grid-template-columns: repeat(3,minmax(0,1fr));
	gap: 12px;
	margin-top: 24px;
}
.calculator__results div { padding: 18px; border-radius: 12px; background: #e9f4f0; }
.calculator__results span { display: block; color: var(--muted); font-size: 13px; }
.calculator__results strong { display: block; margin-top: 6px; color: var(--mint-dark); font: 800 clamp(22px,3vw,32px)/1.2 ui-monospace, monospace; }
.calculator__note { margin: 18px 0 0; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
	.header-inner { min-height: 66px; }
	.nav-list { display: none; }
	.hero-grid, .section-head, .cta-band__inner, .content-layout, .footer-grid { grid-template-columns: 1fr; }
	.section-head, .cta-band__inner { display: grid; }
	.cards { grid-template-columns: 1fr; }
	.calculator__grid, .calculator__results { grid-template-columns: 1fr; }
	.aside-box { position: static; }
}
@media (max-width: 620px) {
	:root { --shell: min(100% - 28px, 1180px); }
	body { font-size: 16px; }
	.header-cta { display: none; }
	.hero { padding-top: 62px; }
	.hero h1 { font-size: 48px; }
	.post-grid { grid-template-columns: 1fr; }
	.footer-grid { gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
