/*
Theme Name: PromptWire Publisher
Author: PromptWire
Description: An editable editorial block theme with site-wide styles, category templates, reusable patterns and an optional 250-article demonstration library.
Version: 2.0.0
Requires at least: 6.6
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: promptwire
Tags: blog, news, full-site-editing, block-patterns, custom-colors, custom-logo, custom-menu, featured-images, style-variations, wide-blocks
*/
html {
  scroll-behavior: smooth;
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  text-underline-offset: 4px;
}
img {
  max-width: 100%;
  height: auto;
}
.wp-site-blocks {
  overflow-x: clip;
}
.pw-shell {
  width: min(1420px, calc(100% - 64px));
  margin-inline: auto;
}
.pw-brand .wp-block-site-title {
  letter-spacing: -0.065em;
  text-transform: lowercase;
}
.pw-brand img {
  object-fit: contain;
}
.pw-header {
  position: relative;
  z-index: 30;
}
.pw-header .wp-block-navigation {
  margin-left: auto;
}
.pw-header .wp-block-search {
  max-width: 220px;
}
.pw-hero h1 {
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.pw-hero-art img {
  transform: rotate(-3deg);
  box-shadow: 14px 14px 0 rgb(0 0 0 / 0.2);
}
.pw-kicker {
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.pw-section-title {
  line-height: 1.1;
}
.pw-sticker {
  transform: rotate(-8deg);
  width: fit-content;
}
.pw-tile {
  height: 100%;
  overflow: hidden;
}
.pw-card {
  height: 100%;
}
.pw-card-title a {
  text-decoration: none;
}
.pw-card-title a:hover {
  text-decoration: underline;
}
.pw-post-list > li {
  height: 100%;
}
.wp-block-promptwire-cover {
  display: block;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1.6;
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.12;
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--ink);
}
.wp-block-promptwire-cover > a {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}
.wp-block-promptwire-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wp-block-promptwire-cover.pw-cover-contain img {
  object-fit: contain;
}
.pw-text-cover {
  min-height: 100%;
  padding: 8%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.pw-text-cover strong {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
}
.pw-text-cover small {
  font-family: var(--wp--preset--font-family--body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
}
.pw-text-cover span {
  align-self: flex-end;
  font-size: 35px;
}
.wp-block-promptwire-cover.pw-single-cover {
  aspect-ratio: auto;
}
.pw-single-cover img {
  height: auto;
  max-height: 680px;
  object-fit: contain;
}
.pw-single-cover .pw-text-cover {
  min-height: 360px;
}
.pw-cover-caption {
  font-family: var(--wp--preset--font-family--body);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.6;
  padding-top: 10px;
}
.pw-single-cover:has(.pw-cover-caption) {
  overflow: visible;
  background: transparent;
}
.pw-category-header h1 {
  line-height: 1;
  letter-spacing: -0.025em;
}
.pw-category-header p {
  max-width: 760px;
}
.pw-categories {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.pw-categories li {
  border-top: 1px solid currentColor;
  padding-top: 16px;
}
.pw-categories a {
  font-family: var(--wp--preset--font-family--display);
  font-size: 30px;
  text-decoration: none;
}
.pw-footer-nav {
  gap: 12px 22px;
}
.pw-article-content {
  line-height: 1.85;
}
.pw-article-content :is(h2, h3) {
  line-height: 1.2;
}
.pw-article-content img {
  height: auto;
}
.pw-article-content a {
  overflow-wrap: anywhere;
}
.wp-block-promptwire-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.wp-block-promptwire-filters form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}
.pw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 140px;
}
.pw-field label {
  font-size: 13px;
}
.pw-field input,
.pw-field select,
.pw-draft-form input,
.pw-draft-form select,
.pw-draft-form textarea {
  width: 100%;
  border: 1px solid currentColor;
  border-radius: 0;
  padding: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
}
.pw-filter-button,
.pw-draft-form button {
  font: inherit;
  color: var(--wp--preset--color--surface);
  background: var(--wp--preset--color--primary);
  border: 0;
  padding: 13px 20px;
  cursor: pointer;
}
.pw-draft-form {
  display: grid;
  gap: 18px;
}
.pw-draft-form label {
  display: grid;
  gap: 7px;
}
.pw-draft-form .pw-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.pw-draft-form button {
  width: fit-content;
}
.pw-draft-form p {
  font-size: 13px;
}
.wp-block-promptwire-toc nav {
  display: grid;
  gap: 12px;
}
.wp-block-promptwire-toc a {
  font-size: 13px;
  text-decoration: none;
}
.pw-toc-title {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
}
.wp-block-post-content .takeaways {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--ink);
  padding: 24px;
}
.pw-footer .wp-block-navigation-item__content {
  font-size: 12px;
}
.pw-page-title {
  line-height: 1.08;
}
.wp-block-search__button {
  cursor: pointer;
}
.pw-theme-guide {
  max-width: 1000px;
}
.pw-theme-guide td,
.pw-theme-guide th {
  padding: 14px;
}
.pw-editor-cover-placeholder {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wp-block-promptwire-cover figcaption {
  background: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--ink);
}
@media (max-width: 900px) {
  .pw-shell {
    width: calc(100% - 40px);
  }
  .pw-header .wp-block-search {
    display: none;
  }
  .pw-article-columns > .wp-block-column:first-child {
    display: none;
  }
  .pw-article-columns > .wp-block-column:last-child {
    flex-basis: 100% !important;
  }
  .pw-footer .wp-block-navigation__container {
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  .pw-shell {
    width: calc(100% - 32px);
  }
  .pw-hero-art {
    padding: 20px 8px;
  }
  .pw-post-list {
    grid-template-columns: 1fr !important;
  }
  .pw-draft-form .pw-form-row {
    grid-template-columns: 1fr;
  }
  .pw-single-cover .pw-text-cover {
    min-height: 240px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.wp-site-blocks > header,
.wp-site-blocks > main,
.wp-site-blocks > footer {
  margin-block-start: 0;
}
.pw-brand p {
  margin: 0;
}
.pw-brand a {
  text-decoration: none;
}
.pw-header .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--ink);
}
.pw-card .wp-block-post-excerpt__more-text {
  display: none;
}
.pw-category-header .wp-block-term-description p {
  margin-bottom: 0;
}
.pw-hero-art a {
  display: block;
}
.pw-tile .wp-block-image img {
  width: 100%;
}
.pw-editor-guide {
  padding: 24px;
}

.wp-site-blocks > .pw-category-header {
  margin-block-start: 0;
}
.pw-text-cover {
  height: 100%;
  gap: 12px;
}
.pw-text-cover strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.pw-single-cover .pw-text-cover strong {
  -webkit-line-clamp: unset;
}
.pw-text-cover span {
  line-height: 1;
  font-size: 28px;
}
