/*
Theme Name:   DigiBookNest Child
Theme URI:    https://digibooknest.com
Description:  Child theme for DigiBookNest. Adds the approved "Quiet Library, Bright Shelf" styles on top of Astra. Keep all custom CSS here, never in the Astra parent theme.
Author:       DigiBookNest (setup pending)
Template:     astra
Version:      0.1.0
License:      GPL-2.0-or-later
Text Domain:  digibooknest-child
*/

/* ---------- Self-hosted fonts (SIL Open Font License 1.1; see fonts/ licence files) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/source-serif-4-latin-700-normal.woff2") format("woff2"); }

/* ---------- Approved design tokens ---------- */
:root {
	--navy: #092B50;
	--orange: #F58A16;
	--white: #FFFFFF;
	--cream: #F8F6F0;
	--grey: #F3F5F8;
	--serif-font: "Source Serif 4", Georgia, "Times New Roman", serif;
	--sans-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Global typography ---------- */
body {
	font-family: var(--sans-font);
	color: #3E4A5A;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
	font-family: var(--serif-font);
	color: var(--navy);
	line-height: 1.2;
}

/* Orange = action. Navy text on orange (about 5.8:1 contrast), never white text on orange. */
.button, button.button, input[type="submit"], .wp-element-button, .wp-block-button__link {
	background-color: var(--orange);
	color: var(--navy);
}
.button:hover, button.button:hover, input[type="submit"]:hover {
	background-color: #FF9A2E;
	color: var(--navy);
}

/* Visible focus for keyboard users */
:focus-visible {
	outline: 3px solid var(--navy);
	outline-offset: 3px;
}

/* ---------- Homepage pattern styles (used by the DigiBookNest Homepage block pattern) ---------- */
.wp-block-button.dbn-btn-primary .wp-block-button__link { background-color: var(--orange); color: var(--navy); border: 2px solid transparent; font-weight: 600; border-radius: 999px; }
.wp-block-button.dbn-btn-primary .wp-block-button__link:hover { background-color: #FF9A2E; color: var(--navy); }
.wp-block-button.dbn-btn-outline .wp-block-button__link { background-color: transparent; color: var(--navy); border: 2px solid var(--navy); font-weight: 600; border-radius: 999px; }
.wp-block-button.dbn-btn-outline .wp-block-button__link:hover { background-color: var(--navy); color: var(--white); }
.dbn-home-hero { background: var(--cream); padding: 64px 0; }
.dbn-home-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: .4em; }
.dbn-home-hero .dbn-lead { font-size: 1.1rem; max-width: 50ch; color: #3E4A5A; }
.dbn-eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin: 0 0 .6rem; }
.dbn-mockup { position: relative; height: 380px; max-width: 460px; margin: 0 auto; }
.dbn-book { position: absolute; width: 190px; aspect-ratio: 3 / 4; border-radius: 6px 12px 12px 6px; box-shadow: 0 24px 60px rgba(9,43,80,.22); padding: 18px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, #0E3A6B, #092B50); }
.dbn-book-1 { left: 0; top: 40px; transform: rotate(-6deg); }
.dbn-book-2 { left: 150px; top: 0; transform: rotate(3deg); background: linear-gradient(160deg, #FFFFFF, #F3F5F8); color: var(--navy); z-index: 2; }
.dbn-book-3 { left: 80px; top: 180px; transform: rotate(-2deg); background: linear-gradient(160deg, #FFB35C, #F58A16); color: var(--navy); z-index: 3; }
.dbn-book-tag { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dbn-book-title { font-family: "Source Serif 4", Georgia, serif; font-size: 1.3rem; font-weight: 700; line-height: 1.15; }
.dbn-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 24px 0; border-bottom: 1px solid #E2E7EE; margin: 0 0 48px; }
.dbn-trust-item strong { display: block; color: var(--navy); font-size: .95rem; }
.dbn-trust-item span { font-size: .86rem; color: #3E4A5A; }
.dbn-section-block { padding: 40px 0 8px; }
.dbn-final { background: linear-gradient(120deg, var(--cream), var(--white)); padding: 56px 0; text-align: center; margin-top: 48px; }
@media (max-width: 960px) { .dbn-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dbn-home-hero { padding: 40px 0; } }
@media (max-width: 480px) { .dbn-trust { grid-template-columns: 1fr; } .dbn-mockup { height: 330px; } .dbn-book { width: 150px; } .dbn-book-2 { left: 110px; } .dbn-book-3 { left: 58px; top: 160px; } }
