/**
 * TAG Strategies: base.
 *
 * Fonts, then a reboot equivalent to what the old theme applied (the
 * Bootstrap 5 _reboot subset that matched, dream.css + child styles.css),
 * element defaults, the legacy .btn / .button classes that stored block
 * output and Gravity Forms use, .screen-reader-text, focus, selection and
 * the reduced-motion guard. The old body{opacity:0} gate is gone.
 *
 * @package TGS
 */

/* Fonts */

/*
 * Aceh, self-hosted. Converted once from tagstart-child/src/fonts/aceh/*.woff
 * to woff2 (fontTools + brotli). Only the weights the child Sass references:
 * 200 (homepage CTA text), 400 (body), 500 (headings default, nav), 600, 700,
 * 800, 900. 100 and 300 were declared but never used. The family name stays
 * 'aceh', as in the old $aceh stack. aceh-700 and aceh-400 are preloaded from
 * inc/assets.php with these exact URLs.
 */
@font-face {
	font-family: "aceh";
	src: url("../fonts/aceh-200.woff2") format("woff2");
	font-weight: 200;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "aceh";
	src: url("../fonts/aceh-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "aceh";
	src: url("../fonts/aceh-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "aceh";
	src: url("../fonts/aceh-600.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "aceh";
	src: url("../fonts/aceh-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "aceh";
	src: url("../fonts/aceh-800.woff2") format("woff2");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "aceh";
	src: url("../fonts/aceh-900.woff2") format("woff2");
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

/* Reboot */

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

html {
	font-size: 16px;
	min-height: 100%;
	overflow-x: hidden;
	-webkit-text-size-adjust: 100%;
	/* The fixed top bar below 992; the side header above it covers nothing. */
	scroll-padding-top: var(--tgs-header-h);
}

@media (min-width: 992px) {
	html {
		scroll-padding-top: 0;
	}
}

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

body {
	position: relative;
	margin: 0;
	min-height: 100%;
	font-family: var(--tgs-font-primary);
	font-size: var(--tgs-text-base);
	font-weight: 400;
	line-height: var(--tgs-leading);
	color: var(--tgs-text);
	background-color: var(--tgs-bg);
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	/* Over-wide content (the page header's -12px edges, a phone 404) is
	   clipped here, so it never widens the mobile layout viewport. */
	overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-top: 0;
	margin-bottom: var(--tgs-heading-gap);
	font-family: var(--tgs-font-primary);
	font-weight: 500;
	line-height: var(--tgs-heading-leading);
}

h1 { font-size: var(--tgs-h1); }
h2 { font-size: var(--tgs-h2); }
h3 { font-size: var(--tgs-h3); }
h4 { font-size: var(--tgs-h4); }
h5 { font-size: var(--tgs-h5); }
h6 { font-size: var(--tgs-h6); }

p {
	margin-top: 0;
	margin-bottom: 1rem;
}

p,
li {
	font-size: var(--tgs-text-base);
	line-height: var(--tgs-leading);
}

ol,
ul {
	padding-left: 2rem;
}

ol,
ul,
dl {
	margin-top: 0;
	margin-bottom: 1rem;
}

b,
strong {
	font-weight: bolder;
}

small,
.small {
	font-size: 0.875em;
}

a {
	color: var(--tgs-link);
	text-decoration: var(--tgs-link-decoration);
	transition: color var(--tgs-transition);
}

a:hover {
	color: var(--tgs-link-hover);
	text-decoration: var(--tgs-link-hover-decoration);
}

hr {
	margin: 1rem 0;
	color: inherit;
	border: 0;
	border-top: 1px solid;
	opacity: 0.25;
}

.wp-block-separator {
	opacity: 1;
}

.wp-block-separator.has-white-background-color {
	border-color: var(--white);
}

figure {
	margin: 0 0 1rem;
}

img,
svg {
	vertical-align: middle;
}

label {
	display: inline-block;
}

button {
	border-radius: 0;
}

button:focus:not(:focus-visible) {
	outline: 0;
}

input,
button,
select,
textarea {
	margin: 0;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

button,
select {
	text-transform: none;
}

[role="button"] {
	cursor: pointer;
}

select {
	word-wrap: normal;
}

button,
[type="button"],
[type="submit"] {
	-webkit-appearance: button;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="submit"]:not(:disabled) {
	cursor: pointer;
}

textarea {
	resize: vertical;
}

fieldset {
	min-width: 0;
	padding: 0;
	margin: 0;
	border: 0;
}

legend {
	float: left;
	width: 100%;
	padding: 0;
	margin-bottom: 0.5rem;
	font-size: calc(1.275rem + 0.3vw);
	line-height: inherit;
}

legend + * {
	clear: left;
}

::-webkit-inner-spin-button {
	height: auto;
}

::-webkit-search-decoration {
	-webkit-appearance: none;
}

::file-selector-button {
	font: inherit;
	-webkit-appearance: button;
}

[hidden] {
	display: none !important;
}

/* Inputs (dream.css 01-atoms/form, var-driven; resolved values). Gravity
   Forms overrides these inside .gform_wrapper (components.css). */
input:not([type="submit"]),
textarea {
	max-width: 100%;
	padding: var(--tgs-input-padding-y) var(--tgs-input-padding-x);
	font-size: var(--tgs-input-font-size);
	font-weight: normal;
	line-height: 1.4;
	color: var(--tgs-input-color);
	vertical-align: middle;
	background-color: var(--tgs-input-bg);
	border: var(--tgs-input-border);
	border-radius: 0;
	transition-property: background-color, padding-left;
	transition-duration: var(--tgs-duration);
	transition-timing-function: var(--tgs-ease);
}

input:not([type="submit"]):hover,
input:not([type="submit"]):focus,
textarea:hover,
textarea:focus {
	outline: none;
}

/* Placeholders are white on every route (child _form.scss via the
   content-utilities mixin, styles.css:11921; the Gravity Forms fields on
   contact and rsvp are the only inputs that carry one). */
::placeholder {
	color: var(--white);
}

/* Lead paragraph (Bootstrap .lead). */
.lead {
	font-size: var(--tgs-lead);
	font-weight: 300;
}

/* Buttons
 *
 * The legacy classes stay: the acf/button block prints
 * a.btn.btn-default.button > span.button--label, the 404 and Gravity Forms
 * use .button. Values are Bootstrap 5.2 .btn with the old theme's
 * --button-* resolved (dream 01-atoms/button + child _button.scss).
 */
.btn {
	display: inline-block;
	padding: 0.375rem 0.75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
	color: #606060;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	cursor: pointer;
	user-select: none;
	background-color: transparent;
	border: 1px solid transparent;
	border-radius: 0;
	transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-link {
	font-weight: 400;
	color: var(--tgs-link);
	text-decoration: var(--tgs-link-decoration);
}

.btn-link:hover,
.btn-link:focus-visible {
	color: var(--tgs-link-hover);
	text-decoration: var(--tgs-link-hover-decoration);
}

.button:hover,
.button:focus {
	text-decoration: none;
}

.button--label {
	vertical-align: middle;
}

.button.btn-default {
	display: inline-block;
	padding: var(--tgs-button-padding);
	font-family: var(--tgs-font-primary);
	font-size: var(--tgs-button-font-size);
	font-weight: var(--tgs-button-font-weight);
	font-style: normal;
	line-height: var(--tgs-button-line-height);
	letter-spacing: 0;
	text-transform: none;
	color: var(--tgs-button-text);
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	background: var(--octonary-octonary-horizontal);
	background-size: 200% auto;
	border: var(--tgs-button-border);
	border-radius: 0;
	transition: all var(--tgs-transition);
	animation: gradient-alt 15s ease infinite;
}

.button.btn-default:visited {
	color: var(--tgs-button-text);
}

.button.btn-default:hover,
.button.btn-default:focus,
.button.btn-default:active {
	color: var(--tgs-button-text);
	text-decoration: none;
	background: var(--octonary-primary-horizontal);
	background-size: 200% auto;
	animation: gradient-alt 15s ease infinite;
}

/* Accessibility */

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

.screen-reader-text:focus {
	top: 0;
	left: 0;
	z-index: var(--tgs-z-skip-nav);
	display: block;
	width: auto;
	height: auto;
	padding: 1.25rem;
	clip: auto;
	clip-path: none;
	color: #fff;
	text-decoration: none;
	background-color: #000;
}

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

::selection {
	color: var(--white);
	background-color: var(--octonary);
}

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