/*
Theme Name: AskTheOtherSex
Theme URI: https://www.asktheothersex.com
Author: AskTheOtherSex
Description: Dual-answer Q&A theme for AskTheOtherSex.
Version: 0.1.0
Text Domain: asktheothersex
*/

:root {
	--paper: #ffffff;
	--paper-2: #fbfbfb;
	--ink: #111111;
	--ink-soft: #555555;
	--rule: #e2e2e2;
	--pink: #e80868;
	--blue: #1888c8;
	--wine: #e80868;
	--pine: #1888c8;
	--clay: #e80868;
	--gold: #f1c96b;
	--shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
	--radius: 18px;
	--serif: "Fraunces", "Iowan Old Style", Georgia, serif;
	--sans: "Figtree", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.55;
	min-height: 100vh;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--wine); }

.atos-skip {
	position: absolute;
	left: 12px;
	top: -40px;
	z-index: 100;
	background: var(--ink);
	color: var(--paper);
	padding: 8px 12px;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
}
.atos-skip:focus {
	top: 12px;
	color: var(--paper);
}

:focus-visible {
	outline: 2px solid var(--clay);
	outline-offset: 3px;
}

.atos-related {
	margin: 36px 0 24px;
}
.atos-related h2 {
	font-family: var(--serif);
	font-size: 28px;
	margin: 0 0 12px;
}
.atos-related ul {
	margin: 0;
	padding-left: 18px;
}
.atos-related li { margin: 6px 0; }

.atos-devbar {
	background: var(--ink);
	color: #f3ede3;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
	padding: 8px 16px;
}

.atos-wrap {
	width: min(1120px, calc(100% - 40px));
	margin: 0 auto;
}

.atos-header {
	padding: 10px 0;
	border-bottom: 1px solid var(--rule);
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(10px);
	position: sticky;
	top: 0;
	z-index: 20;
}

.atos-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.atos-logo,
.custom-logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
	line-height: 0;
}

.atos-logo img,
.custom-logo-link img,
.custom-logo {
	display: block;
	height: 52px;
	width: auto;
	max-width: 220px;
}

.atos-footer-logo img {
	display: block;
	height: 40px;
	width: auto;
	margin-bottom: 10px;
}

.atos-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
}

.atos-nav a { text-decoration: none; }

.atos-nav .current-menu-item a,
.atos-nav .current-menu-item a:hover { color: var(--pink); }

.atos-ask-link {
	background: var(--ink);
	color: #fff !important;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	padding: 10px 16px;
	border-radius: 999px;
	white-space: nowrap;
}

.atos-ask-link:hover { background: var(--pink); color: #fff !important; }

.atos-hero {
	padding: 72px 0 48px;
	display: grid;
	grid-template-columns: 1.3fr 0.7fr;
	gap: 48px;
	align-items: end;
}

.atos-kicker {
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--clay);
	margin: 0 0 12px;
}

.atos-hero h1,
.page-title,
.archive-title {
	font-family: var(--serif);
	font-weight: 560;
	letter-spacing: -0.04em;
	line-height: 1.05;
	margin: 0 0 16px;
	font-size: clamp(40px, 6vw, 72px);
}

.atos-lede {
	font-size: 20px;
	color: var(--ink-soft);
	max-width: 38rem;
	margin: 0;
}

.atos-hero-aside {
	background: var(--paper-2);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	padding: 22px;
	box-shadow: var(--shadow);
}

.atos-hero-aside ol {
	margin: 12px 0 0;
	padding-left: 18px;
	color: var(--ink-soft);
}

.atos-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 8px 0 28px;
}

.atos-chip {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	border: 1px solid var(--rule);
	background: transparent;
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
}

.atos-chip.is-active,
.atos-chip:hover {
	background: var(--ink);
	color: var(--paper);
	border-color: var(--ink);
}

.atos-list {
	display: grid;
	gap: 18px;
	padding-bottom: 72px;
}

.atos-card {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 22px;
	background: var(--paper-2);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	padding: 22px;
	text-decoration: none;
	box-shadow: var(--shadow);
}

.atos-card:hover { transform: translateY(-2px); color: inherit; }

.atos-card h2 {
	font-family: var(--serif);
	font-size: 28px;
	line-height: 1.15;
	letter-spacing: -0.03em;
	margin: 0 0 8px;
}

.atos-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.atos-tag {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 4px 8px;
	border-radius: 999px;
	background: #efe6d8;
}

.atos-tag.men { background: #d7eef8; color: #0d6a9a; }
.atos-tag.women { background: #fde4ef; color: #c10654; }
.atos-tag.both { background: #fff4d4; color: #8a6a12; }

.atos-split-preview {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.atos-split-preview div {
	border-radius: 12px;
	padding: 16px 12px;
	display: flex;
	align-items: flex-end;
}

.atos-split-preview .men { background: var(--blue); color: #f4fbff; }
.atos-split-preview .women { background: var(--pink); color: #fff5f9; }

.atos-question {
	padding: 48px 0 80px;
}

.atos-question-head h1 {
	font-family: var(--serif);
	font-size: clamp(34px, 5vw, 58px);
	letter-spacing: -0.04em;
	line-height: 1.08;
	margin: 10px 0 18px;
}

.atos-note {
	background: var(--paper-2);
	border-left: 4px solid var(--clay);
	padding: 18px 20px;
	margin: 0 0 36px;
	color: var(--ink-soft);
}

.atos-answers {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin-bottom: 28px;
}

.atos-answer {
	background: var(--paper-2);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	padding: 24px;
	box-shadow: var(--shadow);
}

.atos-answer h2 {
	margin: 0 0 14px;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.atos-answer.men { border-top: 6px solid var(--blue); }
.atos-answer.women { border-top: 6px solid var(--pink); }

.atos-answer .byline {
	font-size: 13px;
	color: var(--ink-soft);
	margin-bottom: 12px;
}

.atos-next {
	background: var(--ink);
	color: var(--paper);
	border-radius: var(--radius);
	padding: 28px;
	margin-bottom: 48px;
}

.atos-next h2 {
	margin: 0 0 10px;
	font-family: var(--serif);
	font-size: 28px;
}

.atos-page {
	padding: 48px 0 80px;
	max-width: 760px;
}

.atos-page h1 {
	font-family: var(--serif);
	font-size: clamp(36px, 5vw, 56px);
	letter-spacing: -0.04em;
	margin: 0 0 18px;
}

.atos-form-wrap { max-width: 720px; }

.atos-form {
	display: grid;
	gap: 16px;
	background: var(--paper-2);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: var(--shadow);
}

.atos-form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.atos-form label span em { font-weight: 500; color: var(--ink-soft); font-style: normal; }

.atos-form input,
.atos-form select,
.atos-form textarea {
	font: inherit;
	padding: 12px 12px;
	border: 1px solid var(--rule);
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
	width: 100%;
}

.atos-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.atos-check {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	font-weight: 500 !important;
}

.atos-check input { width: auto; margin-top: 4px; }

.atos-btn,
.atos-form button {
	appearance: none;
	border: 0;
	background: var(--ink);
	color: var(--paper);
	font: inherit;
	font-weight: 800;
	padding: 14px 18px;
	border-radius: 999px;
	cursor: pointer;
	width: fit-content;
}

.atos-btn:hover,
.atos-form button:hover { background: var(--pink); }

.atos-form-fine,
.atos-form-notice { font-size: 14px; color: var(--ink-soft); }

.atos-form-notice {
	padding: 14px 16px;
	border-radius: 12px;
	margin-bottom: 16px;
}

.atos-form-notice--ok { background: #d7eef8; color: #0d6a9a; }
.atos-form-notice--err { background: #fde4ef; color: #c10654; }

.atos-hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.atos-footer {
	border-top: 0;
	padding: 32px 0 48px;
	color: #cccccc;
	font-size: 14px;
	background: #333333;
}

.atos-footer a { color: #ffffff; }
.atos-footer a:hover { color: var(--pink); }

.atos-footer-inner {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.atos-footer nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.atos-empty {
	padding: 48px 0 80px;
	color: var(--ink-soft);
}

.atos-comments { margin-top: 24px; }

@media (max-width: 800px) {
	.atos-hero,
	.atos-card,
	.atos-answers,
	.atos-form-row,
	.atos-header-inner { grid-template-columns: 1fr; display: grid; }
	.atos-header-inner { gap: 14px; }
	.atos-split-preview { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
	.atos-hero { padding-top: 36px; }
	.atos-logo img,
	.custom-logo-link img,
	.custom-logo { height: 42px; }
}
