:root {
  /* Brand */
  --color-brand:        #C4622D;

  /* Text */
  --color-text:         #111;
  --color-text-dark:    #252525;
  --color-text-medium:  #454545;
  --color-text-light:   #868e96;
  --color-text-muted:   #666;
  --color-heading:      #37352f;
  --color-body:         #333;

  /* Backgrounds & borders */
  --color-bg-light:     rgb(248, 248, 248);
  --color-bg-section:   #f4f4f4;
  --color-border:       #ededed;
  --color-border-mid:   #ccc;

  /* Interactive */
  --color-accent:       #C4622D;
  --color-btn:          #5f5f5f;

  /* Fonts */
  --font-body:          'Source Sans Pro', 'Roboto', 'PingFangSC-Regular', sans-serif;
  --font-heading:       'Lora', serif;
  --font-ui:            'Poppins';
}

/* reset */

* {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
}

body {
  color: var(--color-text);
  font-size: 19px !important;
}

button {
  cursor: pointer;
  border-radius: 0px !important;
}

input {
  border-radius: 0px !important;
}

.row {
  margin-left: 0;
  margin-right: 0;
}


/* global elements */

a {
  color: var(--color-text-medium);
  text-decoration: underline;
}

a:hover {
  color: var(--color-text);
}

figure {
  position: relative;
}


/* loading bar */

.pace {
  pointer-events: none;
  -webkit-pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.pace-inactive {
  display: none;
}

.pace .pace-progress {
  position: fixed;
  top: 0;
  right: 100%;
  z-index: 2000;
  width: 100%;
  height: 3px;
  background: var(--color-brand);
}


/* scroll reveal */

html.sr .load-hidden {
  visibility: hidden;
}


/* header */

header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 37.5px 0px;
  width: 100%;
  height: 100px;
  background-color: var(--color-bg);
  font-size: 18px;
}

header .logo {
  margin: 0 8px;
  padding: 0;
  font-size: 14px;
  color: var(--color-text-light);
  font-weight: 400;
  line-height: 2.2rem;
  font-family: var(--font-ui);
  font-style: italic;
  font-size: 1.25rem;
  text-decoration: none;
}

header .logo:hover {
  color: var(--color-text-medium);
}

header .link a {
  margin: 0 8px;
  padding: 0;
  color: var(--color-text-light);
  font-weight: 400;
  font-size: 17px;
  line-height: 2.2rem;
  font-family: var(--font-ui);
}

header .link a:hover {
  color: var(--color-text);
}

header .link a.active:hover {
  color: var(--color-text);
  pointer-events: none;
}

header .link .dropdown-content {
  position: absolute;
  margin-top: 6px;
  display: block;
  padding: 5px 10px;
  text-align: left;
  border: 1px var(--color-border-mid) solid;
  background-color: #fff;
  display: none;
}

header .link a:first-child:hover+div {
  display: block;
}

header .link .dropdown-content>a {
  display: block;
  line-height: 40px;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}


.nav-item a {
  color: var(--color-brand);
}

.nav-item a:hover {
  color: var(--color-accent);
}


/* nav underline links */

.underline.active {
  border-width: 0px 0px 2px 0px;
  border-style: solid;
  color: var(--color-text-medium);
  font-weight: 500;
}

.underline {
  position: relative;
  text-decoration: none;
  color: var(--color-text-light);
}

.underline:hover,
.underline:focus,
.underline:active {
  color: var(--color-text-light);
  text-decoration: none;
  cursor: pointer;
}

.underline:hover:after,
.underline:focus:after,
.underline:active:after {
  width: 100%;
  color: var(--color-text-light);
}

.underline.active:hover:after,
.underline.active:focus:after,
.underline.active:active:after {
  display: none;
}

.underline:after {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-text-light);
  content: '';
  transition: width .4s;
}


/* buttons */

.btn-outline {
  margin-right: 5px;
  margin-bottom: 10px;
  padding: 5px 18px;
  border: 1px solid #bbb;
  color: #888;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
  font-family: var(--font-ui);
  letter-spacing: 0.05em;
  border-radius: 0;
}

.btn-filled {
  margin-right: 5px;
  margin-bottom: 10px;
  padding: 5px 18px;
  border: 1px solid var(--color-btn);
  border-radius: 0;
  color: #fff;
  background-color: var(--color-btn);
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
  font-family: var(--font-ui);
}

.btn-outline i,
.btn-filled i {
  margin-right: 5px;
}

.btn-filled:hover {
  background-color: var(--color-text-medium);
  color: #fff;
  text-decoration: none;
}

.btn-outline:hover {
  text-decoration: none;
  border: 1px solid #333;
  color: #333;
}



/* footer */

footer {
  padding: 20px 0 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}

footer .row {
  margin-right: 0;
  margin-left: 0;
}

footer .container .row div {
  color: hsl(0, 0%, 15%);
  text-align: center;
  text-decoration: none;
}

footer .container div {
  flex-direction: row-reverse;
}

footer.footer-contact .container div {
  flex-direction: unset;
  text-align: center;
  justify-content: center;
}

footer div span {
  line-height: 40px;
}

footer .container .row a {
  vertical-align: middle;
}

footer div a:hover {
  -webkit-filter: grayscale(0%);
  -webkit-transition: filter .8s;
}

footer a {
  display: inline-block;
  margin: 0px 1px;
  padding: 5px;
  color: var(--color-text-dark);
  text-decoration: none;
}

footer a i {
  margin: 0 auto;
  font-size: 30px;
}

footer a:hover {
  background: transparent;
  color: var(--color-brand);
}

footer>div>a:hover {
  background-color: transparent;
  color: var(--color-brand);
}

footer p {
  text-align: center;
  font-size: 16px;
}

footer.footer-contact {
  padding: 60px 0 32px;
  margin-top: 80px;
  background: var(--color-bg-light);
  display: block;
}

footer.footer-contact .container {
  flex-direction: unset !important;
}

.footer-heading {
  font-family: 'Playfair Display', var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-heading);
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.footer-desc {
  color: var(--color-text-medium);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.footer-btns {
  margin-bottom: 0;
}

.footer-btns a i {
  font-size: 14px !important;
}

.footer-divider {
  border-top: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.footer-meta {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: 15px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 2px;
}

.footer-meta-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-meta a {
  display: inline !important;
  padding: 6px 4px !important;
  color: var(--color-btn) !important;
  font-size: 28px !important;
  margin: 0 4px !important;
}

.footer-meta a:hover {
  color: var(--color-brand) !important;
}

.footer-meta a i {
  font-size: 28px !important;
}

.footer-ig {
  -webkit-text-stroke: 0.4px currentColor;
}

.footer-meta .footer-email {
  font-size: 15px !important;
  color: var(--color-text-muted) !important;
  text-transform: uppercase;
}

.footer-sep {
  color: var(--color-border-mid);
  padding: 0 4px;
}

.footer-copy {
  font-size: 15px;
  color: var(--color-text-muted);
}


/* form focus */

.form-control:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 0.2rem rgb(158 107 87 / 25%) !important;
}

.btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgb(158 107 87 / 25%) !important;
}


/* section title */

.section-title {
  display: block;
  margin: 30px 0 26px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
  color: rgba(0, 0, 0, .64);
  font-size: 21px;
}


/* responsive - base elements only */

@media (min-width: 768px) {
  footer {
    display: flex;
  }
}


/* ============================================================
   Section layout
   ============================================================ */

nav,
#hero,
#about,
#facts,
#moments,
.books,
#skills,
#portfolio,
#cases,
#article,
#contact,
footer {
  overflow: hidden;
  width: 100%;
}

#hero,
#about,
#facts,
.articles,
.books,
.moments,
#skills,
#portfolio,
#cases,
#article,
#contact {
  margin: 75px auto 100px;
}

#article {
  margin-top: 110px;
}

#hero {
  margin: 40px auto 0px;
}


/* ============================================================
   Works — topic/password overlay
   ============================================================ */

.part {
  width: 100%;
  height: 40vh;
  background-color: #f7b196;
  margin: 60px auto;
  padding: 0;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.part .rect {
  border: 2px solid rgba(255, 255, 255, 0.9);
  text-align: left;
  padding: 28px 52px;
  margin: 0 auto;
  width: 420px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.part .rect h3 {
  line-height: 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
}

#port .part .rect p {
  margin-bottom: 6px;
}


/* ============================================================
   Password gate
   ============================================================ */

body.locked #port {
  max-height: 2200px;
  overflow: hidden;
  position: relative;
}
body.locked #port::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 260px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
  z-index: 1;
}
#pw-gate {
  text-align: center;
  padding: 56px 24px 64px;
  display: none;
}
body.locked #pw-gate { display: block; }
#pw-box { max-width: 380px; margin: 0 auto; }
#pw-box .pw-icon { font-size: 28px; margin-bottom: 16px; }
#pw-box .pw-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 8px;
}
#pw-box .pw-desc {
  font-size: 15px;
  color: #888;
  margin-bottom: 24px;
  line-height: 1.6;
}
#pw-input-wrap { display: flex; gap: 8px; justify-content: center; }
#pw-input {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 15px;
  font-family: var(--font-ui);
  width: 220px;
  outline: none;
  transition: border-color 0.2s;
}
#pw-input:focus { border-color: #444; }
#pw-submit {
  background-color: #444;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 15px;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: opacity 0.2s;
}
#pw-submit:hover { opacity: 0.85; }
#pw-error {
  color: #d95c5c;
  font-size: 14px;
  margin-top: 12px;
  display: none;
}

.js-locking body {
  visibility: hidden;
}


/* ============================================================
   Section heading
   ============================================================ */

.word {
  text-align: center;
}

.word h5 {
  display: inline;
  color: var(--color-heading);
  text-align: center;
  font-weight: 700;
  font-size: 1.875rem;
  font-family: var(--font-heading);
  line-height: 1.5;
  overflow: hidden;
}


/* ============================================================
   Works — misc
   ============================================================ */

.intro {
  margin: 4px 0;
  padding: 12px 5px 6px 5px;
  width: 100%;
  color: var(--color-body);
  border: 1px solid var(--color-border);
}

.portfolio-word {
  right: 0;
  margin-top: 15px;
  text-align: right;
  font-size: 20px;
}


/* ============================================================
   Responsive — shared layout
   ============================================================ */

@media (min-width: 1170px) {
  .container-fluid,
  .container,
  .admin-container {
    padding: 0;
  }
}

@media (max-width: 992px) {
  footer div {
    width: 100%;
  }

  footer div:nth-child(2) a {
    padding-top: 9px;
    padding-bottom: 0;
  }

  .container.container-sm-large {
    padding: 0 15px;
    max-width: 100%;
  }

  .about-desc {
    padding: 0 3px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 1.1rem;
  }

  .pace {
    display: none;
  }

  section .container {
    padding: 50px 0;
  }

  footer {
    margin-bottom: 0;
  }

  .portfolio-word {
    font-size: 16px;
  }

  header {
    position: absolute;
    top: 0;
    z-index: 100;
    padding: 14px 12px;
    width: 100%;
    height: 64px;
    font-size: 16px;
    transition: top 0.5s ease-in-out;
  }

  header .logo {
    font-size: 1.1rem;
  }

  header .link a {
    font-size: 15px;
  }
}
