/*
Theme Name: RAW Music
Theme URI: https://rawmusic.eu/
Author: Piotr Marcinski
Author URI: https://rawmusic.eu/
Description: Minimalistyczny motyw dla niezależnej wytwórni muzycznej RAW MUSIC. Animowana płyta winylowa, sekcja wydawnictw i podstawowe SEO. Bez menu i formularza kontaktowego.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
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: raw-music
Tags: one-column, custom-logo, featured-images, editor-style, block-styles, wide-blocks, translation-ready
*/

:root {
  --raw-bg: #f7f7f5;
  --raw-paper: #ffffff;
  --raw-ink: #101010;
  --raw-muted: #666661;
  --raw-line: #deded8;
  --raw-soft: #efefe9;
  --raw-max: 1260px;
  --raw-serif: Georgia, "Times New Roman", serif;
  --raw-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --raw-condensed: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--raw-paper);
  color: var(--raw-ink);
  font-family: var(--raw-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  width: auto; height: auto; margin: 0; padding: .75rem 1rem;
  clip: auto; white-space: normal; top: 1rem; left: 1rem; z-index: 100000;
  background: #fff; border: 1px solid #000;
}

.raw-container { width: min(calc(100% - 48px), var(--raw-max)); margin-inline: auto; }
.raw-site-header { padding: 34px 0 12px; background: #fff; }
.raw-brand { display: flex; align-items: center; justify-content: center; min-height: 58px; }
.raw-brand__text {
  margin: 0; color: #0d0d0d; font-family: var(--raw-condensed);
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; letter-spacing: .015em;
  line-height: 1; text-transform: uppercase;
}
.raw-brand__text a { text-decoration: none; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-height: 78px; }

.raw-hero { padding: clamp(50px, 7vw, 100px) 0 clamp(72px, 9vw, 128px); overflow: hidden; }
.raw-hero__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(480px, 1.18fr); gap: clamp(44px, 7vw, 110px); align-items: center; }
.raw-eyebrow { margin: 0 0 18px; font-size: .73rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.raw-hero h1 {
  max-width: 720px; margin: 0 0 27px; font-family: var(--raw-serif);
  font-size: clamp(3.4rem, 6.7vw, 7.2rem); font-weight: 500; letter-spacing: -.055em;
  line-height: .93;
}
.raw-hero__copy { max-width: 580px; margin: 0 0 34px; color: #393936; font-size: clamp(1rem, 1.4vw, 1.18rem); }
.raw-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 13px 24px; border: 1px solid #111; border-radius: 2px;
  background: #111; color: #fff; font-weight: 750; text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.raw-button:hover { background: #fff; color: #111; transform: translateY(-2px); }
.raw-button:focus-visible, a:focus-visible { outline: 2px solid #111; outline-offset: 4px; }

.raw-vinyl-stage {
  position: relative; min-height: clamp(430px, 48vw, 660px); isolation: isolate;
  display: grid; place-items: center;
}
.raw-vinyl-stage::after {
  content: ""; position: absolute; left: 12%; right: 0; bottom: 8%; height: 10%; z-index: -3;
  border-radius: 50%; background: rgba(0,0,0,.17); filter: blur(28px); transform: scaleY(.45);
}
.raw-record {
  position: absolute; width: min(78%, 560px); aspect-ratio: 1; right: 0;
  border-radius: 50%; z-index: -1;
  background:
    radial-gradient(circle at center, #0d0d0d 0 5.5%, #b69b6a 5.7% 10.8%, #171717 11% 14%, transparent 14.2%),
    repeating-radial-gradient(circle at center, #111 0 2px, #242424 3px 4px, #080808 5px 7px);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.05), inset 0 0 45px rgba(255,255,255,.09), 0 22px 42px rgba(0,0,0,.25);
  animation: raw-spin 7.5s linear infinite;
}
.raw-record::before {
  content: "RAW MUSIC  •  SIDE A  •  33⅓ RPM"; position: absolute; inset: 35%; display: grid; place-items: center;
  padding: 15%; border-radius: 50%; color: rgba(255,255,255,.78); text-align: center;
  font-size: clamp(.38rem, .7vw, .62rem); font-weight: 750; line-height: 1.35; letter-spacing: .13em;
  background: radial-gradient(circle at center, #f5f2e9 0 3%, #202020 3.5% 100%);
}
.raw-record::after {
  content: ""; position: absolute; inset: 4%; border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 8%, rgba(255,255,255,.12) 10%, transparent 13% 38%, rgba(255,255,255,.07) 42%, transparent 47% 100%);
}
.raw-sleeve {
  position: relative; width: min(76%, 535px); aspect-ratio: 1; margin-right: 17%; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10%; color: #eee9de; background:
    linear-gradient(rgba(255,255,255,.03), rgba(255,255,255,0)),
    repeating-linear-gradient(14deg, rgba(255,255,255,.018) 0 1px, transparent 1px 7px),
    #11110f;
  border: 1px solid #2f2f2a; box-shadow: 0 22px 36px rgba(0,0,0,.28), inset 0 0 35px rgba(255,255,255,.03);
  transform: rotate(-.35deg);
}
.raw-sleeve::before, .raw-sleeve::after { content: ""; position: absolute; left: 10%; right: 10%; height: 1px; background: rgba(238,233,222,.82); }
.raw-sleeve::before { top: 11%; }
.raw-sleeve::after { bottom: 11%; }
.raw-sleeve__title {
  margin: 0; font-family: var(--raw-condensed); font-size: clamp(5rem, 10vw, 9.3rem);
  font-weight: 900; letter-spacing: -.02em; line-height: .78; text-align: center; text-transform: uppercase;
  text-shadow: 1px 1px 0 #6f6d66; opacity: .95;
}
.raw-motion { position: absolute; right: -1.5%; width: 21%; height: 28%; border-right: 2px solid #c9c9c2; border-radius: 50%; opacity: .8; }
.raw-motion--top { top: 9%; transform: rotate(-19deg); }
.raw-motion--bottom { bottom: 6%; transform: rotate(20deg); }
.raw-motion::after { content: ""; position: absolute; right: -5px; width: 9px; height: 9px; border-right: 2px solid #c9c9c2; border-bottom: 2px solid #c9c9c2; }
.raw-motion--top::after { bottom: 9%; transform: rotate(10deg); }
.raw-motion--bottom::after { top: 9%; transform: rotate(-83deg); }

@keyframes raw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .raw-record { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.raw-section { border-top: 1px solid var(--raw-line); }
.raw-features { padding: clamp(58px, 7vw, 92px) 0; }
.raw-features__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.raw-feature { min-width: 0; padding: 0 clamp(28px, 4vw, 58px); border-left: 1px solid var(--raw-line); }
.raw-feature:first-child { padding-left: 0; border-left: 0; }
.raw-feature:last-child { padding-right: 0; }
.raw-feature__icon { width: 58px; height: 58px; margin-bottom: 26px; }
.raw-feature__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; }
.raw-feature h2 { margin: 0 0 14px; font-family: var(--raw-serif); font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 500; line-height: 1.15; }
.raw-feature p { margin: 0; color: #464642; }

.raw-releases { padding: clamp(58px, 7vw, 92px) 0 clamp(75px, 9vw, 120px); }
.raw-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.raw-section-heading h2 { margin: 0; font-family: var(--raw-serif); font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 500; letter-spacing: -.035em; }
.raw-section-heading p { max-width: 440px; margin: 0; color: var(--raw-muted); text-align: right; }
.raw-release-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 36px); }
.raw-release-card { min-width: 0; }
.raw-release-card a { text-decoration: none; }
.raw-release-card__cover {
  position: relative; aspect-ratio: 1; margin-bottom: 15px; overflow: hidden; background: #eae9e2;
  box-shadow: 0 8px 20px rgba(0,0,0,.08); transition: transform .28s ease, box-shadow .28s ease;
}
.raw-release-card a:hover .raw-release-card__cover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(0,0,0,.15); }
.raw-release-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.raw-release-card h3 { margin: 0 0 3px; font-size: 1rem; line-height: 1.35; }
.raw-release-card__meta { margin: 0; color: var(--raw-muted); font-size: .88rem; }
.raw-placeholder { display: grid; place-items: center; padding: 11%; text-align: center; }
.raw-placeholder--dark { color: #f0ede4; background: linear-gradient(135deg, #151515, #3d3d3d); }
.raw-placeholder--brush { color: #111; background: #e9e3d6; }
.raw-placeholder--brush::before { content: ""; position: absolute; width: 74%; height: 25%; background: #121212; transform: rotate(-9deg) skewX(-12deg); opacity: .9; }
.raw-placeholder--coast { color: #fff; background: linear-gradient(145deg, #d8d8d4 0 35%, #777 36% 54%, #292929 55% 100%); }
.raw-placeholder--soft { color: #333; background: #e9e2d3; }
.raw-placeholder__name { position: relative; z-index: 1; font-family: var(--raw-serif); font-size: clamp(1.2rem, 2.1vw, 2rem); line-height: 1.05; text-transform: uppercase; }
.raw-placeholder__mark { position: absolute; width: 42%; height: 55%; border: 1px solid rgba(80,60,30,.48); border-radius: 50% 5% 50% 5%; transform: rotate(28deg); }

.raw-site-footer { padding: 48px 0 38px; border-top: 1px solid var(--raw-line); background: var(--raw-bg); text-align: center; }
.raw-site-footer__logo { margin: 0; font-family: var(--raw-condensed); font-size: 2.25rem; line-height: 1; text-transform: uppercase; }
.raw-site-footer__ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px auto 13px; }
.raw-site-footer__ornament::before, .raw-site-footer__ornament::after { content: ""; width: 46px; height: 1px; background: #777; }
.raw-site-footer__ornament span { width: 6px; height: 6px; border-radius: 50%; background: #111; }
.raw-site-footer p { margin: 4px 0; color: #555550; font-size: .9rem; }

.raw-content { width: min(calc(100% - 48px), 900px); margin: 0 auto; padding: 70px 0 110px; }
.raw-content h1, .raw-content h2, .raw-content h3 { font-family: var(--raw-serif); font-weight: 500; line-height: 1.12; }
.raw-content h1 { font-size: clamp(3rem, 6vw, 5.6rem); letter-spacing: -.04em; }
.raw-entry-list { display: grid; gap: 48px; }
.raw-entry-card { padding-bottom: 42px; border-bottom: 1px solid var(--raw-line); }
.raw-entry-card h2 { margin: 0 0 10px; font-size: 2.25rem; }
.raw-entry-card h2 a { text-decoration: none; }
.raw-entry-meta { color: var(--raw-muted); font-size: .9rem; }
.raw-entry-thumbnail { margin: 22px 0; aspect-ratio: 16/9; overflow: hidden; }
.raw-entry-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.wp-block-image, .alignwide { max-width: 1120px; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }

@media (max-width: 980px) {
  .raw-hero__grid { grid-template-columns: 1fr; }
  .raw-hero__copy { max-width: 700px; }
  .raw-vinyl-stage { width: min(100%, 760px); margin-inline: auto; }
  .raw-features__grid { grid-template-columns: 1fr; gap: 0; }
  .raw-feature { padding: 34px 0; border-left: 0; border-top: 1px solid var(--raw-line); }
  .raw-feature:first-child { padding-top: 0; border-top: 0; }
  .raw-feature:last-child { padding-bottom: 0; }
  .raw-release-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .raw-container, .raw-content { width: min(calc(100% - 30px), var(--raw-max)); }
  .raw-site-header { padding-top: 24px; }
  .raw-hero { padding-top: 42px; }
  .raw-hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .raw-vinyl-stage { min-height: 390px; }
  .raw-record { width: 78%; right: -9%; }
  .raw-sleeve { width: 75%; margin-right: 16%; }
  .raw-sleeve__title { font-size: clamp(4rem, 23vw, 6.4rem); }
  .raw-motion { display: none; }
  .raw-section-heading { display: block; }
  .raw-section-heading p { margin-top: 10px; text-align: left; }
  .raw-release-grid { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .raw-release-card h3 { font-size: .92rem; }
  .raw-release-card__meta { font-size: .78rem; }
}

.raw-has-js .raw-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.raw-has-js .raw-reveal.raw-is-visible { opacity: 1; transform: none; }
