/*
 * Amourelle main stylesheet.
 * Design tokens live on :root so Customizer colors can override them.
 */

:root {
	--am-accent: #33486b;
	--am-accent-dark: #253755;
	--am-bg: #fbfaf7;
	--am-band: #efede8;
	--am-blush: #e8e6df;
	--am-heading: #242830;
	--am-text: #4b505c;
	--am-muted: #8f939e;
	--am-line: #e2e0d9;
	--am-white: #ffffff;

	--am-font-serif: "Italiana", "Times New Roman", serif;
	--am-font-script: "Pinyon Script", "Snell Roundhand", cursive;
	--am-font-body: "Outfit", "Helvetica Neue", Arial, sans-serif;

	--am-container: 1200px;
	--am-radius: 2px;
	--am-shadow: 0 18px 45px -22px rgba(36, 40, 48, 0.14);
	--am-transition: 0.25s ease;
}

/* ---------- Reset-ish base ---------- */

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	/* clip (not hidden) contains .alignfull's 100vw without making body a scroll container, so buyer-added position:sticky and anchor scrolling keep working */
	overflow-x: clip;
	background: var(--am-bg);
	color: var(--am-text);
	font-family: var(--am-font-body);
	font-size: 16px;
	letter-spacing: normal;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--am-font-serif);
	color: var(--am-heading);
	font-weight: 400;
	line-height: 1.22;
	margin: 0 0 0.6em;
}

p {
	margin: 0 0 1.2em;
}

a {
	color: var(--am-accent);
	text-decoration: none;
	transition: color var(--am-transition);
}

a:hover {
	color: var(--am-accent-dark);
}

.am-container {
	max-width: var(--am-container);
	margin-inline: auto;
	padding-inline: 24px;
}

::selection {
	background: var(--am-blush);
	color: var(--am-heading);
}

/* ---------- Accessibility helpers ---------- */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--am-heading);
	color: #fff;
	padding: 10px 18px;
	z-index: 999;
}

.skip-link:focus {
	left: 0;
	color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--am-accent);
	outline-offset: 2px;
}

/* ---------- Type helpers ---------- */

.am-eyebrow {
	display: inline-block;
	font-family: var(--am-font-body);
	font-size: 13.5px;
	font-variant-caps: all-small-caps;
	letter-spacing: 0.3em;
	text-transform: none;
	color: var(--am-accent);
	margin-bottom: 14px;
}

.am-script-accent {
	display: block;
	font-family: var(--am-font-script);
	font-size: 30px;
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--am-accent);
	line-height: 1.3;
	margin-bottom: 10px;
}

.am-section-heading {
	text-align: center;
	margin-bottom: 56px;
}

.am-section-heading__title {
	font-size: clamp(28px, 3.6vw, 40px);
	margin: 0;
}

/* Invitation divider: a double hairline with a small centered dot. */
.am-section-heading__rule {
	display: block;
	position: relative;
	width: 170px;
	height: 7px;
	margin: 22px auto 0;
	border-top: 1px solid var(--am-accent);
	border-bottom: 1px solid var(--am-accent);
	background: transparent;
}

.am-section-heading__rule::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--am-accent);
	transform: translate(-50%, -50%);
}

/* ---------- Buttons: two navy hairlines with a 3px gap; fill navy on hover ---------- */

.am-button {
	position: relative;
	display: inline-block;
	font-family: var(--am-font-body);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--am-accent);
	background: transparent;
	border: 1px solid var(--am-accent);
	padding: 14px 32px;
	cursor: pointer;
	transition: transform var(--am-transition);
}

.am-button::after {
	content: "";
	position: absolute;
	inset: 3px;
	border: 1px solid var(--am-accent);
	pointer-events: none;
}

.am-button:hover {
	color: #ffffff;
	background: var(--am-accent);
}

.am-button:hover::after {
	border-color: rgba(255, 255, 255, 0.55);
}

.am-button--ghost {
	background: transparent;
	color: var(--am-accent);
}

.am-textlink {
	font-size: 12px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--am-accent);
	border-bottom: 1px solid var(--am-accent);
	padding-bottom: 3px;
}

.am-textlink:hover {
	color: var(--am-accent-dark);
	border-bottom-color: var(--am-accent-dark);
}

/* ---------- Icons ---------- */

.am-icon {
	width: 1.05em;
	height: 1.05em;
	vertical-align: -0.18em;
}

/* ---------- Header ---------- */

.site-header {
	background: var(--am-white);
	border-bottom: 1px solid var(--am-line);
}

.am-header-top {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 20px;
	padding-block: 26px;
}

.am-header-top__cta {
	justify-self: end;
}

.am-branding {
	text-align: center;
}

.am-logo-text {
	margin: 0;
	font-family: var(--am-font-serif);
	font-weight: 400;
	font-size: clamp(30px, 4vw, 42px);
	letter-spacing: 0.04em;
	line-height: 1;
}

.am-logo-text a {
	color: var(--am-heading);
}

.custom-logo-link img {
	max-height: 90px;
	width: auto;
	margin-inline: auto;
}

.am-social {
	list-style: none;
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
}

.am-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	color: var(--am-heading);
	transition: background var(--am-transition), color var(--am-transition);
}

.am-social a:hover {
	background: var(--am-blush);
	color: var(--am-accent-dark);
}

/* Nav */

.am-nav {
	border-top: 1px solid var(--am-line);
	background: var(--am-white);
}

.am-nav__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.am-nav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0;
	padding: 0;
}

.am-nav li {
	position: relative;
}

.am-nav a {
	display: block;
	padding: 16px 18px;
	font-size: 12.5px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--am-heading);
}

.am-nav a:hover {
	color: var(--am-accent);
}

/* Dropdowns */

.am-nav ul ul {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--am-white);
	border: 1px solid var(--am-line);
	box-shadow: var(--am-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity var(--am-transition), transform var(--am-transition), visibility var(--am-transition);
	z-index: 50;
	display: block;
}

.am-nav ul ul li {
	border-bottom: 1px solid var(--am-band);
}

.am-nav ul ul a {
	padding: 12px 18px;
	letter-spacing: 0.12em;
	text-transform: none;
	font-size: 14px;
}

.am-nav ul ul ul {
	top: 0;
	left: 100%;
}

.am-nav li:hover > ul,
.am-nav li:focus-within > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.am-search-toggle {
	background: none;
	border: none;
	color: var(--am-heading);
	cursor: pointer;
	padding: 10px;
	font-size: 16px;
}

.am-search-bar {
	border-top: 1px solid var(--am-line);
	padding-block: 18px;
	background: var(--am-band);
}

/* Mobile nav toggle */

.am-nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--am-line);
	padding: 10px;
	cursor: pointer;
	justify-self: end;
}

.am-nav-toggle__bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--am-heading);
	margin: 4px 0;
	transition: transform var(--am-transition), opacity var(--am-transition);
}

.am-nav-toggle[aria-expanded="true"] .am-nav-toggle__bar:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.am-nav-toggle[aria-expanded="true"] .am-nav-toggle__bar:nth-child(2) {
	opacity: 0;
}

.am-nav-toggle[aria-expanded="true"] .am-nav-toggle__bar:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Front page: hero (full-bleed light image; centered text inside a
   translucent white panel bounded by a double hairline "invitation" frame) ---------- */

.am-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	min-height: 660px;
	background: var(--am-band);
}

.am-hero__panel {
	position: relative;
	z-index: 2;
	align-self: center;
	justify-self: center;
	max-width: 580px;
	margin: 60px 24px;
	text-align: center;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid var(--am-accent);
	padding: 54px 58px;
}

.am-hero__panel::after {
	content: "";
	position: absolute;
	inset: 5px;
	border: 1px solid var(--am-accent);
	pointer-events: none;
}

.am-hero__title {
	font-size: clamp(38px, 5vw, 64px);
	font-weight: 400;
	margin: 0 0 28px;
}

.am-hero__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.am-hero__media img,
.am-hero__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.am-hero__placeholder {
	background:
		radial-gradient(ellipse at 70% 30%, #dfe1e6 0%, transparent 55%),
		radial-gradient(ellipse at 30% 80%, #c6cbd4 0%, transparent 50%),
		var(--am-blush);
}

/* ---------- Front page: services ---------- */

.am-services {
	padding: 96px 0 80px;
}

.am-services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	align-items: start;
}

.am-service {
	text-align: center;
}

.am-service:nth-child(2) {
	margin-top: 48px;
}

.am-service__media {
	position: relative;
	margin-bottom: 46px;
}

.am-service__media img,
.am-service__placeholder {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 1px solid var(--am-line);
}

.am-service__placeholder {
	background: linear-gradient(135deg, var(--am-band), var(--am-blush));
}

.am-service__badge {
	position: absolute;
	left: 50%;
	bottom: -28px;
	transform: translateX(-50%);
	width: 56px;
	height: 56px;
	background: transparent;
	color: var(--am-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}

.am-service__title {
	font-size: 24px;
	margin-bottom: 10px;
}

.am-service__text {
	color: var(--am-muted);
	max-width: 320px;
	margin-inline: auto;
}

/* ---------- Front page: about ---------- */

.am-about {
	padding: 60px 0 90px;
}

.am-about__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 70px;
	align-items: center;
}

.am-about__media {
	position: relative;
	padding-left: 56px;
	padding-bottom: 40px;
}

.am-about__img-main,
.am-about__placeholder {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border: 1px solid var(--am-line);
}

.am-about__placeholder {
	background: linear-gradient(160deg, var(--am-blush), var(--am-band) 70%);
}

.am-about__inset {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 46%;
	border: 8px solid var(--am-white);
	outline: 1px solid var(--am-line);
}

.am-about__inset img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.am-about__title {
	font-size: clamp(30px, 3.6vw, 44px);
	margin-bottom: 18px;
}

.am-about__text {
	color: var(--am-muted);
	margin-bottom: 30px;
}

/* ---------- Front page: category tiles ---------- */

.am-cats {
	position: relative;
	padding: 90px 0;
	background:
		url("../images/floral.svg") no-repeat right -60px top -40px / 420px auto,
		var(--am-band);
}

.am-cats__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 34px;
	align-items: start;
}

.am-cat-tile {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: linear-gradient(150deg, #c9ccd2, #aab0ba);
	background-size: cover;
	background-position: center;
	overflow: hidden;
	filter: none;
	box-shadow: var(--am-shadow);
}

.am-cat-tile--2 {
	margin-top: 44px;
}

.am-cat-tile--3 {
	margin-top: 88px;
}

.am-cat-tile::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(36, 40, 48, 0.4);
	transition: background var(--am-transition);
}

.am-cat-tile:hover::before {
	background: rgba(36, 40, 48, 0.55);
}

.am-cat-tile__frame {
	position: absolute;
	inset: 16px;
	border: 1px solid rgba(255, 255, 255, 0.9);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-align: center;
}

.am-cat-tile:hover .am-cat-tile__frame {
	inset: 24px;
}

.am-cat-tile__name {
	font-family: var(--am-font-serif);
	font-size: 22px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: #fff;
}

.am-cat-tile__count {
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}

/* ---------- Front page: note ---------- */

.am-note {
	padding: 90px 0;
	background: var(--am-bg);
}

.am-note__inner {
	max-width: 680px;
	text-align: center;
}

.am-note__avatar img {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 22px;
	border: 1px solid var(--am-line);
}

.am-note__title {
	font-size: 28px;
	color: var(--am-accent);
	margin-bottom: 16px;
}

.am-note__text {
	font-style: italic;
	color: var(--am-muted);
}

.am-note__signature {
	display: block;
	font-family: var(--am-font-script);
	font-size: 32px;
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--am-accent-dark);
	margin-top: 18px;
}

/* ---------- Front page: latest ---------- */

.am-latest {
	padding: 20px 0 100px;
}

/* ---------- Page hero (blog/archive title band) ---------- */

.am-page-hero {
	background:
		linear-gradient(rgba(36, 40, 48, 0.42), rgba(36, 40, 48, 0.42)),
		linear-gradient(140deg, #c9ccd2, #aab0ba);
	padding: 84px 0;
}

.am-page-hero__frame {
	max-width: 560px;
	margin-inline: auto;
	border: 1px solid rgba(255, 255, 255, 0.8);
	padding: 26px 30px;
	text-align: center;
}

.am-page-hero__title {
	margin: 0;
	color: #fff;
	font-size: clamp(26px, 3.4vw, 38px);
	font-weight: 400;
}

.am-page-hero__desc {
	color: rgba(255, 255, 255, 0.9);
	margin-top: 10px;
	font-size: 15px;
}

/* ---------- Content area + sidebar ---------- */

.am-content-area {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 56px;
	padding-block: 72px;
}

.am-no-sidebar .am-content-area {
	grid-template-columns: minmax(0, 1fr);
	max-width: 900px;
}

/* ---------- Post cards ---------- */

.am-card-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 44px 34px;
}

.am-card-grid--three {
	grid-template-columns: repeat(3, 1fr);
}

/* Invitation cards: hairline border with a tiny centered ornament tick on the
   top edge; card images are arch-topped. */
.am-card {
	position: relative;
	background: var(--am-white);
	border: 1px solid var(--am-line);
	padding: 12px 12px 14px;
}

.am-card::after,
.am-review::after,
.am-plan::after {
	content: "";
	position: absolute;
	top: -4px;
	left: 50%;
	width: 7px;
	height: 7px;
	background: var(--am-white);
	border: 1px solid var(--am-accent);
	transform: translateX(-50%) rotate(45deg);
}

.am-card__media {
	position: relative;
	overflow: hidden;
	border-radius: 50% 50% 0 0 / 30% 30% 0 0;
}

.am-card__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.am-card:hover .am-card__media img {
	transform: scale(1.035);
}

.am-card__body {
	padding: 20px 16px 10px;
	text-align: center;
}

.am-card__body .am-entry-meta {
	justify-content: center;
}

.am-card__title {
	font-size: 22px;
	margin-bottom: 12px;
}

.am-card__title a {
	color: var(--am-heading);
}

.am-card__title a:hover {
	color: var(--am-accent);
}

.am-card__excerpt {
	color: var(--am-muted);
	font-size: 15px;
}

.am-card__excerpt p {
	margin-bottom: 18px;
}

.am-card__more {
	font-size: 11px;
	padding: 11px 20px;
}

/* Oval lozenge date badge: navy fill, white Italiana numerals. */

.am-date-badge {
	position: absolute;
	left: 14px;
	bottom: 14px;
	width: auto;
	height: auto;
	background: var(--am-accent);
	color: #ffffff;
	border-radius: 999px;
	transform: none;
	display: flex;
	flex-direction: row;
	gap: 7px;
	align-items: baseline;
	padding: 8px 18px;
}

.am-date-badge__day,
.am-date-badge__month {
	transform: none;
	position: static;
	color: #ffffff;
	line-height: 1;
}

.am-date-badge__day {
	font-family: var(--am-font-serif);
	font-size: 17px;
	margin: 0;
}

.am-date-badge__month {
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}

/* Format badge */

.am-format-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(36, 40, 48, 0.65);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(2px);
}

/* Entry meta */

.am-entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: 12.5px;
	letter-spacing: 0.06em;
	color: var(--am-muted);
	margin-bottom: 14px;
}

.am-entry-meta a {
	color: var(--am-muted);
}

.am-entry-meta a:hover {
	color: var(--am-accent);
}

.am-entry-meta .am-icon {
	color: var(--am-accent);
	margin-right: 4px;
}

/* ---------- Single post ---------- */

.am-single__header {
	text-align: center;
	margin-bottom: 34px;
}

.am-single__cats a {
	font-size: 11.5px;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	margin: 0 6px;
}

.am-single__title {
	font-size: clamp(30px, 4vw, 46px);
	margin: 10px 0 16px;
}

.am-single__header .am-entry-meta {
	justify-content: center;
}

.am-single__media {
	position: relative;
	margin-bottom: 40px;
}

.am-single__media .am-date-badge {
	bottom: 0;
}

.entry-content {
	font-size: 17px;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 1.6em;
}

.entry-content blockquote {
	border: none;
	position: relative;
	margin: 2.2em 0;
	padding: 30px 40px;
	background: var(--am-band);
	font-family: var(--am-font-serif);
	font-size: 20px;
	font-style: italic;
	color: var(--am-heading);
}

.entry-content blockquote::before {
	content: "”";
	position: absolute;
	top: -28px;
	left: 20px;
	font-family: var(--am-font-serif);
	font-size: 90px;
	color: var(--am-accent);
	opacity: 0.5;
}

.entry-content blockquote p {
	margin-bottom: 0;
}

.entry-content img {
	box-shadow: var(--am-shadow);
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.wp-element-caption {
	font-size: 13px;
	color: var(--am-muted);
	text-align: center;
	margin-top: 8px;
}

.alignwide {
	margin-inline: -40px;
	max-width: calc(100% + 80px);
}

.alignfull {
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
}

/* Tags + author box */

.am-single__tags {
	margin: 34px 0;
}

.am-single__tags a {
	display: inline-block;
	font-size: 11.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border: 1px solid var(--am-line);
	padding: 6px 14px;
	margin: 0 8px 8px 0;
	color: var(--am-muted);
}

.am-single__tags a:hover {
	border-color: var(--am-accent);
	color: var(--am-accent);
}

.am-author-box {
	display: flex;
	gap: 26px;
	align-items: center;
	background: var(--am-band);
	padding: 30px;
	margin-top: 26px;
}

.am-author-box__avatar img {
	border-radius: 50%;
}

.am-author-box__name {
	margin: 2px 0 6px;
	font-size: 22px;
}

.am-author-box__bio {
	margin: 0;
	color: var(--am-muted);
	font-size: 15px;
}

/* Prev/next */

.am-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	border-top: 1px solid var(--am-line);
	border-bottom: 1px solid var(--am-line);
	padding: 22px 0;
	margin: 44px 0;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* ---------- Comments ---------- */

.comments-area {
	margin-top: 30px;
}

.comments-title,
.comment-reply-title {
	font-size: 26px;
	text-align: center;
}

.comment-list {
	list-style: none;
	padding: 0;
}

.comment-list .comment-body {
	border: 1px solid var(--am-line);
	background: var(--am-white);
	padding: 24px;
	margin-bottom: 22px;
}

.comment-list .children {
	list-style: none;
	padding-left: 40px;
}

.comment-author .avatar {
	border-radius: 50%;
	float: left;
	margin-right: 14px;
}

.comment-metadata {
	font-size: 12px;
	color: var(--am-muted);
}

.comment-metadata a {
	color: var(--am-muted);
}

.reply a {
	font-size: 11.5px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.comment-form label {
	display: block;
	font-size: 12.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 6px;
	color: var(--am-heading);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	border: 1px solid var(--am-line);
	background: var(--am-white);
	padding: 12px 14px;
	font-family: var(--am-font-body);
	font-size: 15px;
	color: var(--am-text);
	margin-bottom: 16px;
}

.comment-form .submit {
	position: relative;
	display: inline-block;
	font-size: 13px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #fff;
	background: var(--am-heading);
	border: 1px solid var(--am-heading);
	padding: 13px 30px;
	cursor: pointer;
	transition: background var(--am-transition);
}

.comment-form .submit:hover {
	background: var(--am-accent);
	border-color: var(--am-accent);
}

/* ---------- Search form ---------- */

.am-searchform {
	display: flex;
	border: 1px solid var(--am-line);
	background: var(--am-white);
	max-width: 460px;
}

.am-searchform__field {
	flex: 1;
	border: none;
	background: transparent;
	padding: 12px 16px;
	font-family: var(--am-font-body);
	font-size: 15px;
	color: var(--am-text);
}

.am-searchform__field:focus {
	outline: none;
}

.am-searchform__submit {
	border: none;
	background: var(--am-heading);
	color: #fff;
	padding: 0 18px;
	cursor: pointer;
	transition: background var(--am-transition);
}

.am-searchform__submit:hover {
	background: var(--am-accent);
}

/* ---------- Widgets ---------- */

.widget {
	background: var(--am-white);
	border: 1px solid var(--am-line);
	padding: 28px;
	margin-bottom: 34px;
}

.widget-title {
	font-size: 19px;
	margin-bottom: 22px;
	position: relative;
	padding-left: 26px;
}

.widget-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 16px;
	height: 1px;
	background: var(--am-accent);
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget ul li {
	padding: 8px 0;
	border-bottom: 1px solid var(--am-band);
	font-size: 15px;
}

.widget ul li:last-child {
	border-bottom: none;
}

.widget ul li a {
	color: var(--am-text);
}

.widget ul li a:hover {
	color: var(--am-accent);
}

/* About widget */

.am-about-widget {
	text-align: center;
}

.am-about-widget__image img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	margin-bottom: 18px;
}

.am-about-widget__name {
	font-size: 21px;
	margin-bottom: 2px;
}

.am-about-widget__role {
	display: block;
	font-size: 11.5px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--am-accent);
	margin-bottom: 12px;
}

.am-about-widget__bio {
	color: var(--am-muted);
	font-size: 14.5px;
}

/* Mini posts widget */

.am-mini-posts .am-mini-post {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 10px 0;
}

.am-mini-post__thumb img {
	width: 68px;
	height: 68px;
	object-fit: cover;
}

.am-mini-post__title {
	display: block;
	font-family: var(--am-font-serif);
	font-size: 15.5px;
	line-height: 1.35;
	color: var(--am-heading);
}

.am-mini-post__title:hover {
	color: var(--am-accent);
}

.am-mini-post__date {
	font-size: 12px;
	color: var(--am-muted);
}

/* Photo grid widget */

.am-photo-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.am-photo-grid img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	transition: opacity var(--am-transition);
}

.am-photo-grid img:hover {
	opacity: 0.8;
}

.am-photo-grid__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--am-heading);
}

/* ---------- Pagination ---------- */

.pagination,
.navigation.pagination {
	margin-top: 56px;
}

.nav-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 12px;
	border: 1px solid var(--am-line);
	color: var(--am-heading);
	font-size: 13px;
	letter-spacing: 0.1em;
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
	background: var(--am-accent);
	border-color: var(--am-accent);
	color: #fff;
}

/* ---------- 404 / none ---------- */

.am-none {
	text-align: center;
	padding: 60px 20px;
}

.am-none .am-searchform {
	margin: 26px auto;
}

.fl-404__code {
	font-size: clamp(90px, 14vw, 160px);
	line-height: 1;
	color: var(--am-blush);
	-webkit-text-stroke: 1px var(--am-accent);
	margin-bottom: 0;
}

.am-none .am-button {
	margin-top: 10px;
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--am-heading);
	color: #b9bdc6;
	margin-top: 40px;
}

.am-front + .site-footer,
.am-fullwidth + .site-footer {
	margin-top: 0;
}

.am-footer-widgets {
	padding: 70px 0 50px;
}

.am-footer-widgets__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 50px;
}

.site-footer .widget {
	background: transparent;
	border: none;
	padding: 0;
	margin-bottom: 30px;
}

.site-footer .widget-title {
	color: #fff;
	font-size: 20px;
}

.site-footer .widget ul li {
	border-color: rgba(255, 255, 255, 0.08);
}

.site-footer .widget a {
	color: #b9bdc6;
}

.site-footer .widget a:hover {
	color: #fff;
}

.site-footer .am-photo-grid__link {
	color: #fff;
}

.site-footer .am-social a {
	color: #b9bdc6;
}

.site-footer .am-social a:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.am-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 22px 0;
}

.am-footer-bottom__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.am-footer-credit {
	margin: 0;
	font-size: 13.5px;
}

/* Back to top */

.am-to-top {
	position: fixed;
	right: 26px;
	bottom: 26px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: var(--am-accent);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity var(--am-transition), transform var(--am-transition), visibility var(--am-transition);
	z-index: 90;
	box-shadow: var(--am-shadow);
}

.am-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* ---------- WooCommerce light touch ---------- */

.am-woo {
	padding-block: 60px;
}

.am-woo ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--am-font-serif);
	font-size: 19px;
}

.am-woo .button,
.woocommerce .am-woo a.button {
	background: var(--am-heading);
	color: #fff;
	border-radius: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
	.am-card-grid--three {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 960px) {
	.am-content-area {
		grid-template-columns: minmax(0, 1fr);
	}

	.am-hero {
		min-height: 520px;
	}

	.am-hero__panel {
		margin: 44px 20px;
		padding: 36px 28px;
	}

	.am-services__grid,
	.am-cats__grid {
		grid-template-columns: 1fr;
		max-width: 460px;
		margin-inline: auto;
	}

	.am-service:nth-child(2),
	.am-cat-tile--2,
	.am-cat-tile--3 {
		margin-top: 0;
	}

	.am-about__grid {
		grid-template-columns: 1fr;
		gap: 46px;
	}

	.am-footer-widgets__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.am-header-top {
		grid-template-columns: auto 1fr auto;
		padding-block: 18px;
	}

	.am-header-top__social {
		display: none;
	}

	.am-header-top__cta {
		display: none;
	}

	.am-branding {
		text-align: left;
	}

	.am-nav-toggle {
		display: block;
	}

	.am-nav {
		display: none;
	}

	.am-nav.is-open {
		display: block;
	}

	.am-nav__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.am-nav ul {
		flex-direction: column;
	}

	.am-nav a {
		padding: 13px 6px;
		border-bottom: 1px solid var(--am-band);
	}

	.am-nav ul ul {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		border: none;
		box-shadow: none;
		background: var(--am-band);
		min-width: 0;
	}

	.am-card-grid,
	.am-card-grid--three {
		grid-template-columns: 1fr;
	}

	.am-author-box {
		flex-direction: column;
		text-align: center;
	}

	.am-post-nav {
		flex-direction: column;
		text-align: center;
	}

	.alignwide {
		margin-inline: 0;
		max-width: 100%;
	}
}

/* ---------- WordPress core classes ---------- */

.sticky .am-card__title::after {
	content: "★";
	color: var(--am-accent);
	font-size: 0.6em;
	vertical-align: super;
	margin-left: 6px;
}

.gallery-caption {
	font-size: 13px;
	color: var(--am-muted);
	text-align: center;
}

.bypostauthor > .comment-body {
	border-left: 2px solid var(--am-accent);
}

.alignleft {
	float: left;
	margin: 0.5em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.5em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ===== Premium sections (v1.1.0) ===== */

/* ---------- Numbered service cards ---------- */

.am-service {
	position: relative;
}

.am-service__num {
	/* Sits in the flow above the title. It used to be absolutely positioned
	   inside a card that was not a positioning context, so it anchored to the
	   section and was painted behind the photograph. */
	display: block;
	font-family: var(--am-font-serif);
	font-weight: 400;
	font-size: 19px;
	letter-spacing: 0.14em;
	line-height: 1;
	color: var(--am-accent);
	margin-bottom: 12px;
}

/* ---------- Portfolio ---------- */

.am-portfolio {
	padding: 96px 0;
}

.am-portfolio__grid {
	/* CSS columns, not CSS grid. A 3-column grid of 2 tall + 4 short tiles needs
	   8 cells but offers 9, so one interior cell is always left empty. Columns
	   pack 3, 4 or 6 tiles with no hole. */
	columns: 3;
	column-gap: 22px;
	margin-bottom: -22px;
}

.am-portfolio__tile {
	position: relative;
	margin: 0 0 22px;
	break-inside: avoid;
	overflow: hidden;
	border: 1px solid var(--am-line);
	background: linear-gradient(150deg, var(--am-band), var(--am-blush));
}

.am-portfolio__media {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.am-portfolio__tile--tall .am-portfolio__media {
	aspect-ratio: 3 / 4;
}
.am-portfolio__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--am-transition);
}

.am-portfolio__tile:hover .am-portfolio__media img {
	transform: scale(1.04);
}

.am-portfolio__actions {
	text-align: center;
	margin-top: 44px;
}

/* ---------- Reviews ---------- */

.am-reviews {
	padding: 96px 0;
	background: var(--am-band);
}

.am-reviews__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.am-review {
	position: relative;
	background: var(--am-white);
	border: 1px solid var(--am-line);
	padding: 40px 32px 36px;
	text-align: center;
}

.am-review__avatar {
	display: block;
	width: 72px;
	height: 72px;
	margin: 0 auto 16px;
	border-radius: 50%;
	overflow: hidden;
	border: 1px solid var(--am-line);
}

.am-review__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.am-review__quote {
	display: block;
	font-family: var(--am-font-serif);
	font-size: 60px;
	line-height: 0.6;
	color: var(--am-accent);
	opacity: 0.3;
}

.am-review__text {
	font-style: italic;
	color: var(--am-text);
	margin: 14px 0 20px;
}

.am-review__name {
	display: block;
	font-family: var(--am-font-serif);
	font-size: 19px;
	color: var(--am-heading);
}

.am-review__role {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--am-muted);
}

/* ---------- Pricing ---------- */

.am-pricing {
	padding: 96px 0;
}

.am-pricing__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	align-items: start;
}

.am-plan {
	position: relative;
	background: var(--am-white);
	border: 1px solid var(--am-line);
	padding: 44px 34px;
	text-align: center;
	transition: transform var(--am-transition);
}

.am-plan--featured {
	border: 1px solid var(--am-accent);
	transform: scale(1.03);
	z-index: 1;
}

.am-plan--featured::after {
	background: var(--am-accent);
}

.am-plan__name {
	font-size: 22px;
	margin-bottom: 8px;
}

.am-plan__amount {
	font-family: var(--am-font-serif);
	font-size: 40px;
	line-height: 1;
	color: var(--am-accent);
	margin-bottom: 26px;
}

.am-plan__features {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
	text-align: left;
}

.am-plan__features li {
	position: relative;
	padding: 9px 0 9px 26px;
	border-bottom: 1px solid var(--am-band);
	color: var(--am-text);
	font-size: 15px;
}

.am-plan__features li:last-child {
	border-bottom: none;
}

.am-plan__features li::before {
	content: "\2713";
	position: absolute;
	left: 2px;
	color: var(--am-accent);
	font-weight: 700;
}

/* ---------- CTA banner ---------- */

.am-cta-banner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 460px;
	overflow: hidden;
	text-align: center;
}

.am-cta-banner__img,
.am-cta-banner__placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.am-cta-banner__placeholder {
	background: linear-gradient(150deg, var(--am-blush), var(--am-band));
}

/* Overlay tuned for WCAG-AA white text over any image (monochrome to match the theme). */
.am-cta-banner__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(rgba(30, 39, 56, 0.55), rgba(30, 39, 56, 0.72));
}

.am-cta-banner__content {
	position: relative;
	z-index: 1;
	max-width: 640px;
	padding: 60px 24px;
	color: #fff;
}

.am-cta-banner .am-eyebrow {
	color: var(--am-blush);
}

.am-cta-banner__title {
	color: #fff;
	font-size: clamp(30px, 4vw, 48px);
	margin-bottom: 16px;
}

.am-cta-banner__text {
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 30px;
}

/* The double-hairline button flips to white over the navy-tinted image. */
.am-cta-banner .am-button {
	color: #fff;
	border-color: #fff;
}

.am-cta-banner .am-button::after {
	border-color: rgba(255, 255, 255, 0.55);
}

.am-cta-banner .am-button:hover {
	color: var(--am-accent);
	background: #fff;
}

/* ---------- Instagram strip ---------- */

.am-insta {
	padding: 84px 0 0;
}

.am-insta__head {
	text-align: center;
	margin-bottom: 34px;
	padding-inline: 24px;
}

.am-insta__title {
	font-size: clamp(26px, 3.2vw, 36px);
	margin-bottom: 6px;
}

.am-insta__handle {
	display: inline-block;
	font-size: 13px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--am-accent);
}

.am-insta__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 0;
}

.am-insta__tile {
	position: relative;
	display: block;
	overflow: hidden;
}

.am-insta__tile img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.am-insta__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(36, 40, 48, 0.45);
	color: #fff;
	opacity: 0;
	transition: opacity var(--am-transition);
}

.am-insta__overlay .am-icon {
	width: 26px;
	height: 26px;
}

.am-insta__tile:hover .am-insta__overlay,
.am-insta__tile:focus-visible .am-insta__overlay {
	opacity: 1;
}

/* ---------- Footer newsletter band ---------- */

.am-newsletter {
	background: var(--am-accent);
	color: #fff;
	padding: 56px 0;
}

.am-newsletter__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 34px;
	flex-wrap: wrap;
}

.am-newsletter__intro {
	flex: 1 1 320px;
}

.am-newsletter__title {
	color: #fff;
	font-size: 28px;
	margin-bottom: 6px;
}

.am-newsletter__text {
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
}

.am-newsletter__form {
	display: flex;
	flex: 1 1 360px;
	gap: 12px;
	flex-wrap: wrap;
}

.am-newsletter__input {
	flex: 1 1 220px;
	border: 1px solid var(--am-white);
	background: var(--am-white);
	padding: 13px 16px;
	font-family: var(--am-font-body);
	font-size: 15px;
	color: var(--am-text);
}

/* White double-hairline button on the navy band. */
.am-newsletter .am-button {
	color: #ffffff;
	border-color: #ffffff;
}

.am-newsletter .am-button::after {
	border-color: rgba(255, 255, 255, 0.55);
}

.am-newsletter .am-button:hover {
	color: var(--am-accent);
	background: #ffffff;
}

/* ---------- Premium sections: responsive ---------- */

@media (max-width: 860px) {
	.am-portfolio__grid {
		/* Two columns of three tiles cannot balance a 3-tall / 3-short mix:
		   one column always takes two tall tiles and ends ~200px lower. Give
		   every tile the same ratio here so the columns stay flush. */
		columns: 2;
	}

	.am-portfolio__tile--tall .am-portfolio__media {
		aspect-ratio: 4 / 3;
	}

	.am-reviews__grid,
	.am-pricing__grid {
		grid-template-columns: 1fr;
		max-width: 440px;
		margin-inline: auto;
	}

	.am-plan--featured {
		transform: none;
	}

	.am-insta__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 700px) {
	.am-newsletter__inner {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.am-newsletter__form {
		justify-content: center;
	}
}

@media (max-width: 560px) {
	.am-portfolio__grid {
		columns: 1;
	}

	.am-portfolio__tile--tall .am-portfolio__media {
		aspect-ratio: 4 / 3;
	}
}

@media (max-width: 480px) {
	.am-insta__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}


/* ---------- Tap targets ---------- */

/* Bordered buttons: 14px vertical padding keeps every button above the 44px
   platform tap-target minimum at all viewports. */
.am-button {
	padding-top: 14px;
	padding-bottom: 14px;
}

.am-card__more {
	padding-top: 12px;
	padding-bottom: 12px;
}

/* ===== End premium sections ===== */
