/*
Theme Name: Leading Company
Theme URI: https://www.leadingcompany.com.au/
Author: Leading Company
Description: A self-configuring theme for the Leading Company Awards. On activation it creates the Home, About Us, Contact Us and Guides pages, sets the front page, posts page and permalinks, and handles the contact form itself. Guides (posts at the root of the site, indexed at /guides/) stay hidden until they are switched on under Settings > Reading.
Version: 1.1.0
Requires at least: 6.0
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: leading-company
*/

/* Layout idea: an awards certificate in Australia's green and gold, with the
   plain-dealing tone of a bill that comes to $0.00. Mobile first: every row
   wraps to a single column on its own, so there are no breakpoints to maintain. */

@font-face {
	font-family: "Besley";
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url("assets/fonts/besley-latin-wght-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Public Sans";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/public-sans-latin-wght-normal.woff2") format("woff2");
}

:root {
	--lc-green: #0C3B2E;
	--lc-leaf: #0F6B4F;
	--lc-gold: #F4C430;
	--lc-ink: #10201A;
	--lc-paper: #F5F7F2;
	--lc-mist: #E4ECE4;
	--lc-white: #FFFFFF;
	--lc-muted: #4A5A52;
	--lc-soft: #2B3A33;
	--lc-dots: #AEBDB3;
	--lc-error: #B3261E;
	--lc-footer-text: #C5D3CB;
	--lc-footer-rule: #23564A;
	--lc-gutter: max(20px, 5vw);
	--lc-section: clamp(56px, 7vw, 88px);
	--lc-display: "Besley", Georgia, "Times New Roman", serif;
	--lc-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--lc-paper);
	color: var(--lc-ink);
	font-family: var(--lc-body);
	font-size: 1.0625rem;
	line-height: 1.55;
}

main {
	display: block;
	flex: 1 0 auto;
}

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

a {
	color: var(--lc-leaf);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--lc-ink);
	outline-offset: 2px;
	box-shadow: 0 0 0 7px var(--lc-white);
}

svg {
	display: block;
}

.lc-wrap {
	max-width: 1120px;
	margin-inline: auto;
}

.lc-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 10;
	padding: 12px 16px;
	background: var(--lc-ink);
	color: var(--lc-white);
	font-weight: 700;
}

.lc-skip:focus {
	left: 8px;
	top: 8px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.lc-preview {
	padding: 10px var(--lc-gutter);
	background: var(--lc-gold);
	color: var(--lc-ink);
	font-size: 0.875rem;
	font-weight: 600;
}

.lc-preview a {
	color: inherit;
}

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

.lc-display {
	font-family: var(--lc-display);
	font-weight: 800;
	font-size: clamp(1.875rem, 3.6vw, 2.875rem);
	line-height: 1.1;
	text-wrap: balance;
}

.lc-display--hero {
	font-size: clamp(2.25rem, 4.8vw, 3.75rem);
	line-height: 1.05;
}

.lc-display--page {
	max-width: 16em;
	font-size: clamp(2.25rem, 5vw, 3.875rem);
	line-height: 1.05;
}

.lc-display--article {
	font-size: clamp(2.125rem, 4.6vw, 3.5rem);
	line-height: 1.05;
}

.lc-display--small {
	font-size: clamp(1.625rem, 3vw, 2.125rem);
}

.lc-h2 {
	font-family: var(--lc-display);
	font-size: 1.625rem;
	font-weight: 700;
	line-height: 1.2;
}

.lc-h3 {
	font-family: var(--lc-display);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.25;
}

.lc-h3--sans {
	font-family: var(--lc-body);
	font-size: 1.25rem;
	line-height: 1.3;
}

.lc-lede {
	max-width: 36em;
	font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
	color: var(--lc-soft);
}

.lc-pull {
	font-family: var(--lc-display);
	font-weight: 700;
	font-size: clamp(1.3125rem, 2.3vw, 1.6875rem);
	line-height: 1.25;
}

.lc-muted {
	color: var(--lc-muted);
}

.lc-soft {
	color: var(--lc-soft);
}

.lc-small {
	font-size: 0.9375rem;
}

.lc-measure {
	max-width: 40em;
}

.lc-accent {
	color: var(--lc-leaf);
}

.lc-hero .lc-accent,
.lc-footer .lc-accent {
	color: var(--lc-gold);
}

.lc-section p a,
.lc-pagehead p a {
	font-weight: 600;
}

.lc-link-strong {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 700;
}

/* ---------- Layout helpers ---------- */

.lc-stack {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.lc-stack--xs {
	gap: 6px;
}

.lc-stack--sm {
	gap: 12px;
}

.lc-stack--md,
.lc-stack--form {
	gap: 20px;
}

.lc-stack--lg {
	gap: 36px;
}

.lc-stack--start {
	align-items: flex-start;
}

.lc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 28px 32px;
}

.lc-grid--narrow {
	grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

.lc-grid--cards {
	grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}

.lc-grid--wide-gap {
	gap: 32px 56px;
}

.lc-grid--fields {
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 18px;
}

.lc-split {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 56px;
}

.lc-split--tight {
	gap: 32px 56px;
}

.lc-split--top {
	align-items: flex-start;
}

.lc-split__lead {
	flex: 1 1 320px;
	min-width: 0;
}

.lc-split__body {
	flex: 2 1 480px;
	min-width: 0;
}

.lc-ruled {
	border-top: 3px solid var(--lc-ink);
	padding-top: 14px;
}

.lc-ruled--leaf {
	border-top-color: var(--lc-leaf);
}

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

.lc-header {
	padding: 14px var(--lc-gutter);
	border-bottom: 2px solid var(--lc-ink);
}

.lc-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 24px;
}

.lc-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	color: var(--lc-ink);
	font-family: var(--lc-display);
	font-weight: 800;
	font-size: 1.5rem;
	line-height: 1;
	text-decoration: none;
}

.lc-brand svg {
	flex: none;
}

.lc-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.lc-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	color: var(--lc-ink);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
}

.lc-nav a:first-child {
	padding-left: 0;
}

.lc-nav a:last-child {
	padding-right: 0;
}

.lc-nav a:hover,
.lc-nav a[aria-current="page"] {
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
	text-decoration-color: var(--lc-gold);
}

.lc-nav a[aria-current="page"] {
	font-weight: 700;
}

/* ---------- Buttons ---------- */

.lc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.lc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 6px 22px;
	border: 2px solid transparent;
	border-radius: 3px;
	font: inherit;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	cursor: pointer;
}

.lc-btn:hover {
	filter: brightness(1.08);
}

.lc-btn--gold {
	background: var(--lc-gold);
	color: var(--lc-ink);
}

.lc-btn--ghost {
	border-color: var(--lc-white);
	color: var(--lc-white);
}

.lc-btn--ghost:hover {
	background: var(--lc-white);
	color: var(--lc-green);
	filter: none;
}

.lc-btn--green {
	background: var(--lc-green);
	color: var(--lc-white);
}

.lc-btn--green:hover {
	filter: brightness(1.25);
}

.lc-btn--outline {
	border-color: var(--lc-ink);
	color: var(--lc-ink);
}

.lc-btn--outline:hover {
	background: var(--lc-ink);
	color: var(--lc-white);
	filter: none;
}

/* ---------- Hero and the $0.00 bill ---------- */

.lc-hero {
	padding: clamp(56px, 7vw, 92px) var(--lc-gutter);
	background: var(--lc-green);
	color: var(--lc-white);
}

.lc-hero :focus-visible,
.lc-footer :focus-visible {
	outline-color: var(--lc-gold);
	box-shadow: none;
}

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

.lc-hero__text {
	flex: 999 1 440px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 22px;
}

.lc-hero__awards {
	color: var(--lc-gold);
	font-size: 1rem;
	font-weight: 700;
}

.lc-hero__lede {
	max-width: 34em;
	font-size: clamp(1.0625rem, 1.55vw, 1.1875rem);
	color: #DCE8E1;
}

.lc-hero .lc-actions {
	margin-top: 8px;
}

.lc-hero__art {
	flex: 1 1 360px;
	min-width: 0;
}

.lc-bill {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 420px;
	margin: 0 auto;
	padding: 26px 28px 24px;
	border-top: 8px solid var(--lc-gold);
	background: var(--lc-white);
	color: var(--lc-ink);
	font-variant-numeric: tabular-nums;
}

.lc-bill__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--lc-ink);
}

.lc-bill__title {
	font-family: var(--lc-display);
	font-weight: 700;
	font-size: 1.3125rem;
	line-height: 1.2;
}

.lc-bill__year,
.lc-bill__note {
	font-size: 0.875rem;
	color: var(--lc-muted);
}

.lc-bill__row {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.lc-bill__dots {
	flex: 1;
	border-bottom: 2px dotted var(--lc-dots);
}

.lc-bill__total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 14px;
	border-top: 2px solid var(--lc-ink);
	font-size: 1.1875rem;
	font-weight: 700;
}

.lc-bill__sum {
	padding: 2px 10px;
	background: var(--lc-gold);
}

/* ---------- Sections ---------- */

.lc-section {
	padding: var(--lc-section) var(--lc-gutter);
}

.lc-section--mist {
	background: var(--lc-mist);
}

.lc-section--white {
	background: var(--lc-white);
}

.lc-section--gold {
	background: var(--lc-gold);
}

.lc-section--gold a,
.lc-callout a,
.lc-note a {
	color: var(--lc-ink);
	font-weight: 700;
}

.lc-section--after-head {
	padding-top: clamp(40px, 5vw, 56px);
}

.lc-section--compact {
	padding-block: clamp(48px, 6vw, 72px);
}

.lc-pagehead {
	padding: clamp(48px, 6vw, 72px) var(--lc-gutter) 0;
}

.lc-steps {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
	gap: 32px;
}

.lc-steps li {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lc-steps li p {
	color: var(--lc-soft);
}

.lc-steps__num {
	color: var(--lc-leaf);
	font-family: var(--lc-display);
	font-weight: 800;
	font-size: 2.75rem;
	line-height: 1;
}

.lc-promises {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	border-bottom: 2px solid var(--lc-ink);
}

.lc-promises li {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	padding: 14px 0;
	border-top: 2px solid var(--lc-ink);
}

.lc-promises__name {
	flex: 0 0 170px;
	font-family: var(--lc-display);
	font-weight: 700;
	font-size: 1.3125rem;
	line-height: 1.3;
}

.lc-promises__text {
	flex: 1 1 260px;
	color: var(--lc-soft);
}

.lc-supporter {
	font-family: var(--lc-display);
	font-weight: 700;
	font-size: 1.4375rem;
	line-height: 1.3;
}

/* ---------- Guides ---------- */

.lc-guide-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 14px;
	border-top: 3px solid var(--lc-leaf);
	color: var(--lc-ink);
	text-decoration: none;
}

.lc-guide-card__meta {
	font-size: 0.875rem;
	color: var(--lc-muted);
}

.lc-guide-card__title {
	font-family: var(--lc-display);
	font-weight: 700;
	font-size: 1.375rem;
	line-height: 1.25;
}

.lc-guide-card:hover .lc-guide-card__title {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.15em;
}

.lc-guide-card__excerpt {
	color: var(--lc-soft);
}

.lc-guide-card__more {
	color: var(--lc-leaf);
	font-weight: 700;
	text-decoration: underline;
}

.lc-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.lc-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 2px solid var(--lc-ink);
	border-radius: 3px;
	color: var(--lc-ink);
	font-weight: 700;
	text-decoration: none;
}

.lc-pagination .page-numbers.current {
	background: var(--lc-ink);
	color: var(--lc-white);
}

.lc-pagination .page-numbers.dots {
	border-color: transparent;
}

.lc-article {
	padding: clamp(40px, 5vw, 64px) var(--lc-gutter) var(--lc-section);
}

.lc-article__inner {
	max-width: 760px;
	margin-inline: auto;
}

.lc-article > .lc-article__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.lc-article__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.lc-article__image {
	margin: 0;
}

.lc-article__image img {
	display: block;
	width: 100%;
	height: auto;
}

.lc-note {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px 28px;
	background: var(--lc-gold);
}

/* Content written in the editor: guides, and any extra page. */

.lc-prose {
	max-width: 760px;
}

.lc-prose > * {
	margin-block: 0;
}

.lc-prose > * + * {
	margin-top: 1.1em;
}

.lc-prose h2 {
	margin-top: 2em;
	padding-top: 14px;
	border-top: 3px solid var(--lc-ink);
	font-family: var(--lc-display);
	font-size: 1.625rem;
	font-weight: 700;
	line-height: 1.2;
}

.lc-prose > h2:first-child {
	margin-top: 0;
}

.lc-prose h3 {
	margin-top: 1.6em;
	font-family: var(--lc-display);
	font-size: 1.3125rem;
	font-weight: 700;
	line-height: 1.25;
}

.lc-prose h2 + *,
.lc-prose h3 + * {
	margin-top: 0.5em;
}

.lc-prose a {
	font-weight: 600;
}

.lc-prose ul,
.lc-prose ol {
	padding-left: 1.3em;
}

.lc-prose li + li {
	margin-top: 0.35em;
}

.lc-prose blockquote {
	margin-inline: 0;
	padding-left: 20px;
	border-left: 3px solid var(--lc-gold);
	font-family: var(--lc-display);
	font-weight: 500;
	font-size: 1.25rem;
	line-height: 1.4;
}

.lc-prose img {
	max-width: 100%;
	height: auto;
}

.lc-prose figure {
	margin-inline: 0;
}

.lc-prose figcaption {
	margin-top: 6px;
	font-size: 0.875rem;
	color: var(--lc-muted);
}

.lc-prose .wp-block-table {
	overflow-x: auto;
}

.lc-prose table {
	width: 100%;
	border-collapse: collapse;
}

.lc-prose th,
.lc-prose td {
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid var(--lc-dots);
	text-align: left;
	vertical-align: top;
}

.lc-prose thead th {
	border-bottom: 2px solid var(--lc-ink);
}

.lc-prose hr {
	border: 0;
	border-top: 2px solid var(--lc-ink);
}

.lc-method,
.lc-prose .is-style-how-we-chose {
	padding: 24px 28px;
	background: var(--lc-mist);
}

.lc-method__title,
.lc-prose .is-style-how-we-chose h2,
.lc-prose .is-style-how-we-chose h3 {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	font-family: var(--lc-display);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.25;
}

.lc-method p + p,
.lc-prose .is-style-how-we-chose > * + * {
	margin-top: 0.7em;
}

.lc-prose .is-style-how-we-chose > :last-child,
.lc-method > :last-child {
	margin-bottom: 0;
}

/* ---------- Contact ---------- */

.lc-callout {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px;
	background: var(--lc-gold);
}

.lc-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
}

.lc-form .lc-btn {
	align-self: flex-start;
}

.lc-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

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

.lc-field label {
	font-size: 0.9375rem;
	font-weight: 600;
}

.lc-input {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 2px solid var(--lc-ink);
	border-radius: 3px;
	background: var(--lc-white);
	color: var(--lc-ink);
	font: inherit;
}

.lc-input--area {
	min-height: 160px;
	resize: vertical;
}

.lc-input[aria-invalid="true"] {
	border-color: var(--lc-error);
}

.lc-error {
	color: var(--lc-error);
	font-size: 0.9375rem;
	font-weight: 600;
}

.lc-status {
	padding: 14px 16px;
	border: 2px solid var(--lc-ink);
	border-radius: 3px;
	background: var(--lc-white);
}

.lc-status--error {
	border-color: var(--lc-error);
}

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

.lc-footer {
	padding: 56px var(--lc-gutter);
	background: var(--lc-green);
	color: var(--lc-footer-text);
	font-size: 0.9375rem;
}

.lc-footer a {
	color: var(--lc-white);
}

.lc-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 56px;
}

.lc-footer__about {
	flex: 2 1 320px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.lc-footer__about p {
	max-width: 34em;
}

.lc-footer__brand {
	color: var(--lc-white);
	font-family: var(--lc-display);
	font-weight: 800;
	font-size: 1.375rem;
	line-height: 1.1;
}

.lc-footer__nav {
	flex: 1 1 200px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.lc-footer__nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.lc-footer__legal {
	flex: 1 1 100%;
	padding-top: 20px;
	border-top: 1px solid var(--lc-footer-rule);
	font-size: 0.875rem;
}

@media print {
	.lc-nav,
	.lc-actions,
	.lc-form,
	.lc-preview {
		display: none;
	}
}
