/*
Theme Name: The Freyja Loft
Theme URI: https://thefreyjaloft.com
Author: Studio Freyja LLC
Author URI: https://www.studiofreyja.com
Description: A block theme for The Freyja Loft, a photo studio and event space rental in downtown Anoka, MN. Earth & Linen palette, Instrument Serif and Instrument Sans, and page patterns for Home, The Space, Photographers, Events, Book, Renter Guide, Policies, FAQ and Contact.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
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: freyja-loft
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
img { max-width: 100%; height: auto; }
:where(a):focus-visible, .wp-element-button:focus-visible, summary:focus-visible {
	outline: 3px solid var(--wp--preset--color--clay);
	outline-offset: 3px;
}
em { font-style: italic; }

/* ---------- Header ---------- */
.loft-header { padding-top: 1.4rem; padding-bottom: 1.4rem; }
.loft-header__bar { gap: 1rem; }
.loft-brand { gap: 0.35rem; }
.loft-brand p {
	margin: 0;
	font-size: 0.6875rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	line-height: 1;
}
.loft-header .wp-block-navigation { font-size: 0.9375rem; gap: 1.4rem; }
.loft-header .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--ink-soft); }
.loft-header .wp-block-navigation a:hover { color: var(--wp--preset--color--clay); }
.loft-header .wp-block-button__link { padding: 0.75rem 1.4rem; font-size: 0.9375rem; }

/* ---------- Type helpers ---------- */
.loft-eyebrow {
	font-size: 0.8125rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--clay);
	font-weight: 500;
	line-height: 1.5;
	margin-top: 0;
	margin-bottom: 0;
}
.loft-dark .loft-eyebrow { color: var(--wp--preset--color--clay-light); }
.loft-lead { font-size: var(--wp--preset--font-size--lead); color: var(--wp--preset--color--ink-soft); line-height: 1.6; }
.loft-dark .loft-lead, .loft-dark p { color: #D8CFC1; }
.loft-dark h2, .loft-dark h3 { color: var(--wp--preset--color--linen); }
.loft-hero h1 em, h1 em, h2 em { color: var(--wp--preset--color--clay); }
.loft-price {
	font-family: var(--wp--preset--font-family--instrument-serif);
	font-size: 2.125rem;
	line-height: 1.1;
	margin-top: 0;
	margin-bottom: 0;
}
.loft-price small { font-family: var(--wp--preset--font-family--instrument-sans); font-size: 0.9375rem; color: #BDB3A5; }
.loft-note { font-size: 0.9375rem; color: var(--wp--preset--color--muted); }

/* ---------- Sections ---------- */
.loft-section { padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.loft-hero { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: 1.5rem; text-align: center; }
.loft-hero > * { margin-left: auto; margin-right: auto; }
.loft-hero p.loft-lead { max-width: 40rem; }
.loft-hero .wp-block-buttons { justify-content: center; }
.loft-dark { background: var(--wp--preset--color--bark); color: #D8CFC1; }
.loft-sand { background: var(--wp--preset--color--sand); }
.loft-page-head { padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.loft-page-head h1 { font-size: clamp(2.75rem, 6vw, 5rem); }
.loft-prose { max-width: 46rem; margin-left: auto; margin-right: auto; }
.loft-prose h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-top: 2.5rem; }
.loft-prose h3 { margin-top: 1.75rem; }

/* ---------- Photos ---------- */
.loft-photo img, img.loft-photo {
	width: 100%;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--photo);
	display: block;
}
.loft-photo--hero img { height: clamp(300px, 46vw, 560px); object-position: center 60%; }
.loft-photo--card img { height: 300px; border-radius: var(--wp--custom--radius--card); }
.loft-photo--tall img { height: clamp(260px, 34vw, 420px); border-radius: var(--wp--custom--radius--card); }
.loft-photo, figure.loft-photo { margin-bottom: 0; }
.loft-hero-photo > .wp-block-image { max-width: none; }
.loft-gallery { gap: 1rem; }
.loft-gallery figure { margin: 0; }

/* ---------- Pills ---------- */
ul.loft-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 0; }
ul.loft-pills li {
	border: 1px solid var(--wp--preset--color--muted);
	border-radius: 999px;
	padding: 0.5rem 1rem;
	font-size: 0.9375rem;
	line-height: 1.3;
}
.loft-dark ul.loft-pills li { border-color: #6B6455; color: var(--wp--preset--color--linen); }

/* ---------- Fact cards ---------- */
.loft-cards > .wp-block-group, .loft-card {
	background: var(--wp--preset--color--stone);
	border-radius: 14px;
	padding: 1.1rem 1.15rem;
	font-size: 0.9375rem;
	line-height: 1.45;
}
.loft-cards p { margin: 0; }
.loft-cards strong { font-weight: 600; display: block; margin-bottom: 0.2rem; }

/* ---------- Tables ---------- */
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.wp-block-table td, .wp-block-table th { border: 0; border-bottom: 1px solid var(--wp--preset--color--oat); padding: 0.85rem 0.5rem; text-align: left; vertical-align: top; }
.wp-block-table td:last-child { text-align: right; white-space: nowrap; font-family: var(--wp--preset--font-family--instrument-serif); font-size: 1.375rem; }
.wp-block-table thead th { border-bottom: 2px solid var(--wp--preset--color--bark); font-weight: 600; }
.wp-block-table figcaption { font-size: 0.875rem; color: var(--wp--preset--color--muted); text-align: left; }

/* ---------- FAQ (details) ---------- */
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--oat); padding: 1.1rem 0; }
.wp-block-details summary { cursor: pointer; font-weight: 600; font-size: 1.0625rem; list-style-position: outside; }
.wp-block-details[open] summary { margin-bottom: 0.5rem; }
.wp-block-details p { color: var(--wp--preset--color--ink-soft); margin-top: 0.4rem; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--bark);
	border: 1px solid var(--wp--preset--color--olive);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus {
	background: var(--wp--preset--color--olive);
	color: var(--wp--preset--color--linen);
}
.loft-dark .wp-block-button.is-style-outline .wp-block-button__link { color: var(--wp--preset--color--linen); border-color: var(--wp--preset--color--oat); }

/* ---------- Footer ---------- */
.loft-footer { background: var(--wp--preset--color--bark); color: #D8CFC1; padding-top: 2.75rem; padding-bottom: 2.75rem; font-size: 0.875rem; }
.loft-footer a { color: #E3C3A8; }
.loft-footer a:hover { color: var(--wp--preset--color--linen); }
.loft-footer p { margin: 0; color: #D8CFC1; }
.loft-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.2rem; }


@media (max-width: 781px) {
	.loft-header .wp-block-buttons { display: none; }
	.wp-block-table td:last-child { white-space: normal; }
}

/* First element in a text block sits flush with the section padding. */
.loft-prose > :first-child { margin-top: 0; }
.loft-hero h1 { max-width: 62rem; }
