/*
Theme Name: DANYDSHA
Theme URI: https://danydsha.com
Author: Danydsha Naomi
Author URI: https://danydsha.com
Description: The personal-brand theme for DANYDSHA (Danydsha Naomi). Ivory, stone, espresso, deep olive and aubergine; Cormorant Garamond, Cinzel and Montserrat. Structure · Presence · Legacy.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.1.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: danydsha
Tags: block-patterns, full-site-editing, one-column, custom-colors, editor-style, blog
*/

/* Most styling lives in theme.json. These are the few details theme.json can't express. */

html { scroll-behavior: smooth; }
::selection { background: var(--wp--preset--color--stone); color: var(--wp--preset--color--espresso); }

/* Fine olive rule, as in the logo */
.is-style-olive-rule,
hr.is-style-olive-rule {
	border: 0 !important;
	border-top: 1px solid var(--wp--preset--color--olive) !important;
	width: 56px !important;
	max-width: 56px !important;
	opacity: 1;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Small letter-spaced label (Cinzel) */
.dd-eyebrow {
	font-family: var(--wp--preset--font-family--cinzel);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.28em;
	text-transform: uppercase;
	font-weight: 500;
}

/* Photo placeholder: a calm stone gradient until the January shoot images arrive */
.dd-photo-placeholder {
	background: linear-gradient(180deg, #D7D0C6 0%, #B9AC9C 100%);
	color: rgba(247, 243, 238, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-family: var(--wp--preset--font-family--cinzel);
	font-size: 11px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

/* Header */
.dd-header .wp-block-navigation a { text-decoration: none; }
.dd-header .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--olive); }
.dd-header { border-bottom: 1px solid rgba(46, 31, 23, 0.08); }

/* Cards */
.dd-card { transition: transform .35s ease, box-shadow .35s ease; }
.dd-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(46, 31, 23, 0.35); }

/* Post grid images */
.wp-block-post-featured-image img { transition: transform .6s ease; }
.wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.02); }
.wp-block-post-featured-image { overflow: hidden; }

/* Forms (newsletter + enquiry) */
.dd-form { display: grid; gap: 14px; max-width: 560px; margin: 0 auto; text-align: left; }
.dd-form--inline { grid-template-columns: 1fr 1fr auto; align-items: end; max-width: 760px; }
.dd-form label { display: block; font-family: var(--wp--preset--font-family--cinzel); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 6px; }
.dd-form input[type=text],
.dd-form input[type=email],
.dd-form input[type=url],
.dd-form select,
.dd-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1px solid rgba(46, 31, 23, 0.25);
	border-radius: 0;
	background: #fff;
	color: var(--wp--preset--color--espresso);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 15px;
}
.has-espresso-background-color .dd-form input,
.has-aubergine-background-color .dd-form input,
.has-olive-background-color .dd-form input { background: transparent; border-color: rgba(247, 243, 238, 0.45); color: var(--wp--preset--color--ivory); }
.has-espresso-background-color .dd-form input::placeholder,
.has-aubergine-background-color .dd-form input::placeholder { color: rgba(247, 243, 238, 0.6); }
.dd-form input:focus, .dd-form textarea:focus, .dd-form select:focus { outline: 2px solid var(--wp--preset--color--olive); outline-offset: 1px; }
.dd-form textarea { min-height: 150px; resize: vertical; }
.dd-form .dd-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; grid-column: 1 / -1; }
.dd-form .dd-consent input { margin-top: 3px; accent-color: var(--wp--preset--color--olive); }
.dd-form .dd-consent a { color: inherit; }
.dd-form button {
	cursor: pointer;
	border: 0;
	border-radius: 0;
	padding: 15px 30px;
	background: var(--wp--preset--color--espresso);
	color: var(--wp--preset--color--ivory);
	font-family: var(--wp--preset--font-family--cinzel);
	font-size: 12px;
	letter-spacing: .24em;
	text-transform: uppercase;
	transition: background .25s ease;
}
.dd-form button:hover { background: var(--wp--preset--color--olive); }
.has-espresso-background-color .dd-form button,
.has-aubergine-background-color .dd-form button { background: var(--wp--preset--color--ivory); color: var(--wp--preset--color--espresso); }
.has-espresso-background-color .dd-form button:hover,
.has-aubergine-background-color .dd-form button:hover { background: var(--wp--preset--color--stone); }
.dd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.dd-notice { padding: 14px 18px; border-left: 2px solid var(--wp--preset--color--olive); background: rgba(74, 90, 63, 0.08); max-width: 560px; margin: 0 auto 18px; text-align: left; font-size: 15px; }
.dd-notice--error { border-color: #8a3b2e; background: rgba(138, 59, 46, 0.08); }
.has-espresso-background-color .dd-notice,
.has-aubergine-background-color .dd-notice { background: rgba(247, 243, 238, 0.1); }

@media (max-width: 781px) {
	.dd-form--inline { grid-template-columns: 1fr; }
	.dd-hide-mobile { display: none !important; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.dd-card, .wp-block-post-featured-image img { transition: none; }
}

/* Outline buttons */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--espresso);
	border: 1px solid var(--wp--preset--color--espresso);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--espresso);
	color: var(--wp--preset--color--ivory);
}

/* Footer list without bullets */
footer .wp-block-list { list-style: none; }
footer .wp-block-list a, .dd-eyebrow a { text-decoration: none; }

/* Journal grid card text */
.wp-block-post-template .wp-block-post-title { margin-top: 0.4rem; }
.wp-block-post-excerpt__excerpt { color: var(--wp--preset--color--muted); }

/* Full-width sections sit flush against each other (no ivory gaps) */
.wp-site-blocks > * { margin-block-start: 0; }
.alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }

/* Consent line reads as normal text, not a label */
.dd-form label.dd-consent {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 13px;
	letter-spacing: 0;
	text-transform: none;
	margin-bottom: 0;
}

/* Headings that are links: no underline until hover */
h1 a, h2 a, h3 a, h4 a { text-decoration: none; }
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Lining numerals for big numbers in the serif */
.has-display-font-size, .has-xx-large-font-size { font-variant-numeric: lining-nums; }
.wp-block-pullquote blockquote { margin: 0 auto; max-width: 640px; }

/* Shop: product details list */
.dd-specs { list-style: none; padding-left: 0; margin: 1.25rem 0; border-top: 1px solid var(--wp--preset--color--stone); }
.dd-specs li { padding: .6rem 0; border-bottom: 1px solid var(--wp--preset--color--stone); font-size: .9rem; color: var(--wp--preset--color--muted); }

/* Real images and concept renders */
.dd-image { margin: 0; }
.dd-image img { width: 100%; height: auto; display: block; }
.dd-image figcaption { font-family: var(--wp--preset--font-family--cinzel); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--muted); text-align: center; margin-top: .5rem; }
.dd-card .dd-image { margin-bottom: 1.25rem; }
.dd-muted-inline { font-family: var(--wp--preset--font-family--montserrat); font-size: .85rem; color: var(--wp--preset--color--muted); }
