/* --------------------------------------------------------------------------
   Base, layout, and the small subset of grid and utility classes the markup
   uses. Written from scratch rather than bundling a framework, so the theme
   ships about 12KB instead of 200KB and carries no third party licence.
   -------------------------------------------------------------------------- */

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

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

body {
	margin: 0;
	background: var(--body-background);
	color: var(--body-text);
	font-family: var(--font-body);
	font-size: var(--body-size-mobile);
	font-weight: var(--body-font-weight);
	line-height: var(--body-line-height);
	overflow-x: hidden;
}

@media (min-width: 768px) { body { font-size: var(--body-size); } }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--font-heading);
	font-weight: var(--heading-font-weight);
	line-height: 1.1;
	margin: 0 0 16px;
	color: inherit;
}

h1, .h1 { font-size: var(--h1-size-mobile); }
h2, .h2 { font-size: var(--h2-size-mobile); }
h3, .h3 { font-size: var(--h3-size-mobile); }
h4, .h4 { font-size: 20px; }
h5, .h5 { font-size: 18px; }
h6, .h6 { font-size: 16px; }

@media (min-width: 992px) {
	h1, .h1 { font-size: var(--h1-size); }
	h2, .h2 { font-size: var(--h2-size); }
	h3, .h3 { font-size: var(--h3-size); }
	h4, .h4 { font-size: var(--h4-size); }
	h5, .h5 { font-size: var(--h5-size); }
	h6, .h6 { font-size: var(--h6-size); }
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary-links); text-decoration: underline; }
a:hover { color: var(--primary-links-hover); }

img, svg, video { max-width: 100%; height: auto; }

ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }

::selection { background: var(--bfr-yellow); color: var(--bfr-ink); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--bfr-yellow); color: #111;
	padding: 12px 20px; font-weight: 800; text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--bfr-yellow); outline-offset: 2px; }

/* -------------------------------------------------------------------------
   Containers and grid
   ------------------------------------------------------------------------- */

.container,
.container-lg,
.container-fluid {
	width: 100%;
	margin-inline: auto;
	padding-inline: var(--container-pad);
}

.container { max-width: var(--container-max); }
.container-lg { max-width: var(--container-max); }
.container-fluid { max-width: none; }

.row {
	display: flex;
	flex-wrap: wrap;
	margin-inline: calc(var(--container-pad) / -2);
}

.row > * {
	padding-inline: calc(var(--container-pad) / 2);
	width: 100%;
}

.col { flex: 1 0 0%; width: auto; }
.col-auto { flex: 0 0 auto; width: auto; }
.col-12 { flex: 0 0 auto; width: 100%; }

@media (min-width: 992px) {
	.col-lg-3  { flex: 0 0 auto; width: 25%; }
	.col-lg-4  { flex: 0 0 auto; width: 33.3333%; }
	.col-lg-8  { flex: 0 0 auto; width: 66.6667%; }
	.col-lg-9  { flex: 0 0 auto; width: 75%; }
	.col-lg-10 { flex: 0 0 auto; width: 83.3333%; }
	.col-lg-12 { flex: 0 0 auto; width: 100%; }
	.col-lg-auto { flex: 0 0 auto; width: auto; }
	.col-lg { flex: 1 0 0%; width: auto; }
}

/* -------------------------------------------------------------------------
   Utilities, only the ones the markup actually uses
   ------------------------------------------------------------------------- */

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-block { display: inline-block !important; }
.d-inline-flex { display: inline-flex !important; }

.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }

.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }

.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }

.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }

.position-relative { position: relative !important; }
.w-100 { width: 100% !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mx-auto { margin-inline: auto !important; }
.py-1 { padding-block: .25rem !important; }

.order-1 { order: 1 !important; }
.order-2 { order: 2 !important; }
.order-3 { order: 3 !important; }

@media (min-width: 992px) {
	.d-lg-none { display: none !important; }
	.d-lg-block { display: block !important; }
	.d-lg-flex { display: flex !important; }
	.flex-lg-row { flex-direction: row !important; }
	.justify-content-lg-start { justify-content: flex-start !important; }
	.justify-content-lg-end { justify-content: flex-end !important; }
	.justify-content-lg-between { justify-content: space-between !important; }
	.align-items-lg-center { align-items: center !important; }
	.text-lg-start { text-align: left !important; }
	.text-lg-end { text-align: right !important; }
	.mt-lg-0 { margin-top: 0 !important; }
	.order-lg-1 { order: 1 !important; }
	.order-lg-2 { order: 2 !important; }
	.order-lg-3 { order: 3 !important; }
}

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

.ryno-btn,
.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 2px solid var(--btn-primary-border);
	border-radius: 0;
	padding: 14px 26px;
	min-height: 52px;
	font-family: var(--button-font-family);
	font-size: var(--button-font-size);
	font-weight: var(--button-font-weight);
	line-height: 1;
	letter-spacing: .5px;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.btn-primary {
	background: var(--btn-primary-background);
	color: var(--btn-primary-text);
	border-color: var(--btn-primary-border);
}

.btn-secondary {
	background: var(--btn-secondary-background);
	color: var(--btn-secondary-text);
	border-color: var(--btn-secondary-border);
}

/* The theme animates a gradient panel in from the left on hover */
.btn-primary::before,
.btn-secondary::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--btn-primary-hover-background);
	transform: translateX(-101%);
	transition: transform .28s cubic-bezier(.16, 1, .3, 1);
	z-index: 0;
}

.btn-primary:hover::before,
.btn-primary:focus-visible::before,
.btn-secondary:hover::before,
.btn-secondary:focus-visible::before { transform: translateX(0); }

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-secondary:hover,
.btn-secondary:focus-visible { color: var(--btn-primary-hover-text); }

.ryno-btn__label {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	transition: gap .22s cubic-bezier(.16, 1, .3, 1);
}

/* The arrow is collapsed until hover. The label sits centred at rest and
   shifts left as the arrow opens up, rather than being off-centre always. */
.ryno-btn__icon {
	display: inline-flex;
	align-items: center;
	width: 0;
	opacity: 0;
	overflow: hidden;
	transform: translateX(-4px);
	transition: width .22s cubic-bezier(.16, 1, .3, 1), opacity .18s ease, transform .22s ease;
}

.ryno-btn:hover .ryno-btn__label,
.ryno-btn:focus-visible .ryno-btn__label { gap: 9px; }

.ryno-btn:hover .ryno-btn__icon,
.ryno-btn:focus-visible .ryno-btn__icon {
	width: 16px;
	opacity: 1;
	transform: translateX(0);
}

.ryno-btn__icon svg { flex: 0 0 auto; }
.ryno-btn__icon svg path { fill: var(--bfr-ink); transition: fill .2s ease; }
.ryno-btn:hover .ryno-btn__icon svg path,
.ryno-btn:focus-visible .ryno-btn__icon svg path { fill: var(--bfr-yellow); }

@media (prefers-reduced-motion: reduce) {
	.btn-primary::before,
	.btn-secondary::before,
	.ryno-btn__label,
	.ryno-btn__icon { transition: none; }
}
