/*
Theme Name: Tadas Media Frame
Theme URI: https://tadas.media
Author: Codex
Author URI: https://tadas.media
Description: A custom dark editorial WordPress theme for tadas.media.
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: tadas-media-frame
*/

:root {
  --bg: #0a0a0a;
  --bg-elevated: #121212;
  --bg-soft: #171717;
  --line: rgba(232, 227, 218, 0.12);
  --text: #e8e3da;
  --muted: #9c978f;
  --muted-strong: #c9c3b7;
  --accent: #726d65;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --max-width: 1240px;
  --gutter: clamp(1.25rem, 2vw, 2rem);
  --section-gap: clamp(4.5rem, 8vw, 8rem);
  --radius: 1.4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.055), transparent 22%),
    linear-gradient(180deg, #0b0b0b 0%, #090909 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 140px 140px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 90%);
}

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

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

.page-shell {
  width: min(100%, calc(var(--max-width) + 2 * var(--gutter)));
  margin: 0 auto;
  padding: 0 var(--gutter) 5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0 1.1rem;
  backdrop-filter: none;
  background: transparent;
}

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

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 227, 218, 0.1), transparent);
}

.brand,
.site-nav a {
  letter-spacing: 0.16em;
  text-transform: lowercase;
  font-size: 0.78rem;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.42);
}

.brand {
  font-weight: 700;
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 1.4rem;
  color: var(--muted-strong);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.section {
  padding-top: var(--section-gap);
}

.hero {
  min-height: calc(100vh - 5.5rem);
}

.hero-stage {
  position: relative;
  min-height: min(78vh, 56rem);
}

.hero-copy {
  position: absolute;
  left: clamp(1.4rem, 4vw, 3.2rem);
  bottom: clamp(1.4rem, 4vw, 3.2rem);
  max-width: min(34rem, 52vw);
  z-index: 2;
  min-width: 0;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  max-width: 8ch;
  color: #f1ece3;
  text-shadow: 0 8px 36px rgba(0, 0, 0, 0.32);
}

.hero-text {
  margin-top: 1.2rem;
  max-width: 28rem;
  color: #d7d1c6;
  font-size: 1rem;
  line-height: 1.6;
}

.hero-stage,
.hero-media,
.work-grid,
.work-split-media,
.contact-grid,
.format-grid,
.about-grid {
  display: grid;
}

.hero-frame,
.work-media,
.contact-card,
.format-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), transparent 38%),
    radial-gradient(circle at 75% 20%, rgba(211, 206, 196, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(82, 82, 82, 0.56), rgba(11, 11, 11, 0.98));
  box-shadow: var(--shadow);
}

.hero-frame::before,
.work-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.12), transparent 22%),
    radial-gradient(circle at 70% 40%, rgba(255, 235, 196, 0.09), transparent 24%),
    linear-gradient(180deg, transparent 12%, rgba(0, 0, 0, 0.46) 100%);
}

.media-asset {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.02) brightness(0.74);
}

.hero-frame-wide {
  min-height: min(78vh, 56rem);
}

.hero-frame-wide .media-copy {
  display: none;
}

.media-sheen {
  position: absolute;
  inset: auto -10% 18% -10%;
  height: 35%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: rotate(-7deg);
  filter: blur(30px);
  opacity: 0.6;
}

.media-copy,
.work-index {
  position: absolute;
  z-index: 1;
}

.media-copy {
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.media-copy span,
.format-card span,
.contact-card span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.67rem;
}

.media-copy strong,
.format-card strong,
.contact-card strong {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ece6dd;
}

.eyeline {
  margin: 0 0 1rem;
  color: rgba(232, 227, 218, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
}

.intro {
  max-width: 52rem;
  border-top: 1px solid var(--line);
}

.intro p {
  color: #ddd7cc;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.5;
}

.section-heading {
  display: grid;
  gap: 0.9rem;
  max-width: 48rem;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: #dad4ca;
}

.work-section {
  display: grid;
  gap: 2.25rem;
}

.work-item {
  display: grid;
  gap: 1.4rem;
  min-width: 0;
}

.work-item-feature {
  grid-template-columns: 1.35fr 0.65fr;
  align-items: end;
}

.work-media {
  min-height: 23rem;
}

.work-media-wide {
  min-height: 31rem;
}

.work-media-mid {
  min-height: 20rem;
}

.work-media-tall {
  min-height: 31rem;
}

.work-index {
  top: 1rem;
  left: 1rem;
  color: rgba(232, 227, 218, 0.74);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
}

.work-copy {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  min-width: 0;
}

.work-copy h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  letter-spacing: -0.04em;
  color: #ece6dd;
}

.work-copy p,
.about-grid p {
  color: #d1ccc2;
  line-height: 1.75;
}

.meta-list,
.about-note ul {
  list-style: none;
  padding: 0;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.meta-list li,
.about-note li {
  color: #b4afa7;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.work-item-split {
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
}

.work-split-media {
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.alt-tone {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 36%),
    radial-gradient(circle at 20% 18%, rgba(255, 221, 176, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(56, 50, 48, 0.56), rgba(11, 11, 11, 0.98));
}

.alt-tone-2 {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 36%),
    radial-gradient(circle at 60% 18%, rgba(204, 215, 255, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(38, 39, 45, 0.62), rgba(11, 11, 11, 0.98));
}

.about-grid {
  grid-template-columns: 1.4fr 0.6fr;
  gap: 2rem;
  align-items: start;
}

.about-note {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.about-note p {
  margin-bottom: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.process-section {
  display: grid;
  gap: 1.5rem;
}

.format-grid,
.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.format-card,
.contact-card {
  min-height: 12rem;
  padding: 1.25rem;
  align-content: end;
  display: grid;
  gap: 0.55rem;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-card:hover,
.contact-card:focus-visible {
  border-color: rgba(232, 227, 218, 0.28);
  transform: translateY(-2px);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--section-gap);
  padding: 1.25rem 0 2rem;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0;
  color: #b4afa7;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

@media (max-width: 1180px) {
  .hero-copy {
    max-width: min(32rem, 60vw);
  }
}

body.js-enhanced .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

.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;
}

@media (max-width: 980px) {
  .hero,
  .work-item-feature,
  .work-item-split,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .work-split-media,
  .work-grid,
  .format-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    gap: 1rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-bottom: 3rem;
  }

  .hero-stage,
  .hero-frame-wide {
    min-height: 70vh;
  }

  .hero-copy {
    left: 1rem;
    bottom: 1rem;
    max-width: min(26rem, calc(100% - 2rem));
  }

  .site-nav {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .work-media-tall,
  .work-media-wide {
    min-height: 20rem;
  }

  .hero-text,
  .work-copy p,
  .about-grid p {
    font-size: 0.98rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .contact-card:hover,
  .contact-card:focus-visible {
    transform: none;
  }
}
