/*
Theme Name:        Hexxsy
Theme URI:         https://hexxsy.com
Description:       The house theme for Hexxsy: ink, paper and oxblood, set in IM Fell English and Libre Caslon Text.
Version:           0.3.0
Requires at least: 6.6
Requires PHP:      8.1
Author:            Hexxsy
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       hexxsy
Tags:              block-themes, full-site-editing

Fonts: IM Fell English and IM Fell English SC (Igino Marini), Libre Caslon
Text (Pablo Impallari), all under the SIL Open Font License 1.1. See
assets/fonts/.

Colors, fonts and sizes live in theme.json. This file only holds what
theme.json can't express: the house's rules, ornaments and boxes, as block
styles the editor offers by name.
*/

/* Separator styles: "Double rule" and "Thin rule". */
.wp-block-separator.is-style-double-rule {
	border: 0;
	border-top: var(--wp--custom--rule--double);
	height: 0;
	opacity: 1;
}

.wp-block-separator.is-style-thin-rule {
	border: 0;
	border-top: var(--wp--custom--rule--thin);
	height: 0;
	opacity: 1;
}

/* Group style "Notice": the double-bordered box from the house notice. */
.wp-block-group.is-style-notice {
	background: var(--wp--preset--color--card);
	border: 1.5px solid var(--wp--preset--color--ink);
	outline: 1px solid var(--wp--preset--color--ink);
	outline-offset: 5px;
	padding: 1.875rem 2.25rem;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	max-width: 680px;
}

/* Group style "Card": a raised panel with an ink border. */
.wp-block-group.is-style-card {
	background: var(--wp--preset--color--card);
	border: 1.5px solid var(--wp--preset--color--ink);
	padding: 1rem;
}

/* Group style "Band": a full-width section between double rules. */
.wp-block-group.is-style-band {
	background: var(--wp--preset--color--band);
	border-top: var(--wp--custom--rule--double);
	border-bottom: var(--wp--custom--rule--double);
}

/* Paragraph style "Hexx speaks": her voice, in Fell italic. */
p.is-style-hexx {
	font-family: var(--wp--preset--font-family--fell);
	font-style: italic;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}

/* Paragraph style "Small caps label", e.g. "Hexx, Proprietress". */
p.is-style-label {
	font-family: var(--wp--preset--font-family--fell-sc);
	font-size: 0.9375rem;
	letter-spacing: 0.12em;
}

/* Paragraph style "Fleuron heading", e.g. ❦ Notice ❦. */
p.is-style-fleuron {
	font-family: var(--wp--preset--font-family--fell-sc);
	font-size: 1.375rem;
	letter-spacing: 0.2em;
	color: var(--wp--preset--color--oxblood);
	text-align: center;
}

/* Buttons are at least 48px tall (44px for outline), per the brand. */
.wp-element-button,
.wp-block-button__link {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	min-height: 44px;
}

/* Masthead rule under the header. */
.hexxsy-masthead {
	border-bottom: var(--wp--custom--rule--double);
}

.hexxsy-topline {
	border-bottom: var(--wp--custom--rule--thin);
}

.hexxsy-footer {
	border-top: var(--wp--custom--rule--double);
}

/* ------------------------------------------------------------------
 * Forms: the Hexxsy plugin's forms (.hexxsy-form) and WooCommerce's
 * account forms. Matches the Ledger mockup: a card, small-caps labels,
 * underlined fields, an oxblood button. WooCommerce's block checkout
 * keeps its own field styles.
 * ------------------------------------------------------------------ */
.hexxsy-form {
	background: var(--wp--preset--color--card);
	border: 1.5px solid var(--wp--preset--color--ink);
	padding: clamp(1.25rem, 4vw, 1.875rem);
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	max-width: 560px;
}

.hexxsy-form-message p {
	margin: 0;
	font-family: var(--wp--preset--font-family--fell);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}

.hexxsy-field {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.hexxsy-form label,
.woocommerce-form label,
.woocommerce-EditAccountForm label {
	font-family: var(--wp--preset--font-family--fell-sc);
	font-size: 1rem;
	letter-spacing: 0.08em;
	line-height: 1.3;
}

.hexxsy-hint {
	font-size: var(--wp--preset--font-size--small);
	font-style: italic;
	color: var(--wp--preset--color--muted-ink);
}

.hexxsy-form input[type="text"],
.hexxsy-form input[type="email"],
.hexxsy-form input[type="url"],
.hexxsy-form input[type="tel"],
.hexxsy-form input[type="number"],
.hexxsy-form input[type="password"],
.hexxsy-form input[type="date"],
.hexxsy-form input[type="time"],
.hexxsy-form select,
.woocommerce-form .input-text,
.woocommerce-EditAccountForm .input-text {
	box-sizing: border-box;
	width: 100%;
	min-height: 46px;
	padding: 0 0.75rem;
	border: 0;
	border-bottom: 1.5px solid var(--wp--preset--color--ink);
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--caslon);
	font-size: 1.0625rem;
}

.hexxsy-form textarea,
.woocommerce-form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.625rem 0.75rem;
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--caslon);
	font-size: 1.0625rem;
	line-height: 1.6;
	resize: vertical;
}

.hexxsy-form input:focus-visible,
.hexxsy-form textarea:focus-visible,
.hexxsy-form select:focus-visible,
.woocommerce-form .input-text:focus-visible,
.woocommerce-EditAccountForm .input-text:focus-visible {
	outline: 2px solid var(--wp--preset--color--oxblood);
	outline-offset: 3px;
}

.hexxsy-form input[type="checkbox"],
.woocommerce-form input[type="checkbox"] {
	accent-color: var(--wp--preset--color--oxblood);
	width: 1.125rem;
	height: 1.125rem;
	margin: 0.2rem 0 0;
	flex: none;
}

.hexxsy-check {
	flex-direction: row;
	align-items: flex-start;
	gap: 0.75rem;
}

.hexxsy-check label {
	font-family: var(--wp--preset--font-family--caslon);
	font-size: 0.9375rem;
	letter-spacing: 0;
	line-height: 1.6;
}

.hexxsy-form .wp-element-button,
.woocommerce-form .button,
.woocommerce-EditAccountForm .button {
	min-height: 50px;
	margin-top: 0.375rem;
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--oxblood);
	color: var(--wp--preset--color--paper);
	font-family: var(--wp--preset--font-family--fell-sc);
	font-size: 1.1875rem;
	letter-spacing: 0.08em;
	cursor: pointer;
}

.hexxsy-form .wp-element-button:hover,
.woocommerce-form .button:hover,
.woocommerce-EditAccountForm .button:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

/* Error and info notices printed above plugin forms. */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0.875rem 1.125rem;
	border: 1.5px solid var(--wp--preset--color--ink);
	background: var(--wp--preset--color--card);
}

.woocommerce-error {
	border-color: var(--wp--preset--color--oxblood);
	color: var(--wp--preset--color--oxblood);
}

/* Spam trap on the waitlist form. */
.hexxsy-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ------------------------------------------------------------------
 * Rooms list ([hexxsy_rooms]) from the homepage mockup.
 * ------------------------------------------------------------------ */
.hexxsy-rooms-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 1.75rem;
}

.hexxsy-room {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--card);
	border: 1.5px solid var(--wp--preset--color--ink);
}

.hexxsy-room-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 0.625rem 0.875rem;
	border-bottom: 1px solid var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--fell-sc);
	font-size: 0.9375rem;
	letter-spacing: 0.1em;
}

.hexxsy-room-numeral {
	color: var(--wp--preset--color--oxblood);
	font-size: 1.25rem;
}

.hexxsy-room-portrait {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 180px;
	overflow: hidden;
	border-bottom: 1px solid var(--wp--preset--color--ink);
	background-color: var(--wp--preset--color--hatch);
	background-image: repeating-linear-gradient(135deg, rgba(27, 23, 20, 0.18) 0 1px, transparent 1px 7px);
	text-decoration: none;
}

.hexxsy-room-portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hexxsy-room-initial {
	background: var(--wp--preset--color--card);
	padding: 0.25rem 0.875rem;
	font-family: var(--wp--preset--font-family--fell-sc);
	font-size: 2.25rem;
	line-height: 1.2;
}

.hexxsy-room-body {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	flex-grow: 1;
	padding: 1rem 1rem 1.125rem;
}

.hexxsy-room-body p {
	margin: 0;
}

.hexxsy-room-name {
	margin: 0;
	font-family: var(--wp--preset--font-family--fell);
	font-size: 1.5rem;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.2;
}

.hexxsy-room-specialties {
	font-size: 0.9375rem;
	font-style: italic;
	color: var(--wp--preset--color--muted-ink);
}

.hexxsy-room-door {
	font-family: var(--wp--preset--font-family--fell);
	font-size: 1.0625rem;
	line-height: 1.4;
}

.hexxsy-room-shelves {
	margin-top: 0.25rem !important;
	font-family: var(--wp--preset--font-family--fell-sc);
	font-size: 0.875rem;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--oxblood);
}

.hexxsy-room-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 0.875rem;
	font-size: 0.9375rem;
}

.hexxsy-room-knock {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 1rem;
	border: 1.5px solid var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--fell-sc);
	font-size: 1rem;
	letter-spacing: 0.06em;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
}

.hexxsy-room-knock:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

.hexxsy-room.is-unlit {
	border-style: dashed;
	background: #E2D7C0;
	color: var(--wp--preset--color--muted-ink);
}

.hexxsy-room.is-unlit .hexxsy-room-head {
	border-bottom-style: dashed;
}

.hexxsy-room-unlit {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	flex-grow: 1;
	padding: 2rem 1.125rem;
	text-align: center;
}

.hexxsy-room-unlit p {
	margin: 0;
}

.hexxsy-room-unlit-label {
	font-family: var(--wp--preset--font-family--fell-sc);
	font-size: 1.25rem;
	letter-spacing: 0.1em;
}

.hexxsy-room-unlit-line {
	font-family: var(--wp--preset--font-family--fell);
	font-style: italic;
	font-size: 1.0625rem;
	line-height: 1.4;
}

.hexxsy-rooms-note,
.hexxsy-rooms-ledger {
	text-align: center;
	font-family: var(--wp--preset--font-family--fell);
	font-size: 1.1875rem;
	color: var(--wp--preset--color--muted-ink);
	margin: 2rem auto 0;
	max-width: 600px;
}

.hexxsy-rooms-ledger {
	font-style: italic;
	line-height: 1.5;
	margin-top: 0.625rem;
}

.hexxsy-rooms-ledger a {
	color: var(--wp--preset--color--oxblood);
}

/* [hexxsy_line key="ledger"]: Hexx's pair of lines on the Ledger page. */
.hexxsy-line-title {
	font-family: var(--wp--preset--font-family--fell);
	font-size: 1.75rem;
	line-height: 1.35;
}
