/*
Theme Name: Jacob Sedesse
Description: Custom portfolio theme for Jacob Sedesse.
Version: 1.4.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: jacob-sedesse
*/

@font-face {
  font-family: "Galvjii";
  src: local("Galvjii"), local("GALVJII"), local("Galvjii");
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #090909;
  --muted: rgba(9, 9, 9, 0.62);
  --line: rgba(9, 9, 9, 0.12);
  --line-strong: rgba(9, 9, 9, 0.24);
  --soft: #f4f4f4;
  --radius-lg: 24px;
  --radius-md: 18px;
  --site-width: min(1360px, calc(100vw - 32px));
  --content-width: min(1200px, calc(100vw - 32px));
  --reading-width: min(760px, calc(100vw - 32px));
  --nav-width: min(1200px, calc(100vw - 32px));
  --font-brand: "Galvjii", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-brand);
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .nav {
  --nav-safe-top: 0px;
  top: 32px;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

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

.screen-reader-text:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: var(--paper);
  color: var(--ink);
}

.site {
  width: var(--site-width);
  margin: 0 auto;
  padding-bottom: 72px;
}

.nav {
  --nav-safe-top: env(safe-area-inset-top, 0px);
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(16px + var(--nav-safe-top)) max(16px, env(safe-area-inset-right, 0px), calc((100vw - var(--nav-width)) / 2)) 16px max(16px, env(safe-area-inset-left, 0px), calc((100vw - var(--nav-width)) / 2));
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  backdrop-filter: none;
}

.home-nav {
  --nav-safe-top: 0px;
  position: fixed;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  background: #ffffff;
  backdrop-filter: none;
  transition: border-color 240ms ease;
  will-change: transform;
}

.home-nav.is-traveling,
.home-nav.is-scrolled {
  top: 0;
  bottom: auto;
}

body.admin-bar .home-nav.is-traveling,
body.admin-bar .home-nav.is-scrolled {
  top: 32px;
}

.home-nav:not(.is-scrolled) {
  justify-content: flex-end;
  gap: 0;
}

.home-nav .brand-mark {
  width: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.home-nav.is-scrolled {
  --nav-safe-top: env(safe-area-inset-top, 0px);
  justify-content: space-between;
  gap: 16px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.home-nav.is-scrolled .brand-mark {
  width: auto;
  max-height: 48px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.no-js .home-nav {
  --nav-safe-top: env(safe-area-inset-top, 0px);
  position: sticky;
  top: 0;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  justify-content: space-between;
  gap: 16px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.no-js .home-nav .brand-mark {
  width: auto;
  max-height: 48px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.brand-mark,
.brand-mark picture {
  display: block;
  line-height: 0;
}

.brand-mark img {
  display: block;
  width: auto;
  height: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.full-bleed {
  width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
}

.home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #000000;
}

.hero-backdrop {
  --hero-parallax: 0px;
  position: absolute;
  z-index: 0;
  inset: -10vh 0;
  overflow: hidden;
  background: #000000;
  transform: translate3d(0, var(--hero-parallax), 0) scale(1.04);
  transform-origin: center top;
  will-change: transform;
}

.hero-backdrop video,
.hero-backdrop img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(28px, 6vw, 72px);
}

.hero-logo {
  width: min(68vw, 760px);
  animation: hero-logo-reveal 1400ms cubic-bezier(0.16, 1, 0.3, 1) 160ms both;
}

.hero-logo img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

@keyframes hero-logo-reveal {
  from {
    opacity: 0;
    transform: scale(1.07);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.page-plane {
  position: relative;
  z-index: 5;
  width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding-bottom: 1px;
  background: var(--paper);
}

.page-plane::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 72px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.28),
    rgba(0, 0, 0, 0.08) 42%,
    transparent
  );
  pointer-events: none;
}

.section,
.footer,
.single-header,
.single-media,
.single-shell {
  width: var(--content-width);
  margin-right: auto;
  margin-left: auto;
}

.section {
  padding-top: clamp(46px, 7vw, 96px);
}

.home-section {
  padding-top: clamp(52px, 8vw, 110px);
}

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

h1,
h2,
h3 {
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.92;
  text-transform: uppercase;
}

h1,
.justified-title {
  width: 100%;
  max-width: none;
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-word;
  word-spacing: 0.22em;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
  font-size: 1.34rem;
}

.eyebrow,
.back-link,
.meta,
.results,
.status-label {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 14px;
  letter-spacing: 0.24em;
}

.intro,
.section-header {
  display: grid;
  width: 100%;
  gap: 16px;
}

.section-header {
  margin-bottom: 28px;
}

.section-header > h2 {
  width: 100%;
  max-width: none;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-word;
  word-spacing: 0.22em;
}

.bio-feature {
  overflow: hidden;
}

.bio-copy > * + * {
  margin-top: 18px;
}

.bio-copy p,
.card p,
.feed-item p,
.update-item p,
.coverage-item p,
.panel p,
.contact-block p,
.cta p {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.06rem);
}

.bio-copy p {
  max-width: none;
}

.headshot-wrap {
  position: relative;
  float: right;
  width: clamp(180px, 24vw, 280px);
  aspect-ratio: 2 / 3;
  margin: 18px 0 16px 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--soft);
}

.headshot-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button,
.load-more {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  border-color: var(--line-strong);
  color: var(--ink);
}

.filter-button:disabled,
.load-more:disabled {
  cursor: wait;
  opacity: 0.55;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  margin-top: 30px;
}

.works-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(290px, calc((100% - 36px) / 3), 390px);
  align-items: start;
  gap: 18px;
  width: 100%;
  padding: 4px 0 14px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  overscroll-behavior-block: auto;
  scroll-padding-inline: 0;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--ink) var(--soft);
  scrollbar-width: thin;
  touch-action: pan-x pan-y;
}

.works-carousel > * {
  scroll-snap-align: start;
}

.card,
.feed-item,
.update-item,
.coverage-item,
.panel,
.contact-block {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.card {
  transition: transform 180ms ease, border-color 180ms ease;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.thumb {
  display: grid;
  min-height: 220px;
  overflow: hidden;
  place-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--soft);
  text-align: center;
}

.thumb-image {
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding: 0;
}

.thumb-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
}

.card-action,
.entry-link,
.section-link,
.contact-link,
.submit {
  width: fit-content;
  padding-bottom: 2px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.submit {
  cursor: pointer;
}

.works-more {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--soft);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: -0.05em;
  line-height: 0.94;
  text-align: center;
  text-transform: uppercase;
}

.works-more span::after,
.section-link::after {
  content: " →";
}

.load-sentinel {
  display: grid;
  min-height: 72px;
  place-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}

.load-sentinel[hidden],
.load-more[hidden] {
  display: none;
}

.load-sentinel[role="button"] {
  cursor: pointer;
}

.updates-feed,
.feed,
.coverage {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.feed-item,
.update-item,
.coverage-item {
  padding: 20px;
}

.coverage-item {
  background: var(--soft);
}

.update-hero {
  width: calc(100% + 40px);
  aspect-ratio: 16 / 9;
  margin: -20px -20px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--soft);
}

.update-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.load-more {
  display: block;
  margin: 24px auto 0;
  border-color: var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.load-more:hover {
  background: var(--ink);
  color: var(--paper);
}

.js-updates-status,
.status {
  min-height: 1.3em;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.section-link {
  display: inline-flex;
  margin-top: 24px;
}

.cta {
  display: flex;
  width: var(--content-width);
  margin: clamp(52px, 8vw, 110px) auto 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}

.cta a {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.84rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.94fr);
  gap: 18px;
  margin-top: 28px;
}

.panel,
.contact-block {
  gap: 16px;
  padding: 20px;
}

.panel > h2,
.contact-block > h2 {
  width: 100%;
  font-size: clamp(1.8rem, 4vw, 3rem);
  white-space: nowrap;
}

.contact-stack,
.form-grid {
  display: grid;
  align-content: start;
  gap: 18px;
}

.form-grid {
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
}

.form-grid textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.social-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  line-height: 1;
}

.social-link {
  flex: 0 0 auto;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.8vw, 2.45rem);
  letter-spacing: -0.05em;
  line-height: 0.94;
  text-transform: uppercase;
  white-space: nowrap;
}

.social-link:hover {
  border-color: var(--ink);
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
}

.back-link::before {
  content: "←";
  margin-right: 10px;
}

.single-header {
  padding-top: clamp(48px, 7vw, 96px);
}

.single-media {
  aspect-ratio: 16 / 9;
  margin-top: 32px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
}

.single-media img,
.single-media iframe,
.single-media video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.single-media iframe,
.single-media video {
  object-fit: contain;
}

.single-shell {
  padding: clamp(40px, 6vw, 72px) 0 0;
}

.work-body,
.article-body {
  font-size: clamp(1.05rem, 1.7vw, 1.18rem);
  line-height: 1.68;
}

.article-body {
  width: var(--reading-width);
  margin-right: auto;
  margin-left: auto;
  padding: clamp(40px, 6vw, 72px) 0 0;
}

.work-body > *:first-child,
.article-body > *:first-child {
  margin-top: 0;
}

.work-body > *:last-child,
.article-body > *:last-child {
  margin-bottom: 0;
}

.work-body p,
.work-body li,
.article-body p,
.article-body li {
  font-size: inherit;
  line-height: inherit;
}

.article-body a:not(.wp-element-button):not(.wp-block-button__link) {
  color: #3f3f3f;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.article-body a:not(.wp-element-button):not(.wp-block-button__link):hover {
  color: var(--ink);
}

.work-body p,
.article-body p,
.work-body ul,
.work-body ol,
.article-body ul,
.article-body ol {
  margin: 1.25em 0;
}

.work-body h2,
.work-body h3,
.article-body h2,
.article-body h3 {
  margin: 1.6em 0 0.6em;
}

.work-body figure,
.article-body figure,
.work-body .wp-block-image,
.article-body .wp-block-image,
.work-body .wp-block-gallery,
.article-body .wp-block-gallery,
.work-body .wp-block-video,
.article-body .wp-block-video,
.work-body .wp-block-audio,
.article-body .wp-block-audio,
.work-body .wp-block-embed,
.article-body .wp-block-embed {
  margin: 30px 0;
}

.work-body img,
.work-body video,
.work-body audio,
.work-body iframe,
.article-body img,
.article-body video,
.article-body audio,
.article-body iframe {
  display: block;
  max-width: 100%;
}

.work-body video,
.work-body audio,
.work-body iframe,
.article-body video,
.article-body audio,
.article-body iframe {
  width: 100%;
}

.wp-block-embed.is-type-video .wp-block-embed__wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.wp-block-embed.is-type-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.work-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(250px, 0.75fr);
  align-items: start;
  gap: 18px;
  margin-top: 30px;
}

.facts {
  margin: 0;
}

.facts div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  margin-bottom: 5px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  color: var(--muted);
}

.empty-state {
  padding: 24px 0;
  color: var(--muted);
}

.footer {
  display: flex;
  margin-top: 44px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (max-width: 960px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .contact-layout,
  .work-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 782px) {
  body.admin-bar .nav,
  body.admin-bar .home-nav.is-traveling,
  body.admin-bar .home-nav.is-scrolled {
    top: 46px;
  }
}

@media (max-width: 720px) {
  h1,
  .justified-title,
  .section-header > h2 {
    min-width: 0;
    font-size: clamp(2.45rem, 10vw, 3.2rem);
  }

  .intro,
  .section-header {
    min-width: 0;
  }

  :root {
    --site-width: min(calc(100vw - 16px), 100%);
    --content-width: min(calc(100vw - 32px), 100%);
    --reading-width: min(calc(100vw - 32px), 100%);
  }

  .nav {
    flex-direction: column;
    align-items: center;
  }

  .nav .brand-mark,
  .nav .brand-mark picture {
    display: grid;
    width: 100%;
    place-items: center;
  }

  .brand-mark img {
    height: 42px;
    margin: 0 auto;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0;
  }

  .nav-links a {
    text-align: center;
  }

  .nav-links a:first-child {
    text-align: left;
  }

  .nav-links a:last-child {
    text-align: right;
  }

  .hero-logo {
    width: min(84vw, 560px);
  }

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

  .controls,
  .cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .headshot-wrap {
    float: none;
    width: min(64vw, 240px);
    margin: 18px auto;
  }
}

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

  .hero-backdrop {
    transform: none !important;
  }

  .hero-logo {
    animation: none;
  }

  .card,
  .home-nav,
  .home-nav .brand-mark,
  .js .reveal {
    transition: none;
  }
}
