/*
Theme Name: Here & Tao
Theme URI: https://hereandtao.com
Description: Lightweight block theme for Here & Tao Hypnotherapy. Rebuilds the classic look of the original site (cream paper background with green leaf border, forest logo, olive text menu). No page builder, no JavaScript, system fonts only.
Author: Johan van Houten
Version: 1.3.3
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hereandtao
*/

/* ---------- Page: cream paper with the green leaf border on the left ---------- */
html { background: #F8F6EC; }
body {
	margin: 0;
	background: #F8F6EC url("assets/images/bg-tile.jpg") repeat-y 0 0;
	color: #000;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1rem;
	line-height: normal;
}
/* Content sits to the right of the leaf border, left aligned, like the original */
.wp-site-blocks {
	max-width: 760px;
	margin: 0 0 0 125px;
	padding: 10px 16px 48px 0;
	box-sizing: border-box;
}
@media (min-width: 1000px) {
	.wp-site-blocks { margin-left: 140px; }
}
@media (max-width: 640px) {
	/* shift the tile so the leaf border hugs the left edge on phones */
	body { background-position: -76px 0; }
	.wp-site-blocks { margin-left: 0; padding: 10px 14px 40px 48px; }
}

/* ---------- Logos ---------- */
.ht-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 6px 10px;
	margin: 0 0 12px;
}
.ht-logos a { display: block; line-height: 0; max-width: 100%; }
.ht-logos img { max-width: 100%; height: auto; }
.ht-logo-wide { border: 3px solid #566040; box-sizing: border-box; }
.ht-hero { margin: 0 0 12px; }
.ht-hero a, .ht-hero img { display: block; max-width: 100%; height: auto; }
.ht-hero img { border: 3px solid #566040; box-sizing: border-box; }

/* ---------- Main menu (text, same order and look as the old menu picture) ---------- */
.main-nav { margin: 0 0 20px; }
.main-nav .wp-block-navigation__container {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 0;
	list-style: none;
	margin: 0;
	padding: 0;
}
.main-nav .wp-block-navigation-item { display: flex; align-items: center; }
.main-nav .wp-block-navigation-item:not(:last-child)::after {
	content: "|";
	margin: 0 .4em;
	color: #446126;
	font-weight: 700;
}
.wp-block-navigation.main-nav .wp-block-navigation-item .wp-block-navigation-item__content {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
	color: #446126;
	text-decoration: none;
	padding: 6px 0;
}
.wp-block-navigation.main-nav .wp-block-navigation-item .wp-block-navigation-item__content:hover,
.wp-block-navigation.main-nav .wp-block-navigation-item .wp-block-navigation-item__content:focus { text-decoration: underline; color: #9966CC; }
.main-nav .current-menu-item > .wp-block-navigation-item__content,
.main-nav [aria-current="page"] { font-weight: 700; }

/* Phones: no separators (they would dangle at the end of a line), bigger tap targets */
@media (max-width: 640px) {
	.main-nav .wp-block-navigation__container { gap: 0 20px; }
	.main-nav .wp-block-navigation-item:not(:last-child)::after { content: none; }
	.main-nav .wp-block-navigation-item__content { padding: 10px 0; }
}

/* ---------- Text ---------- */
h1, h2, h3, .wp-block-post-title {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-weight: 700;
	color: #000;
	line-height: 1.2;
}
.wp-block-post-title, h1 { font-size: 1.5rem; margin: .5em 0 .25em; }
h2 { font-size: 1.3rem; margin: 1.2em 0 .4em; }
h3 { font-size: 1.1rem; margin: 1em 0 .4em; }
.wp-block-post-title a { color: inherit; text-decoration: none; }
.wp-block-post-title a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
.wp-block-post-content > p:first-child { margin-top: .25em; }
/* Links: original green, darkened a little so they pass accessibility contrast */
a { color: #3d6b3d; }
a:visited { color: #566040; }
a:hover, a:focus { color: #9966CC; }
a:active { color: #9966CC; }
:focus-visible { outline: 3px solid #9966CC; outline-offset: 2px; }
.wp-block-post-content img { max-width: 100%; height: auto; }
/* Dividers: clearly visible, in the green of the leaf strip */
.wp-block-post-content hr, .wp-block-separator { border: 0; border-top: 2px solid #7f9a5a; background: none; margin: 2.2em 0; opacity: 1; height: 0; }
.wp-block-post-content blockquote { margin: 1em 0 1em 1.2em; padding-left: 1em; border-left: 3px solid #669966; }
.wp-block-post-date { color: #566040; font-size: .9rem; margin: 0 0 1em; }
.wp-block-post-excerpt__more-link { font-weight: 700; }

/* Bio / "new" pages: picture floats left like the original table layout */
.wp-block-post-content > img:first-child,
.wp-block-post-content > p:first-child > img:first-child { float: left; margin: 0 20px 10px 0; }

/* ---------- Footer ---------- */
.site-footer {
	margin-top: 36px;
	padding-top: 14px;
	border-top: 2px solid #7f9a5a;
	font-family: Arial, Helvetica, sans-serif;
	color: #446126;
}
.site-footer p { margin: 0 0 .4em; }
.site-footer a { color: #446126; }
.site-footer a:hover { color: #9966CC; }

/* Pagination in the blog list */
.wp-block-query-pagination { margin-top: 1.5em; gap: 1em; }

/* Skip link and screen-reader text (core adds the markup) */
.screen-reader-text { clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute; width: 1px; }
.screen-reader-text:focus { clip: auto; height: auto; width: auto; background: #FAF8ED; padding: 8px 12px; z-index: 100000; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }


/* Footer with logo and contact details */
.footer-inner{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.footer-logo{display:block;width:97px;height:100px;border:0}
.footer-contact p{margin:0 0 .6em}
.footer-contact a{color:#446126}

/* Articles list: title, short excerpt (and optional picture) */
.article-list{list-style:none;margin:1em 0;padding:0}
.article-list > li{margin:0;padding:1.3em 0;border-bottom:2px solid #7f9a5a}
.article-list > li:first-child{padding-top:.4em}
.article-list > li:last-child{border-bottom:0}
.article-list .wp-block-post-title{font-size:1.25rem;margin:0 0 .3em}
.article-list .wp-block-post-excerpt{margin:0}
.article-list .wp-block-post-featured-image{float:left;margin:0 16px 8px 0}

/* Contact form (Contact Form 7): simple, readable, full width on phones */
.wpcf7-form p { margin: 0 0 1.1em; }
.wpcf7-form label { font-weight: 700; color: #446126; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
	display: block;
	width: 100%;
	max-width: 34rem;
	box-sizing: border-box;
	margin-top: 4px;
	padding: 10px 12px;
	font: inherit;
	font-size: 1.05rem;
	border: 2px solid #7f9a5a;
	border-radius: 4px;
	background: #fff;
}
.wpcf7-form input:focus, .wpcf7-form textarea:focus { outline: 3px solid #9966CC; outline-offset: 1px; }
.wpcf7-form textarea { min-height: 9rem; }
.wpcf7-form input[type="submit"] {
	font: inherit; font-weight: 700; font-size: 1.05rem;
	padding: 10px 22px; cursor: pointer;
	color: #fff; background: #446126; border: 0; border-radius: 4px;
}
.wpcf7-form input[type="submit"]:hover, .wpcf7-form input[type="submit"]:focus { background: #345019; }
.wpcf7-response-output { max-width: 34rem; }
