/*
Theme Name: Oxana Morasch Fotografie
Theme URI: https://morasch.space/
Author: Oxana Morasch
Description: Zweisprachiges Portfolio-Theme für Fine Art Familienfotografie in Berlin.
Version: 1.5.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: oxana-morasch-fotografie
*/

:root {
  --cream: #f7f3ed;
  --paper: #fffdf9;
  --blush: #eadfd7;
  --sand: #ded7ce;
  --sage: #d8d9d0;
  --ink: #383431;
  --muted: #736d68;
  --accent: #a17763;
  --line: rgba(56, 52, 49, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: clip;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  width: 100%;
}

figure {
  margin: 0;
}

main,
section,
header,
footer,
div,
figure {
  min-width: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 28px 4.5vw;
  color: var(--ink);
}

.brand {
  display: inline-flex;
  width: max-content;
  flex-direction: column;
  letter-spacing: 0.15em;
  line-height: 1;
}

.brand span {
  font-size: 0.85rem;
  font-weight: 600;
}

.brand small {
  margin-top: 6px;
  font-size: 0.58rem;
  letter-spacing: 0.36em;
}

.desktop-nav {
  display: flex;
  gap: 34px;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.desktop-nav a,
.footer-legal a,
.footer-contact a {
  position: relative;
}

.desktop-nav a::after,
.footer-legal a::after,
.footer-contact a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms ease;
}

.desktop-nav a:hover::after,
.footer-legal a:hover::after,
.footer-contact a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-switch {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
}

.language-switch button {
  border: 0;
  padding: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  opacity: 0.48;
}

.language-switch button.active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 52%) minmax(0, 48%);
  background: var(--cream);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 145px 6vw 90px 8vw;
}

.eyebrow {
  margin-bottom: 27px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
}

h1 {
  max-width: 610px;
  margin-bottom: 32px;
  font-size: clamp(3.25rem, 4.25vw, 5.25rem);
  letter-spacing: -0.048em;
  line-height: 0.98;
}

.hero-title-first-line {
  white-space: normal;
}

.hero-text {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.75;
}

.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid var(--ink);
  padding: 0 27px;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  transition: background 220ms ease, color 220ms ease;
}

.button:hover,
.button-filled {
  background: var(--ink);
  color: var(--paper);
}

.button-filled:hover {
  background: transparent;
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid currentColor;
  padding: 8px 0;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.text-link span {
  transition: transform 200ms ease;
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

.hero-image {
  position: relative;
  align-self: center;
  min-height: 0;
  aspect-ratio: 1;
  margin: 105px 4.5vw 70px 2.5vw;
  overflow: hidden;
  background: var(--blush);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image figcaption {
  position: absolute;
  right: 24px;
  bottom: 26px;
  color: var(--ink);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.section {
  padding: 125px 8vw;
}

.intro {
  display: grid;
  grid-template-columns: 23% minmax(0, 1fr) 32%;
  gap: 4vw;
  align-items: start;
  background: var(--paper);
}

.intro h2,
.beginning h2,
.newborn h2,
.places h2,
.session h2,
.about h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(3rem, 5vw, 5.8rem);
  letter-spacing: -0.047em;
  line-height: 0.98;
}

.intro h2 {
  font-size: clamp(2.75rem, 3.7vw, 4.5rem);
  line-height: 1.03;
}

.intro > p:last-child,
.beginning-copy > p,
.newborn-copy > p,
.places-copy > p,
.session-copy > p,
.about-copy > p,
.contact > p {
  color: var(--muted);
  line-height: 1.8;
}

.photo {
  overflow: hidden;
}

.photo img {
  height: auto;
}

.beginning {
  display: grid;
  grid-template-columns: 34% 39% 27%;
  gap: 0;
  align-items: end;
  background: var(--blush);
}

.beginning-copy {
  align-self: center;
  max-width: 500px;
  padding-right: 6vw;
}

.beginning-copy h2 {
  margin-bottom: 30px;
  font-size: clamp(3rem, 4.7vw, 5.3rem);
}

.beginning .ultrasound {
  margin: 0 0 3.5vw;
}

.beginning .pregnancy img,
.beginning .ultrasound img,
.beginning .belly img {
  width: 100%;
  height: auto;
}

.beginning-details {
  align-self: end;
  margin-left: 3.5vw;
}

.newborn {
  display: grid;
  grid-template-columns: 54% 1fr;
  gap: 7vw;
  background: var(--paper);
}

.newborn-copy {
  grid-column: 2;
  max-width: 600px;
  align-self: end;
  margin-bottom: 20px;
}

.newborn-copy h2 {
  margin-bottom: 30px;
  font-size: clamp(3rem, 4.6vw, 5.2rem);
}

.newborn-main {
  grid-row: 1 / span 2;
  align-self: center;
}

.newborn-main img {
  width: 100%;
}

.newborn-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.family-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: start;
  background: var(--cream);
  padding-top: 95px;
  padding-bottom: 95px;
}

.family-pair figure:nth-child(2) {
  margin-top: 70px;
}

.places {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4vw;
  align-items: start;
  background: var(--sage);
}

.places-copy {
  grid-column: 1 / 3;
  max-width: 760px;
  margin-bottom: 30px;
}

.places-copy h2 {
  margin-bottom: 30px;
}

.places-main {
  width: 78%;
  justify-self: start;
}

.places-main img {
  height: auto;
}

.places-side {
  grid-column: 2;
  width: 78%;
  justify-self: end;
  margin-top: 110px;
}

.places-siblings {
  grid-column: 1 / 3;
  width: 100%;
  margin-top: 4vw;
}

.session {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 10vw;
  align-items: center;
  background: var(--paper);
}

.session-photo img {
  width: 100%;
}

.session-copy {
  max-width: 620px;
}

.session h2 {
  margin-bottom: 36px;
}

.session-note {
  margin: 38px 0 26px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}

.about {
  display: grid;
  grid-template-columns: 1fr 44%;
  gap: 10vw;
  align-items: center;
  background: var(--sand);
}

.about-copy {
  max-width: 620px;
}

.about h2 {
  margin-bottom: 35px;
}

.about-copy .lead {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  line-height: 1.25;
}

.about-photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.about-photo {
  aspect-ratio: 4 / 5;
}

.contact {
  padding: 135px 10vw 145px;
  background: var(--cream);
  text-align: center;
}

.contact .eyebrow {
  margin-bottom: 32px;
}

.contact h2 {
  max-width: 900px;
  margin: 0 auto 28px;
}

.contact > p {
  max-width: 570px;
  margin: 0 auto;
}

.contact-actions {
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  align-items: end;
  padding: 55px 6vw;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.68rem;
}

.footer-brand {
  color: var(--ink);
}

.footer-contact,
.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

footer p {
  margin: 0;
}

.legal-page {
  min-height: 100vh;
  padding: 48px 7vw 90px;
  background: var(--cream);
}

.legal-brand {
  margin-bottom: 14vh;
}

.legal-content {
  max-width: 720px;
}

.legal-content h1 {
  margin-bottom: 52px;
}

.legal-content p {
  color: var(--muted);
  line-height: 1.8;
}

.legal-content a:not(.text-link) {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 140px 8vw 75px;
  }

  .hero-image {
    width: min(88%, 680px);
    margin: 0 auto 75px;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .beginning {
    grid-template-columns: 1fr 1fr;
  }

  .beginning-copy {
    grid-column: 1 / 3;
    max-width: 680px;
    margin-bottom: 70px;
  }

  .beginning .ultrasound {
    margin: 0 0 30px;
  }

  .newborn {
    grid-template-columns: 1fr;
  }

  .newborn-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .newborn-main {
    grid-row: auto;
  }

  .places {
    grid-template-columns: 1fr 1fr;
  }

  .places-copy {
    grid-column: 1 / 3;
  }

  .places-main,
  .places-side {
    width: 100%;
  }

  .session,
  .about {
    grid-template-columns: 1fr 1fr;
    gap: 6vw;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 22px 6vw;
  }

  .brand span {
    font-size: 0.72rem;
  }

  .brand small {
    font-size: 0.5rem;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    padding: 128px 7vw 60px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.7rem, 12vw, 3.45rem);
    letter-spacing: -0.045em;
    line-height: 0.98;
  }

  .hero-title-de {
    font-size: clamp(2.25rem, 9.4vw, 2.8rem);
    letter-spacing: -0.04em;
  }

  .hero-actions,
  .contact-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .contact .contact-actions {
    align-items: center;
  }

  .hero-image {
    width: 100%;
    margin: 0;
  }

  .hero-image img {
    height: auto;
    object-fit: contain;
  }

  .section {
    padding: 85px 7vw;
  }

  .intro h2,
  .beginning h2,
  .newborn h2,
  .places h2,
  .session h2,
  .about h2,
  .contact h2 {
    max-width: 100%;
    font-size: clamp(2.45rem, 10.8vw, 3.3rem);
    letter-spacing: -0.04em;
    line-height: 1;
  }

  .beginning {
    grid-template-columns: 1fr;
  }

  .beginning-copy {
    grid-column: 1;
    margin-bottom: 50px;
    padding-right: 0;
  }

  .beginning .ultrasound {
    margin: 0 0 28px;
  }

  .beginning-details {
    margin: 28px 0 0;
  }

  .newborn-details,
  .family-pair,
  .places,
  .session,
  .about {
    grid-template-columns: 1fr;
  }

  .newborn-details {
    gap: 28px;
  }

  .family-pair {
    gap: 28px;
  }

  .family-pair figure:nth-child(2) {
    margin-top: 0;
  }

  .places-copy,
  .places-main,
  .places-side,
  .places-siblings {
    grid-column: 1;
    width: 100%;
  }

  .places-copy {
    margin-bottom: 24px;
  }

  .places-main img {
    height: auto;
    object-fit: contain;
  }

  .places-side {
    margin-top: 28px;
  }

  .places-siblings {
    margin-top: 28px;
  }

  .session,
  .about {
    gap: 55px;
  }

  .session-copy,
  .about-copy {
    grid-row: 1;
  }

  .about-photo {
    width: min(100%, 430px);
    aspect-ratio: 4 / 5;
    justify-self: center;
  }

  .about-photo img {
    object-position: 72% center;
  }

  .contact {
    padding: 95px 7vw 105px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 48px 7vw;
  }

  .legal-page {
    padding: 32px 7vw 70px;
  }

  .legal-brand {
    margin-bottom: 90px;
  }
}
