/*
Theme Name: Lighter Offer
Description: A one-page sales theme for the rechargeable electric lighter with a free multifunctional kitchen grater. Free delivery, pay on delivery. The offer is on the front page template; change the price in functions.php.
Author: Your Name
Version: 1.0.0
Requires at least: 5.9
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: lighter-offer
*/

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--lg-ink: #0E2A33;
	--lg-paper: #F2F5F4;
	--lg-tint: #E6EDEB;
	--lg-orange: #FF5F1F;
	--lg-yellow: #FFD84D;
	--lg-muted: #3A525A;
	--lg-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
	--lg-body: 'Figtree', system-ui, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

body {
	margin: 0;
	background: var(--lg-paper);
	color: var(--lg-ink);
	font-family: var(--lg-body);
	font-size: 18px;
	line-height: 1.55;
}

h1,
h2,
h3,
p,
ul {
	margin: 0;
}

a {
	color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 3px solid var(--lg-ink);
	outline-offset: 3px;
}

.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;
}

.screen-reader-text:focus {
	background: var(--lg-paper);
	clip: auto;
	clip-path: none;
	color: var(--lg-ink);
	display: block;
	font-weight: 800;
	height: auto;
	left: 8px;
	padding: 12px 20px;
	top: 8px;
	width: auto;
	z-index: 100000;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.band--paper {
	background: var(--lg-paper);
}

.band--tint {
	background: var(--lg-tint);
}

.band--ink {
	background: var(--lg-ink);
	color: var(--lg-paper);
}

.band--orange {
	background: var(--lg-orange);
}

.wrap {
	max-width: 1160px;
	margin: 0 auto;
	padding: clamp(56px, 8vw, 104px) clamp(20px, 4vw, 48px);
}

.wrap--hero {
	padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px) clamp(56px, 8vw, 96px);
}

.h2 {
	font-family: var(--lg-display);
	font-weight: 800;
	font-size: clamp(30px, 4.4vw, 54px);
	line-height: 1.02;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

/* ==========================================================================
   Buttons, tags and stickers
   ========================================================================== */

.cta:hover {
	filter: brightness(1.07);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	max-width: 100%;
	padding: 16px 28px;
	background: var(--lg-orange);
	color: var(--lg-ink);
	font-weight: 800;
	font-size: 17px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	box-shadow: 6px 6px 0 var(--lg-ink);
}

.price-tag {
	display: inline-block;
	padding: 0.02em 0.22em 0.06em 0.42em;
	background: var(--lg-orange);
	clip-path: polygon(0.24em 0, 100% 0, 100% 100%, 0.24em 100%, 0 50%);
}

.sticker {
	background: var(--lg-yellow);
	color: var(--lg-ink);
	font-family: var(--lg-display);
	font-weight: 800;
	text-transform: uppercase;
}

.sticker--hero {
	position: absolute;
	top: -18px;
	right: 12px;
	z-index: 2;
	transform: rotate(4deg);
	padding: 10px 20px 10px 28px;
	clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
	font-size: 20px;
}

.sticker--bonus {
	flex: none;
	transform: rotate(-4deg);
	padding: 12px 24px 12px 34px;
	clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%);
	font-size: 28px;
}

.sticker--card {
	position: absolute;
	top: -20px;
	right: 16px;
	transform: rotate(4deg);
	padding: 8px 18px 8px 26px;
	clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
	font-size: 20px;
}

/* ==========================================================================
   Media placeholders (replace with an image or video)
   ========================================================================== */

.media {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	padding: 24px;
	text-align: center;
}

.media__label {
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.media__hint {
	font-size: 15px;
}

.media--image {
	gap: 12px;
	color: #35505A;
	border: 2px dashed #8FA5A3;
	background: repeating-linear-gradient(135deg, #DCE5E3 0 14px, #E7EEEC 14px 28px);
}

.media--tint {
	background: repeating-linear-gradient(135deg, #D6E0DE 0 14px, #E1E9E7 14px 28px);
}

.media--video {
	gap: 14px;
	color: var(--lg-paper);
	background: repeating-linear-gradient(135deg, #0E2A33 0 14px, #12333D 14px 28px);
}

.media--video svg {
	color: var(--lg-orange);
}

.media--dark {
	gap: 12px;
	color: var(--lg-paper);
	border: 2px dashed var(--lg-orange);
	background: repeating-linear-gradient(135deg, #17404B 0 14px, #1B4955 14px 28px);
}

.media--video .media__hint,
.media--dark .media__hint {
	color: #B9CBCB;
}

.ratio-4-5 {
	aspect-ratio: 4 / 5;
}

.ratio-1-1 {
	aspect-ratio: 1 / 1;
}

.ratio-2-1 {
	aspect-ratio: 2 / 1;
}

.ratio-16-9 {
	aspect-ratio: 16 / 9;
}

/* ==========================================================================
   Check lists
   ========================================================================== */

.checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.checklist li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.checklist svg {
	flex: none;
	margin-top: 3px;
}

/* ==========================================================================
   Ribbon (header)
   ========================================================================== */

.ribbon {
	background: var(--lg-ink);
	color: var(--lg-paper);
}

.ribbon__inner {
	max-width: 1160px;
	margin: 0 auto;
	padding: 12px clamp(20px, 4vw, 48px);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 36px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ribbon__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ribbon__item svg {
	color: var(--lg-orange);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero__row {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: center;
}

.hero__copy {
	flex: 1 1 420px;
	min-width: 0;
}

.hero__title {
	font-family: var(--lg-display);
	font-weight: 800;
	font-size: clamp(40px, 6.4vw, 84px);
	line-height: 0.98;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.hero__title .price-tag {
	margin-top: 0.08em;
}

.hero__lead {
	margin: 28px 0 0;
	max-width: 34em;
	font-size: clamp(18px, 2vw, 22px);
}

.hero__cta {
	margin-top: 36px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.hero__fine {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.hero__media {
	position: relative;
	flex: 1 1 360px;
	max-width: 520px;
	min-width: 0;
}

/* ==========================================================================
   Features
   ========================================================================== */

.features__row {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 72px;
	align-items: flex-start;
}

.features__intro {
	flex: 1 1 340px;
	min-width: 0;
}

.features__title {
	text-wrap: balance;
}

.features__lead {
	margin: 24px 0 0;
	font-weight: 700;
	font-size: 20px;
}

.features__text {
	margin: 16px 0 0;
	color: var(--lg-muted);
}

.features__list {
	flex: 1.4 1 420px;
	min-width: 0;
}

.eyebrow {
	margin-bottom: 14px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.feature {
	display: flex;
	gap: 20px;
	padding: 22px 0;
	border-top: 2px solid var(--lg-ink);
}

.feature:last-child {
	border-bottom: 2px solid var(--lg-ink);
}

.feature__icon {
	flex: none;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--lg-ink);
	color: var(--lg-orange);
}

.feature__body {
	min-width: 0;
}

.feature__title {
	font-family: var(--lg-display);
	font-weight: 800;
	font-size: 22px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.feature__desc {
	margin: 6px 0 0;
	color: var(--lg-muted);
}

/* ==========================================================================
   Videos
   ========================================================================== */

.lighter-video__title {
	text-align: center;
	text-wrap: balance;
}

.lighter-video__player {
	margin: 40px auto 0;
	max-width: 920px;
}

.lighter-video__caption {
	margin: 24px 0 0;
	text-align: center;
	font-weight: 800;
	font-size: 20px;
}

.grater-video__row {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 56px;
	align-items: center;
}

.grater-video__intro {
	flex: 1 1 280px;
	min-width: 0;
}

.grater-video__title {
	text-wrap: balance;
}

.grater-video__tagline {
	margin: 24px 0 0;
	font-weight: 800;
	font-size: 20px;
}

.grater-video__player {
	flex: 2 1 420px;
	min-width: 0;
}

/* ==========================================================================
   Free bonus
   ========================================================================== */

.bonus__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 28px;
}

.bonus__title {
	flex: 1 1 320px;
	min-width: 0;
	text-wrap: balance;
}

.bonus__line {
	margin: 28px 0 0;
	font-size: 20px;
	color: #C9D8D8;
}

.bonus__free {
	margin: 4px 0 0;
	font-family: var(--lg-display);
	font-weight: 800;
	font-size: clamp(22px, 2.6vw, 32px);
	color: var(--lg-orange);
}

.bonus__row {
	margin-top: 48px;
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: center;
}

.bonus__image {
	flex: 1 1 420px;
	min-width: 0;
}

.bonus__info {
	flex: 1 1 380px;
	min-width: 0;
}

.bonus__heading {
	font-family: var(--lg-display);
	font-weight: 800;
	font-size: clamp(26px, 3.2vw, 40px);
	line-height: 1.05;
	letter-spacing: -0.015em;
}

.bonus__tagline {
	margin: 20px 0 0;
	font-weight: 700;
	font-size: 20px;
}

.bonus__desc {
	margin: 12px 0 0;
	color: #C9D8D8;
}

.bonus__uses {
	margin: 24px 0 12px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.bonus .checklist svg {
	color: var(--lg-orange);
}

.bonus__close {
	margin: 28px 0 0;
	color: #C9D8D8;
}

/* ==========================================================================
   What you get
   ========================================================================== */

.package__title {
	text-wrap: balance;
}

.package__media {
	margin-top: 40px;
}

.package__cards {
	margin-top: 40px;
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	align-items: stretch;
}

.card {
	flex: 1 1 340px;
	min-width: 0;
	padding: 32px;
	border: 2px solid var(--lg-ink);
}

.card--lighter {
	background: #F8FAF9;
}

.card--grater {
	position: relative;
	background: var(--lg-orange);
}

.card__head {
	display: flex;
	align-items: center;
	gap: 16px;
}

.card__num {
	flex: none;
	min-width: 56px;
	height: 56px;
	padding: 0 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--lg-display);
	font-weight: 800;
	font-size: 26px;
}

.card--lighter .card__num {
	background: var(--lg-orange);
	color: var(--lg-ink);
}

.card--grater .card__num {
	background: var(--lg-ink);
	color: var(--lg-paper);
}

.card__title {
	min-width: 0;
	font-family: var(--lg-display);
	font-weight: 800;
	font-size: 26px;
	line-height: 1.05;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.card .checklist {
	margin-top: 24px;
}

.package__free {
	margin: 48px 0 0;
	text-align: center;
	font-family: var(--lg-display);
	font-weight: 800;
	font-size: clamp(26px, 3.6vw, 44px);
	line-height: 1.05;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

/* ==========================================================================
   The deal
   ========================================================================== */

.deal__row {
	display: flex;
	flex-wrap: wrap;
	gap: 56px;
	align-items: center;
}

.deal__main {
	flex: 1 1 420px;
	min-width: 0;
}

.deal__title {
	margin: 0 0 32px;
	text-wrap: balance;
}

.deal__media {
	flex: 1 1 340px;
	min-width: 0;
}

.receipt {
	padding: 28px clamp(20px, 3vw, 36px) 32px;
	background: #FBFCFB;
	border: 2px solid var(--lg-ink);
	box-shadow: 8px 8px 0 var(--lg-ink);
}

.receipt__label {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--lg-muted);
}

.receipt__lines {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	font-size: 18px;
}

.receipt__line {
	display: flex;
	align-items: baseline;
}

.receipt__name {
	min-width: 0;
}

.receipt__line:first-child .receipt__name {
	font-weight: 700;
}

.receipt__dots {
	flex: 1 1 16px;
	min-width: 16px;
	margin: 0 10px;
	border-bottom: 2px dotted #8FA5A3;
}

.receipt__price {
	white-space: nowrap;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.receipt__rule {
	margin: 24px 0 20px;
	border-top: 3px dashed var(--lg-ink);
}

.receipt__total {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
}

.receipt__total-label {
	font-family: var(--lg-display);
	font-weight: 800;
	font-size: 24px;
	text-transform: uppercase;
}

.price-tag--lg {
	padding: 0.02em 0.22em 0.06em 0.5em;
	clip-path: polygon(0.28em 0, 100% 0, 100% 100%, 0.28em 100%, 0 50%);
	font-family: var(--lg-display);
	font-weight: 800;
	font-size: clamp(40px, 5vw, 56px);
	line-height: 1.05;
	font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Why pay for two
   ========================================================================== */

.why__row {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 72px;
	align-items: center;
}

.why__copy {
	flex: 1 1 400px;
	min-width: 0;
}

.why__title {
	text-wrap: balance;
}

.why__think {
	margin: 28px 0 0;
	font-weight: 800;
	font-size: 20px;
}

.why__text {
	margin: 12px 0 0;
	color: var(--lg-muted);
}

.why__punch {
	margin: 20px 0 0;
	font-family: var(--lg-display);
	font-weight: 800;
	font-size: clamp(22px, 2.6vw, 30px);
	line-height: 1.1;
}

.why__note {
	margin: 20px 0 0;
	color: var(--lg-muted);
}

.why__tiles {
	flex: 1 1 320px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tile {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 18px 22px;
	background: #F8FAF9;
	border: 2px solid var(--lg-ink);
}

.tile svg {
	flex: none;
}

.tile__text {
	font-family: var(--lg-display);
	font-weight: 800;
	font-size: 22px;
	text-transform: uppercase;
}

.tile--price {
	justify-content: space-between;
	background: var(--lg-orange);
}

.tile__price {
	font-family: var(--lg-display);
	font-weight: 800;
	font-size: 40px;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Order
   ========================================================================== */

.order__row {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 64px;
	align-items: center;
}

.order__copy {
	flex: 1 1 380px;
	min-width: 0;
}

.order__title {
	font-family: var(--lg-display);
	font-weight: 800;
	font-size: clamp(34px, 5.2vw, 68px);
	line-height: 0.98;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.order__lead {
	margin: 28px 0 0;
	max-width: 32em;
	font-size: 20px;
}

.order__cta-line {
	margin: 16px 0 0;
	font-weight: 800;
	font-size: 20px;
}

.order-form {
	flex: 1 1 360px;
	min-width: 0;
	max-width: 520px;
	padding: clamp(22px, 3vw, 36px);
	background: var(--lg-paper);
	border: 2px solid var(--lg-ink);
	box-shadow: 8px 8px 0 var(--lg-ink);
}

.order-form__fields {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.field label {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.field input {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 2px solid var(--lg-ink);
	border-radius: 0;
	background: #FFFFFF;
	color: var(--lg-ink);
	font-family: var(--lg-body);
	font-size: 16px;
}

.order-form__submit {
	width: 100%;
	min-height: 58px;
	padding: 16px 20px;
	border: 2px solid var(--lg-ink);
	border-radius: 0;
	background: var(--lg-orange);
	color: var(--lg-ink);
	font-family: var(--lg-body);
	font-weight: 800;
	font-size: 17px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 5px 5px 0 var(--lg-ink);
}

.order-form__fine {
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

/* ==========================================================================
   Fallback templates (index.php: posts and pages)
   ========================================================================== */

.entry + .entry {
	margin-top: 56px;
	padding-top: 56px;
	border-top: 2px solid var(--lg-ink);
}

.entry__title {
	font-family: var(--lg-display);
	font-weight: 800;
	font-size: clamp(30px, 4.4vw, 54px);
	line-height: 1.02;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.entry__title a {
	text-decoration: none;
}

.entry__content {
	margin-top: 24px;
	max-width: 42em;
}

.entry__content > * {
	margin: 0 0 1em;
}

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

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-weight: 800;
}

.navigation.pagination .page-numbers {
	padding: 8px 14px;
	border: 2px solid var(--lg-ink);
	text-decoration: none;
}

.navigation.pagination .page-numbers.current {
	background: var(--lg-orange);
}
