/*
Theme Name: Peter Cors
Theme URI: https://petercors.com
Author: Peter Cors
Author URI: https://petercors.com
Description: A minimalist, elegant WordPress theme for pianists and composers. Features handwritten-style titles, a clean white navigation with logo support, a full-width hero with optional logo, a releases feed, an about section, and a footer with social links.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: petercors
Tags: minimalist, music, portfolio, e-commerce, custom-header, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --pc-bg: #ffffff;
  --pc-ink: #1a1a1a;
  --pc-muted: #6b6b6b;
  --pc-line: #ececec;
  --pc-accent: #1a1a1a;
  --pc-soft: #fafafa;
  --pc-max: 1140px;
  --pc-gap: 2rem;
  --pc-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --pc-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --pc-hand: "Petit Formal Script", "Dancing Script", cursive;
  --pc-radius: 4px;
  --pc-shadow: 0 6px 30px rgba(0,0,0,0.06);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--pc-sans);
  color: var(--pc-ink);
  background: var(--pc-bg);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 300;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s ease, color .2s ease; }
a:hover { opacity: .65; }
h1, h2, h3, h4 { font-family: var(--pc-serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1.2em; }
.pc-wrap { max-width: var(--pc-max); margin: 0 auto; padding: 0 1.5rem; }
.pc-hand { font-family: var(--pc-hand); font-weight: 400; }
.pc-eyebrow {
  font-family: var(--pc-sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  color: var(--pc-muted);
  font-weight: 500;
}
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ==========================================================================
   3. Header / navigation
   ========================================================================== */
.pc-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--pc-line);
}
.pc-nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--pc-max); margin: 0 auto; padding: 1.1rem 1.5rem;
}
.pc-brand {
  font-family: var(--pc-hand);
  font-size: 1.7rem;
  color: var(--pc-ink);
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.pc-brand .custom-logo {
  max-height: 44px;
  width: auto;
}
.pc-brand .custom-logo-link { display: inline-flex; }
.pc-menu { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.pc-menu a {
  font-family: var(--pc-sans);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--pc-ink);
}
.pc-menu .current-menu-item > a { border-bottom: 1px solid var(--pc-ink); padding-bottom: 3px; }
.pc-cart-link { position: relative; }
.pc-cart-count {
  position: absolute; top: -8px; right: -12px;
  background: var(--pc-ink); color: #fff; font-size: .6rem;
  min-width: 16px; height: 16px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
.pc-burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.pc-burger span { display: block; width: 22px; height: 1.5px; background: var(--pc-ink); margin: 5px 0; transition: .3s; }

/* ==========================================================================
   4. Hero
   ========================================================================== */
.pc-hero {
  position: relative;
  min-height: 82vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.pc-hero__media { position: absolute; inset: 0; z-index: 0; }
.pc-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.pc-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.42) 100%);
}
.pc-hero__inner { position: relative; z-index: 2; padding: 2rem; max-width: 720px; }
.pc-hero__name {
  font-family: var(--pc-hand);
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 1;
  margin-bottom: .3em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.pc-hero__logo {
  max-width: min(420px, 70vw);
  width: 100%;
  height: auto;
  margin: 0 auto .6em;
  filter: drop-shadow(0 2px 24px rgba(0,0,0,0.35));
}
.pc-hero__tag {
  font-family: var(--pc-serif);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 400;
  letter-spacing: .02em;
  margin-bottom: 1.6rem;
  opacity: .95;
}
.pc-btn {
  display: inline-block;
  font-family: var(--pc-sans);
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .85rem 2rem;
  border: 1px solid currentColor;
  border-radius: var(--pc-radius);
  background: transparent;
  cursor: pointer;
}
.pc-btn--solid { background: var(--pc-ink); color: #fff; border-color: var(--pc-ink); }
.pc-btn--light { background: #fff; color: var(--pc-ink); border-color: #fff; }
.pc-btn:hover { opacity: .8; }

/* ==========================================================================
   5. Sections
   ========================================================================== */
.pc-section { padding: 6rem 0; }
.pc-section--soft { background: var(--pc-soft); }
.pc-section__head { text-align: center; max-width: 620px; margin: 0 auto 3.5rem; }
.pc-section__head h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.pc-section__head p { color: var(--pc-muted); }

/* ==========================================================================
   6. Sheet music grid
   ========================================================================== */
.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.5rem;
}
.pc-card {
  background: #fff;
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.pc-card:hover { transform: translateY(-4px); box-shadow: var(--pc-shadow); }
.pc-card__media {
  aspect-ratio: 3 / 4;
  background: var(--pc-soft);
  overflow: hidden;
  position: relative;
}
.pc-card__media img { width: 100%; height: 100%; object-fit: cover; }
.pc-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: #fff; color: var(--pc-ink);
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px;
}
.pc-card__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.pc-card__title { font-size: 1.4rem; margin-bottom: .15em; }
.pc-card__meta { font-family: var(--pc-sans); font-size: .78rem; letter-spacing: .05em; color: var(--pc-muted); margin-bottom: 1rem; }
.pc-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.pc-card__price { font-family: var(--pc-serif); font-size: 1.3rem; }
.pc-card__buy {
  font-family: var(--pc-sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .6rem 1.2rem; border: 1px solid var(--pc-ink); border-radius: var(--pc-radius);
  background: var(--pc-ink); color: #fff;
}

/* ==========================================================================
   7. Releases / latest
   ========================================================================== */
.pc-releases { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; }
.pc-release { display: flex; gap: 1.2rem; align-items: flex-start; }
.pc-release__thumb { flex: 0 0 84px; height: 84px; border-radius: var(--pc-radius); overflow: hidden; background: var(--pc-soft); }
.pc-release__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pc-release__title { font-size: 1.25rem; margin-bottom: .1em; }
.pc-release__date { font-family: var(--pc-sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pc-muted); }

/* ==========================================================================
   8. About strip
   ========================================================================== */
.pc-about { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.pc-about__img img { border-radius: var(--pc-radius); }
.pc-about__text h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.pc-about__sig { font-family: var(--pc-hand); font-size: 2.2rem; margin-top: 1rem; }

/* ==========================================================================
   9. Newsletter
   ========================================================================== */
.pc-news { text-align: center; max-width: 560px; margin: 0 auto; }
.pc-news__form { display: flex; gap: .6rem; margin-top: 1.6rem; }
.pc-news__form input[type="email"] {
  flex: 1; padding: .9rem 1.1rem; border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius); font-family: var(--pc-sans); font-size: .9rem;
}
.pc-news__form input:focus { outline: none; border-color: var(--pc-ink); }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.pc-footer { border-top: 1px solid var(--pc-line); padding: 3.5rem 0; text-align: center; }
.pc-footer__brand { font-family: var(--pc-hand); font-size: 2rem; margin-bottom: .8rem; }
.pc-social { display: flex; gap: 1.6rem; justify-content: center; list-style: none; padding: 0; margin: 1.2rem 0; }
.pc-social a { font-family: var(--pc-sans); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.pc-footer__copy { font-family: var(--pc-sans); font-size: .72rem; color: var(--pc-muted); letter-spacing: .05em; }

/* ==========================================================================
   11. Generic content (single / page)
   ========================================================================== */
.pc-content { max-width: 720px; margin: 0 auto; padding: 4rem 1.5rem; }
.pc-content h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .4em; }
.pc-content img { border-radius: var(--pc-radius); margin: 2rem 0; }
.pc-post-meta { font-family: var(--pc-sans); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pc-muted); margin-bottom: 2rem; }
.pc-pagination { display: flex; justify-content: center; gap: 1rem; margin-top: 3rem; }
.pc-pagination a, .pc-pagination span { padding: .5rem .9rem; border: 1px solid var(--pc-line); border-radius: var(--pc-radius); font-family: var(--pc-sans); font-size: .8rem; }
.pc-pagination .current { background: var(--pc-ink); color: #fff; border-color: var(--pc-ink); }

/* ==========================================================================
   12. Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .pc-about { grid-template-columns: 1fr; gap: 2rem; }
  .pc-menu {
    position: fixed; top: 63px; right: 0; left: 0;
    background: #fff; flex-direction: column; gap: 0;
    padding: 1rem 1.5rem 2rem; border-bottom: 1px solid var(--pc-line);
    transform: translateY(-120%); transition: transform .3s ease; align-items: flex-start;
  }
  .pc-menu.is-open { transform: translateY(0); }
  .pc-menu li { width: 100%; padding: .7rem 0; border-bottom: 1px solid var(--pc-line); }
  .pc-burger { display: block; }
  .pc-section { padding: 4rem 0; }
  .pc-news__form { flex-direction: column; }
}
