:root {
  --mulberry: #512b3b;
  --mulberry-dark: #3e1f2b;
  --rose: #d99aad;
  --cream: #f4eee7;
  --ink: #1d201b;
  --line: rgba(244, 238, 231, 0.42);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--mulberry-dark);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--cream);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 50%;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: var(--ink);
  background: var(--cream);
  font-size: 0.8rem;
  font-weight: 700;
  transform: translate(-50%, -180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  padding: clamp(1.25rem, 2.5vw, 2.25rem);
  pointer-events: none;
}

.monogram {
  display: grid;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  pointer-events: auto;
  transition: background 180ms ease, color 180ms ease;
}

.monogram:hover {
  color: var(--mulberry);
  background: var(--cream);
}

.monogram:focus-visible,
.panel:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 4px;
}

.landing {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #263127;
}

.panel {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 1 1 50%;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(7rem, 12vw, 10rem) clamp(1.5rem, 5vw, 5rem) clamp(6rem, 9vw, 8rem);
  color: var(--cream);
  text-decoration: none;
  isolation: isolate;
  transition: flex-basis 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.panel--work {
  background-color: var(--mulberry);
  background-image:
    linear-gradient(115deg, rgba(45, 17, 28, 0.08), rgba(48, 17, 30, 0.38)),
    url("assets/mulberry-leaf-shadow.jpg");
  background-position: center;
  background-size: cover;
}

.panel--work::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(35, 12, 22, 0.1), rgba(32, 10, 20, 0.32));
  content: "";
}

.panel__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at var(--pointer-x, 35%) var(--pointer-y, 45%), rgba(255, 225, 232, 0.07), transparent 22%),
    linear-gradient(110deg, transparent 15%, rgba(30, 8, 17, 0.18) 100%);
  transition: background 180ms ease;
}

.panel--photo {
  background:
    linear-gradient(180deg, rgba(18, 28, 20, 0.22), rgba(13, 22, 14, 0.68)),
    linear-gradient(90deg, rgba(25, 36, 26, 0.42), transparent 55%),
    url("assets/forest-hero.jpg") 50% 50% / cover no-repeat;
}

.panel--photo::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(46, 61, 43, 0.15);
  content: "";
  transition: background 500ms ease;
}

.panel:hover,
.panel:focus-visible {
  flex-basis: 58%;
}

.panel:hover + .panel,
.panel:focus-visible + .panel,
.landing:has(.panel--photo:hover) .panel--work,
.landing:has(.panel--photo:focus-visible) .panel--work {
  flex-basis: 42%;
}

.panel--photo:hover::after {
  background: rgba(34, 51, 32, 0.03);
}

.panel__content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(100%, 40rem);
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  margin-bottom: clamp(1.2rem, 2.8vh, 2rem);
  font-size: clamp(0.66rem, 0.8vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.headline {
  max-width: none;
  font-family: var(--serif);
  font-size: clamp(2.55rem, 4.6vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
  white-space: nowrap;
}

.details {
  margin-top: clamp(1.35rem, 2.7vh, 2rem);
  color: rgba(244, 238, 231, 0.77);
  font-size: clamp(0.7rem, 0.9vw, 0.84rem);
  letter-spacing: 0.04em;
  line-height: 1.65;
}

.details i {
  padding: 0 0.25em;
  font-style: normal;
  opacity: 0.56;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: clamp(1.75rem, 4vh, 3rem);
  padding: 0 0 0.6rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.button__arrow {
  font-size: 1rem;
  line-height: 1;
  transition: transform 220ms ease;
}

.panel:hover .button__arrow,
.panel:focus-visible .button__arrow {
  transform: translate(0.18rem, -0.18rem);
}

.identity {
  position: absolute;
  z-index: 5;
  top: clamp(7.75rem, 20vh, 12rem);
  left: 50%;
  width: min(90vw, 52rem);
  text-align: center;
  pointer-events: none;
  transform: translateX(-50%);
  text-shadow: 0 2px 28px rgba(10, 13, 10, 0.2);
}

.identity h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.identity p {
  margin: 1rem 0 0;
  font-size: clamp(0.65rem, 0.92vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: lowercase;
}

.identity p span {
  padding: 0 0.35em;
  color: var(--rose);
}

.site-footer {
  position: fixed;
  z-index: 9;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem clamp(1.5rem, 2.5vw, 2.25rem);
  color: rgba(244, 238, 231, 0.68);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  pointer-events: none;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration-color: transparent;
  text-underline-offset: 0.25rem;
  pointer-events: auto;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.site-footer a:hover {
  color: var(--cream);
  text-decoration-color: currentColor;
}

@media (max-width: 840px) {
  .site-header {
    padding: 1.25rem;
  }

  .monogram {
    width: 2.65rem;
    height: 2.65rem;
    font-size: 0.9rem;
  }

  .landing {
    display: block;
    overflow: visible;
  }

  .panel {
    min-height: 50svh;
    align-items: center;
    padding: 7.5rem 1.5rem 3rem;
    transition: none;
  }

  .panel--photo {
    min-height: 56svh;
    padding-top: 4.5rem;
  }

  .panel:hover,
  .panel:focus-visible,
  .panel:hover + .panel,
  .panel:focus-visible + .panel,
  .landing:has(.panel--photo:hover) .panel--work,
  .landing:has(.panel--photo:focus-visible) .panel--work {
    flex-basis: auto;
  }

  .identity {
    position: absolute;
    top: 2rem;
    width: calc(100% - 7rem);
    text-align: right;
    transform: translateX(-50%);
  }

  .identity h1 {
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .identity p {
    margin-top: 0.55rem;
    font-size: 0.6rem;
  }

  .headline {
    font-size: clamp(2.75rem, 12vw, 4.6rem);
  }

  .site-footer {
    position: relative;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
    padding: 1.4rem 1.5rem;
    background: #182018;
  }
}

@media (max-width: 420px) {
  .identity p span {
    padding: 0 0.15em;
  }

  .headline {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }

  .details {
    max-width: 18rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
