/*
Theme Name: As Above So Be Noe
Theme URI: https://example.com/
Author: Noelle Williams
Description: A block theme for As Above So Be Noe: bone, rose and espresso, Bodoni Moda and Hanken Grotesk. Content is edited in the WordPress editor; features such as chart tools are added as separate plugins.
Version: 1.0.0
Requires at least: 6.5
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: noelle-williams-astrology
*/

/* Paper texture behind the whole site (from the prototype). */
body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .22 0 0 0 0 .14 0 0 0 .10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}
.has-parchment-background-color, .has-rose-background-color {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .22 0 0 0 0 .14 0 0 0 .10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Sections: generous vertical rhythm on every full-width band. */
.section, .wp-block-group.alignfull.has-background { padding-block: clamp(64px, 9vw, 120px); }
.wp-block-post-content > .wp-block-group.alignfull:first-child { margin-block-start: 0; }
.wp-block-post-content > .wp-block-group.alignfull + .wp-block-group.alignfull { margin-block-start: 0; }
.hero h1 { max-width: 14ch; }
h1 em, h2 em { font-style: italic; }

/* Small uppercase label above headings. */
.is-style-eyebrow, .eyebrow {
  font-family: var(--wp--preset--font-family--mono);
  font-size: .7rem; font-weight: 500; line-height: 1.3;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--wp--preset--color--muted);
  margin-bottom: 1rem;
}
.has-espresso-background-color .is-style-eyebrow,
.has-black-background-color .is-style-eyebrow { color: var(--wp--preset--color--rose-hi); }
.lead { font-size: 1.15rem; max-width: 60ch; }
.alignwide > p, .alignwide > .wp-block-list { max-width: 68ch; }
.booking-placeholder { max-width: 760px; }
.subtitle { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 1.05rem; line-height: 1.4; color: var(--wp--preset--color--wine); }
.price { font-family: var(--wp--preset--font-family--mono); font-size: .85rem; letter-spacing: .04em; color: var(--wp--preset--color--muted); }

/* Cards (service columns). */
.wp-block-column.card {
  background: var(--wp--preset--color--cream);
  border: 1px solid rgba(37,28,23,.17);
  padding: clamp(20px, 3vw, 32px);
}
.wp-block-column.card > * + * { margin-top: .75rem; }

/* Dark bands: lighter links and rose buttons. */
.has-espresso-background-color a:not(.wp-element-button),
.has-black-background-color a:not(.wp-element-button) { color: var(--wp--preset--color--rose-hi); }
.has-espresso-background-color .wp-element-button,
.has-black-background-color .wp-element-button { background: var(--wp--preset--color--rose); color: var(--wp--preset--color--black); }

/* Outline buttons. */
.wp-block-button.is-style-outline > .wp-block-button__link {
  background: transparent; color: var(--wp--preset--color--ink);
  border: 1px solid rgba(37,28,23,.42); padding: 14px 22px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
  background: var(--wp--preset--color--rose); border-color: var(--wp--preset--color--rose); color: var(--wp--preset--color--black);
}

/* FAQ. */
.wp-block-details { border-top: 1px solid rgba(37,28,23,.17); padding-block: 1.1rem; }
.wp-block-details:last-child { border-bottom: 1px solid rgba(37,28,23,.17); }
.wp-block-details summary { font-family: var(--wp--preset--font-family--display); font-size: 1.3rem; cursor: pointer; }
.wp-block-details[open] summary { margin-bottom: .6rem; }

/* Header (the template-part wrapper is what sticks). */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 20; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 0px); }
.wp-site-blocks > * + * { margin-block-start: 0; }
.site-header {
  background: rgba(237,230,218,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(37,28,23,.17);
}
.site-header .wp-block-site-title { font-family: var(--wp--preset--font-family--display); font-size: 1.32rem; letter-spacing: .01em; }
.site-header .wp-block-site-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.site-header .wp-block-navigation a { text-decoration: none; }
.site-header .wp-block-navigation-item:not(.nav-cta) a:hover { color: var(--wp--preset--color--wine); }
.site-header .nav-cta > a {
  background: var(--wp--preset--color--black); color: var(--wp--preset--color--bone) !important;
  padding: 8px 16px !important; font-weight: 500;
}
.site-header .nav-cta > a:hover { background: var(--wp--preset--color--wine); }

/* Footer. */
.site-footer a { color: var(--wp--preset--color--rose-hi); }
.site-footer .wp-block-site-title a { color: var(--wp--preset--color--cream); text-decoration: none; }

/* Booking placeholder (delete the box once your booking embed is in). */
.booking-placeholder {
  border: 1px dashed rgba(37,28,23,.42); background: var(--wp--preset--color--cream);
  padding: clamp(20px, 3vw, 32px); margin-top: 2rem;
}

:focus-visible { outline: 2px solid var(--wp--preset--color--wine); outline-offset: 2px; }
