/*
Theme Name: Poorhouse
Theme URI: https://www.facebook.com/poorhousemetalband
Author: Poorhouse Band
Description: Surowy, responsywny motyw one-page dla szczecińskiego zespołu metalowego Poorhouse.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: poorhouse
*/

:root {
  --ph-black: #050505;
  --ph-near-black: #0b0b0b;
  --ph-panel: #111111;
  --ph-line: #292929;
  --ph-white: #f4f1eb;
  --ph-muted: #aaa59d;
  --ph-red: #e1162f;
  --ph-red-dark: #9d0b1d;
  --ph-content: 1180px;
  --ph-display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --ph-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--ph-black);
  color: var(--ph-white);
  font-family: var(--ph-body);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  content: "";
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: var(--ph-red);
  color: #fff;
}

.screen-reader-text {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  top: 8px;
  left: 8px;
  z-index: 10001;
  display: block;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: #fff;
  color: #000;
}

.ph-container {
  width: min(calc(100% - 40px), var(--ph-content));
  margin-inline: auto;
}

.ph-site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  height: 78px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(5, 5, 5, .86);
  backdrop-filter: blur(16px);
}

.admin-bar .ph-site-header {
  top: 32px;
}

.ph-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.ph-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.ph-brand img {
  width: 154px;
  height: 56px;
  object-fit: contain;
  object-position: left center;
}

.ph-main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ph-main-nav a {
  position: relative;
  color: #dedad4;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.ph-main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--ph-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s ease;
}

.ph-main-nav a:hover::after,
.ph-main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.ph-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--ph-line);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.ph-menu-toggle span,
.ph-menu-toggle span::before,
.ph-menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease;
}

.ph-menu-toggle span {
  position: relative;
}

.ph-menu-toggle span::before,
.ph-menu-toggle span::after {
  position: absolute;
  left: 0;
  content: "";
}

.ph-menu-toggle span::before { top: -6px; }
.ph-menu-toggle span::after { top: 6px; }

.ph-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 150px 0 78px;
  background-color: #080808;
  background-position: center;
  background-size: cover;
}

.ph-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .52) 47%, rgba(0, 0, 0, .12) 75%),
    linear-gradient(0deg, #050505 0%, transparent 36%),
    radial-gradient(circle at 52% 48%, rgba(225, 22, 47, .16), transparent 22%);
}

.ph-hero::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 55%;
  width: 1px;
  content: "";
  opacity: .35;
  background: linear-gradient(transparent, var(--ph-red), transparent);
  transform: rotate(12deg);
}

.ph-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.ph-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--ph-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.ph-kicker::before {
  width: 40px;
  height: 2px;
  content: "";
  background: currentColor;
}

.ph-hero-logo {
  width: min(620px, 86vw);
  max-height: 260px;
  margin: 0 0 26px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, .48));
}

.ph-hero-lead {
  max-width: 650px;
  margin: 0 0 34px;
  color: #d4d0c9;
  font-size: clamp(18px, 2.2vw, 25px);
  font-weight: 520;
  line-height: 1.45;
}

.ph-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.ph-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  border: 1px solid var(--ph-red);
  background: var(--ph-red);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.ph-button:hover,
.ph-button:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #050505;
  transform: translateY(-2px);
}

.ph-button--ghost {
  border-color: rgba(255, 255, 255, .44);
  background: rgba(0, 0, 0, .12);
}

.ph-button--small {
  min-height: 46px;
  padding: 10px 19px;
}

.ph-scroll-note {
  position: absolute;
  right: 38px;
  bottom: 58px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #918d86;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.ph-scroll-note::after {
  width: 1px;
  height: 54px;
  content: "";
  background: var(--ph-red);
}

.ph-section {
  position: relative;
  padding: 120px 0;
}

.ph-section--panel {
  border-block: 1px solid var(--ph-line);
  background: var(--ph-near-black);
}

.ph-section-number {
  position: absolute;
  top: 54px;
  right: max(20px, calc((100vw - var(--ph-content)) / 2));
  color: rgba(255, 255, 255, .035);
  font-family: var(--ph-display);
  font-size: clamp(110px, 18vw, 260px);
  font-weight: 900;
  line-height: .8;
}

.ph-section-header {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-bottom: 60px;
}

.ph-section-title {
  margin: 0;
  font-family: var(--ph-display);
  font-size: clamp(52px, 8vw, 105px);
  font-weight: 900;
  letter-spacing: -.015em;
  line-height: .88;
  text-transform: uppercase;
}

.ph-section-title em {
  display: block;
  color: var(--ph-red);
  font-style: normal;
}

.ph-about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: start;
}

.ph-about-copy > p:first-child {
  margin-top: 0;
  color: #e4e0d9;
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.32;
}

.ph-about-copy p {
  max-width: 690px;
  color: var(--ph-muted);
}

.ph-about-card {
  position: relative;
  padding: 40px;
  border: 1px solid var(--ph-line);
  background: #0b0b0b;
}

.ph-about-card::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 76px;
  height: 4px;
  content: "";
  background: var(--ph-red);
}

.ph-fact {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--ph-line);
}

.ph-fact:first-child { padding-top: 0; }
.ph-fact:last-child { padding-bottom: 0; border-bottom: 0; }
.ph-fact-label { color: #77736c; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.ph-fact-value { color: #f0ede7; font-weight: 750; }

.ph-status {
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(0, 0, 0, .96) 12%, rgba(0, 0, 0, .67) 60%, rgba(0, 0, 0, .18)),
    var(--ph-status-image) center / cover no-repeat;
}

.ph-status-inner {
  min-height: 650px;
  display: flex;
  align-items: center;
}

.ph-status-copy {
  max-width: 720px;
}

.ph-status-copy blockquote {
  margin: 0;
  font-family: var(--ph-display);
  font-size: clamp(44px, 6.3vw, 88px);
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: .98;
  text-transform: uppercase;
}

.ph-status-copy blockquote strong {
  color: var(--ph-red);
}

.ph-status-copy p {
  max-width: 570px;
  margin: 30px 0 0;
  color: #c0bbb2;
}

.ph-listen-grid {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
}

.ph-artwork {
  position: relative;
  isolation: isolate;
}

.ph-artwork::before {
  position: absolute;
  top: -18px;
  right: -18px;
  bottom: 18px;
  left: 18px;
  z-index: -1;
  content: "";
  border: 1px solid var(--ph-red);
}

.ph-artwork img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(100%);
}

.ph-listen-copy h2 {
  margin: 0 0 24px;
  font-family: var(--ph-display);
  font-size: clamp(52px, 7vw, 92px);
  line-height: .9;
  text-transform: uppercase;
}

.ph-listen-copy h2 span { color: var(--ph-red); }
.ph-listen-copy p { max-width: 590px; color: var(--ph-muted); }
.ph-listen-copy .ph-actions { margin-top: 32px; }

.ph-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, 23vw);
  gap: 12px;
}

.ph-gallery figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #161616;
}

.ph-gallery figure:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.ph-gallery figure:nth-child(2) { grid-column: span 5; }
.ph-gallery figure:nth-child(3) { grid-column: span 5; }
.ph-gallery figure:nth-child(4),
.ph-gallery figure:nth-child(5),
.ph-gallery figure:nth-child(6) { grid-column: span 4; }

.ph-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(84%) contrast(1.08);
  transition: filter .35s ease, transform .55s ease;
}

.ph-gallery figure::after {
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  content: "";
  opacity: 0;
  background: linear-gradient(transparent, rgba(225, 22, 47, .48));
  transition: opacity .35s ease;
}

.ph-gallery figure:hover img { filter: grayscale(0%) contrast(1.02); transform: scale(1.035); }
.ph-gallery figure:hover::after { opacity: 1; }

.ph-contact {
  overflow: hidden;
  text-align: center;
}

.ph-contact::before {
  position: absolute;
  top: 40%;
  left: 50%;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  border: 1px solid rgba(225, 22, 47, .18);
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.ph-contact-inner {
  position: relative;
  z-index: 1;
}

.ph-contact h2 {
  max-width: 900px;
  margin: 0 auto 30px;
  font-family: var(--ph-display);
  font-size: clamp(60px, 11vw, 150px);
  line-height: .82;
  text-transform: uppercase;
}

.ph-contact h2 span { color: var(--ph-red); }
.ph-contact p { max-width: 620px; margin: 0 auto 34px; color: var(--ph-muted); }

.ph-contact-mail {
  display: inline-block;
  margin: 0 auto 48px;
  border-bottom: 2px solid var(--ph-red);
  color: #fff;
  font-size: clamp(18px, 2.5vw, 30px);
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.ph-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ph-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid var(--ph-line);
  color: #d8d4cc;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color .2s ease, background .2s ease;
}

.ph-socials a:hover,
.ph-socials a:focus-visible { border-color: var(--ph-red); background: rgba(225, 22, 47, .11); }

.ph-site-footer {
  border-top: 1px solid var(--ph-line);
  background: #030303;
}

.ph-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 104px;
  color: #77736c;
  font-size: 12px;
}

.ph-footer-mark { color: #c8c4bc; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

.ph-content-page {
  min-height: 70vh;
  padding: 150px 0 90px;
}

.ph-content-page h1 {
  margin: 0 0 40px;
  font-family: var(--ph-display);
  font-size: clamp(50px, 8vw, 100px);
  line-height: .9;
  text-transform: uppercase;
}

.ph-entry-content { max-width: 760px; color: #c2beb6; }
.ph-entry-content h2, .ph-entry-content h3 { color: #fff; }
.ph-entry-content a { color: var(--ph-red); }

.ph-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.ph-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .ph-menu-toggle { display: inline-flex; }
  .ph-main-nav {
    position: fixed;
    top: 78px;
    right: 0;
    left: 0;
    padding: 28px 20px;
    border-bottom: 1px solid var(--ph-line);
    background: rgba(5, 5, 5, .98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .admin-bar .ph-main-nav { top: 110px; }
  .ph-main-nav.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .ph-main-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; width: min(calc(100% - 40px), var(--ph-content)); margin-inline: auto; }
  .ph-main-nav a { font-size: 15px; }
  .ph-menu-toggle[aria-expanded="true"] span { background: transparent; }
  .ph-menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .ph-menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
  .ph-about-grid, .ph-listen-grid { grid-template-columns: 1fr; }
  .ph-artwork { width: min(100%, 620px); }
  .ph-scroll-note { display: none; }
}

@media (max-width: 700px) {
  .ph-container { width: min(calc(100% - 28px), var(--ph-content)); }
  .ph-site-header { height: 70px; }
  .ph-brand img { width: 128px; height: 48px; }
  .ph-main-nav { top: 70px; }
  .admin-bar .ph-main-nav { top: 116px; }
  .ph-hero { min-height: 800px; padding: 135px 0 70px; background-position: 61% center; }
  .ph-hero::before { background: linear-gradient(90deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .36)), linear-gradient(0deg, #050505 0%, rgba(5,5,5,.15) 55%); }
  .ph-actions { align-items: stretch; flex-direction: column; }
  .ph-button { width: 100%; }
  .ph-section { padding: 88px 0; }
  .ph-section-header { margin-bottom: 42px; }
  .ph-section-number { top: 34px; }
  .ph-about-card { padding: 30px 24px; }
  .ph-status-inner { min-height: 570px; }
  .ph-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 56vw; }
  .ph-gallery figure:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .ph-gallery figure:first-child { grid-column: span 2; }
  .ph-footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 28px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .ph-reveal { opacity: 1; transform: none; }
}
