/*
Theme Name: Oscar Cramer Studio
Theme URI: https://oscarcramerphotography.com/
Author: Oscar Cramer Studio
Description: A lightweight editorial WordPress shell for Oscar Cramer's custom portfolio pages and legacy content.
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: oscar-cramer
*/

:root {
  --ocp-ink: #171311;
  --ocp-paper: #f3eee6;
  --ocp-paper-deep: #e4dacd;
  --ocp-wine: #5e1423;
  --ocp-wine-bright: #8d2032;
  --ocp-line: rgba(23, 19, 17, 0.18);
  --ocp-serif: Georgia, "Times New Roman", serif;
  --ocp-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  padding: 0;
  background: var(--ocp-paper);
  color: var(--ocp-ink);
  font-family: var(--ocp-sans);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.screen-reader-text {
  position: absolute;
  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 {
  z-index: 100000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 16px;
  clip: auto;
  background: #fff;
  color: #000;
}

/* The five rebuilt portfolio pages own their complete visual system. */
.ocp-custom-page,
.ocp-custom-page .ocp-custom-canvas {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

.ocp-theme-site {
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 2%, rgba(94, 20, 35, 0.08), transparent 28rem),
    var(--ocp-paper);
}

.ocp-theme-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--ocp-line);
  background: rgba(243, 238, 230, 0.94);
  backdrop-filter: blur(14px);
}

.ocp-theme-nav {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 32px;
  width: min(100% - 48px, 1440px);
  min-height: 88px;
  margin: 0 auto;
}

.ocp-theme-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: 132px;
  height: 54px;
  text-decoration: none;
}

.ocp-theme-brand img,
.ocp-theme-brand .custom-logo {
  display: block;
  width: 132px;
  height: 54px;
  background: transparent;
  mix-blend-mode: normal;
  object-fit: contain;
}

/*
 * All five custom portfolio pages own their navigation CSS. Keep the finalized
 * transparent studio mark color-accurate even when older page content still
 * contains a multiply rule for the previous logo asset.
 */
.ocp-brand img,
.oa-brand img,
.of-brand img,
.oh-brand img,
.ow-brand img,
.ocp-theme-brand img {
  background: transparent !important;
  mix-blend-mode: normal !important;
}

.ocp-theme-brand-text {
  font-family: var(--ocp-serif);
  font-size: 18px;
  line-height: 1;
}

.ocp-theme-menu,
.ocp-theme-menu ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 44px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ocp-theme-menu a {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  color: var(--ocp-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.ocp-theme-menu a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.ocp-theme-menu a:hover::after,
.ocp-theme-menu a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.ocp-theme-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ocp-ink);
  background: var(--ocp-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.ocp-theme-cta:hover,
.ocp-theme-cta:focus-visible {
  background: transparent;
  color: var(--ocp-ink);
}

.ocp-theme-main {
  width: min(100% - 48px, 1180px);
  min-height: 55vh;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 132px) 0;
}

.ocp-theme-article {
  width: min(100%, 820px);
}

.ocp-theme-article--wide {
  width: 100%;
}

.ocp-theme-kicker {
  display: block;
  margin: 0 0 20px;
  color: var(--ocp-wine);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ocp-theme-title {
  max-width: 900px;
  margin: 0 0 clamp(36px, 5vw, 72px);
  font-family: var(--ocp-serif);
  font-size: clamp(48px, 8vw, 116px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.ocp-theme-title--post {
  font-size: clamp(42px, 6vw, 86px);
}

.ocp-theme-content {
  font-family: var(--ocp-serif);
  font-size: clamp(18px, 1.7vw, 22px);
}

.ocp-theme-content > * {
  max-width: 780px;
}

.ocp-theme-content > .alignwide {
  max-width: 1080px;
}

.ocp-theme-content > .alignfull {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
}

.ocp-theme-content p,
.ocp-theme-content li {
  color: rgba(23, 19, 17, 0.82);
}

.ocp-theme-content h2,
.ocp-theme-content h3,
.ocp-theme-content h4 {
  margin-top: 2.2em;
  font-family: var(--ocp-sans);
  line-height: 1.05;
}

.ocp-theme-content a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.ocp-theme-content img,
.ocp-theme-content figure {
  margin-top: 36px;
  margin-bottom: 36px;
}

.ocp-theme-meta {
  margin: -42px 0 52px;
  color: rgba(23, 19, 17, 0.58);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ocp-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  background: var(--ocp-line);
  border: 1px solid var(--ocp-line);
}

.ocp-post-card {
  min-width: 0;
  padding: clamp(28px, 4vw, 52px);
  background: var(--ocp-paper);
}

.ocp-post-card a {
  text-decoration: none;
}

.ocp-post-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 28px;
  overflow: hidden;
  background: var(--ocp-paper-deep);
}

.ocp-post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(.2,.7,.2,1);
}

.ocp-post-card:hover .ocp-post-card__image img {
  transform: scale(1.025);
}

.ocp-post-card h2 {
  margin: 0 0 14px;
  font-family: var(--ocp-serif);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.ocp-post-card p {
  margin: 0;
  color: rgba(23, 19, 17, 0.68);
}

.ocp-theme-footer {
  padding: clamp(54px, 7vw, 94px) 0 28px;
  background: var(--ocp-wine);
  color: #fff;
}

.ocp-theme-footer__inner {
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
}

.ocp-theme-footer__eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ocp-theme-footer__title {
  max-width: 900px;
  margin: 0 0 42px;
  font-family: var(--ocp-serif);
  font-size: clamp(44px, 7vw, 104px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.ocp-theme-footer__contact {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.ocp-theme-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(64px, 9vw, 120px);
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.24);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ocp-pagination {
  margin-top: 48px;
}

.ocp-pagination .nav-links {
  display: flex;
  gap: 12px;
}

.ocp-pagination a,
.ocp-pagination .current {
  display: inline-grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--ocp-line);
  text-decoration: none;
}

.ocp-pagination .current {
  background: var(--ocp-ink);
  color: #fff;
}

@media (max-width: 820px) {
  .ocp-theme-nav {
    grid-template-columns: 1fr auto;
    width: min(100% - 32px, 1440px);
    min-height: 74px;
    gap: 16px;
  }

  .ocp-theme-menu {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding: 0 0 12px;
    overflow-x: auto;
  }

  .ocp-theme-menu,
  .ocp-theme-menu ul {
    justify-content: flex-start;
    gap: 26px;
  }

  .ocp-theme-brand,
  .ocp-theme-brand img,
  .ocp-theme-brand .custom-logo {
    width: 112px;
    height: 46px;
  }

  .ocp-theme-cta {
    min-height: 42px;
    padding: 0 14px;
    font-size: 10px;
  }

  .ocp-theme-main,
  .ocp-theme-footer__inner {
    width: min(100% - 32px, 1180px);
  }

  .ocp-post-grid {
    grid-template-columns: 1fr;
  }

  .ocp-theme-footer__bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
