/*
Theme Name: Studio Park Minimal
Theme URI: https://studio-park.de/
Author: OpenAI for Studio Park
Description: Minimal portfolio theme based on the supplied Studio Park homepage mockup. Includes editable homepage copy, contact details and a Projects post type.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: studio-park-minimal
*/

:root {
  --sp-bg: #1d1d1d;
  --sp-fg: #f3f3f1;
  --sp-muted: #bdbdb8;
  --sp-line: rgba(243,243,241,.34);
  --sp-shell: min(66.6vw, 1365px);
  --sp-left: max(6vw, calc((100vw - var(--sp-shell)) * .388));
  --sp-font: "Arial Narrow", "Aptos Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sp-bg);
  color: var(--sp-fg);
  font-family: var(--sp-font);
  font-stretch: condensed;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { opacity: .72; }
img { max-width: 100%; height: auto; display: block; }

.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 {
  position: fixed !important; left: 12px; top: 12px;
  width: auto; height: auto; padding: 10px 14px;
  clip: auto; z-index: 9999; background: #fff; color: #111;
}

.sp-shell {
  width: var(--sp-shell);
  margin-left: var(--sp-left);
}

.site-header {
  padding-top: clamp(42px, 4.6vw, 94px);
}
.sp-brand { display: inline-block; line-height: .92; }
.sp-brand-main {
  display: block;
  font-size: clamp(48px, 3.55vw, 73px);
  line-height: .88;
  letter-spacing: .006em;
  font-weight: 300;
  text-transform: lowercase;
}
.sp-brand-sub {
  display: block;
  margin-top: .18em;
  font-size: clamp(23px, 1.83vw, 37px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: .005em;
}

.sp-home-intro {
  margin-top: clamp(58px, 5vw, 102px);
  max-width: 100%;
}
.sp-home-intro p {
  margin: 0;
  font-size: clamp(23px, 1.58vw, 32.4px);
  line-height: 1.36;
  letter-spacing: .004em;
  font-weight: 300;
}

.sp-project-grid {
  margin-top: clamp(95px, 9.9vw, 203px);
  display: grid;
  grid-template-columns: minmax(0, 1.233fr) minmax(0, 1fr);
  gap: clamp(28px, 3.9vw, 80px);
  align-items: stretch;
}
.sp-project-card { margin: 0; min-width: 0; }
.sp-project-card a { display: block; overflow: hidden; }
.sp-project-card img {
  width: 100%;
  height: clamp(225px, 18vw, 369px);
  object-fit: cover;
  transform: scale(1.0001);
  transition: transform .45s ease, opacity .3s ease;
}
.sp-project-card a:hover img,
.sp-project-card a:focus-visible img { transform: scale(1.015); opacity: .9; }
.sp-project-title {
  margin: .55rem 0 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 300;
  opacity: 0;
  transition: opacity .25s ease;
}
.sp-project-card:hover .sp-project-title,
.sp-project-card:focus-within .sp-project-title { opacity: .78; }

.site-footer {
  margin-top: clamp(50px, 4.4vw, 90px);
  padding-bottom: clamp(55px, 7vw, 140px);
}
.sp-contact-label {
  margin: 0 0 .35rem;
  font-size: clamp(13px, .8vw, 16px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--sp-muted);
}
.sp-footer-rule { border: 0; border-top: 1px solid var(--sp-line); margin: 0; }
.sp-footer-grid {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 325px);
  gap: 40px;
  padding-top: 18px;
}
.sp-footer-grid p {
  margin: 0;
  font-size: clamp(17px, 1.12vw, 23px);
  line-height: 1.2;
  font-weight: 300;
}
.sp-contact-details { white-space: pre-line; }

/* Optional navigation, only appears if a menu is assigned. */
.sp-nav { position: absolute; right: max(5vw, 40px); top: clamp(48px, 5vw, 100px); }
.sp-nav ul { display:flex; gap: 1.25rem; list-style:none; margin:0; padding:0; }
.sp-nav a { font-size: 16px; color: var(--sp-muted); }

/* Generic inner pages */
.sp-inner { padding-top: clamp(70px, 8vw, 150px); padding-bottom: 100px; }
.sp-inner h1 { font-size: clamp(44px, 5vw, 86px); font-weight: 300; line-height: .95; margin: 0 0 1.2em; }
.sp-inner h2 { font-size: clamp(30px, 3vw, 52px); font-weight: 300; }
.sp-inner p, .sp-inner li { font-size: clamp(20px, 1.35vw, 27px); line-height: 1.45; }
.sp-inner .wp-block-image, .sp-inner figure { margin: 2.5rem 0; }
.sp-project-hero { margin-bottom: 3rem; }
.sp-project-hero img { width: 100%; max-height: 72vh; object-fit: cover; }
.sp-back { display:inline-block; margin-bottom: 2rem; color: var(--sp-muted); font-size: 16px; }

@media (max-width: 900px) {
  :root { --sp-shell: 84vw; --sp-left: 8vw; }
  .sp-home-intro p { font-size: clamp(22px, 3.6vw, 29px); }
  .sp-project-grid { grid-template-columns: 1fr; gap: 26px; }
  .sp-project-card img { height: auto; aspect-ratio: 16/9; }
  .sp-project-title { opacity: .78; }
  .sp-footer-grid { grid-template-columns: 1fr 1fr; }
  .sp-nav { right: 8vw; }
}

@media (max-width: 560px) {
  :root { --sp-shell: 88vw; --sp-left: 6vw; }
  .site-header { padding-top: 34px; }
  .sp-brand-main { font-size: 48px; }
  .sp-brand-sub { font-size: 24px; }
  .sp-home-intro { margin-top: 54px; }
  .sp-home-intro p { font-size: 22px; line-height: 1.32; }
  .sp-project-grid { margin-top: 76px; }
  .site-footer { margin-top: 50px; }
  .sp-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .sp-footer-grid p { font-size: 18px; }
  .sp-nav { position: static; margin-top: 24px; }
  .sp-nav ul { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
