/*
Theme Name: Glenn Patrick
Description: A portfolio block theme for Glenn Patrick Designs: selected work, the maker behind it, and a simple way to get in touch.
Version: 1.2.3
Requires at least: 6.6
Requires PHP: 8.0
Author: Glenn Patrick
Text Domain: glenn-patrick
License: GPL-2.0-or-later
Tags: blog, portfolio, full-site-editing, block-patterns, custom-colors, editor-style, wide-blocks
*/

/* Locally bundled fonts keep the theme, editor and offline preview consistent. */
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("assets/fonts/hanken-grotesk-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
:root { --gp-font-heading: "Fraunces", Georgia, serif; --gp-font-body: "Hanken Grotesk", system-ui, sans-serif; }

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
::selection { background: #dfcce7; color: #241d26; }
:where(a, button, input, textarea, select):focus-visible { outline: 2px solid var(--wp--preset--color--plum, #713f78); outline-offset: 5px; }
a { text-underline-offset: .2em; }
img { height: auto; max-width: 100%; }
.wp-site-blocks { overflow-wrap: break-word; }
.gp-header { padding-block: 24px; border-bottom: 1px solid var(--wp--preset--color--line); }
.gp-wordmark { font-family: var(--wp--preset--font-family--editorial, var(--gp-font-heading)); font-size: clamp(24px, 3vw, 34px); letter-spacing: -.025em; line-height: 1; }
.gp-wordmark a { text-decoration: none; }
.gp-label { font-family: var(--wp--preset--font-family--sans, var(--gp-font-body)); font-size: 0.8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.gp-hero { padding-block: clamp(40px, 6vw, 90px); gap: clamp(30px, 5vw, 80px); }
.gp-hero h1 { font-size: clamp(52px, 6.4vw, 94px); letter-spacing: -.025em; line-height: 1.08; margin-block: 28px; }
.gp-hero h1 em { color: var(--wp--preset--color--plum); font-weight: 400; }
.gp-hero .wp-block-image { margin: 0; }
.gp-hero .wp-block-image { width: fit-content; max-width: 100%; margin-inline: auto; }
.gp-hero .wp-block-image img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(78vh, 680px); }
.gp-hero figcaption { font-size: 0.8125rem; letter-spacing: .04em; text-transform: uppercase; text-align: left; padding-top: 12px; color: var(--wp--preset--color--muted); }
.gp-intro { max-width: 430px; color: var(--wp--preset--color--muted); }
.gp-section { padding-block: clamp(40px, 6vw, 76px); border-top: 1px solid var(--wp--preset--color--line); }
.gp-section-heading { margin-bottom: 36px; }
.gp-section-heading h2 { margin-block: 0; }
.gp-grid .wp-block-post { min-width: 0; }
.gp-grid .wp-block-post-featured-image { overflow: hidden; background: var(--wp--preset--color--wash); }
.gp-grid .wp-block-post-featured-image img { transition: transform .35s ease; }
.gp-grid .wp-block-post-featured-image a:hover img { transform: scale(1.025); }
.gp-grid .wp-block-post-title { font-size: clamp(26px, 3vw, 36px); line-height: 1.18; margin-block: 16px 12px; }
.gp-grid .wp-block-post-title a { text-decoration: none; }
.gp-grid .wp-block-post-title a:hover { text-decoration: underline; }
.gp-grid .wp-block-post-date, .gp-grid .wp-block-post-terms { font-size: 0.8125rem; letter-spacing: .04em; text-transform: uppercase; }
.gp-grid .wp-block-post-excerpt { font-size: 1rem; color: var(--wp--preset--color--muted); }
.gp-grid .wp-block-post-excerpt__more-link { color: var(--wp--preset--color--ink); }
.gp-empty { padding: 28px; border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--muted); }
.gp-statement { padding: clamp(32px, 6vw, 80px); }
.gp-statement h2 { max-width: 840px; font-size: clamp(40px, 6vw, 76px); letter-spacing: -.025em; }
.gp-footer { border-top: 1px solid var(--wp--preset--color--line); padding-block: 48px 24px; margin-top: 64px; }
.gp-footer-bottom { border-top: 1px solid var(--wp--preset--color--line); padding-top: 22px; margin-top: 40px; font-size: 0.875rem; }
.gp-article { padding-block: 64px; }
.gp-article > .wp-block-post-title { font-size: clamp(42px, 6vw, 76px); letter-spacing: -.025em; line-height: 1.18; }
.wp-block-post-content { line-height: 1.75; }
.wp-block-post-content h2, .wp-block-post-content h3 { line-height: 1.15; }
.wp-block-post-content :where(pre, table) { overflow-x: auto; }
.wp-block-post-content :where(iframe, video) { max-width: 100%; }
.wp-block-post-content blockquote { border-left: 2px solid var(--wp--preset--color--plum); padding-left: 28px; font-family: var(--wp--preset--font-family--editorial, var(--gp-font-heading)); font-size: 1.5em; }
.wp-block-query-pagination { margin-top: 40px; gap: 20px; }
.wp-block-search__input, input:not([type=submit]):not([type=checkbox]), textarea { border: 1px solid var(--wp--preset--color--line); background: transparent; color: inherit; padding: 12px; font: inherit; max-width: 100%; }
.wp-block-search__button, input[type=submit] { background: var(--wp--preset--color--plum); color: #fff; border: 0; padding: 12px 22px; cursor: pointer; }
.wp-block-navigation a:hover { text-decoration: underline; }
.wp-block-navigation__responsive-container.is-menu-open { padding: 32px; }
@media (max-width: 781px) {
  .gp-hero { gap: 32px; }
  .gp-grid .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; gap: 40px; }
  .gp-section-heading { align-items: flex-start; gap: 18px; }
  .gp-article { padding-block: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Journal and article layouts. */
.gp-hero { padding-block: clamp(32px, 4vw, 56px); }
.gp-hero h1 { font-size: clamp(48px, 5.5vw, 78px); }
.gp-featured .wp-block-post { display: grid; grid-template-columns: 1.15fr 1fr; column-gap: 48px; align-content: center; }
.gp-featured .wp-block-post-featured-image { grid-column: 1; grid-row: 1 / span 6; margin: 0; }
.gp-featured .wp-block-post > :not(.wp-block-post-featured-image) { grid-column: 2; }
.gp-featured .wp-block-post-title { font-size: clamp(32px, 4vw, 50px); }
.gp-topics { padding-block: 24px; border-block: 1px solid var(--wp--preset--color--line); margin-bottom: 40px; }
.gp-topics .wp-block-categories-list { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 0; list-style: none; }
.gp-author { padding-block: 28px; border-block: 1px solid var(--wp--preset--color--line); margin-top: 40px; }
.gp-related { padding-block: 40px; }
.gp-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gp-related-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gp-related-grid h3 { font-size: 24px; }
.gp-related-grid a { text-decoration: none; }
.gp-related-grid a:hover { text-decoration: underline; }
@media(max-width:781px) {
  .gp-featured .wp-block-post { display: block; }
  .gp-related-grid { grid-template-columns: 1fr; }
}

.gp-article-cta { padding: 28px; margin-block: 40px; background: var(--wp--preset--color--wash); }
.gp-article-cta h2 { font-size: clamp(28px, 3vw, 36px); }

/* Horizontal brand lockup; the original stacked logo remains bundled separately. */
.gp-brand-logo { width: 320px; max-width: 100%; flex: 0 1 auto; margin: 0; }
.gp-brand-logo a { display: block; }
.gp-brand-logo img { display: block; width: 100%; height: auto; aspect-ratio: 1983 / 793; object-fit: contain; }
.gp-footer .gp-brand-logo { width: 280px; margin-bottom: 24px; }
@media (max-width: 781px) {
  .gp-header .gp-brand-logo { width: 240px; }
}

/* Expressive headlines, calm reading text, and real italic accents. */
body { font-optical-sizing: auto; }
.gp-hero h1 em, .gp-statement h2 em, .gp-footer h2 em {
  font-family: var(--wp--preset--font-family--editorial, var(--gp-font-heading));
  font-style: italic; font-weight: 450; letter-spacing: -.035em;
}
.gp-hero h1, .gp-statement h2, .gp-grid .wp-block-post-title { text-wrap: balance; }
.wp-block-post-content > p { margin-block: 0 1.35em; }
.wp-block-post-content blockquote { font-weight: 500; line-height: 1.4; }
.wp-block-post-content :where(ul, ol) { line-height: 1.75; }
.wp-block-post-content :where(h2, h3) { margin-top: 1.5em; }

/* Approved personal editorial typography direction. */
:where(h1, h2, h3, h4, h5, h6, .wp-block-post-title, blockquote) { font-variation-settings: "SOFT" 50, "WONK" 1; font-optical-sizing: auto; }
.gp-hero h1 { font-weight: 450; letter-spacing: -.045em; line-height: 1.04; }
.gp-hero h1 em { display: block; margin-top: 10px; font-size: .79em; }
.gp-intro { font-size: 21px; line-height: 1.6; }
.wp-block-post-content blockquote { color: var(--wp--preset--color--plum); font-weight: 450; line-height: 1.3; }

/* Companion plugin output inherits the theme's label and reading styles. */
.gps-breadcrumbs { margin-bottom: 20px; }
.gps-breadcrumbs ol { font-family: var(--wp--preset--font-family--sans, var(--gp-font-body)); font-size: 0.8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.gps-breadcrumbs a { color: inherit; }
.gps-breadcrumbs [aria-current="page"] { opacity: 1; color: var(--wp--preset--color--ink); }
.gp-article .gpj-reading-time, .gp-article .gpj-series { max-width: var(--wp--style--global--content-size, 720px); margin-inline: auto; }
.gpm-credit { color: var(--wp--preset--color--muted); }
.gpe-form-block { margin-block: 40px; }
