@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Noto+Serif:wght@400;500;600&display=swap');

:root {
  --accent: #93B259;
  --background: #FDF6E3;
  --foreground: #5C6A72;
}

html,
body,
.content,
.home-section {
  background-color: var(--background);
  color: var(--foreground);
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
.portrait-title h2,
.portrait-title h3 {
  color: var(--foreground);
}

a,
a:visited,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .active > a:hover {
  color: var(--accent) !important;
}

a:hover,
a:focus {
  color: var(--foreground) !important;
}

.portrait-title a,
.news-item a,
.service-item a,
#publications-container a {
  color: var(--accent) !important;
}

.portrait-title a:hover,
.news-item a:hover,
.service-item a:hover,
#publications-container a:hover {
  color: var(--foreground) !important;
}

.navbar-default,
#navbar-main {
  background-color: var(--foreground);
  border-color: var(--foreground);
}

.navbar-default .navbar-brand,
.navbar-default .navbar-nav > li > a,
.navbar-default .navbar-nav > li > a:visited {
  color: #fff !important;
}

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus,
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: #fff !important;
}

.navbar-default .navbar-toggle,
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  border-color: rgba(255, 255, 255, 0.7);
  background-color: transparent;
}

.navbar-default .navbar-toggle .icon-bar {
  background-color: #fff;
}

.social-link img {
  opacity: 0.72;
}

/* Wabi-sabi navigation: stone, paper, and a restrained moss accent. */
#navbar-main {
  min-height: 66px;
  border: 0;
  background-color: var(--foreground);
  background-image:
    radial-gradient(circle at 14% 18%, rgba(253, 246, 227, 0.08) 0 1px, transparent 1.8px),
    radial-gradient(circle at 72% 78%, rgba(253, 246, 227, 0.045) 0 1px, transparent 2px),
    linear-gradient(103deg, rgba(147, 178, 89, 0.08), transparent 34%, rgba(253, 246, 227, 0.025) 72%, transparent);
  background-size: 31px 29px, 43px 37px, 100% 100%;
  box-shadow: 0 6px 20px rgba(53, 62, 67, 0.09), inset 0 -1px rgba(147, 178, 89, 0.42);
}

#navbar-main::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
  background-image:
    linear-gradient(90deg, rgba(92, 106, 114, 1) 0%, rgba(92, 106, 114, 0.99) 38%, rgba(92, 106, 114, 0.91) 53%, rgba(92, 106, 114, 0.70) 69%, rgba(92, 106, 114, 0.34) 100%),
    url("images/ukiyoe-waves.png");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right 31%;
  background-size: cover, 960px auto;
  filter: saturate(0.92) contrast(1.02);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.58) 53%, #000 66%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.58) 53%, #000 66%);
}

#navbar-main > .container {
  position: relative;
  z-index: 1;
}

#navbar-main::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 55%;
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 0.68;
  background-image:
    linear-gradient(90deg, rgba(92, 106, 114, 0.94), rgba(92, 106, 114, 0.45)),
    url("images/ukiyoe-waves.png");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right 58%;
  background-size: cover, 680px auto;
  filter: saturate(0.88) contrast(1.03);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.72) 24%, #000 48%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.72) 24%, #000 48%);
}

#navbar-main .navbar-brand {
  position: relative;
  height: 66px;
  padding-top: 16px;
  padding-bottom: 15px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 35px;
  text-decoration: none !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

#navbar-main .navbar-brand::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 10px 5px 0;
  border-radius: 52% 46% 55% 43%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(147, 178, 89, 0.13);
}

#navbar-main .navbar-brand span {
  position: relative;
}

#navbar-main .navbar-brand span::after {
  content: "";
  position: absolute;
  left: 2%;
  bottom: -5px;
  width: 64%;
  height: 1px;
  background: linear-gradient(90deg, rgba(253, 246, 227, 0.68), rgba(147, 178, 89, 0.28), transparent);
  transform: rotate(-0.8deg);
  transform-origin: left center;
}

#navbar-main .navbar-nav > li > a {
  position: relative;
  padding: 22px 18px 20px;
  font-family: "Noto Serif", Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.035em;
  text-decoration: none !important;
  text-shadow: 0 1px 2px rgba(43, 51, 55, 0.58);
  transition: color 240ms ease, transform 240ms ease, opacity 240ms ease;
}

#navbar-main .navbar-nav > li > a::after {
  content: "";
  position: absolute;
  left: 23%;
  right: 23%;
  bottom: 14px;
  height: 1px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.35) rotate(-1.2deg);
  transition: opacity 240ms ease, transform 280ms ease;
}

#navbar-main .navbar-nav > li > a:hover,
#navbar-main .navbar-nav > li > a:focus {
  color: #fff !important;
  opacity: 1;
  transform: translateY(-1px);
}

#navbar-main .navbar-nav > li > a:hover::after,
#navbar-main .navbar-nav > li > a:focus::after {
  opacity: 0.9;
  transform: scaleX(1) rotate(-1.2deg);
}

@media screen and (max-width: 767px) {
  #navbar-main,
  #navbar-main .navbar-brand {
    min-height: 60px;
    height: 60px;
  }

  #navbar-main .navbar-brand {
    padding-top: 13px;
    font-size: 26px;
  }

  #navbar-main .navbar-toggle {
    margin-top: 13px;
  }

  #navbar-collapse-1 {
    border-top-color: rgba(253, 246, 227, 0.16);
    background: rgba(92, 106, 114, 0.98);
  }

  #navbar-main::before {
    width: 100%;
    opacity: 0.58;
    background-position: center, right 31%;
    background-size: cover, 760px auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, #000 45%);
    mask-image: linear-gradient(90deg, transparent 0%, transparent 18%, #000 45%);
  }

  #navbar-main::after {
    width: 72%;
    opacity: 0.38;
    background-size: cover, 540px auto;
  }

  #navbar-main .navbar-nav > li > a {
    padding: 12px 20px;
  }

  #navbar-main .navbar-nav > li > a::after {
    left: 20px;
    right: auto;
    bottom: 8px;
    width: 34px;
  }
}
