/*
Theme Name: L'Ann Anders
Theme URI: https://lannanders.com
Author: Adobo Records
Author URI: https://lannanders.com
Description: Newspaper-style advice column theme for lannanders.com. Black-and-white newsprint with a lipstick-red accent, letter layouts that read the "From / Question / answer" format, and Google AdSense support built in (site verification, ad slots, ads.txt).
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lannanders
*/

/* Look: newsprint black and white, one lipstick-red accent.
   Display: Abril Fatface. Body: Libre Franklin. Sign-off: Caveat. */
:root {
	--ink: #161616;
	--paper: #ffffff;
	--muted: #555555;
	--wash: #f3f3f1;
	--blush: #fbe9ea;
	--red: #c8102e;
	--red-dark: #8e0b20;
	--pink-on-ink: #ff8a9a;
	--display: 'Abril Fatface', Georgia, 'Times New Roman', serif;
	--body: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
	--script: 'Caveat', 'Brush Script MT', cursive;
	--wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; }
.skip-link:focus { left: 12px; top: 12px; color: #fff; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

.kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; color: var(--red); }
.link-caps { font-size: 14px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 14px 26px; border: 2px solid transparent; border-radius: 2px;
	font-family: var(--body); font-weight: 800; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
	text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #3a3a3a; color: #fff; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--small { min-height: 44px; padding: 10px 18px; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Top bar */
.topbar { background: var(--ink); color: #fff; font-size: 13px; letter-spacing: 0.04em; }
.topbar__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 10px; padding-bottom: 10px; }

/* Masthead */
.masthead { border-bottom: 4px double var(--ink); }
.masthead__name { font-family: var(--display); font-weight: 400; color: var(--ink); text-decoration: none; line-height: 1; margin: 0; }
.masthead__name:hover { color: var(--ink); }
.masthead--big .masthead__in { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 28px; padding-bottom: 18px; text-align: center; }
.masthead--big .masthead__name { font-size: clamp(40px, 8vw, 84px); }
.masthead__tag { margin: 0; font-size: 15px; font-style: italic; color: #444; }
.masthead--big .mainnav { border-top: 1px solid var(--ink); }
.masthead--big .mainnav ul { justify-content: center; }
.masthead--small .masthead__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 18px; padding-bottom: 18px; }
.masthead--small .masthead__name { font-size: 40px; }

.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 32px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.mainnav a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; }
.mainnav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.mainnav .current-menu-item > a,
.mainnav .current_page_item > a,
.mainnav .current_page_parent > a,
.mainnav .current-page-ancestor > a,
.mainnav .current-post-ancestor > a { border-bottom-color: var(--red); }

/* Front page hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 56px; }
.hero__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 60px); line-height: 1.05; }
.hero__lede { margin: 0; max-width: 34em; font-size: 19px; line-height: 1.6; color: #333; }

.portrait { flex: 1 1 300px; max-width: 360px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border: 1px solid var(--ink); box-shadow: 10px 10px 0 var(--red); }
.portrait figcaption { font-size: 13px; font-style: italic; color: var(--muted); }

/* Ads */
.ad { margin: 32px auto; text-align: center; clear: both; }
.ad__label { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #6b6b6b; }
.ad--placeholder { border: 1px dashed #9a9a9a; padding: 28px 16px; font-size: 13px; color: #6b6b6b; }
.ad--placeholder strong { display: block; margin-bottom: 4px; color: var(--ink); }
.sidebar .ad { margin: 0; }

/* Featured letter */
.featured { display: flex; flex-wrap: wrap; border: 2px solid var(--ink); margin: 56px 0; }
.featured__q { flex: 1 1 320px; background: var(--ink); color: #fff; padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.featured__q .kicker { color: var(--pink-on-ink); }
.featured__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.15; }
.featured__title a { color: #fff; text-decoration: none; }
.featured__title a:hover { text-decoration: underline; }
.featured__q blockquote { margin: 0; font-size: 17px; line-height: 1.6; font-style: italic; color: #e4e4e4; }
.featured__pen { font-size: 14px; font-weight: 600; }
.featured__more { color: var(--pink-on-ink); font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-top: -6px; }
.featured__more:hover { color: #fff; }
.featured__a { flex: 999 1 460px; min-width: 0; padding: 40px; font-size: 17px; line-height: 1.65; }
.featured__a p { margin: 0 0 16px; }

.lann-sign { margin: 8px 0 0 !important; font-family: var(--script); font-weight: 600; font-size: 40px; line-height: 1; color: var(--red); }

/* Section heads and the card grid */
.section { padding-top: 8px; padding-bottom: 56px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 28px; }
.section-head h1, .section-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1.1; }
.section-intro { margin: -12px 0 28px; color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 28px; }
.card { border-top: 6px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.card__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.card__topic { color: var(--red); text-decoration: none; }
.card__pen { color: var(--muted); text-align: right; }
.card__q { margin: 0; font-size: 19px; line-height: 1.4; font-weight: 600; font-style: italic; }
.card__q a { color: var(--ink); text-decoration: none; }
.card__q a:hover { color: var(--ink); text-decoration: underline; }
.card__z { margin: 0; font-family: var(--display); font-size: 22px; line-height: 1.3; }

.chips { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.chips a:hover, .chips .is-current a { background: var(--ink); color: #fff; }

.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; }

/* Pink band (house rules, About lists) */
.band { background: var(--blush); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.band__in { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 28px; }
.band__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 40px; text-align: center; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.rules li { display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.55; color: #333; }
.rules__n { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--red); }
.rules strong { font-size: 19px; color: var(--ink); }
.band__cta { display: flex; justify-content: center; }

/* Single letter */
.single-layout { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 48px; padding-bottom: 64px; }
.letter { flex: 999 1 560px; min-width: 0; max-width: 740px; display: flex; flex-direction: column; gap: 24px; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.letter__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 52px); line-height: 1.08; }
.letter__date { font-size: 13px; color: var(--muted); margin-top: -10px; }
.entry-content .letter-in { background: var(--wash); border-top: 6px solid var(--ink); padding: 28px 32px; margin-bottom: 28px; display: flex; flex-direction: column; gap: 14px; }
.entry-content .letter-q { margin: 0; padding: 0; border: 0; font-size: 20px; line-height: 1.6; font-style: italic; }
.entry-content .letter-q p { margin: 0; }
.letter-pen { font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.letter-a { max-width: 36em; font-size: 19px; line-height: 1.7; }
.letter-a p { margin: 0 0 18px; }
.letter-a > p:first-child { font-weight: 600; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--ink); }
.share__label { padding: 12px 0; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.share .btn--line:hover { color: #fff; }

.postnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.postnav a { display: flex; flex-direction: column; gap: 6px; border-top: 6px solid var(--ink); padding-top: 14px; color: var(--ink); text-decoration: none; }
.postnav a:hover .postnav__t { text-decoration: underline; }
.postnav__l { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.postnav__t { font-size: 17px; font-weight: 600; line-height: 1.4; }
.postnav__next { grid-column: 2; text-align: right; }

.sidebar { flex: 1 1 300px; max-width: 360px; display: flex; flex-direction: column; gap: 32px; }
.cta-box { background: var(--ink); color: #fff; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.cta-box__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.15; }
.cta-box p { margin: 0; font-size: 15px; line-height: 1.6; color: #e4e4e4; }
.sidebar h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 26px; }
.more-list { list-style: none; margin: 0; padding: 0; }
.more-list a { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--ink); color: var(--ink); text-decoration: none; }
.more-list a:hover span:first-child { text-decoration: underline; }
.more-list span:first-child { font-size: 16px; font-weight: 600; line-height: 1.4; }
.more-list span + span { font-size: 13px; color: var(--muted); }

/* Generic pages and post content */
.page-wrap { max-width: 808px; padding-top: 56px; padding-bottom: 72px; }
.page-title { margin: 0 0 28px; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 52px); line-height: 1.08; }
.entry-content { font-size: 18px; line-height: 1.7; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin: 40px 0 12px; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.2; }
.entry-content h3 { margin: 32px 0 8px; font-size: 20px; }
.entry-content blockquote { margin: 24px 0; padding: 20px 24px; background: var(--wash); border-top: 6px solid var(--ink); font-style: italic; }
.entry-content hr { border: 0; border-top: 1px solid var(--ink); margin: 32px 0; }
.entry-content ul, .entry-content ol { padding-left: 24px; }
.entry-content li { margin-bottom: 6px; }
.has-small-font-size { font-size: 14px !important; color: var(--muted); }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* About page */
.about-hero { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px; padding-top: 64px; padding-bottom: 64px; }
.about-hero .portrait { flex: 1 1 320px; max-width: 420px; }
.about-hero .portrait img { aspect-ratio: 2 / 3; object-position: center; box-shadow: 12px 12px 0 var(--red); }
.about-hero__text { flex: 999 1 480px; min-width: 0; max-width: 640px; display: flex; flex-direction: column; gap: 18px; }
.about-hero__name { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(48px, 7vw, 64px); line-height: 1; }
.about-hero__tag { margin: 0; font-size: 18px; font-weight: 800; }
.about-hero .entry-content p { margin: 0 0 16px; }
.band .entry-content h2 { margin-top: 0; font-size: 32px; }
.band .wp-block-columns { display: flex; flex-wrap: wrap; gap: 48px; margin: 0; }
.band .wp-block-column { flex: 1 1 300px; min-width: 0; }
.band .entry-content li { font-size: 17px; line-height: 1.55; }
.about-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 56px; padding-bottom: 56px; }
.about-cta p { margin: 0; max-width: 22em; font-family: var(--display); font-size: 32px; line-height: 1.2; }

/* Ask page */
.ask-layout { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 56px; padding-bottom: 72px; }
.ask-intro { flex: 1 1 320px; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.ask-intro__title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 56px); line-height: 1.05; }
.ask-intro .entry-content { font-size: 18px; }
.ask-intro .entry-content p { margin: 0 0 16px; }
.ask-intro .entry-content ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.ask-intro .entry-content li { margin: 0; border-top: 1px solid var(--ink); padding-top: 12px; font-size: 16px; line-height: 1.5; }
.ask-card { flex: 999 1 480px; min-width: 0; max-width: 640px; align-self: flex-start; background: #fff; border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--red); padding: 36px; }
.ask-card__dear { margin: 0 0 20px; font-family: var(--display); font-weight: 400; font-size: 34px; }
.ask-card .entry-content { font-size: 16px; }
.ask-card label, .ask-card .forminator-label { display: block; margin-bottom: 8px; font-family: var(--body) !important; font-size: 14px !important; font-weight: 800 !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink) !important; }
.ask-card input[type="text"], .ask-card input[type="email"], .ask-card input[type="url"], .ask-card input[type="tel"], .ask-card select, .ask-card textarea {
	width: 100%; min-height: 44px; padding: 12px 14px; border: 1px solid var(--ink) !important; border-radius: 2px !important;
	background: #fff !important; color: var(--ink) !important; font-family: var(--body) !important; font-size: 16px !important; line-height: 1.5;
}
.ask-card textarea { min-height: 200px; resize: vertical; }
.ask-card input:focus, .ask-card textarea:focus { outline: 3px solid var(--red); outline-offset: 2px; }
.ask-card button[type="submit"], .ask-card input[type="submit"], .ask-card .forminator-button-submit {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 28px !important; border: 0 !important; border-radius: 2px !important;
	background: var(--red) !important; color: #fff !important; font-family: var(--body) !important; font-size: 15px !important; font-weight: 800 !important; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
}
.ask-card button[type="submit"]:hover, .ask-card .forminator-button-submit:hover { background: var(--red-dark) !important; }
.ask-card .forminator-row { margin-bottom: 20px !important; }
.ask-card .forminator-response-message { padding: 16px; border: 2px solid var(--ink); background: var(--blush); color: var(--ink); }

/* 404 */
.notfound { max-width: 760px; padding-top: 72px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 22px; }
.notfound p { margin: 0; font-size: 19px; }

/* Footer */
.site-footer { background: var(--ink); color: #e4e4e4; }
.site-footer a { color: #fff; }
.site-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
.site-footer__brand { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
.site-footer__name { font-family: var(--display); font-size: 32px; color: #fff; }
.site-footer__brand p { margin: 0; max-width: 36em; font-size: 14px; line-height: 1.6; }
.site-footer__links { flex: 1 1 240px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer__links strong { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.footnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footnav a { display: inline-block; padding: 6px 0; }
.site-footer__copy { color: #a8a8a8; }

@media (max-width: 900px) {
	.sidebar { max-width: none; }
	.portrait { max-width: 420px; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.wrap { padding-left: 16px; padding-right: 16px; }
	.hero { padding-top: 36px; padding-bottom: 36px; gap: 32px; }
	.featured__q, .featured__a, .ask-card { padding: 24px; }
	.entry-content .letter-in { padding: 20px; }
	.section-head h1, .section-head h2, .band__title { font-size: 32px; }
	.masthead--small .masthead__name { font-size: 32px; }
	.postnav { grid-template-columns: 1fr; }
	.postnav__next { grid-column: auto; text-align: left; }
	.alignleft, .alignright { float: none; margin: 0 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
