/*
Theme Name: Norton Streak
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: norton-streak
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* ===== Norton Streak ===== */
:root {
	--streak: linear-gradient(100deg, var(--wp--preset--color--orange) 0%, var(--wp--preset--color--primary) 28%, var(--wp--preset--color--plum) 52%, var(--wp--preset--color--azure) 78%, var(--wp--preset--color--sun) 100%);
	--rule: rgba(22, 18, 58, .14);
	--rule-light: rgba(255, 255, 255, .16);
	--r-md: 14px;
	--r-lg: 18px;
	--section-pad: clamp(64px, 9vw, 112px);
}

/* No italics anywhere on the site. Emphasis is weight, color, and marks. */
*, em, i, cite, q, dfn, var, address, blockquote { font-style: normal !important; }

html { scroll-behavior: smooth; }
img { height: auto; }
strong { font-weight: 700; }
a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.wp-block-heading { margin-top: 0; }

/* === labels and type helpers === */
.kicker, .kicker-light {
	font-family: var(--wp--preset--font-family--figtree);
	font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
	font-size: var(--wp--preset--font-size--label);
	color: var(--wp--preset--color--primary);
	margin-bottom: 14px;
}
.kicker-light { color: var(--wp--preset--color--sun); }
.lead { font-family: var(--wp--preset--font-family--figtree); font-weight: 700; font-size: clamp(19px, 2vw, 26px); line-height: 1.3; }
.big-p { font-size: var(--wp--preset--font-size--big-p); line-height: 1.55; }
.muted { color: var(--wp--preset--color--muted); }
.authors { font-family: var(--wp--preset--font-family--figtree); font-weight: 700; font-size: clamp(18px, 1.8vw, 22px); color: var(--wp--preset--color--sun); }
.hl { background: linear-gradient(transparent 58%, var(--wp--preset--color--sun) 58%); padding: 0 .08em; }
.col-head {
	font-size: clamp(18px, 1.8vw, 22px) !important; padding-bottom: 10px;
	border-bottom: 3px solid currentColor; margin-bottom: 18px;
}
* + .col-head { margin-top: clamp(40px, 5vw, 64px); }
.col-head::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 10px; background: var(--wp--preset--color--sun); vertical-align: -1px; }
.col-head.dot-azure::before { background: var(--wp--preset--color--azure); }
.col-head.dot-magenta::before { background: var(--wp--preset--color--primary); }
.col-head.dot-plum::before { background: var(--wp--preset--color--plum); }
.col-head.dot-orange::before { background: var(--wp--preset--color--orange); }
.tag {
	display: inline-block; font-family: var(--wp--preset--font-family--figtree); font-weight: 800;
	font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px;
	color: var(--wp--preset--color--white); background: var(--wp--preset--color--primary); vertical-align: middle;
}
.tag-azure { background: var(--wp--preset--color--azure-deep); }
.tag-sun { background: var(--wp--preset--color--sun); color: var(--wp--preset--color--ink); }

/* === header === */
.site-header { position: sticky; top: 0; z-index: 50; padding-block: 12px; }
.site-header::after { content: ""; display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--streak); }
.site-header .wp-block-site-title a { color: var(--wp--preset--color--white); display: inline-flex; align-items: center; gap: 10px; }
.site-header .wp-block-site-title a::before { content: ""; width: 26px; height: 26px; border-radius: 8px; background: var(--streak); }
.site-header .wp-block-navigation, .site-header .wp-block-navigation a, .site-header .wp-block-navigation__responsive-container { color: var(--wp--preset--color--white); }
.site-header .wp-block-navigation a { padding: 8px 12px; border-radius: 8px; }
.site-header .wp-block-navigation a:hover { background: rgba(255,255,255,.12); color: var(--wp--preset--color--sun); }
.site-header .nav-cta a { background: var(--wp--preset--color--sun); color: var(--wp--preset--color--ink); border-radius: 999px; padding: 8px 16px; }
.site-header .nav-cta a:hover { background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); }
.site-header .wp-block-navigation__responsive-container.is-menu-open .nav-cta a { display: inline-block; }

/* === sections === */
.band { padding-block: var(--section-pad); }
.band-tight { padding-block: clamp(40px, 6vw, 72px); }
.band-ink, .band-ink-2, .band-azure { color: var(--wp--preset--color--white); }
.band-ink a, .band-ink-2 a, .band-azure a { color: var(--wp--preset--color--white); }
.band-ink a:hover, .band-ink-2 a:hover, .band-azure a:hover { color: var(--wp--preset--color--sun); }
.band-ink .kicker, .band-ink-2 .kicker, .band-azure .kicker { color: var(--wp--preset--color--sun); }
.band-ink .muted, .band-ink-2 .muted, .band-azure .muted { color: rgba(255,255,255,.75); }
.streak-top { position: relative; }
.streak-top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--streak); }
.sec-head { max-width: 860px; margin-bottom: clamp(28px, 4vw, 48px); }
.page-title-band { padding-block: clamp(40px, 6vw, 72px); }
.page-title-band h1 { margin: 0; color: var(--wp--preset--color--white); }
.band-ink h1, .band-ink h2, .band-ink h3, .band-ink h4, .band-ink-2 h1, .band-ink-2 h2, .band-ink-2 h3, .band-ink-2 h4, .band-azure h1, .band-azure h2, .band-azure h3, .band-azure h4, .site-footer h1, .site-footer h2, .site-footer h3 { color: var(--wp--preset--color--white); }

/* === hero === */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 104px); }
.hero::before {
	content: ""; position: absolute; inset: -20% -10%; pointer-events: none;
	background:
		radial-gradient(60% 50% at 85% 20%, rgba(31,163,236,.55), transparent 70%),
		radial-gradient(50% 45% at 10% 80%, rgba(255,140,26,.55), transparent 70%),
		radial-gradient(45% 40% at 60% 95%, rgba(230,46,139,.5), transparent 70%),
		radial-gradient(40% 35% at 25% 15%, rgba(106,44,145,.7), transparent 70%);
	filter: blur(10px);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--streak); }
.hero > * { position: relative; z-index: 1; }
.hero .wp-block-columns { align-items: center; }
.hero .is-style-book-cover { margin-bottom: 28px; }
.hero h1 { margin-bottom: .3em; }
.hero .authors { margin-bottom: 1em; }
.hero .lead { max-width: 26em; }
.hero .wp-block-buttons { margin-top: 24px; }
.is-style-book-cover { max-width: 440px; margin-inline: auto; }
.is-style-book-cover img { width: 100%; border-radius: 6px; box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.1); transform: rotate(-2deg); }

/* === buttons === */
.wp-element-button { transition: transform .15s ease, background-color .15s ease, color .15s ease; border: 2px solid transparent; }
.wp-element-button:hover { transform: translateY(-2px); }
.band-ink .wp-block-button:not(.is-style-ghost) .wp-element-button, .band-ink-2 .wp-block-button:not(.is-style-ghost) .wp-element-button, .band-azure .wp-block-button:not(.is-style-ghost) .wp-element-button, .hero .wp-block-button:not(.is-style-ghost) .wp-element-button { color: var(--wp--preset--color--ink); }
.band-ink .wp-block-button:not(.is-style-ghost) .wp-element-button:hover, .band-ink-2 .wp-block-button:not(.is-style-ghost) .wp-element-button:hover, .band-azure .wp-block-button:not(.is-style-ghost) .wp-element-button:hover, .hero .wp-block-button:not(.is-style-ghost) .wp-element-button:hover { color: var(--wp--preset--color--ink); }
.is-style-ghost .wp-element-button { background: transparent; color: currentColor; border-color: currentColor; }
.is-style-ghost .wp-element-button:hover { background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--white); }
.band-paper .is-style-ghost .wp-element-button:hover, .band-paper-2 .is-style-ghost .wp-element-button:hover { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); border-color: var(--wp--preset--color--ink); }
.is-style-magenta .wp-element-button { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--white); }
.is-style-magenta .wp-element-button:hover { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); }
.is-style-ink .wp-element-button { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); }
.is-style-ink .wp-element-button:hover { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--white); }

/* === images === */
.is-style-offset-sun img, .is-style-offset-azure img { border-radius: var(--r-lg); }
.is-style-offset-sun img { box-shadow: 12px 12px 0 var(--wp--preset--color--sun); }
.is-style-offset-azure img { box-shadow: -12px 12px 0 var(--wp--preset--color--azure); }
.is-style-offset-sun, .is-style-offset-azure { padding-bottom: 12px; }

/* === cards === */
.is-style-card {
	background: var(--wp--preset--color--white); border-radius: var(--r-md); padding: 18px 20px 20px;
	border-left: 6px solid var(--wp--preset--color--azure);
}
.is-layout-grid > .is-style-card, .is-layout-grid > .is-style-card-ink, .is-layout-grid > .is-style-build { height: 100%; }
.is-style-card h3, .is-style-card-ink h3 { font-size: 18px; line-height: 1.25; }
.is-style-card h3 a, .is-style-card-ink h3 a, .is-style-event h3 a { text-decoration: none; }
.is-style-card h3 a:hover, .is-style-card-ink h3 a:hover, .is-style-event h3 a:hover { text-decoration: underline; }
.is-style-card h3 a { color: var(--wp--preset--color--ink); }
.is-style-card h3 a:hover { color: var(--wp--preset--color--primary); }
.is-style-card.rule-magenta { border-left-color: var(--wp--preset--color--primary); }
.is-style-card.rule-orange { border-left-color: var(--wp--preset--color--orange); }
.is-style-card.rule-plum { border-left-color: var(--wp--preset--color--plum); }
.is-style-card.rule-sun { border-left-color: var(--wp--preset--color--sun); }
.is-style-card h3, .is-style-card h4 { margin: 0 0 6px; }
.is-style-card p { margin: 0 0 6px; }
.is-style-card p:last-child { margin-bottom: 0; }
.is-style-card .date, .is-style-card-ink .date { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--wp--preset--color--muted); }
.is-style-card-ink { background: rgba(255,255,255,.07); border-radius: var(--r-md); padding: 16px 18px 18px; border-top: 4px solid var(--wp--preset--color--plum); margin-bottom: 12px; }
.is-style-card-ink.rule-azure { border-top-color: var(--wp--preset--color--azure); }
.is-style-card-ink.rule-orange { border-top-color: var(--wp--preset--color--orange); }
.is-style-card-ink.rule-sun { border-top-color: var(--wp--preset--color--sun); }
.is-style-card-ink h3, .is-style-card-ink h4 { margin: 0 0 6px; }
.is-style-card-ink p { margin: 0 0 4px; }
.is-style-card-ink .date { color: rgba(255,255,255,.7); }
.is-style-card-ink .show { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--sun); }
.is-style-pull { border-left: 6px solid var(--wp--preset--color--primary); background: rgba(255,255,255,.08); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 22px 26px; }
.is-style-pull p { margin: 0; }
.is-style-pull .quote { font-family: var(--wp--preset--font-family--figtree); font-weight: 700; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.3; margin-bottom: 10px; }
.is-style-pull .source { font-size: 14px; color: rgba(255,255,255,.75); }

/* === events === */
.is-style-event { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule-light); }
.is-style-event > * { margin: 0; }
.is-style-event .date { font-family: var(--wp--preset--font-family--figtree); font-weight: 800; color: var(--wp--preset--color--sun); font-size: 15px; line-height: 1.3; }
.is-style-event h3 { font-size: 19px; margin: 0 0 4px; }
.is-style-event .venue { font-size: 15px; color: rgba(255,255,255,.85); margin: 0 0 4px; }
.is-style-event .note { font-size: 14.5px; color: rgba(255,255,255,.65); margin: 0; }
.is-style-event .date + * { grid-column: 2; }
.is-style-event .date ~ * { grid-column: 2; }
.empty-state { padding: 18px 20px; border: 2px dashed rgba(255,255,255,.3); border-radius: 12px; color: rgba(255,255,255,.85); }

/* === videos === */
.video-grid .wp-block-embed { margin: 0; }
.video-grid .wp-block-embed__wrapper { border-radius: 12px; overflow: hidden; background: #000; }
.video-grid figcaption { margin-top: 10px; font-family: var(--wp--preset--font-family--figtree); font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--wp--preset--color--white); text-align: left; }
.video-grid figcaption .muted { display: block; font-family: var(--wp--preset--font-family--public-sans); font-weight: 400; font-size: 13px; margin-top: 2px; }

/* === lists === */
.is-style-roles { list-style: none; padding: 0; margin: 20px 0 0; }
.is-style-roles li { padding: 10px 0 10px 18px; border-left: 4px solid var(--wp--preset--color--primary); margin-bottom: 8px; font-weight: 700; font-family: var(--wp--preset--font-family--figtree); font-size: 15.5px; line-height: 1.35; }
.is-style-roles li:nth-child(2n) { border-color: var(--wp--preset--color--azure); }
.is-style-roles li:nth-child(3n) { border-color: var(--wp--preset--color--orange); }
.is-style-partners { list-style: none; padding: 0; margin: 0; columns: 3; column-gap: 28px; }
.is-style-partners li:first-child { border-top: 0; }
.is-style-partners li { break-inside: avoid; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 15.5px; font-weight: 500; margin: 0; }
.is-style-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.is-style-chips li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; margin: 0; }
.link-row { display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 700; }
.link-row a { color: var(--wp--preset--color--sun); }
.link-row a:hover { color: var(--wp--preset--color--white); }

/* === builds === */
.is-style-build { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.is-style-build .wp-block-image { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--wp--preset--color--plum), var(--wp--preset--color--azure)); }
.is-style-build .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.is-style-build:hover .wp-block-image img { transform: scale(1.04); }
.is-style-build > :not(.wp-block-image) { margin: 0 18px; }
.is-style-build .pw { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--sun); margin-top: 16px; }
.is-style-build h3 { font-size: 19px; margin: 6px 18px; }
.is-style-build p:not(.pw) { font-size: 14.5px; color: rgba(255,255,255,.78); flex: 1; }
.is-style-build p:last-child { margin-bottom: 18px; font-weight: 800; font-family: var(--wp--preset--font-family--figtree); color: var(--wp--preset--color--white); flex: 0; }
.is-style-build p:last-child a { text-decoration: none; }
.is-style-build p:last-child a:hover { color: var(--wp--preset--color--sun); text-decoration: underline; }

/* === feature post === */
.feature-post { background: var(--wp--preset--color--white); border-radius: 22px; padding: clamp(18px, 2.5vw, 32px); border-top: 10px solid var(--wp--preset--color--primary); box-shadow: 0 1px 0 var(--rule), 0 24px 50px rgba(22,18,58,.08); }
.feature-post .wp-block-columns { align-items: center; }
.feature-post .wp-block-image img { border-radius: 12px; }
.feature-post h3 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; }
.feature-post h3 a { color: var(--wp--preset--color--ink); text-decoration: none; }
.feature-post h3 a:hover { color: var(--wp--preset--color--primary); }
.stamp { font-weight: 700; color: var(--wp--preset--color--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* === contact === */
.big-link a { font-family: var(--wp--preset--font-family--figtree); font-weight: 800; font-size: clamp(20px, 2.4vw, 30px); color: var(--wp--preset--color--ink); word-break: break-word; }
.big-link a:hover { color: var(--wp--preset--color--primary); }
.is-style-social { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.is-style-social li { margin: 0; }
.is-style-social a { display: flex; align-items: center; justify-content: space-between; background: var(--wp--preset--color--white); border: 2px solid var(--wp--preset--color--ink); border-radius: 14px; padding: 18px 22px; font-family: var(--wp--preset--font-family--figtree); font-weight: 800; font-size: 22px; color: var(--wp--preset--color--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.is-style-social a::after { content: "\2197"; }
.is-style-social a:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--wp--preset--color--primary); color: var(--wp--preset--color--ink); }
.is-style-social li:nth-child(2) a:hover { box-shadow: 6px 6px 0 var(--wp--preset--color--azure); }
.is-style-social li:nth-child(3) a:hover { box-shadow: 6px 6px 0 var(--wp--preset--color--orange); }
.is-style-social li:nth-child(4) a:hover { box-shadow: 6px 6px 0 var(--wp--preset--color--plum); }

/* === footer === */
.site-footer { padding-block: 40px 48px; font-size: 14.5px; color: rgba(255,255,255,.8); }
.site-footer .foot-line { color: var(--wp--preset--color--white); font-size: 16px; }
.site-footer .disclosure { max-width: 70ch; }
.site-footer .foot-links { list-style: none; padding: 0; margin: 0; }
.site-footer .foot-links li { padding: 6px 0; border-top: 1px solid var(--rule-light); margin: 0; }
.site-footer .foot-links a { color: var(--wp--preset--color--white); font-weight: 700; text-decoration: none; }
.site-footer .foot-links a:hover { color: var(--wp--preset--color--sun); text-decoration: underline; }

/* === responsive === */
@media (max-width: 900px) {
	.is-style-partners { columns: 2; }
}
@media (max-width: 600px) {
	.is-style-partners { columns: 1; }
	.is-style-event { grid-template-columns: 1fr; gap: 4px; }
	.is-style-event .date ~ * { grid-column: 1; }
	.is-style-book-cover img { transform: none; max-width: 340px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.wp-element-button, .is-style-build .wp-block-image img, .is-style-social a { transition: none; }
}
