/* ============================================================
   Derrick Deese — Portfolio
   Clean rebuild, no Webflow/jQuery dependencies
   ============================================================ */

/* --- Fonts ------------------------------------------------- */

@font-face {
  font-family: 'YoungSerif';
  src: url('../fonts/YoungSerif-Regular.woff2') format('woff2'),
       url('../fonts/YoungSerif-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Panamera';
  src: url('../fonts/Panamera-Light.woff2') format('woff2'),
       url('../fonts/Panamera-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Panamera';
  src: url('../fonts/Panamera-Regular.woff2') format('woff2'),
       url('../fonts/Panamera-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Panamera';
  src: url('../fonts/Panamera-Bold.woff2') format('woff2'),
       url('../fonts/Panamera-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Variables --------------------------------------------- */

:root {
  --black: #030303;
  --dark-gray: #303030;
  --mid-gray: #4b4b4b;
  --white: #ffffff;
  --accent: #ffb300;
  --font-body: halyard-text, 'Georgia', serif;
  --font-serif: 'YoungSerif', Georgia, serif;
  --font-mono: 'Panamera', sans-serif;
}

/* --- Reset ------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 200;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

p {
  margin: 0 0 10px;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ============================================================
   HOMEPAGE
   ============================================================ */

/* --- Navbar (homepage) ------------------------------------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 44px;
  background-color: transparent;
  pointer-events: none;
}

.navbar a {
  pointer-events: all;
}

.navbar-brand {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--white);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.2s, color 0.2s;
}

.navbar-brand:hover {
  color: var(--accent);
  border-bottom-color: var(--white);
}

.navbar-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid transparent;
  padding: 12px 16px 8px;
  transition: border-color 0.2s, color 0.2s;
}

.navbar-index:hover {
  color: var(--accent);
  border-bottom-color: var(--white);
}

/* --- About panel (fixed, full viewport) ------------------- */

.about {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: var(--black);
  padding: 140px 44px 44px;
}

.about-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.about-bio {
  margin-bottom: 68px;
}

.bio-text {
  font-size: 44px;
  font-weight: 100;
  line-height: 145%;
  color: var(--white);
  letter-spacing: -0.1px;
  width: 90%;
}

.bio-text strong,
.young-span {
  font-family: var(--font-serif);
  font-weight: 400;
}

.contact {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-links {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
  margin-bottom: 40px;
}

.contact-link {
  display: block;
  color: var(--white);
  border-bottom: 1px solid var(--white);
  padding-bottom: 4px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: border-bottom-width 0.25s;
}

.contact-link:hover {
  border-bottom-width: 4px;
}

.contact-legal {
  display: flex;
  flex-direction: column;
}

.contact-legal p {
  font-size: 12px;
  line-height: 200%;
  color: var(--white);
  margin-bottom: 0;
  font-family: var(--font-mono);
  font-weight: 400;
}

.type-link {
  color: var(--white);
}

.type-link:hover {
  border-bottom: 1px solid var(--white);
}

/* --- Marquee ---------------------------------------------- */

.marquee-wrapper {
  position: absolute;
  bottom: 44px;
  left: 0;
  right: 0;
  padding-left: 44px;
  padding-right: 44px;
  display: flex;
}

.marquee {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.marquee-text {
  font-size: 16px;
  color: var(--white);
  text-align: center;
}

/* --- Selected Work (scrolls over about panel) -------------- */

.selected-work {
  position: relative;
  z-index: 10;
  background-color: var(--white);
  color: var(--black);
  margin-top: 100vh;
  padding-top: 96px;
  padding-bottom: 60px;
}

.work-container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.collection-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
}

.collection-item {
  width: 50%;
  margin-bottom: 140px;
  padding-left: 12px;
  padding-right: 12px;
  transition: opacity 0.5s;
}

.work-link {
  display: block;
  color: var(--black);
  text-decoration: none;
}

.work-link:hover h2 {
  text-decoration: underline;
}

.work-cover {
  width: 100%;
  margin-bottom: 24px;
}

.work-tags {
  color: var(--dark-gray);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 200%;
}

.work-title-h2 {
  color: var(--black);
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 115%;
}

/* ============================================================
   WORK PAGES
   ============================================================ */

body.work-page {
  position: relative;
  background-color: var(--white);
  color: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Work navbar ------------------------------------------ */

.navbar-work {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 72px;
  background-color: var(--black);
  display: flex;
  align-items: center;
}

.navbar-work-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 44px;
}

.navbar-brand-work {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--white);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.2s, color 0.2s;
}

.navbar-brand-work:hover {
  color: var(--accent);
  border-bottom-color: var(--white);
}

.navbar-index-work {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid transparent;
  padding: 12px 16px 8px;
  transition: border-color 0.2s, color 0.2s;
}

.navbar-index-work:hover {
  color: var(--accent);
  border-bottom-color: var(--white);
}

/* --- Work detail ------------------------------------------ */

.detail-page {
  width: 100%;
  max-width: 1280px;
}

.work-detail {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  margin: 120px 44px 84px;
}

.copy-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 88px;
}

.work-title-block {
  margin-bottom: 32px;
}

.work-category {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.work-h1 {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 400;
  line-height: 115%;
  color: var(--white);
  margin-top: 8px;
  margin-bottom: 0;
}

.work-subhead {
  font-size: 28px;
  font-weight: 300;
  color: var(--white);
  margin-top: 18px;
  margin-bottom: 0;
  text-transform: none;
}

.work-description {
  color: #e7e7e7;
  font-size: 17px;
  font-weight: 200;
  line-height: 160%;
  width: 700px;
  max-width: 100%;
}

/* --- Dark background for hero ----------------------------- */

.detail-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 800px;
  background-color: var(--black);
  z-index: -1;
}

/* --- Work images ------------------------------------------ */

.detail-image-wrapper-full {
  width: 100%;
  margin-bottom: 84px;
}

.detail-image-wrapper-full img {
  width: 100%;
}

.detail-image-row {
  display: flex;
  gap: 24px;
  width: 100%;
  margin-bottom: 84px;
}

.detail-image-row .detail-image-wrapper-half {
  flex: 1;
  margin-bottom: 0;
}

.detail-image-wrapper-half {
  width: 48%;
  margin-bottom: 84px;
}

.detail-image-wrapper-half img {
  width: 100%;
}

.image-dropshadow {
  box-shadow: 0 5px 8px rgba(3, 3, 3, 0.15);
}

.caption {
  margin-top: 8px;
  padding-top: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 200;
  color: var(--dark-gray);
  border-bottom: 1px solid #d0d0d0;
  padding-bottom: 4px;
}

/* --- Index footer ----------------------------------------- */

.index-footer {
  position: relative;
  background-color: var(--black);
  width: 100%;
  min-height: 480px;
  padding: 84px 88px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.index-heading {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 200%;
  margin-bottom: 40px;
}

.index-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
}

.index-link {
  display: inline-flex;
  align-items: baseline;
  color: var(--white);
  font-size: 48px;
  font-weight: 400;
  border-bottom: 2px solid transparent;
  margin-bottom: 32px;
  padding-bottom: 12px;
  transition: color 0.2s, border-color 0.2s;
}

.index-link:hover {
  color: var(--accent);
  border-bottom-color: var(--white);
}

.index-link.is-current {
  color: var(--accent);
}

.index-link.is-current:hover {
  border-bottom-color: var(--white);
}

.index-number {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 100%;
  margin-right: 4px;
  display: inline;
}

.index-slash {
  color: var(--mid-gray);
  font-size: 48px;
  line-height: 100%;
  padding-left: 12px;
  padding-right: 12px;
  display: inline-block;
  margin-bottom: 32px;
}

.index-copyright {
  position: absolute;
  bottom: 24px;
  left: 88px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 300;
  color: var(--white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991px) {
  .about {
    padding: 100px 36px 36px;
    height: 990px;
  }

  .selected-work {
    margin-top: 990px;
  }

  .bio-text {
    font-size: 32px;
    line-height: 140%;
    width: 95%;
  }

  .collection-list {
    flex-direction: column;
  }

  .collection-item {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 96px;
  }

  .navbar {
    padding: 8px 36px;
  }

  .work-detail {
    margin-left: 44px;
    margin-right: 44px;
  }

  .index-footer {
    padding: 60px 44px 100px;
    min-height: 380px;
  }

  .index-link {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .index-slash {
    font-size: 36px;
  }

  .index-copyright {
    left: 44px;
  }
}

@media (max-width: 767px) {
  .about {
    position: static;
    margin-top: 60px;
    margin-bottom: 36px;
    padding: 0 24px;
    height: auto;
  }

  .selected-work {
    margin-top: 0;
  }

  .marquee-wrapper {
    position: static;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .bio-text {
    font-size: 28px;
  }

  .contact {
    margin-bottom: 60px;
  }

  .contact-links {
    margin-bottom: 60px;
  }

  .navbar {
    padding: 12px 24px;
  }

  .work-detail {
    margin: 80px 24px 60px;
  }

  .work-h1 {
    font-size: 44px;
  }

  .detail-image-row {
    flex-direction: column;
  }

  .detail-image-row .detail-image-wrapper-half {
    margin-bottom: 48px;
  }

  .detail-image-row .detail-image-wrapper-half:last-child {
    margin-bottom: 0;
  }

  .detail-image-wrapper-half {
    width: 100%;
  }

  .index-footer {
    padding: 60px 44px 100px;
    min-height: 440px;
  }

  .index-link {
    font-size: 32px;
    margin-bottom: 24px;
  }

  .index-slash {
    font-size: 32px;
  }

  .index-copyright {
    left: 44px;
    bottom: 20px;
  }
}

@media (max-width: 479px) {
  .about {
    margin-top: 36px;
    padding: 0 20px;
  }

  .bio-text {
    font-size: 21px;
    line-height: 150%;
    width: auto;
  }

  .work-title-h2 {
    font-size: 24px;
  }

  .selected-work {
    padding-top: 24px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .work-container {
    padding-left: 0;
    padding-right: 0;
  }

  .collection-item {
    margin-bottom: 60px;
  }

  .navbar {
    padding: 12px 20px;
  }

  .work-detail {
    margin: 80px 20px 0;
  }

  .work-h1 {
    font-size: 44px;
  }

  .work-description {
    width: auto;
    font-size: 15px;
  }

  .detail-image-wrapper-full {
    margin-bottom: 60px;
  }

  .detail-image-wrapper-half {
    width: 100%;
    margin-bottom: 60px;
  }

  .index-footer {
    padding: 48px 20px 100px;
    min-height: 400px;
  }

  .index-link {
    font-size: 20px;
    line-height: 140%;
    margin-bottom: 16px;
  }

  .index-slash {
    font-size: 20px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .index-copyright {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .navbar-work-inner {
    padding: 0 20px;
  }
}
